#5670 closed defect (fixed)
FMU export with 'output Integer' not FMI conform
Reported by: | anonymous | Owned by: | Lennart Ochel |
---|---|---|---|
Priority: | normal | Milestone: | 1.16.0 |
Component: | FMI | Version: | v1.13.2 |
Keywords: | FMU export integer output | Cc: | Karim Adbdelhak |
Description
FMU export of the minimal example
model test output Real y_float; output Integer y_int; equation y_int = 1; y_float = 2.2; end test;
results in the following (part) of the 'modelDescription.xml':
<ModelStructure> <Outputs> <Unknown index="1" dependencies="" dependenciesKind="" /> </Outputs> </ModelStructure>
, i.e. the integer output is missing, which is not FMI conform, right?!
Attachments (1)
Change History (11)
by , 5 years ago
Attachment: | modelDescription.xml added |
---|
comment:1 by , 5 years ago
Milestone: | Future → 1.16.0 |
---|
comment:3 by , 5 years ago
Cc: | added |
---|---|
Milestone: | 1.16.0 → 1.15.0 |
Maybe we can try to fix this for 1.15.0. Karim, Lennart, could you have a look?
follow-up: 5 comment:4 by , 5 years ago
I tried this using v1.14.0-dev-26586-geb59bf2b38 on a PC and Laptop (both running W10 64), but got two different results
On PC:
<ModelStructure> <Outputs> <Unknown dependenciesKind="" dependencies="" index="2"/> </Outputs> </ModelStructure>
On Laptop:
<ModelStructure> <Outputs> <Unknown dependenciesKind="" dependencies="" index="3"/> <Unknown dependenciesKind="" dependencies="" index="4"/> </Outputs> </ModelStructure>
I dont understand why the results are different
comment:5 by , 5 years ago
Replying to trista.arinomo@…:
I tried this using v1.14.0-dev-26586-geb59bf2b38 on a PC and Laptop (both running W10 64), but got two different results
On PC:
<ModelStructure> <Outputs> <Unknown dependenciesKind="" dependencies="" index="2"/> </Outputs> </ModelStructure>On Laptop:
<ModelStructure> <Outputs> <Unknown dependenciesKind="" dependencies="" index="3"/> <Unknown dependenciesKind="" dependencies="" index="4"/> </Outputs> </ModelStructure>I dont understand why the results are different
disregard my comment above (comment 4), my fault. sorry. both results only show
<Unknown dependenciesKind="" dependencies="" index="2"/>
comment:6 by , 5 years ago
This is fixed with this commit see https://github.com/OpenModelica/OpenModelica/commit/993f8de748f3833732768cffabb8f90d83747ecd, Download the latest nightly builds and test it, possibly from tomorrow
comment:7 by , 5 years ago
If the fix works fine, would you mind merging it on 1.14.0 development as well?
Thanks!
comment:8 by , 5 years ago
We produce now the expected ModelStructure for the example from the description (and all other examples I've tested so far):
<ModelStructure> <Outputs> <Unknown index=\"2\" dependencies=\"\" dependenciesKind=\"\" /> <Unknown index=\"4\" dependencies=\"\" dependenciesKind=\"\" /> </Outputs> <InitialUnknowns> <Unknown index=\"2\" dependencies=\"\" dependenciesKind=\"\" /> <Unknown index=\"4\" dependencies=\"\" dependenciesKind=\"\" /> </InitialUnknowns> </ModelStructure>
@casella I tried to push it on 1.15.0 but got too many conflicts. I think we will include all the fmi related improvements in 1.16.0.
comment:9 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Could you please try if the problem is still present with the lastest nightly build?
Thanks!