Conference article

Towards an Open-Source Modelica Compiler in Julia

John Tinnerholm
Linköping University

Adrian Pop
Linköping University

Martin Sjölund
Linköping University

Andreas Heuermann
Bielefeld University of Applied Sciences

Karim Abdelhak
Bielefeld University of Applied Sciences

Download articlehttps://doi.org/10.3384/ecp2020174143

Published in: Proceedings of Asian Modelica Conference 2020, Tokyo, Japan, October 08-09, 2020

Linköping Electronic Conference Proceedings 174:17, p. 143-151

Show more +

Published: 2020-11-02

ISBN: 978-91-7929-775-6

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

Abstract

Recently the Julia language has become an option for scientific computing. As of 2020, efforts exist to provide libraries that emulate the equation-based modeling features provided by Modelica or otherwise provide such functionality in Julia. The issue with these approaches is that investment in standardization and libraries would be lost unless standard-complacency is guaranteed. We believe that it is possible to combine features from both by implementing such a compiler in Julia. We argue that this approach would open additional opportunities. One such being the handling of variable structure systems (VSS) within the framework of a Modelica standard-compliant compiler. The other being a proposed compiler architecture reminiscent of LLVM for equation-based object-oriented languages. Using the OpenModelica Compiler as a baseline, we verified the fidelity of our implementation by simulating a selected set of models. While there are performance penalties, we argue that improvements to the frontend would mitigate these issues.

Keywords

Modelica, OpenModelica, Compilers, Applied computing, Julia, Variable Structure Systems

References

No references available

Citations in Crossref