﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5499	setParameters of ModelicaSystem has no effect on simulation	anonymous	Alachew Mengist	"Hi,
I'm trying to run the PowerWorld example from the PowerSystems library via OMPython.
No errors occur and the simulation itself works. The solutions are correct compared to the ones of OMEdit. However I run into problems when manipulating the parameters:

{{{
from OMPython import ModelicaSystem


mod = ModelicaSystem('/home/XXX/PowerSystems/package.mo', ""PowerSystems.Examples.PowerWorld.PowerWorld"",
                     [""Modelica""])
mod.setParameters(**{'windFarm.cut_out': 1.0})
mod.simulate()
print(mod.getParameters().get('windFarm.cut_out'))#prints out 1.0
frequ_sols = mod.getSolutions('frequency.y')
print(frequ_sols)#solutions are for windFarm.cut_out=0.0 :(

}}}
windFarm.cut_out has the default value 0.0. I set windFarm.cut_out to 1.0. No error occurs. I start the simulation.
The solutions (checked with the help of frequ_sols) are incorrect. The solutions are still the solutions of the default value.

I don't see any mistake on my side or hint in the doc that could help me.

"	defect	new	high	Future	OMPython				
