﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3211	Inconsistent handling of final attribute	crupp@…	Patrick Täuber	"In the following example, the protected parameter b does not get updated when parameter a is updated.

My interpretation of the Modelica spec is that protected variables are like local variables and can only be modified/accessed locally but shouldn't prevent the intended behavior here (correct me if I'm wrong).

{{{
loadString(""
model protectedbug
parameter Real a = 0.24;
Real x(start = 1.0, fixed = true);
protected
parameter Real b = 2.0 * a;
equation
der(x)=-b*x;
end protectedbug;
"");

// Value of b is 0.48, x is 0.61878
simulate(protectedbug);
val(b,1.0);
val(x,1.0);

// Override of a does not change b, value of b should b 1.0, x should be 0.13534
simulate(protectedbug, simflags=""-override a=1.0"");
val(b,1.0);
val(x,1.0);
}}}

Tested in r24986."	defect	closed	high	Future	*unknown*	trunk	fixed		Martin Sjölund Lennart Ochel
