Hello,
I am Martin, a student working together with Stephanie and Kilian on 
OpenModelica. We uploaded some models to the SVN to
https://openmodelica.org/svn/OpenProd/trunk/Models
With all the models we have got Problems with the used media.
For instance, simulating the splitterMixer_test.mo file produces the 
Modelica_Media_Interfaces_PartialMedium_specificEnthalpy__pTX.c file, and 
afterwards the c-compiler gives the following errorlog. Could you have a look 
at it?

gcc -I"/home/share/OpenModelica/Source/trunk/build/include/omc"  -O0 
-falign-functions -march=native -mfpmath=sse -fPIC  -c -o 
Modelica_Media_Interfaces_PartialMedium_specificEnthalpy__pTX.o 
Modelica_Media_Interfaces_PartialMedium_specificEnthalpy__pTX.c
Modelica_Media_Interfaces_PartialMedium_specificEnthalpy__pTX.c: In function 
‘_Modelica_Media_Interfaces_PartialMedium_specificEnthalpy__pTX’:
Modelica_Media_Interfaces_PartialMedium_specificEnthalpy__pTX.c:54:3: error: 
‘Modelica_Media_Interfaces_PartialMedium_setState__pTX_rettype’ undeclared 
(first use in this function)
Modelica_Media_Interfaces_PartialMedium_specificEnthalpy__pTX.c:54:3: note: 
each undeclared identifier is reported only once for each function it appears in
Modelica_Media_Interfaces_PartialMedium_specificEnthalpy__pTX.c:54:65: error: 
expected ‘;’ before ‘tmp3’
Modelica_Media_Interfaces_PartialMedium_specificEnthalpy__pTX.c:55:3: error: 
‘Modelica_Media_Interfaces_PartialMedium_specificEnthalpy_rettype’ 
undeclared (first use in this function)
Modelica_Media_Interfaces_PartialMedium_specificEnthalpy__pTX.c:55:68: error: 
expected ‘;’ before ‘tmp4’
Modelica_Media_Interfaces_PartialMedium_specificEnthalpy__pTX.c:66:3: error: 
‘tmp3’ undeclared (first use in this function)
Modelica_Media_Interfaces_PartialMedium_specificEnthalpy__pTX.c:66:3: error: 
incompatible type for argument 1 of ‘mmc_mk_rcon’
/home/share/OpenModelica/Source/trunk/build/include/omc/meta_modelica.h:197:7: 
note: expected ‘double’ but argument is of type ‘real_array’
Modelica_Media_Interfaces_PartialMedium_specificEnthalpy__pTX.c:67:3: error: 
‘tmp4’ undeclared (first use in this function)
make: *** [Modelica_Media_Interfaces_PartialMedium_specificEnthalpy__pTX] Error 
1


Kind Regards,
Martin

Reply via email to