Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oms.exportSSVTemplate problem #1280

Open
robha67 opened this issue Jan 9, 2024 · 0 comments
Open

oms.exportSSVTemplate problem #1280

robha67 opened this issue Jan 9, 2024 · 0 comments

Comments

@robha67
Copy link
Contributor

robha67 commented Jan 9, 2024

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"

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant