-
Notifications
You must be signed in to change notification settings - Fork 61
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
Outputs of the FMU not correct when using an input.csv file #564
Comments
Can you share an FMU and steps to reproduce the problem? |
Ubuntu2204_fmus.zip Steps to reproduce the issue:
Please let me know if there's anything I can provide you with |
With the latest build (3596ae9) I cannot reproduce the problem. For
I get
and
|
try running:
As there are more outputs, the problem I guess will be reproduced. |
Here you go:
|
I have managed to reproduce the error in the console as well. Will investigate and keep you posted. |
Hello @t-sommer, I have had a look on this matter and it appears that the problem appears only if we "stimulate" the FMU with an input file.
Running the fmusim like this yields the correct results. I have attached my input.csv Please note that this analysis was done using version 0.0.33 of fmusim. |
hi @t-sommer, sadly I get the same output: |
With your input file I get the following call sequence. Can you please point out the error?
|
the incorrect output would be: fmi2GetInteger(vr={1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 74, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 113, 114, 115, 116, 117, 118, 119, 120}, nvr=108, value={4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 11, 12, 13, 100, 101, 102, 110, 111, 112, 120, 121, 122, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, -5, -6, -7, -8, 5, 6, 7, 8, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 2, 2, -1, 2, 2, 2, 0, 2}) -> OK the ones that are in bold. Those outputs correspond to the enum_out, s32_out and u32_out variables respectively |
|
Having run some tests in our environment using fmusim on Ubuntu 22.04, we have discovered that some outputs are not displayed correctly in output.csv file, even if in the console they are printed just fine:
This behaviour is present on Ubuntu, but not on Windows and it affects outputs of type enum, s32 and u32, as one may observe in the picture above.
The text was updated successfully, but these errors were encountered: