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

Large-scale models and FMU for model exchange

Large-scale models and FMU for model exchange

Hello,

I want to export large-scale models from Openmodelica to FMU for model exchange.

As first step, I'm using this model for testing purposes:

Code:

model BigModel "Tank-Pipe-Tank cloned n times"


  //
  constant Real g=9.8;
  //
  parameter Integer n = 1;
  parameter Real A_a = 1;
  parameter Real A_b = 1;
  parameter Real c = 0.2 "Kinematic viscosity";
  parameter Real rho = 1000.0;
  //
  Real P_a[n];
  Real P_b[n];
  Real H_a[n] (start=fill(2,n),each fixed=true);
  Real H_b[n] (start=fill(1,n),each fixed=true);
  Real F[n] "Flow";
 
 
equation 

for i in 1:n loop
  P_a[i] = rho * g * H_a[i];
  P_b[i] = rho * g * H_b[i];
  F[i] = c * (H_a[i] - H_b[i]);
  A_a * der(H_a[i]) = -F[i];
  A_b * der(H_b[i]) = F[i];
end for;
   
end BigModel;

Changing "n" we can generate big models.

Depending on the OpenModelica version and the OS, the maximum number of equations changes a lot:

Windows 10 64 bits - OM 32 bits - 16 GB RAM - 4 CPU - i7) => n = 2600; Equations = 13000
Windows 10 64 bits - OM 64 bits - 16 GB RAM - 4 CPU - i7 => n = a lot less than the previous one
Ubuntu 17.10.1 64 bits - OM 64 bits - Virtual Machine - 8GB RAM - 1 CPU=> n = 22500; Equations = 112500

Does this have any sense for you?

Is it possible to reach n = 22500 in Windows?

Thanks!!!



Re: Large-scale models and FMU for model exchange

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