Skip to main content

LUP Student Papers

LUND UNIVERSITY LIBRARIES

Maintaining Source Origin in a Modelica Compiler

Åhlander, Alexander LU (2017) In LU-CS-EX 2017-05 EDA920 20162
Department of Computer Science
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... (More)
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%. (Less)
Please use this url to cite or link to this publication:
author
Åhlander, Alexander LU
supervisor
organization
course
EDA920 20162
year
type
H3 - Professional qualifications (4 Years - )
subject
publication/series
LU-CS-EX 2017-05
report number
LU-CS-EX 2017-05
ISSN
1650-2884
language
English
id
8905552
date added to LUP
2017-04-10 16:26:10
date last changed
2017-04-10 16:26:10
@misc{8905552,
  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%.}},
  author       = {{Åhlander, Alexander}},
  issn         = {{1650-2884}},
  language     = {{eng}},
  note         = {{Student Paper}},
  series       = {{LU-CS-EX 2017-05}},
  title        = {{Maintaining Source Origin in a Modelica Compiler}},
  year         = {{2017}},
}