XML export and import of Modelica models
Modelica is a language primarily used for simulation of physical systems but other use cases such as optimization and control design are increasing. New use cases introduce a di erent set of algorithms to work with the models, which means that current Modelica tools can not implement all these algorithms. Instead it is important to be able to exchange models between tools. To solve this issue a standardized XML format called Modelica XML is under development. In this thesis it is investigated how suitable Modelica XML is for transfer of Modelica models between di erent tools. As a part of the evaluation of the Modelica XML format a comparison with a previous XML format used for model exchange is performed. An implementation of import and export for the format within the open source Modelica compiler JModelica.org is performed to test the functionality and performance. The results from the implementation show signi cantly smaller XML for Modelica XML compared to the old format. Furthermore it also demonstrated that the required functionality of the format for transfer of models is present. The comparison indicates that Modelica XML is a more expressive and versatile format than the older format. A conclusion that Modelica XML is a suitable format for representation of Modelica models and model exchange is presented.