Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

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?

Edited by: vvagr - Mar-25-10 10:11:39

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/

There are 0 guests and 0 other users also viewing this topic
You are here: