Opened 15 years ago

Last modified 15 years ago

#1109 closed defect (fixed)

generation of expression failed

Reported by: Schubert TUD Owned by: Schubert TUD
Priority: high Milestone:
Component: Simulation Code Generation Version: 1.4.5
Keywords: Cc: Schubert TUD,

Description

Hi,

there is another problem, which is most likely connected to "cannot simulate, due to error in initial_residual() during compilation".
Consider the following slightly modified model.

model T1

input Real[2] u;
parameter Real a = 1;
Real x[2];

equation

x = u - a*{0,1};

end T1;

model T

T1 t1;

equation

t1.u = {0,0};

end T;

Simulating the model T results in the following error by the OMC:

record SimulationResult

resultFile = "Simulation failed.

Internal error code generation of expression -$t1$Pa failed
Internal error generate_zero_crossing failed
Internal error Generation of simulation code failed
"
end SimulationResult;

The error only occurs if vectors are involved.

Best wishes,

Christian

Change History (1)

comment:1 by Per Östlund, 15 years ago

Simulation of model works with trunk, seems to have been fixed.

Note: See TracTickets for help on using tickets.