﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4668	noEvent returns the wrong type in NF	Francesco Casella	Per Östlund	"Please check

https://libraries.openmodelica.org/branches/newInst/Modelica_3.2.2/files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.err

The reported error is:
{{{
[/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS
 /OpenModelica/OMCompiler/build/lib/omlibrary
 /Modelica 3.2.2/Electrical/Machines.mo:11251:9-11253:69:writable]
 Error: Type mismatch for positional argument 1 in
 noEvent(x=(abs(dcpm1.friction.w) > dcpm1.friction.frictionParameters.wLinear)).
 The argument has type: Boolean expected type: Real
}}}

The offending code reads:
{{{
if noEvent(abs(w)>frictionParameters.wLinear)
}}}

noEvent should return the same type as the contained expression, not Real."	defect	closed	high	2.0.0	New Instantiation		fixed		
