#5670 closed defect (fixed)
FMU export with 'output Integer' not FMI conform
Reported by: | anonymous | Owned by: | lochel |
---|---|---|---|
Priority: | normal | Milestone: | 1.16.0 |
Component: | FMI | Version: | v1.13.2 |
Keywords: | FMU export integer output | Cc: | Karim.Abdelhak |
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)
Changed 4 years ago by anonymous
comment:1 Changed 4 years ago by casella
- Milestone changed from Future to 1.16.0
comment:2 Changed 4 years ago by anonymous
Still present in 'OpenModelica 1.14.0~dev-26741-gf7ba6ee'.
comment:3 Changed 4 years ago by casella
- Cc Karim.Abdelhak added
- Milestone changed from 1.16.0 to 1.15.0
Maybe we can try to fix this for 1.15.0. Karim, Lennart, could you have a look?
comment:4 follow-up: ↓ 5 Changed 4 years ago by 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
comment:5 in reply to: ↑ 4 Changed 4 years ago by trista.arinomo@…
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 Changed 4 years ago by arun3688
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 Changed 4 years ago by casella
If the fix works fine, would you mind merging it on 1.14.0 development as well?
Thanks!
comment:8 Changed 4 years ago by lochel
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 Changed 4 years ago by lochel
- Resolution set to fixed
- Status changed from new to closed
Could you please try if the problem is still present with the lastest nightly build?
Thanks!