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

Reading modelDescription (during loadFMU) fails when array variables are used. #133

Open
juguma opened this issue Nov 19, 2024 · 2 comments

Comments

@juguma
Copy link

juguma commented Nov 19, 2024

None of the attached fmi3-modelDescriptions can be read (fmi3LoadModelDescription(mdpath)) due to problems with the start values of array-parameters.

Since the Dymola-modelDescriptions (subscript D) and SimulationX-modelDescriptions (subscript SX) end in different branches in parseModelVariables, I added two variants of both.
For the Dymola-parameters it seems the problem is that they are sometimes not Floats, but Integers, I guess there is a casting (plus warning!?) missing.

PS: @ThummeTo sorry for the confusion yesterday where we couldn't find the "Dimension". We looked into the wrong file. My bad. Sorry!
ModelDescription.zip

@ThummeTo
Copy link
Owner

this throws a warning now in #132
but parsing is not supported yet.

However, implementing arrays/vectors/tensors requires additional changes to FMICore. We should do that as part of a dedicated issue (feature request).

@ThummeTo
Copy link
Owner

see FMI.jl issue

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

2 participants