Innovations for Future Modelica

Hilding Elmqvist
Mogram AB, Magle Lilla Kyrkogata 24, 223 51 Lund, Sweden

Toivo Henningsson
Lund, Sweden

Martin Otter
Institute of System Dynamics and Control, DLR, Oberpfaffenhofen, Germany

Ladda ner artikelhttp://dx.doi.org/10.3384/ecp17132693

Ingår i: Proceedings of the 12th International Modelica Conference, Prague, Czech Republic, May 15-17, 2017

Linköping Electronic Conference Proceedings 132:76, s. 693-702

Visa mer +

Publicerad: 2017-07-04

ISBN: 978-91-7685-575-1

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


This paper discusses language innovations for future Modelica versions, on the one hand for generally applicable language elements, and on the other hand to improve modeling of multibody systems with contacts, and media modeling. In a companion paper new algorithms are proposed to handle much larger models than can be treated today. All these innovations are developed and evaluated with the experimental modeling and simulation environment Modia. Modia is based on Julia, a powerful programming language with strong focus on scientific computing, meta-programming and just-in-time compilation that allows very fast development. The modeling language is directly defined and implemented with Julia’s meta-programming constructs and is designed tightly together with the symbolic and numeric algorithms. This approach is very well suited for innovation and experimenting with evolutions of modeling capabilities in Modelica.


Modelica, Modia, Julia, modeling, simulation


Benveniste A., Caillaud B., Elmqvist H., Ghorbal K., Otter M., and Pouzet M. (2017): Multi-Mode DAE Models - Challenges, Theory and Implementation. Lecture Notes on Computer Science, submitted for review.

Bezanson J., Edelman A., Karpinski S. and Shah V.B. (2017): Julia: A Fresh Approach to Numerical Computing. SIAM Review, Vol. 59, No. 1, pp. 65-98. http://julialang.org/publications/julia-fresh-approach-BEKS.pdf; see also: http://julialang.org/

Broman D., Siek J. G. (2012): Modelyze: a Gradually Typed Host Language for Embedding Equation-Based Modeling Languages, University of California at Berkeley, No. UCB/EECS-2012-173, www2.eecs.berkeley.edu/Pubs/TechRpts/2012/EECS-2012-173.html.

Danish D. (2014): FixedSizeArrays, https://github.com/SimonDanisch/FixedSizeArrays.jl

Elmqvist H., Goteman A., Roxling V., Ghandriz T. (2015): Generic Modelica Framework for MultiBody Contacts and Discrete Element Method. Proceedings 11th International Modelica Conference, Versailles. http://www.ep.liu.se/ecp/118/046/ecp15118427.pdf

Elmqvist H., Olsson H., Otter M. (2015b): Constructs for Meta Properties Modeling in Modelica. Proceedings 11th International Modelica Conference, Versailles. http://www.ep.liu.se/ecp/118/026/ecp15118245.pdf

Elmqvist H. and Mattsson S.E. (2016): Exploiting Model Graph Analysis for Simplified Modeling and Improved Diagnostics. Proceedings EOOLT ’16, April 18, Milano, Italy.

Elmqvist J., Henningsson T. and Otter M. (2016): System Modeling and Programming in a Unified Environment based on Julia. Proceedings of ISoLA 2016 Conference Oct. 10-14, T. Margaria and B. Steffen (Eds.), Part II, LNCS 9953, pp. 198-217.

Fisher K. (2013): SIUnits. https://github.com/Keno/SIUnits.jl

Giorgidze G., Nilsson H. (2009): Higher-Order Non-Causal Modelling and Simulation of Structurally Dynamic Systems. In Proceedings of the 7th International Modelica Conference, pages 208–218, Como, Italy. http://www.ep.liu.se/ecp/043/022/ecp09430137.pdf.

Höger C.: Dynamic structural analysis for DAEs. In Proceedings of the 2014 SCS Summer Simulation Multiconference, 2014.

Mattsson S.E, Otter M., and Elmqvist H. (2015): Multi-Mode DAE Systems with Varying Index. Proceedings 11th International Modelica Conference, Versailles. http://www.ep.liu.se/ecp/118/009/ecp1511889.pdf

Modelica Association (2014): The Modelica Language Specification, Version 3.3 Revision 1, https://www.modelica.org/documents/ModelicaSpec33Revision1.pdf

Modelica Association (2016): The Modelica Standard Library, Version 3.3.2, https://github.com/modelica/Modelica

Otter M., and Elmqvist H. (2017): Transformation of Differential Algebraic Array Equations to Index One Form. Modelica Conference 2017, Prague, May 15-17.

Short T. (2012): Sims - A Julia package for equation-based modeling and simulations.

Zimmer D. (2010): Equation-Based Modeling of Variable Structure Systems. PhD Dissertation, ETH Zürich. http://ecollection.library.ethz.ch/eserv/eth:1512/eth-1512-02.pdf.

Citeringar i Crossref