Tool Support for Modelica Real-time Models

michaela huhn,martin sjolund,wuzhu chen,christan schulze,peter fritzson
DOI: https://doi.org/10.3384/ecp11063537
2011-01-01
Abstract:The challenges in the area real-time simulation of physical systems have grown rapidly.To prepare a simulation model for execution on a real-time target, an experienced developer usually performs several adaptations on the model and the solver in order to reduce runtime and communication needs.Two-folded tool support for evaluating the effect of such adaptations is presented here: (1) A ModelComparator for the systematic comparison of simulation results from different versions of the model and (2) an RT-Profiler for measurements and analyses of function calls during RT simulations.The ModelComparator facilitates verification of a model adapted for real-time execution to ensure that it will produce sufficiently accurate results at selected operation points.The RT-Profiler takes the specific code structure of simulation models into account when measuring execution times.It directs the developer to those parts that are most promising for model adaptations.We consider OpenModelica and SimulationX as modeling and code generation frameworks for realtime simulation.The procedure of model adaptations and the use of the analysis tools therein are exemplified in small case studies.
What problem does this paper attempt to address?