﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6047	The NF incorrectly infers the variability of a function call in Modelica.Media	Francesco Casella	Per Östlund	"Please check [https://libraries.openmodelica.org/branches/newInst/Modelica_3.2.3/files/Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir1.err Modelica.Media.Examples.ReferenceAir.MoistAir1]. The NF fails with
{{{
[Modelica 3.2.3/Media/package.mo:4985:5-4989:75:writable] Error: 
Component h_default of variability constant has binding 
'Modelica.Media.Examples.ReferenceAir.MoistAir1.Medium.specificEnthalpy_pTX(Medium.p_default, Medium.T_default, Medium.X_default)'
of higher variability parameter.
}}}
The offending code is found [https://github.com/modelica/ModelicaStandardLibrary/blob/f0e7c0d4aa6244d579e175283873ada421c89458/Modelica/Media/package.mo#L4985 here]:
{{{
    constant SpecificEnthalpy h_default=specificEnthalpy_pTX(
            p_default,
            T_default,
            X_default)
}}}
Obviously, if all the inputs to the function are constant, so should be its output."	defect	new	blocker	2.0.0	New Instantiation				
