Saarland University
Lehrstuhl für Automatisierungstechnik

Welcome Guest ( Log In | Register )

Reply to this topicStart new topic
> Random Function, Help using Random function
post Jan 9 2010, 02:26 PM
Post #1


Group: Members
Posts: 1
Joined: 4-January 10
Member No.: 60,464

I'm using OpenModelica, and am trying to use the random function as per this post:

I have included the code for the function in my project, but run into the same issue with overdetermined system the user in that post did.
I'm new to modelica, can anyone point me to what I'm doing wrong?

My test model is:
(Random.random code as per the post above)

model Rand
import Random;
type Seed = Real[3];
Real count;
Seed count2;
(count, count2) = Random.random();

end Rand;

simulate(Rand, startTime=0, stopTime=7);

record SimulationResult
resultFile = "Simulation failed.
Too many equations, overdetermined system. The model has 4 variables and 10 equations
end SimulationResult;

Any help appreciated.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


Lo-Fi Version Time is now: 31st March 2020 - 02:19 AM