- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Problems with random number generator
Problems with random number generator
Problems with random number generator
I'd tried to implement a random number generator as described on http://www.mail-archive.com/openmodelic … 00563.html or in http://www.robotic.de/fileadmin/control … -01-21.pdf (page 97).
The model runs OK in Dymola (trial version), but fails in OpenModelica with "Internal error, check of model failed with no error message" message. Some other models using sampled inputs and pre() operator also behave differently in Dymola and in OpenModelica.
Are there some known problems with discrete simulation in OpenModelica?
Re: Problems with random number generator
Well, better late than never. Most of this is fixed in revision 6319.
Now the Random function works in OpenModelica (if you use a when in algorithm sections).
I just implemented String(x, format="...") and fixed some problems with calling functions with
no output. I also added tests for it to our testsuite:
http://openmodelica.org/svn/OpenModelic … /Random.mo
http://openmodelica.org/svn/OpenModelic … Random.mos
user: anonymous, password: none <- write none here.
Cheers,
Adrian Pop/
- adrpo
- 885 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Problems with random number generator