﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2152	Handle time events efficiently	Martin Sjölund	Karim Adbdelhak	"The relations
{{{
time >= <discrete_expr>
time < <discrete_expr>
}}}
can be handled as time events without resorting to crossing functions, thus leading to more efficient simulation code (see Modelica Specification 3.2 rev1, sect. 8.5).

We can look for expressions containing only pre(discrete), constant, or parameter expressions. Then it is always possible to calculate the next exact time of this event indicator, by replacing >= (or <) with == and solving for time. 

If time is <= current time, no more events occur, otherwise schedule next time event and deal with it as with sample() "	enhancement	assigned	blocker	2.0.0	Run-time	trunk			Andreas Heuermann
