﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4538	OMPython is not reading simflags correctly	Christian Kral <dr.christian.kral@…>	somebody	"I am using OMPython to automatically simulate and evaluate simulation models with OpenModelica. One of the new models IMC_YD is now included in the MSL but only simulates if I use the Newton solver for nonlinear equations in OpenModelica. I thus included 

{{{
__OpenModelica_simulationFlags(jacobian = """", nls = ""newton"", 
  s = ""dassl"", lv = ""LOG_STATS"")
}}}

in the annotation of the model. So when I simulate the model in OMEdit, it works OK with no issues.

If I instead use OMPython to run the model, it hangs -- which I suspect is for the reason of that the {{{__OpenModelica}}} annoation is not evaluated correctly. 

{{{
from OMPython import *
omc = OMCSessionZMQ()
omc.sendExpression(""loadModel(Modelica,{\""trunk\""})"")
omc.sendExpression(""loadFile(\""/.../IMC_YD.mo\"")"")
omc.sendExpression(""instantiateModel(IMC_YD)"")
omc.sendExpression(""simulate(IMC_YD, NumberOfIntervals=25000)"")
}}}

I do not expect OMPython needs the simflags passed separately, since all other annotations (StopTime, etc.) are evaulated correctly, too. 

Even if I wanted to pass the OM simflags to the simulation process I would not understand how the syntax really is..."	defect	new	high		Interactive Environment				Adeel Asghar
