﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5239	Issue with NF and medium packages	Francesco Casella	Per Östlund	"Please check [https://libraries.openmodelica.org/branches/newInst/ThermoPower/files/ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulator.err ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulator]. The following error is reported:
{{{
ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulator.c:3068:423:
error: too few arguments to function call, expected 6, have 4
data->localData[0]->realVars[279] /* Plant.Boiler.GasSide.cv[1] variable */ = omc_ThermoPower_Gas_Flow1DFV_Medium_heatCapacity__cv(threadData, omc_ThermoPower_Examples_HRB_Simulators_ClosedLoopDigitalSimulator_Plant_Boiler_Medium_ThermodynamicState(threadData, data->localData[0]->realVars[12] /* Plant.Boiler.GasSide.p STATE(1) */, data->localData[0]->realVars[419] /* Plant.Boiler.GasSide.gas[1].T DUMMY_STATE */, tmp0));
}}}
The model flattened with the NF contains the record constructor
{{{
function ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulator.Plant.Boiler.Medium.ThermodynamicState
}}}
however, it turns out that the {{{Plant.Boiler}}} model, which is an instance of {{{ThermoPower.Examples.HRB.Models.HeatExchanger}}}, does not actually contain any {{{Medium}}} package definition, but rather a {{{GasMedium}}} and a {{{WaterMedium}}} package. 

I guess there's some problem somwhere..."	defect	closed	high	2.0.0	New Instantiation		fixed		
