﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2510	OpenModelica computes incorrect results if equations are slightly reformulated	Michael Wetter	Willi Braun	"For the code section below, OpenModelica computes different values for the variables wrong and hMed_out:
{{{
  XiVap = XiActual[i_x];
  wrong    = (hActual -(1-XiActual[i_x]) * hCon);
  hMed_out = (hActual -(1-XiVap)         * hCon);
}}}

This code is in https://github.com/iea-annex60/modelica-annex60/blob/issue17_enthalpySensor/Annex60/Fluid/Sensors/LatentEnthalpyFlowRate.mo#L69

The problem can be reproduced by running testOpenModelica.sh as on https://github.com/iea-annex60/modelica-annex60/tree/issue17_enthalpySensor

A detailed issue report is accessible at https://github.com/iea-annex60/modelica-annex60/issues/17

"	defect	closed	high	1.9.1	Backend	trunk	fixed		Lennart Ochel Willi Braun
