﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1109	generation of expression failed	Schubert TUD	Schubert TUD	"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"	defect	closed	high		Simulation Code Generation	1.4.5	fixed		Schubert TUD
