﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5080	The NF does not compute variability correctly in Modelica.Media	Francesco Casella	Per Östlund	"Please check [https://libraries.openmodelica.org/branches/newInst/Modelica_trunk/files/Modelica_trunk_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.err Modelica.Media.Examples.TestOnly.IdealGasN2Mix]. The following error is issued by the NF
{{{
[Modelica trunk/Media/IdealGases/Common/package.mo:634:3-634:69:writable] Error:
Component MMX of variability constant has binding 'Medium.data[:].MM'
of higher variability continuous.
}}}
The [https://github.com/modelica/ModelicaStandardLibrary/blob/fac5977433f51a04436dd556e90f944e120a5133/Modelica/Media/IdealGases/Common/package.mo#L634 offending line] reads
{{{
constant MolarMass[nX] MMX=data[:].MM ""Molar masses of components"";
}}}
with
{{{
  constant Modelica.Media.IdealGases.Common.DataRecord[:] data
    ""Data records of ideal gas substances"";
}}}
which is constant, contrary to what the error message says."	defect	closed	high	2.0.0	New Instantiation		fixed		
