﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4830	Problems with records in C code generated starting from NF	Francesco Casella	Per Östlund	"Please check [https://libraries.openmodelica.org/branches/newInst/Modelica_3.2.2/files/Modelica_3.2.2_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.err Modelica_3.2.2_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T]. The following errors is reported:
{{{
In file included from Modelica_3.2.2_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.c:2:
In file included from ./Modelica_3.2.2_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T_model.h:18:
./Modelica_3.2.2_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T_functions.h:24:141: 
error: unknown type name 'Modelica_Media_Common_AuxiliaryProperties'
modelica_real omc_Modelica_Media_Air_ReferenceAir_Air__Utilities_T__props__ph(threadData_t *threadData, modelica_real _p, modelica_real _h, Modelica_Media_Common_AuxiliaryProperties _aux);
}}}
{{{
./Modelica_3.2.2_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T_functions.h:224:1:
error: unknown type name 'Modelica_Media_Air_ReferenceAir_Medium_ThermodynamicState'
Modelica_Media_Air_ReferenceAir_Medium_ThermodynamicState omc_Modelica_Media_Air_ReferenceAir_Medium_setState__pT(threadData_t *threadData, modelica_real _p, modelica_real _T);
}}}

The missing types correspond to Modelica.Media record types. Apparently something goes wrong in the way these records are passed to the code generation layer."	defect	closed	high	2.0.0	New Instantiation		duplicate		
