﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1614	euler event handling messes with delay?	Martin Sjölund	Martin Sjölund	"From: http://www.openmodelica.org/index.php?option=com_agora&task=topic&id=370&Itemid=87

The following model works if Auxilliary1 is removed or the method is changed to dassl. Using euler, Stock1 gets the value NaN...
{{{
loadString(""model TestModel 
  Real Auxiliary1 = if time > 0 then 0 else 1;
  Real Valve1; 
  Real Stock1(start = 0.0, fixed = true);
equation 
  Valve1 = delay(Stock1, 1); 
  der(Stock1) = +Valve1; 
end TestModel;"");

simulate(TestModel, startTime=0, stopTime=10, numberOfIntervals=1000, method=""euler""); 
val(Valve1, 2);
}}}"	defect	closed	high				fixed		Martin Sjölund Willi Braun
