﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4762	Inconsistent behaviour of asserts when using the NF	Francesco Casella	Per Östlund	"Please consider [https://libraries.openmodelica.org/branches/newInst/Modelica_3.2.2/files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator.sim Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator]. The following error is reported
{{{
assert            | warning | The following assertion has been violated at time 0.000250
|                 | |       | 1.0 + r.alpha * (r.T - r.T_ref) >= 1e-15
}}}
The flattened model contains the following declaration
{{{
  parameter Real r.alpha(quantity = ""LinearTemperatureCoefficient"", unit = ""1/K"") = 0.0 
  ""Temperature coefficient of resistance (R_actual = R*(1 + alpha*(T_heatPort - T_ref))"";
}}}
Now, if {{{r.alpha = 0}}} then the expression inside the assert statement should be equal to 1.0, which is definitely greater than 1e-15.

Why is this assertion triggered?"	defect	closed	high	2.0.0	New Instantiation		fixed		
