FMI for Co-Simulation of Embedded Control Software and Physical Models

Increased complexity of cyber-physical systems within the maritime industry demands closer cooperation between engineering disciplines. The functional mockup interface (FMI) is an initiative aiding cross-discipline interaction by providing, a widely accepted, standard for model exchange and co-simulation. The standard is supported by a number of modelling tools. However, to implement it on an existing platform requires adaptation. This paper investigates how to adapt the software of an embedded control system to comply with the FMI for co-simulation standard. In particular, we suggest a way of advancing the clock of a real time operating system (RTOS), by overwriting the idle thread and waiting for a signal to start execution until return to idle. This approach ensures a deterministic and temporal execution of the simulation across multiple nodes. As proof of concept, a co-simulation is conducted, showing that the control system of an SCR (selective catalyst reduction) emission reduction system can be packed in a functional mockup unit (FMU) and co-simulated with a physical model, built in Ptolemy II. Results show that FMI can be used for co-simulation of an embedded SCR control software and for control software development.

[1]  Luigi Vanfretti,et al.  Power system model identification exploiting the Modelica language and FMI technologies , 2014, 2014 IEEE International Conference on Intelligent Energy and Power Systems (IEPS).

[2]  Ghizlane Tibba,et al.  Powertrain co-simulation using AUTOSAR and the Functional Mockup Interface standard , 2014, 2014 51st ACM/EDAC/IEEE Design Automation Conference (DAC).

[3]  Peter Palensky,et al.  Modelica-enabled rapid prototyping of cyber-physical energy systems via the functional mockup interface , 2013, 2013 Workshop on Modeling and Simulation of Cyber-Physical Energy Systems (MSCPES).

[4]  Elmar Ahle,et al.  FMI for physical models on automotive embedded targets , 2015 .

[5]  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).

[6]  Peter Schneider,et al.  Master for Co-Simulation Using FMI , 2011 .

[7]  David Broman,et al.  Determinate composition of FMUs for co-simulation , 2013, 2013 Proceedings of the International Conference on Embedded Software (EMSOFT).

[8]  Thierry S. Nouidui,et al.  Functional mock-up unit for co-simulation import in EnergyPlus , 2014 .

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

[10]  Co-Simulation of Distributed Engine Control System and Network Model using FMI & SCNSL , 2015 .

[11]  Edward A. Lee,et al.  Modeling distributed hybrid systems in Ptolemy II , 2001, Proceedings of the 2001 American Control Conference. (Cat. No.01CH37148).

[12]  Andreas Abel,et al.  Functional Mock-up Interface in Mechatronic Gearshift Simulation for Commercial Vehicles , 2012 .

[13]  Edward A. Lee,et al.  Exploring models of computation with Ptolemy II , 2010, 2010 IEEE/ACM/IFIP International Conference on Hardware/Software Codesign and System Synthesis (CODES+ISSS).