We are currently working on using the PyFMI module in order to evaluate these models. I must thank the developpers for providing this tool which simplifies our task greatly.
We are trying to clear up the causality attribute.
In , we can read that the four possible values of the causality attribute are : parameter, input, output, local. In the PyFMI module v2.4 however, the available constants are
As you can see, there is a missing value : 1 does not appear. From the following changeset, I can see that there was a fix so that the Python doc prints values consistent with the code. :
However, the changeset presents values of the causality attribute which were not specified in , i.e. "Calculated Parameter", "Independent" and "Unknown".
In order to make things clear, do we agree that the following code allows to print the causality of all variables in a given FMU ?
modeleversion = mymodele.get_version()
for name in allthevariables:
myvar = allthevariables[name]
print "The version of the model :",modeleversion," is unknown"
 Functional Mockup Interface 2.0: The Standard for Tool independent Exchange of Simulation Models,
T. Blochwitz, M. Otter, J. Akesson, M. Arnold, C. Clauß, H. Elmqvist, M. Friedrich, A. Junghanns, J. Mauss, D. Neumerkel, H. Olsson, A. Viel, Functional Mockup Interface 2.0 The Standard for Tool independent Exchange of Simulation Models - Modelica 2012.pdf