Conference article

Synchronous Events in the OpenModelica Compiler with a Petri Net Library Application

Willi Braun
Department of Applied Mathematics, University of Applied Sciences Bielefeld, Germany

Bernhard Bachmann
Department of Applied Mathematics, University of Applied Sciences Bielefeld, Germany

Sabrina Pross
Department of Applied Mathematics, University of Applied Sciences Bielefeld, Germany

Download article

Published in: 3rd International Workshop on Equation-Based Object-Oriented Modeling Languages and Tools; Oslo; Norway; October 3

Linköping Electronic Conference Proceedings 47:7, p. 63-70

Show more +

Published: 2010-09-21

ISBN: 978-91-7519-824-8

ISSN: 1650-3686 (print), 1650-3740 (online)


In this work an approach is presented that extends the OpenModelica Compiler (OMC) with an event handling module and controls events separately from the integrator. The aim of this extension is to improve the event handling controller of the OMC to handle all equations synchronously; resulting in an efficient simulation of hybrid dynamical systems. This improvements of the event handling allows to formulate the Petri Net library in optimal Modelica code.


Modelica; Hybrid Models; Petri Nets; Open-Modelica; Synchronous


[1] Bernhard Bachmann; Peter Aronsson; and Peter Fritzson. Robust initialization of differential algebraic equations. In Proceedings 5th Modelica Conference; Vienna; Austria; 2006.

[2] François E. Cellier. Combined Continuous/Descrete System Simulation by use of digital computers: Techniques and Tools. PhD thesis; ETH Zürich; 1979.

[3] Harald Dyckhoff and Thomas Stefan Spengler. Produktionswirtschaft. Springer-Verlag Berlin Heidelberg; 2005.

[4] Hilding Elmqvist; François E. Cellier; and Martin Otter. Object-oriented modeling of hybrid systems. In European Simulation Symp.; pages 31–41; 1993.

[5] Håkan Lundvall; Peter Fritzson; and Bernhard Bachmann. Event handling in the openmodelica compiler and runtime system. Technical report; PELAB;The Institute of Technology; Linköpings universitet; 2008.

[6] Modelica Association. Modelica - A unified Object- Oriented Language for Physical Systems Modeling Language Specification - Version 3.2; 03 2010.

[7] Martin Otter; Hilding Elmqvist; and Sven Erik Mattsson. Hybrid modeling in modelica based on the synchronous data flow principle. In Proceedings of CACSD; Symposium on Computer Aided Control System Desig; 1999.

[8] Sabrina Pross and Bernhard Bachmann. A petri net library for modeling hybrid systems in openmodelica. In Proceedings 7th Modelica Conference; Como; Italy; pages 454–463. The Modelica Association; 2009.

[9] Lena Wunderlich. Analysis and Numerical Solution of Structured and Switched Differential-Algebraic Systems. PhD thesis; TU Berlin; 2008.

Citations in Crossref