Generation of functional mock-up units for co-simulation from simulink®, using explicit computational semantics: work in progress paper

As the complexity of Software-Intensive and Cyber-Physical Systems increases, multiple formalisms are used to model different parts of a system. Rather than building simulators for these combinations of multiple formalisms, co-simulation is often used to orchestrate multiple simulations. One emerging industry standard in this field is the Functional Mock-up Interface (FMI). This standard defines the interface implemented by Functional Mock-up Units (FMUs). An FMU is encoded as a zip-file containing model variable types and values in XML-format as well as the model's equations in C C-code. The C encoding allows one to distribute IP in binary form. Solvers are typically coded instead of explicitly modeled. However, this does not allow straightforward analysis or detection of for example algebraic loops and optimization possibilities. Explicitly modeling the solvers helps overcome these limitations, since this allows for the use of model-driven engineering techniques, such as model transformations. This paper presents a method to generate FMUs from Causal Block Diagram models, more specific Simulink® models, with explicitly modeled ODE solvers. The execution performance is compared between FMUs with explicitly modeled solvers and FMUs with coded solvers. We conclude that modeling the solver has a significant positive impact on the run-time efficiency of the generated FMUs.

[1]  Hans Vangheluwe,et al.  FTG+PM: An Integrated Framework for Investigating Model Transformation Chains , 2013, SDL Forum.

[2]  Pieter J. Mosterman,et al.  Computer Automated Multi-Paradigm Modeling : An Introduction , 2000 .

[3]  M. Abid,et al.  A SystemC/Simulink Co-Simulation Framework for Continuous/Discrete-Events Simulation , 2006, 2006 IEEE International Behavioral Modeling and Simulation Workshop.

[4]  Hanifa Boucheneb,et al.  A formalization of global simulation models for continuous/discrete systems , 2007, SCSC.

[5]  Pieter J. Mosterman,et al.  Stream and State-Based Semantics of Hierarchy in Block Diagrams , 2008 .

[6]  Uri M. Ascher,et al.  Computer methods for ordinary differential equations and differential-algebraic equations , 1998 .

[7]  Peter Palensky,et al.  The FMI++ library: A high-level utility package for FMI for model exchange , 2013, 2013 Workshop on Modeling and Simulation of Cyber-Physical Energy Systems (MSCPES).

[8]  Pieter J. Mosterman,et al.  Towards Computational Hybrid System Semantics for Time-Based Block Diagrams , 2009, ADHS.

[9]  H. Vangheluwe,et al.  An introduction to multi-paradigm modelling and simulation. , 2002 .

[10]  Pieter J. Mosterman,et al.  AdvancingModel-Based Design by Modeling Approximations of Computational Semantics , 2011, EOOLT.

[11]  Andreas Junghanns,et al.  The Functional Mockup Interface for Tool independent Exchange of Simulation Models , 2011 .

[12]  Ronald L. Rivest,et al.  Introduction to Algorithms , 1990 .

[13]  Kendall E. Atkinson An introduction to numerical analysis , 1978 .

[14]  Robert E. Tarjan,et al.  Depth-First Search and Linear Graph Algorithms , 1972, SIAM J. Comput..

[15]  Pieter J. Mosterman,et al.  A computational model of time for stiff hybrid systems applied to control synthesis , 2012 .