Maintaining Source Origin in a Modelica Compiler
Abstract: Modelica is a modelling language used to describe a physical system and can be used to simulate the system. A Modelica compiler transforms a Modelica model into an equation system in order to simulate it. During this transformation the information about where the equations originates from is lost. This information could be useful to have when, e.g., trying to locate an error. In this thesis we solve this problem for the JModelica.org Modelica compiler by propagating information about the source origin through the compiler. This makes it possible for us to show the origin of an error. We have also made sure that the connections between the transformed model and the original model can be viewed even when no error has occurred in a HTML document. The increase in memory usage in the current implementation is well within acceptable levels, with the highest memory increase measured being only 0.18%.
AT THIS PAGE YOU CAN DOWNLOAD THE WHOLE ESSAY. (follow the link to the next page)