﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5559	Issues with large parameter arrays	Adrian Pop	Lennart Ochel	"See forum post:
https://www.openmodelica.org/forum/default-topic/2734-ram-problem-with-very-large-arrays-used-as-parameters-in-a-model

I have observed this myself as well for the old front-end. 
With -d=newInst is much better for the front-end but the 
back-end uses a lot of memory and time to generate the code.

{{{#!mo
model test 
  public 
    parameter Integer Nmax = 100; 
  protected 
    parameter Real x[Nmax](each fixed=false) ""abscissa""; 
    parameter Real y[Nmax](each fixed=false) ""y=f(x)""; 
  // any variable for my calculation 
initial algorithm 
  x := linspace(0.0,14.5,Nmax); 
  // In this example f (x) = -1 and there would be no need for an array, 
  // obviously I fill y with a more complicated algorithm, not a simple formula... 
  y := fill(-1.0,Nmax); 
equation 
  // any equation for my calculation 
end test; 
}}}

"	defect	new	high	Future	Backend				Karim Adbdelhak Andreas Heuermann
