﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3358	Strange discrete behavior in algorithms	Lennart Ochel	Lennart Ochel	"The following two models produces different simulation results:

{{{#!mo
model foo3
  Real x(fixed=true, start=0.0);
  Boolean b1, b2;
algorithm
  b1 := time > 0.5;
  b2 := time > 0.5;
  when b1 then
    x := pre(x) + 1;
  elsewhen b2 then
    x := pre(x) + 0.1;
  end when;
end foo3;
}}}

{{{#!mo
model foo3b
  Real x(fixed=true, start=0.0);
  Boolean b1, b2;
algorithm
  b2 := time > 0.5;
  b1 := time > 0.5;
  when b1 then
    x := pre(x) + 1;
  elsewhen b2 then
    x := pre(x) + 0.1;
  end when;
end foo3b;
}}}

The only difference is that the first two statements of the algorithm sections are swapped.
"	defect	closed	high	1.9.4	Backend	trunk	fixed		
