﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5150	The utility sample() freezes the output after a amount of simulation time.	jordeam@…	jordeam@…	"I am using OpenModelica for control in electrical drives classes. I used a tiny sample period of 100e-6s. After a time of simulation, sample() stops working and the simulation gives wrong answers. I tested all available numerical algorithms without success. I also used fixed step simulation with less than 1us of step and also failed. I use a ZOH in the feedback, one fo each loop, because OpenModelica is not able to solve numerically the system without those, but after a certain time, provided ZOH in the library as well as a locally defined ZOH fails because of sample(), that freezes its output.

Using provided ZeroOrderHold breaks the simulation before desired ending time.
[[Image(s1.png)]]

Using the defined in module, does not break the simulation, but sample() stops working at 0.249.
[[Image(s2.png)]]

The source code is attached.

"	defect	new	high	Future	OMSimulator	v1.12.0			
