Research Output
Towards a High-Performance Modelica Compiler
  The use of Modelica as a modelling and simulation language is progressively replacing hand-tuned simulation code written in traditional imperative programming languages. This adoption is fuelled by the availability of libraries to target different application domains, as well as optimizations in Modelica implementations that allow to address larger problems. However, the effort required to extend existing Modelica implementations to support large scale models may not be economically sustainable by the Modelica community. To overcome this barrier, we believe a perspective change is required. Instead of developing, maintaining and optimizing a dedicated codebase, we propose to develop a Modelica implementation by relying on the LLVM state-of-the-art compiler framework. Although this approach will require a higher initial development effort, we believe that it will lead to significantly improved performance as well as lower overall cost. The paper discusses a possible roadmap for such a development, and presents a very early prototype implementation that exploits array structures by avoiding scalar expansion during the code generation process.

  • Date:

    01 February 2019

  • Publication Status:

    Published

  • Publisher

    Linköing University Electronic Press

  • DOI:

    10.3384/ecp19157313

  • Cross Ref:

    10.3384/ecp19157313

  • Funders:

    Politecnico di Milano

Citation

Agosta, G., Baldino, E., Casella, F., Cherubin, S., Leva, A., & Terraneo, F. (2019). Towards a High-Performance Modelica Compiler. In Proceedings of the 13th International Modelica Conference, Regensburg, Germany, March 4–6, 2019 (313-320). https://doi.org/10.3384/ecp19157313

Authors

Keywords

Modelica Tools, Large-scale model simulation, Compilers, LLVM

Monthly Views:

Available Documents