I want to be able to read out the MSL version number from an FMU using PyFMI. (The "description-strings" are comments but is part of the Modelica language see specification 3.5 section 2.2). The MSL version is found in the "description-string" for the package and the code is:
MSL/Modelica/package
package
within;
package Modelica "Modelica Standard Library - version 3.2.2"
extends Modelica.Icons.Package;
In PyFMi there is a way to read out "description-string" for variables using model.get_variable_description()
But this function is limited to variables and does not read documentation strings for packages, models, or blocks. There are many "get" functions but none seems appropriate, or is there?
An alternative solutions would be to in the user Modelica code be able to at import read out the "description-string" for the package and store that in a string constant (or parameter) and then just read that out from the FMU by the command model.get()
But how do you in Modelica read out a "description-string" from a package or model?