© 2009 IBM Corporation Verification of embedded system specifications using collaborative simulation of SysML and Simulink models Ryo Kawahara*, Hiroaki.

Slides:



Advertisements
Similar presentations
Integration of MBSE and Virtual Engineering for Detailed Design
Advertisements

MDI 2010, Oslo, Norway Behavioural Interoperability to Support Model-Driven Systems Integration Alek Radjenovic, Richard Paige The University of York,
Model Driven Generative Programming Reza Azimi February 6, 2003 ECE1770: Trends in Middleware Systems.
ARCH-05 Application Prophecy UML 101 Peter Varhol Principal Product Manager.
WebRatio BPM: a Tool for Design and Deployment of Business Processes on the Web Stefano Butti, Marco Brambilla, Piero Fraternali Web Models Srl, Italy.
® IBM Software Group © 2006 IBM Corporation Rational Software France Object-Oriented Analysis and Design with UML2 and Rational Software Modeler 04. Other.
MotoHawk Training Model-Based Design of Embedded Systems.
OMG Systems Modeling Language (OMG SysML™) Matthew Hause ARTiSAN Software Tools Some slides reused from the OMG SysML™ Tutorial with permission.
Page 1 Building Reliable Component-based Systems Chapter 13 -Components in Real-Time Systems Chapter 13 Components in Real-Time Systems.
INTRODUCTION OS/2 was initially designed to extend the capabilities of DOS by IBM and Microsoft Corporations. To create a single industry-standard operating.
WebRatio BPM: a Tool for Design and Deployment of Business Processes on the Web Stefano Butti, Marco Brambilla, Piero Fraternali Web Models Srl, Italy.
Laboratory 5: Introduction to LabVIEW. Overview Objectives Background Materials Procedure Report / Presentation Closing.
HAS. Patterns The use of patterns is essentially the reuse of well established good ideas. A pattern is a named well understood good solution to a common.
Software Testing and Reliability Testing Real-Time Systems Aditya P. Mathur Purdue University May 19-23, Corporation Minneapolis/St Paul,
End-to-End Design of Embedded Real-Time Systems Kang G. Shin Real-Time Computing Laboratory EECS Department The University of Michigan Ann Arbor, MI
MOBIES Project Progress Report Engine Throttle Controller Design Using Multiple Models of Computation Edward Lee Haiyang Zheng with thanks to Ptolemy Group.
© 2008 IBM Corporation Behavioral Models for Software Development Andrei Kirshin, Dolev Dotan, Alan Hartman January 2008.
Copyright Arshi Khan1 System Programming Instructor Arshi Khan.
By Ryan Mowry.  Graphical models of system  Entire system or just parts  Complex systems easier to understand  “Capture key requirements and demonstrate.
- Chaitanya Krishna Pappala Enterprise Architect- a tool for Business process modelling.
Basic Concepts The Unified Modeling Language (UML) SYSC System Analysis and Design.
02/06/05 “Investigating a Finite–State Machine Notation for Discrete–Event Systems” Nikolay Stoimenov.
Free Mini Course: Applying SysML with MagicDraw
Smith’s Aerospace © P. Bailey & K. Vander Linden, 2005 Architecture: Component and Deployment Diagrams Patrick Bailey Keith Vander Linden Calvin College.
Systems Modeling Language ™ Overview Cris Kobryn and Sandy Friedenthal SysML Partners ( October 2003.
Faculty of Informatics and Information Technologies Slovak University of Technology Peter Kajsa and Ľubomír Majtás Design.
(C) 2009 J. M. Garrido1 Object Oriented Simulation with Java.
An Introduction to Software Architecture
Co-design Environment for Secure Embedded Systems Matt Eby, Janos L. Mathe, Jan Werner, Gabor Karsai, Sandeep Neema, Janos Sztipanovits, Yuan Xue Institute.
Simulink ® Interface Course 13 Active-HDL Interfaces.
Selected Topics in Software Engineering - Distributed Software Development.
© 2012 xtUML.org Bill Chown – Mentor Graphics Model Driven Engineering.
Paper written by Flavio Oquendo Presented by Ernesto Medina.
Unified Modeling Language* Keng Siau University of Nebraska-Lincoln *Adapted from “Software Architecture and the UML” by Grady Booch.
SysML Awareness John Davies BSc, PhD, CEng, FIET.
Performance evaluation of component-based software systems Seminar of Component Engineering course Rofideh hadighi 7 Jan 2010.
SWT - Diagrammatics Lecture 4/4 - Diagramming in OO Software Development - partB 4-May-2000.
Electrical and Computer Engineering University of Cyprus LAB 1: VHDL.
Laboratory of Model Driven Engineering for Embedded Systems An Execution Framework for MARTE-based Models UML&AADL’2008 workshop Belfast, Northern Ireland.
© 2005 Xilinx, Inc. All Rights Reserved This material exempt per Department of Commerce license exception TSU HDL Co-Simulation.
CIM LAB MEETING Presentation on UML Rakesh Mopidevi Kwangyeol Ryu.
1 Technical & Business Writing (ENG-715) Muhammad Bilal Bashir UIIT, Rawalpindi.
Week 04 Object Oriented Analysis and Designing. What is a model? A model is quicker and easier to build A model can be used in simulations, to learn more.
August 2003 At A Glance The IRC is a platform independent, extensible, and adaptive framework that provides robust, interactive, and distributed control.
1. 2 Purpose of This Presentation ◆ To explain how spacecraft can be virtualized by using a standard modeling method; ◆ To introduce the basic concept.
Introducing Α UML model For Faster-than-Real-Time Simulation Dimosthenis Anagnostopoulos 1, Vassilis Dalakas 2, George- Dimitrios Kapos 1, Mara Nikolaidou.
Slide 1 2/22/2016 Policy-Based Management With SNMP SNMPCONF Working Group - Interim Meeting May 2000 Jon Saperia.
Hardware/Software Co-Design of Complex Embedded System NIKOLAOS S. VOROS, LUIS SANCHES, ALEJANDRO ALONSO, ALEXIOS N. BIRBAS, MICHAEL BIRBAS, AHMED JERRAYA.
Introduction to LabVIEW
© 2009 Artisan Software Tools. All rights reserved. Testing Solutions with UML/SysML Andrew Stuart, Matthew Hause.
UML (Unified Modeling Language)
EG1003: Introduction to Engineering and Design Introduction to LabVIEW.
SysML and Modelica Integration using FMI\System of Systems March The seventh National Conference INCOSE_IL 2013 System of Systems "SysML and Modelica.
M&CML: A Monitoring & Control Specification Modeling Language
IBM Rational Rhapsody Advanced Systems Training v7.5
Introduction to LabVIEW
Extending Model-Driven Engineering in Tango
Unified Modeling Language
Contents Simulink model Grouping into subsystems Naming the subsystems
Use Case Realization Describes a collaboration among analysis classes that shows how a specific use case is realized Consists of flow-of-events analysis,
Behavioral Models for Software Development
Introduction to LabVIEW
Introduction to LabVIEW
An Introduction to Software Architecture
Presented By: Darlene Banta
Introduction to LabVIEW
Introduction to LabVIEW
Software Development Process Using UML Recap
Introduction to LabVIEW
Presentation transcript:

© 2009 IBM Corporation Verification of embedded system specifications using collaborative simulation of SysML and Simulink models Ryo Kawahara*, Hiroaki Nakamura*, Dolev Dotan**, Andrei Kirshin**, Takashi Sakairi*, Shinichi Hirose*, Kohichi Ono*, Hiroshi Ishikawa* *Tokyo Research Laboratory, IBM Research **Haifa Research Laboratory, IBM Research

Haifa Research Lab – Model Driven Engineering Technologies Group © 2009 IBM Corporation Abstract  The authors propose an extension of SysML which enables description of continuous-time behavior.  The authors also develop its execution tool integrated on Eclipse-based platform by exploiting co-simulation of SysML and MATLAB / Simulink.  To demonstrate the effectiveness of the tool and the extension to SysML in verifying specifications of an embedded system, we create a sample model and analyze its execution results by checking constraints under a test case.

Haifa Research Lab – Model Driven Engineering Technologies Group © 2009 IBM Corporation Introduction  In the development of an embedded system, it is important to verify that the specification of the system satisfies the requirements at an early stage –One approach to achieve this is to model and simulate the system during the analysis –Systems Modeling Language (SysML) is an extension of UML for embedded systems to include heterogeneous elements such as software, electronics, or mechanics

Haifa Research Lab – Model Driven Engineering Technologies Group © 2009 IBM Corporation Subject  Embedded systems often include control systems –A control system is usually a hybrid system, the mixture of continuous-time and discrete behavior –Continuous-time behavior in UML / SysML has not been defined –Simulation of control system is usually done in a specialized tools, such as the MathWorks MATLAB / Simulink –A UML / SysML behavior is not associated with time  Integration of the continuous-time behavior into the systems model is desired

Haifa Research Lab – Model Driven Engineering Technologies Group © 2009 IBM Corporation Background: SysML  SysML is an extension of UML2 for systems engineering  Requirements –Requirement diagram  Behaviors –Activity diagram –State machine diagram  Structures –Block definition diagram => class diagram –Internal block diagram => composite structure diagram  Parametrics –Parametric diagram => internal block diagram

Haifa Research Lab – Model Driven Engineering Technologies Group © 2009 IBM Corporation Background: Simulink  Simulink uses Block diagram –Block diagram describes the flow of signal between blocks, which process the signal –This example calculates:

Haifa Research Lab – Model Driven Engineering Technologies Group © 2009 IBM Corporation Approach  Use SysML for a system architecture description  Use specific languages for each domain –Simulink for continuous-time behavior in a control system  Time duration assignment to SysML action  Verify specification by collaborative simulation –Run multiple simulation in parallel with time synchronization –Independent time management module

Haifa Research Lab – Model Driven Engineering Technologies Group © 2009 IBM Corporation Extended Modeling for Simulation in SysML Time assignment to action Continuous data exchange between blocks Specifying Simulink model as a block behavior MARTE > stereotype, or sleep() method in action code SysML flow ports with connectors in internal block diagram > stereotype to specify model file

Haifa Research Lab – Model Driven Engineering Technologies Group © 2009 IBM Corporation SysML Execution and Debugging  Debugging of behavioral UML models by emulation, supporting: -Class, Composite Structure Diagrams -State Machines, Activities -Java as Action Language  Extensible to support UML profiles (in this case SysML)  Debugging UI – Model Debugging Perspective (next slide)  Diagram animation  Debugging modes:  Traditional Debugging -Start “main” -Run to breakpoint -Stepping  Interactive debugging (model “exerciser”) -Manually create objects -Invoke operations -Send signals Current State Execution Pending Running Transition Breakpoint

Haifa Research Lab – Model Driven Engineering Technologies Group © 2009 IBM Corporation Model Debugging Perspective Debug Variables Console Diagram Animation Signals Event Pools Instances Breakpoints I/O Snippet Watch Sleeping

Haifa Research Lab – Model Driven Engineering Technologies Group © 2009 IBM Corporation Sleeping View Shows the queue of sleeping behaviors and behavior elements. Wakeup time Current virtual time

Haifa Research Lab – Model Driven Engineering Technologies Group © 2009 IBM Corporation Time Management  Data is exchanged and the next Simulink step is executed at: –End of timed SysML behavioral step ( > or sleep() ) –Periodic data exchange event SysML object MATLAB / Simulink Timed scheduler UML execution engine Time management module Demands of time Add periodic data exchange events into the list consists of the discrete events Time demands to scheduler MATLAB / Simulink command execution … Simulation start / stop SysML object 400 Time Periodic data exchange events Discrete events Action1 Action2 Action3

Haifa Research Lab – Model Driven Engineering Technologies Group © 2009 IBM Corporation Co-simulation with Simulink  All the Simulink models are referred from a single temporary Simulink model –Only one Simulink process is used  Simulation data is sent or received through Input/Output S-Functions Model reference1 Input S-Function Model reference2 Output S-Function Temporary generated Simulink model Model 1Model 2 Simulink models which are assigned to SysML behaviors Data from SysMLData to SysML

Haifa Research Lab – Model Driven Engineering Technologies Group © 2009 IBM Corporation Overview of Sample model: Humidifier  Requirements –The humidifier starts vapor emission within 5 minutes since the power on signal –The humidifier ends cool down within 10 minutes since the power off signal –The humidifier keeps the room humidity at a constant level specified by the user automatically Heater Reservoir Circulator fan Pan  Basic mechanism –The water is boiled by the heater –Vapor is emitted to the environment by circulator fan

Haifa Research Lab – Model Driven Engineering Technologies Group © 2009 IBM Corporation Structure of HumidifierSystem Simulink model assigned block State machine assigned block Block definition diagram Internal block diagram of HumidifierSystem Flow ports for continuous I/O Standard ports for discrete signals Simulink model assigned block State machine assigned block

Haifa Research Lab – Model Driven Engineering Technologies Group © 2009 IBM Corporation Behavior of Control block State machine diagram Signal from user interface Change event that monitors values from a Simulink blocks

Haifa Research Lab – Model Driven Engineering Technologies Group © 2009 IBM Corporation Simulink model for VaporGenerationPlant heating subsystem radiation subsystem evaporation subsystem

Haifa Research Lab – Model Driven Engineering Technologies Group © 2009 IBM Corporation Test context Simulink model assigned block Block definition diagram Internal block diagram of TestContext Flow ports for continuous I/O to consist a closed loop Definition of test environment Test target

Haifa Research Lab – Model Driven Engineering Technologies Group © 2009 IBM Corporation Cooling down taking too long time Test case and results Time(s)Command 0Test start 10Power on 2000Power off 3600Test end Automatic humidity control

Haifa Research Lab – Model Driven Engineering Technologies Group © 2009 IBM Corporation Parametric and time constraint evaluation Parametric diagram Sequence diagram with time constraint using MARTE profile Constraint block: Humidity should be kept near target value Timed constraint: Cool down should be finished within 10 minutes

Haifa Research Lab – Model Driven Engineering Technologies Group © 2009 IBM Corporation Conclusion  We have developed a verification tool based on co-simulation of Simulink and SysML  We have extended the modeling capability of SysML to be able to reference Simulink models and specify timed behavior  These extensions enable one to test specifications of a system which includes continuous-time behavior in a closed control loop

© 2009 IBM Corporation

Haifa Research Lab – Model Driven Engineering Technologies Group © 2009 IBM Corporation Overview of the verification tool Block2 Integer b = 1 Block3 Integer c = 2 Integer eval eval = f(bb, cc) bbcc eval Eval > 80 eval Virtual time scheduler Time-aware UML execution engine Simulink pq {h,i} pq {j,k}lm {n,o} {a,b,c} |{d,e,(f|g}} Parametric constraint evaluatorTime constraint evaluator Binary tree for fast eval. TPTP-based test driver Timed test casesTimed discrete behaviorContinuous behavior Parametric constraints (OMG SysML) Time constraints (OMG MARTE profile)

Haifa Research Lab – Model Driven Engineering Technologies Group © 2009 IBM Corporation Simulink model for Room block saturation_vapor_pressure subsystem relative_humidity subsystem

Haifa Research Lab – Model Driven Engineering Technologies Group © 2009 IBM Corporation State machine diagram of HeaterControl block

Haifa Research Lab – Model Driven Engineering Technologies Group © 2009 IBM Corporation Related works Reichmann et al. (2004), Telelogic Rhapsody® C. Nytsch-Geusen (2007), A. Pop et al., (2007), T. A. Johnson et al., (2008) Hooman et al. (2004) Our approach Coupling method Conversion to source code Conversion to Modelica Co- simulation of Simulink and Rose® RT Co- simulation Simulation time management By independent module (Rhapsody) By ModelicaBy SimulinkBy independent module Studies on coupling of UML/SysML and continuous-time simulation (e.g., Simulink)

Haifa Research Lab – Model Driven Engineering Technologies Group © 2009 IBM Corporation Related works  Source code level linkage of UML and Simulink –Reichmann et al., Telelogic Rhapsody®  Co-simulation of Simulink and UML model on IBM Rational Rose® RealTime –J. Hooman, N. Mulyar and L. Posta, 2004  Conversion of UML/SysML to Modelica language –C. Nytsch-Geusen, A. Pop et al., T. A. Johnson et al., 2008 –Modelica is a new language to model continuous-time system