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
  • Index
  • » Users
  • » Somma
  • » Profile

Posts

Posts

Thank you to adrpo ,

The solution is :

Before :

Code:

Boolean w;

After :

Code:

Boolean w(start=false, fixed=true); 

Thanks a lot again,

Francesco

Hi adrpo,

Any news for me about the uploaded models ?

Thanks a lot ,

Francesco.

Hi adrpo,

As per your request I send out my models to the specified email address.

My email is : ****@gmail.com

Have a good day ,

Francesco

Hi adrpo ,

sorry bothering you.

As per your suggestion I removed the initial equation w = false; but the result is still not the expected one.

Indeed I am getting  the following

Code:

 Warning: Assuming fixed start value for the following 2 variables:

         m.w:DISCRETE(start = false fixed = true )  type: Boolean
         m2.w:DISCRETE(start = false fixed = true )  type: Boolean
Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization sytem:
         a.Postiprenotabili = a.prenotabili0
         a.PostiPrenotati = a.prenotati0
         g.capienza = g.cap0.
   

What do you think about the above ?

Thanks a lot again ,

Francesco

Hi adrpo,

based to your suggestion I declared :

"Boolean w(start = false,fixed = false);"

The compiler returned :

Warning: Assuming fixed start value for the following 2 variables:
         m.w:DISCRETE(start = false fixed = true )  type: Boolean
         m2.w:DISCRETE(start = false fixed = true )  type: Boolean
Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization sytem:
         a.Postiprenotabili = a.prenotabili0
         a.PostiPrenotati = a.prenotati0
         g.capienza = g.cap0.

Even though I set  the variable as " fixed = false " it returned "fixed = true".

Where is my fault  ?  What do you suggest ?

Have a good day ,

Francesco

Hi adrpo,

Thx a lot for the prompt reply.

Appling your suggestion : "omc -d=initialization run.mos" , the compiler returns :

"Notification: The given system is mixed-determined.   [index = 2]
Warning: Assuming fixed start value for the following 2 variables:
         m.w:DISCRETE(fixed = true )  type: Boolean
         m2.w:DISCRETE(fixed = true )  type: Boolean

I'm a little bit confused as I declared in my module :

" OutputBoolean out;

Boolean w;

initial equation

out = false;
w = false; "

So i can't figure out the reason m.w is set as "true".

Any suggestion / experience ?

Thx a lot again,

Francesco

Hi There ,

when I compile my modelica project with the command :  "omc run.mos" ,   the compiler shows  the attached message :


"Notification: The given system is mixed-determined.   [index = 2]
Warning: The initial conditions are not fully specified. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions(\"-d=initialization\").
Warning: The initial conditions are over specified. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions(\"-d=initialization\").

I can't  figure out how / where set the parameter -d initialization.

Furthermore, I can't get in OMEdit the OMCFlags option.

Any experience/suggestion to share ?

Thanks a lot in advance;

Francesco

  • Index
  • » Users
  • » Somma
  • » Profile
You are here: