Opened 11 years ago
Closed 11 years ago
#2776 closed defect (fixed)
Process crashed: Simulation process exited with code 0 on FMU import
| Reported by: | 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)
Change History (7)
by , 11 years ago
| Attachment: | Calculations.mo added |
|---|
by , 11 years ago
| Attachment: | Calculations_PumpEfficiencyMeter.fmu added |
|---|
comment:1 by , 11 years ago
| Cc: | added |
|---|
comment:2 by , 11 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → accepted |
comment:3 by , 11 years ago
| Component: | OMEdit → FMI |
|---|
comment:4 by , 11 years ago
| Milestone: | 1.9.1 → 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).

the FMU 1.0 exported from Calculations.PumpEfficiencyMeter