Saarland University
Lehrstuhl für Automatisierungstechnik

Welcome Guest ( Log In | Register )

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


Newbie
*

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



Hi,
I'm using OpenModelica, and am trying to use the random function as per this post:
http://www.mail-archive.com/openmodelicain...e/msg00564.html

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;
equation
(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.
Thanks,
Colin.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

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

 



Lo-Fi Version Time is now: 22nd May 2019 - 09:05 AM