﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4336	Problem with code generation involving arrays of components containing arrays of Real variables	Francesco Casella	Mahder Alemseged Gebremedhin	"Please consider the model {{{DEMOSimple.Test.Helium.TestCP}}} from the attached package. The model is accepted by the front-end, and it actually simulates successfully in Dymola.

However, when compiling the C code generating by OMC, the following error message pops up:
{{{
DEMOsimple.Test.Helium.TestCP_02nls.c: In function 'residualFunc53':
DEMOsimple.Test.Helium.TestCP_02nls.c:53:3: error: '$OLD_$PheliumCP$PchB$lB2$rB$PTm$lBtmp3$rB' undeclared (first use in this function)
   $OLD_$PheliumCP$PchB$lB2$rB$PTm$lBtmp3$rB = $PheliumCP$PchB$lB2$rB$PTm$lBtmp4$rB;
   ^
}}}
The involved variable is an element of a Real array inside an array of models.

Can you please have a look and fix it?"	defect	accepted	high		Code Generation				antonio.froio@…
