﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4975	OMEdit keeps command line options between runs	massimo ceraolo	Adeel Asghar	"Consider the package TestOptAnn.
1) Run RL: this is a time simulation and runs OK
2) run BangBang: this is a dynamic optimisation run and runs ok. Dynamic optimisation is selected through the usage of the following annotations:

{{{
       __OpenModelica_commandLineOptions=""+gDynOpt"",
       __OpenModelica_simulationFlags(optimizerNP = ""1"", s = ""optimization""));
}}}
3) run RL again: it fails and says:


{{{
assert | debug | <p>The model was not compiled with -g=Optimica and the corresponding goal function. The optimization solver cannot be used.</p>
}}}


I suppose failing is due to OMEdit keeping +gDynOpt between 2) and 3). I don't think this is correct, since this is an annotation option."	defect	closed	normal	1.13.0	OMEdit	v1.13.0-dev-nightly	fixed		
