﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2946	events are treated badly	Lennart Ochel	somebody	"I attached four models to show why OpenModelica treats events badly: 

{{{#!mo 
  model test1 
    parameter Real p = 1.5; 
    Real t = if time < p then time else p; 
    Boolean d = t > p and t >= p; 
    Boolean e; 
  algorithm 
    e := true; 
    if t > p then 
      e := false; 
    end if; 
    annotation(experiment(StartTime = 0, StopTime = 3)); 
  end test1; 
}}} 

{{{test2}}} is equal to {{{test1}}} but without variable d. 
{{{test3}}} is equal to {{{test1}}} but with {{{if t > p then}}} as condition in the algorithm section. 
{{{test4}}} is equal to {{{test3}}} but without variable d. 

I attached also the simulation results of OpenModelica and Dymola for variable e of all four examples. I think Dymola handles the examples correctly. OpenModelica handles at least the first three examples different."	defect	new	critical	Future	Run-time	trunk			
