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

Problem importing Random

Problem importing Random

I was trying to import the random library however the Modelica.Math.Random library does not exist in my library and I cant load the linear system library to get the random package. So I decided to copy the random package from the textbook and import the package directly, when I simulate the test model with imported random package, an error msg occurred:

Process crashed

assert            | assert  | ERROR: Too many event iterations. System is inconsistent. Simulation terminate.

How do I solve this problem? any idea how to use the random library as well?

Edited by: zhangfan - Mar-05-13 11:55:03

Re: Problem importing Random

I tried the costumer generation example but it didnt give the same result as in the textbook, it gave a 0 value for NextCustomer. Why is that so?

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