﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4291	Runtime Terminated in an Unusual Way for Longer Duration Simulation Times	rbackhus@…	Adeel Asghar	"Open Modelica is crashing when I run my model which includes Modelica_Synchronous blocks and a Normal Noise block.  I get two message dialogs.  The first one was a Microsoft Visual C++ Runtime Library dialog that said, ""This application has requested the Runtime to terminate in an unusual way.  Please contact the application's support team for more information.""  The second dialog was an OMEdit dialog that said, ""OMEdit has stopped working.  A problem caused the program to stop working correctly.  Windows will close the program and notify you if a solution is available."" 

I later discovered that when I simulate for 1 usec things run fine  but when I simulate for 120 usec I get this crash.

The model source file, called SSD_PeakDetect, is contained in MyModelicaLibrary.mo which is attached.

The model parameters are as follows:
   Pulse1 - amplitude=250.0E9, width=0.038, period=50.0E-6, nperiod=-1
   NormalNoise1 - mu=0, sigma=1.4E-7, samplePeriod=1.0E-12
   globalSeed - enableNoise=true
   add3 - k1=1, k2=1
   lowpassButterworth1 - n=2, f=4.5E6 Hz, y_start= 0
   gain1 - k=2.4E6
   periodClock1 - period=5.0E-9, useSolver=false
   transferFunction1 - b={1}, a{=1, 0, 0}
   add1 - k1=1, k2=1
   transferFunction2 - b={1}, a={1,0}
   add2 - k1=1, k2=1
   transferFunction3 - b={1}, a={1, 0, 0, 0, 0, 0}
   "	defect	closed	high	maint/1.11	OMEdit	v1.11.0	invalid		
