{'fraction_non_alphanumeric': 0.016129032258064516, 'fraction_numerical': 0.0016129032258064516, 'mean_word_length': 5.331632653061225, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Tool Support for Modelica Real-time Models

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 RTProfiler 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.