Konferensartikel

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

Ladda ner artikelhttps://doi.org/10.3384/ecp2020174143

Ingår i: Proceedings of Asian Modelica Conference 2020, Tokyo, Japan, October 08-09, 2020

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

Visa mer +

Publicerad: 2020-11-02

ISBN: 978-91-7929-775-6

ISSN: 1650-3686 (tryckt), 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.

Nyckelord

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

Referenser

Inga referenser tillgängliga

Citeringar i Crossref