﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4060	Final attribute for parameters has no effect at all	Patrick Täuber	Patrick Täuber	"If you run the following model with
{{{
setCommandLineOptions(""--preOptModules-=evaluateReplaceProtectedFinalEvaluateParameters --preOptModules+=evaluateReplaceEvaluateParameters"");
}}}
which means without evaluating final parameters in the backend, it is possible to change final parameter p1 after compilation:
{{{#!mo
model parameterBug4
  final parameter Integer p1 = 2;
  parameter Integer p2 = p1;
equation
end parameterBug4;
}}}

{{{
simulate(parameterBug4); getErrorString();

print(""----p1--""); val(p1, 0.0, ""parameterBug4_res.mat"");
print(""----p2--""); val(p2, 0.0);

print(""\n"");
system(""./parameterBug4 -override p1=1"");
print(""\n"");

print(""----p1--""); val(p1, 0.0, ""parameterBug4_res.mat"");
print(""----p2--""); val(p2, 0.0);
getErrorString();
}}}
Output:
{{{
// ----p1--
// 2.0
// ----p2--
// 2.0
//
//
// 0
//
//
// ----p1--
// 1.0
// ----p2--
// 1.0
}}}"	defect	closed	high	Future	Code Generation		fixed		
