Skip to content

Releases: THM-MoTE/ModelicaScriptingTools.jl

Release v1.1.0

25 May 16:03

Choose a tag to compare

ModelicaScriptingTools.jl

ModelicaScriptingTools.jl (or short MoST.jl) contains utility functions to improve the usability of OMJulia as well as extension for Documenter.jl to generate documentation for Modelica models.

This release introduces the following changes:

[1.1.0] - 2021-05-25

This is a high-level summary of the changes introduced in 1.1.0.alpha.1-5.

Added

  • Documenter.jl extension for documenting Modelica models in HTML format including
    • MathML rendering of all equations, grouped by model structure
    • table of all variables and parameters
    • HTML documentation in annotation(Documentaion(info=...))
  • Support for OpenModelica 1.16, 1.17 and 1.18
  • installAndLoad() function to explicitly install Modelica libraries
  • getVersion() function to switch behavior based on OpenModelica version

Changed

  • uses custom release script instead of TagBot
  • the override argument now behaves more intuitively (see v1.1.0-alpha.2)
  • code is split into multiple files due to increased library size
  • tests for error messages are less strict in order to better test for multiple OpenModelica versions
  • Swtiched from Travis CI to GitHub actions
  • setupOMCSession and withOMC now create the output directory if it does not already exist
  • Modelica Standard Library is no longer loaded automatically, but must be loaded explicitly with installAndLoad
  • documentation is deployed using DOCUMENTER_KEY

Fixed

  • tries to minimize freezes due to ZMQ errors in OMJulia
  • models created by directly sending a definition string to the OMC could not be tested using testmodel

Deprecated

  • the parameter ismodel of loadModel, since we now can check if a model was loaded successfully using getClassRestriction() instead

Dependencies added

  • Documenter, since it MoST.jl now includes a Documenter extension for Modelica models
  • PyCall, since the Documenter.jl extension requires the use of a XSLT stylesheet which is processed using the python package lxml
    • Note: there is currently no XSLT-capable Julia package that I am are aware of

v1.1.0-alpha.1

20 Aug 11:54

Choose a tag to compare

v1.1.0-alpha.1 Pre-release
Pre-release

ModelicaScriptingTools v1.1.0-alpha.1

This is a pre-release of the new extension for Documenter.jl that is now included in MoST.jl.
It features the following changes:

Added

  • Experimental support for documenting Modelica models using Documenter.jl.
  • New dependencies:
    • PyCall (for XML handling using lxml)
    • Documenter
    • Markdown

Changed

  • Split code into multiple files.
  • setupOMCSession and withOMC now create the output directory if it does not already exist

v1.0.0

30 Jul 13:16

Choose a tag to compare

ModelicaScriptingTools v1.0.0

Release notes:

This is the first official release of MoST.jl as Julia package. It contains the following changes from the last non-package version:

Added

  • function withOMC that allows to setup a OMCSession that can be used with do
  • unit tests for individual functions
  • support for regression tests with outputFormat="mat"
  • documentation using Documenter.jl
  • Travis CI script

Changed

  • project structure changed to standard Julia package structure
  • module name is now ModelicaScriptingTools instead of MoST
  • getVariableFilter and getSimulationSettings now throw MoSTErrors if the requested model does not exist
  • use __MoST_experiment instead of __ChrisS_testing as vendor specific annotation
  • refDir parameter in testmodel and regressionTest now is relative to CWD instead of output dir
  • result of getSimulationSettings and parameter settings in simulate now contains unescaped values`

Fixed

  • only use ZMQ.send without ZMQ.recv for sending quit() to avoid freezing