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: Willi Braun
Priority: high Milestone: 1.9.2
Component: FMI Version: trunk
Keywords: Cc: Willi Braun

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)

by rfranke@…, 10 years ago

Attachment: Calculations.mo added

by rfranke@…, 10 years ago

the FMU 1.0 exported from Calculations.PumpEfficiencyMeter

comment:1 by Adeel Asghar, 10 years ago

Cc: Willi Braun added

comment:2 by Willi Braun, 10 years ago

Owner: changed from Adeel Asghar to Willi Braun
Status: newaccepted

comment:3 by Adeel Asghar, 10 years ago

Component: OMEditFMI

comment:4 by Martin Sjölund, 10 years ago

Milestone: 1.9.11.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 by Adeel Asghar, 10 years ago

Resolution: fixed
Status: acceptedclosed

Fixed in r23669.

Note: See TracTickets for help on using tickets.