﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3792	Variable override not working with restart	crupp@…	Lennart Ochel	"I tried this on an old version and it used to work, but got broken at some point. I haven't tried it with -overrideFile, but it may have the same issue.

{{{
loadString(""
model restartOverrideBug
  parameter Real a = 1;
  Real x(start=1);
  Real y;
equation
  y = der(x);
  der(y) = a * x;
end restartOverrideBug;
"");
getErrorString();

// Standard run: returns a=1
simulate(restartOverrideBug, simflags=""-output a,y"");

// Restart without override: returns a=1
simulate(restartOverrideBug, simflags=""-r=tmp.mat -iit=1.0 -iif=restartOverrideBug_res.mat -iim=none -output a,y"");

// Restart with override gives the same answer: returns a=1 (incorrect)
simulate(restartOverrideBug, simflags=""-r=tmp.mat -iit=1.0 -iif=restartOverrideBug_res.mat -iim=none -output a,y -override a=2"");

// No restart, but with override: returns a=2 (correct override)
simulate(restartOverrideBug, simflags=""-r=tmp.mat -output a,y -override a=2"");

}}}"	defect	accepted	critical	Future	Run-time				
