ModelicaCC is a Modelica C Compiler implemented in C++, the main goal of this project is to provide an environment to develop and test novel algorithms involved in the different compilation stages of large scale Modelica models. The different stages of the compilation pipeline follows the usual order:
- Parsing
- Flattening
- Index Reduction
- Sorting
- Code Generation
- Simulation Model
The input/output of each stage are valid Modelica models (except for the very last stage which produce C code). Each stage converts the Modelica model fed as input into a “simpler” equivalent one. As the compiler uses the QSS Solver for the C code generation and simulation, the goal of the previous stages is to obtain a valid μ–Modelica model.
The following tools are generated:
- parser
- antialias
- flatter
- causalize
- mmo
[1] Federico Bergero, Mariano Botta, Esteban Campostrini, Ernesto Kofman. Efficient Compilation of Large Scale Dynamical Systems Proceedings of the 11th International Modelica Conference 2015
[2] Pablo Zimmermann, Joaquin Fernandez, Ernesto Kofman. Set-based graph methods for fast equation sorting in large DAE systems EOOLT '19: Proceedings of the 9th International Workshop on Equation-based Object-oriented Modeling Languages and Tools 2019
These are generic installation instructions.
In order to be able to install and compile ModelicaCC, the following dependencies must be installed:
* autoconf 2.69 (avoid 2.71)
* boost1.71
* cmake
* doxygen
* g++
* libginac-dev
* make
The simplest way to compile this package is:
-
cd
to the directory containing the package's source code and typeautoconf
to generate the configuration scripts. -
Type
./configure
to run the configuration script. -
Type
make
to compile all the binaries. The different tools are located in the bin folder. -
You can remove the program binaries and object files from the source code directory by typing
make clean
.
- Implemented vector graph data structures
- Implemented matching algorithm using vector graph data structures.
- Implemented Tarjan algorithm using vector graph data structures.
- Implemented first version of flattening algorithm
- Implemented Tarjan algorithm
- Implemented causalization algorithm
Please see the file called LICENSE.
Report bugs to: fernandez@cifasis-conicet.gov.ar