Opened 7 years ago

Closed 6 years ago

#4826 closed defect (fixed)

NF-generated DAE breaks wrapFunctionCalls

Reported by: Francesco Casella Owned by: Lennart Ochel
Priority: high Milestone: 2.0.0
Component: Backend Version:
Keywords: Cc: Volker Waurich, Lennart Ochel

Description

Please check ScalableTestSuite.Thermal.DistrictHeating.ScaledExperiments.HeatingSystem_N_5. The following error is reported:

Error: post-optimization module wrapFunctionCalls (simulation) failed.

Apparently there is something wrong in the NF-generated data structure that the wrapFunctionCalls function doesn't like

Change History (2)

comment:1 by Willi Braun, 7 years ago

Component: New InstantiationBackend
Owner: changed from Per Östlund to Lennart Ochel
Status: newassigned

It fails because newInst does not expand the sum(Qh) expression in the equation

2/2 (1): Cd * der(Td) = Qd - sum(Qh)

which looks the old instantiation like that:

2/2 (1): 10000000.0 * der(Td) = Qd + (-Qh[1]) - Qh[2] - Qh[3] - Qh[4] - Qh[5] 

The output dump of wrapFunctionCall is:

wrapFunctionCalls_analysis (EQUATION) (1)
========================================
1/1 (1): Cd * der(Td) = Qd - sum(Qh)   [dynamic]

  - createReturnExp failed for polymorphic<ScalarBasicType>

This should be fixed in the Backend as far as I see.

comment:2 by Francesco Casella, 6 years ago

Resolution: fixed
Status: assignedclosed

This problem is solved in the current nightly and the model simulates.

Note: See TracTickets for help on using tickets.