OMSimulator icon indicating copy to clipboard operation
OMSimulator copied to clipboard

oms.exportSSVTemplate problem

Open robha67 opened this issue 1 year ago • 0 comments

Description

  1. An SSV file is generated using the exportSSVTemplate API command. A sub set of the parameters exported to the SSV have the following description in the ModelDescription file:

<ScalarVariable name="drag.pi" variability="constant" <Real start = "3.1415..."/> </ScalarVariable>

This is represented in the SSV as:

<ssv:Parameter name="model.drag.pi" <ssv:Real value = "3.1415..." /> </ssv:Parameter>

If this SSV file is addded to SSP resources and referenced using the OMS API, then I get the following warning message upon simulation

"warning: It is not allowed to provide a start value if initial = "calculated" or causality ="independent"" in the simulation log. This is then followed by a crashed simulation.

@arun3688 @lochel

Should it be possible to change ScalarVariables labeled as constant? (see page 45 in https://fmi-standard.org/assets/releases/FMI_for_ModelExchange_and_CoSimulation_v2.0.pdf)

If not, shouldn't the oms.exportSSVTemplate command ommitt such parameters from the SSV file?

robha67 avatar Jan 09 '24 10:01 robha67