Opened 10 years ago

Closed 10 years ago

#2776 closed defect (fixed)

Process crashed: Simulation process exited with code 0 on FMU import

Reported by: rfranke@… Owned by: wbraun
Priority: high Milestone: 1.9.2
Component: FMI Version: trunk
Keywords: Cc: wbraun

Description

The attached package contains a model that runs in OpenModelica 1.9.1+dev (r21825), but fails if exported and re-imported through FMI.

The package contains the model Calculations.Components.OverallPumpEfficiency, which divides the delivered pump power by the applied shaft power. The model is wrapped into Calculations.PumpEfficiencyMeter. The latter runs correctly in Calculations.PumpEfficiencyMeterTest.

The alternative model Calculations.PumpEfficiencyMeterTestFMU does the same, but re-imports Calculations.PumpEfficiencyMeter as FMU. The initialization fails with a division by zero -- the input P_shaft must be assigned a value before the equations can be evaluated!

Moreover: the translation raises warnings of the form:

[/tmp/OpenModelica_rfranke/OMEdit/Calculations_PumpEfficiencyMeter_me_FMU.mo:23:3-23:88] Warning: Parameter calculations_pumpefficiencymeter_me_fmu1.eta_o_D_deliver has no value, and is fixed during initialization (fixed=true), using available start value (start=0.5) as default value.

Shouldn't the FMU importer assign a value

  parameter Real eta_o_D_deliver = 0.5;

instead of a fixed start value

  parameter Real eta_o_D_deliver(start = 0.5, fixed = true);

Attachments (2)

Calculations.mo (26.1 KB) - added by rfranke@… 10 years ago.
Calculations_PumpEfficiencyMeter.fmu (127.7 KB) - added by rfranke@… 10 years ago.
the FMU 1.0 exported from Calculations.PumpEfficiencyMeter

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by rfranke@…

Changed 10 years ago by rfranke@…

the FMU 1.0 exported from Calculations.PumpEfficiencyMeter

comment:1 Changed 10 years ago by adeas31

  • Cc wbraun added

comment:2 Changed 10 years ago by wbraun

  • Owner changed from adeas31 to wbraun
  • Status changed from new to accepted

comment:3 Changed 10 years ago by adeas31

  • Component changed from OMEdit to FMI

comment:4 Changed 10 years ago by sjoelund.se

  • Milestone changed from 1.9.1 to 1.9.2

This ticket was not closed for 1.9.1, which has now been released. It was batch modified for milestone 1.9.2 (but maybe an empty milestone was more appropriate; feel free to change it).

comment:5 Changed 10 years ago by adeas31

  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed in r23669.

Note: See TracTickets for help on using tickets.