﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2912	2 models that work separately, but not when put together	anonymous	Lennart Ochel Willi Braun	"I have 2 models that work fine, but when I put them together, I get an error, even with no link whatsoever between the 2 first models. (I've also tested the model with Dymola and it works fine).
OMedit error message:
----------------------------
Modele_stockage_Pia.Tests_2.Tests_composants.Test_KO_05evt.c: In function 'Modele_stockage_Pia_Tests_2_Tests_composants_Test_KO_zeroCrossingDescription':
Modele_stockage_Pia.Tests_2.Tests_composants.Test_KO_05evt.c:65: warning: assignment discards qualifiers from pointer target type
------------------------------
Upon investigation, the c file generated by OMedit has an error.
The code looks like this :
""static const int *occurEqs[]= occurEqs0,occurEqs1,occurEqs2,occurEqs3};
*out_EquationIndexes = occurEqs[i];""
instead of maybe something like this :
""static const int *occurEqs[]={occurEqs0,occurEqs1,occurEqs2,occurEqs3};
static const int *out_EquationIndexes = occurEqs[i];""
(I don't know anything about C, so that's just a guess)
You can find my model attached to this message, and the problematic C file."	defect	closed	high	1.16.0	Code Generation	trunk	fixed		
