﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2230	model does not build - a discrete initialization generation bug ?	Pavol Privitzer	Mahder Alemseged Gebremedhin	"Attached model does not build/simulate.
Build error (1 sample):
<<<
Dilution.c: In function 'eqFunction_83':

Dilution.c:1310: error: incompatible types when assigning to type 'modelica_real' from type 'real_array'
>>>

The problem bubbles also into C# generation, so the problem is somewhere in the SimCode or backend (??).
The attempted generated equations are from functionInitialEquations(), where seemingly unnecessary assignments of values to pre-values are generated.
The values are already set by the runtime, so the assignments are  overshooting.
They are also using inappropriate ASUBs (with temporary arrays creation) instead direct crefs.
I'd recommend to filter them out completely to reduce bloating the generated code."	defect	closed	blocker	1.9.0	Code Generation	trunk	fixed		
