Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#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)

modelDescription.xml (2.0 KB ) - added by anonymous 5 years ago.

Download all attachments as: .zip

Change History (11)

by anonymous, 5 years ago

Attachment: modelDescription.xml added

comment:1 by Francesco Casella, 5 years ago

Milestone: Future1.16.0

Could you please try if the problem is still present with the lastest nightly build?

Thanks!

comment:2 by anonymous, 5 years ago

Still present in 'OpenModelica 1.14.0~dev-26741-gf7ba6ee'.

comment:3 by Francesco Casella, 5 years ago

Cc: Karim Adbdelhak added
Milestone: 1.16.01.15.0

Maybe we can try to fix this for 1.15.0. Karim, Lennart, could you have a look?

comment:4 by trista.arinomo@…, 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

in reply to:  4 comment:5 by trista.arinomo@…, 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 arunkumar palanisamy, 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

Last edited 5 years ago by arunkumar palanisamy (previous) (diff)

comment:7 by Francesco Casella, 5 years ago

If the fix works fine, would you mind merging it on 1.14.0 development as well?

Thanks!

comment:8 by Lennart Ochel, 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 Lennart Ochel, 5 years ago

Resolution: fixed
Status: newclosed

comment:10 by Francesco Casella, 5 years ago

Milestone: 1.15.01.16.0

OK.

Note: See TracTickets for help on using tickets.