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

SetFloat64 on x in state space FMU ME #508

Open
KarlWernersson opened this issue May 28, 2024 · 4 comments · May be fixed by #513
Open

SetFloat64 on x in state space FMU ME #508

KarlWernersson opened this issue May 28, 2024 · 4 comments · May be fixed by #513
Labels
bug Something isn't working

Comments

@KarlWernersson
Copy link
Collaborator

The FMU don't allow setting state vector x.
This should be allowed in Model Exchange

@t-sommer
Copy link
Collaborator

Can you provide steps to reproduce the problem?

@t-sommer t-sommer added the bug Something isn't working label May 28, 2024
@KarlWernersson
Copy link
Collaborator Author

call setFloat64 with value reference 11 in mode exchange, the code does not allow that value reference

@t-sommer
Copy link
Collaborator

In Intialization Mode:

Function fmi3Set{VariableType}
This function can be called for variables with variabilityconstant and with initial = exact. [Inputs u, parameters p and continuous-time states xc,initial=exact are included here.]

The variable x (with value reference 11) has initial = "calculated", so I should it be settable?

@KarlWernersson
Copy link
Collaborator Author

no but its is a state so it should be settable in continuous time mode and event mode. In initialization mode its not as the initial values is internally computed.

t-sommer added a commit to t-sommer/Reference-FMUs that referenced this issue Jun 7, 2024
in Continuous Time and Event Mode

fixes modelica#508
@t-sommer t-sommer linked a pull request Jun 7, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants