Please consider the following small Modelica model and function:
model VectorizeDemo
parameter Integer na=5;
final parameter Integer nb=2*na;
final par
Yes, at least the compilation issue can preliminarily be avoided as follows in Dymola 2020 (and possibly earlier versions):
Real d[na,nb] annotation(__Dymola_HideArray=true);
However, there might be other possibilities as well - and the example doesn't fully clarify how it is intended be used. In particular I noted that 'd' can be evaluated and isn't used at all.