Michaela Huhn
Clausthal University of Technology, Department of Informatics, Germany
Martin Sjölund
Linköpings Universitet, Dept. Of Computer and Information Science, Sweden
Wuzhu Chen
Clausthal University of Technology, Department of Informatics, Germany
Christian Shulze
Clausthal University of Technology, Department of Informatics, Germany
Peter Fritzson
Linköpings Universitet, Dept. of Computer and Information Science, Sweden
Ladda ner artikelhttp://dx.doi.org/10.3384/ecp11063537Ingår i: Proceedings of the 8th International Modelica Conference; March 20th-22nd; Technical Univeristy; Dresden; Germany
Linköping Electronic Conference Proceedings 63:61, s. 537-548
Publicerad: 2011-06-30
ISBN: 978-91-7393-096-3
ISSN: 1650-3686 (tryckt), 1650-3740 (online)
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.
[1] MODELISAR (ITEA 2 07006). Functional Mock-up Interface for Model Exchange; January 26 2010.
[2] T. Blochwitz and T. Beutlich. Real-Time Simulation of Modelica-based Models. In Proc. 7th Modelica Conference; pages 386–392. The Modelica Association; 2009.
[3] F. Casella. Exploiting Weak Dynamic Interactions in Modelica. In Proc. 4th Modelica Conference; pages 97–103. The Modelica Association; 2005.
[4] C. Clauß and A. Schneider. Modelica Standard Library 2.2.1; 2007.
[5] W.H.A. Schilders et al. Model Order Reduction. Springer Verlag; 2008.
doi: 10.1007/978-3-540-78841-6.
[6] S. Graham; P. Kessler; and M. McKusick. An Execution Profiler for Modular Programs. In Software - Practice and Experience; volume 13; pages 671–685; 1991.
doi: 10.1002/spe.4380130803.
[7] Cosateq GmbH & Co. KG. Scale-RT; 2010.
[8] A.K. Noor. Recent advances and applications of reduction methods. Appl. Mech. Rev.; 1994.
[9] Terence Parr. ANTLR; 2010.
[10] A. Pop; D. Akhvlediani; and P. Fritzson. Towards Run-time Debugging of Equation-based Object-oriented Languages. In Proceedings of the 48th Scandinavian Conference on Simulation and Modeling (SIMS’ 2007); 2007. Göteborg; Sweden. October 30-31.
[11] A. Schiela and H. Olsson. Mixed-mode Integration for Real-Time Simulation. In Modelica Workshop 2000 Proceedings; pages 69–75. The Modelica Association; 2000.
[12] C. Schulze; M. Huhn; and M. Schüler. Profiling of Modelica Real-time Models. In 3rd International Workshop on Equation-Based Object-Oriented Modeling Languages and Tools (EOOLT); pages 23–32. Linköping Electronic Conference Proceedings; 2010.
[13] Ullrich von Bassewitz. cc65; 2010.