Skip to content

Pedantic Modelica Check

Matthis Thorade edited this page Mar 28, 2017 · 6 revisions

Dymola provides two different modes to check Modelica code. The default mode marks many findings with Warning where other platforms (e.g. OpenModelica) would raise an Error. Therefore it is preferable not to use the default mode, but the second one which is called pedantic.

Enable Pedantic Modelica Check via flag

The pedantic modelica check could be enabled by setting the flag Advanced.PedanticModelica to true.

PMviaFlag

Enable Pedantic Modelica Check via GUI

One could also use the graphical interface of Dymola to enable the pedantic check by enabling the corresponding option in the Simulation Setup.

PMviaFlag

Enable Pedantic Modelica Check permanently

Dymola runs three .mos files during startup:

RunScript("c:/program files (x86)/dymola 2016/insert/dymola.mos", true);
RunScript("C:/ProgramData/Dynasim/setup.mos", true);
RunScript("C:/Users/[YOUR_USER_NAME]/AppData/Roaming/Dynasim/setup.mos", true);

These scripts can be also used to set flags, e.g. the Advanced.PedanticModelica flag.

Once Dymola has been started, the pedantic Modelica check mode could be activated using the above methods (i.e. setting Advanced.PedanticModelica=false or enable the option Pedantic mode for checking Modelica semantics in the graphical interface).