﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3329	C code generation error in flexible multibody	Bruno Scaglioni	Lennart Ochel	"The attached model is a flexible beam example, the model is quite involved and contains several tensor product, hence equations reach a lenght of 28000 characters, and OMC cannot perform symbolic derivation anymore. Nevertheless, several of the terms involved in these products are null and depend from null parameters.
In order to avoid problems with the lenght of the lines the annotation (Evaluate=true) is used and these options are given to the compiler:

setPreOptModules(""evaluateReplaceFinalEvaluateParameters,removeSimpleEquations"");

when the parameters are evaluated omc can compute the derivatives but another error occurs:

Error: FGraph.openScope: failed to open new scope in scope: . name: $for loop scope$

and several gcc errors are present.
The simulated model is:
FEMPackage.ExamplesBeam.FreeVibrationBeam 
in the attached package"	defect	new	high	Future	Code Generation	trunk		c code generation, flexible multibody	
