Hi,
Actually, I believe that this problem was introduced when we switched to
the new code generator. Are you perhaps using an old version of OMC that
still uses the old code generator?
Anyway, I have fixed this problem and committed a fix for it (revision
5914).
Cheers,
Per Östlund
On 2010-08-12 09:18, Mohsen Torabzadeh-Tari wrote:
Hi Marc,
I don’t have any problem of running your model in my own computer.
I’ve both tried the model in the OMNotebook as well as OMShell.
I even tried to increase the array dimension from 30 to 100 with the
same result.
Since the error message is pointing to the OpenModelicaHome
environment variable where have you installed it? On Windows the
installation path should not contain any space and preferably you
should install it directly under C:\
Please re-install OpenModelica.
Best Regards
Mohsen Torabzadeh-Tari
*From:* [email protected]
[mailto:[email protected]] *On Behalf Of *Dierckx Marc
*Sent:* den 11 augusti 2010 16:43
*To:* openmodelicainterest
*Subject:* Larger arrays
Hello,
I seem to have problems with larger arrays. The following model won't
run in OMshell. It gives the error: Error building simulator.
Buildlog: command g++ not found. Check $OPENMODELICAHOME ...
model md1
Real T[30](start=ones(30)*200);
Real Tin=100;
Real temp[30](start=zeros(30));
equation
temp[1]=100.0;
temp[2:30]=T[2:30];
der(T)=temp;
end md1;
The strange thing is that arrays up to a length of 20 seem to work
just fine ... as soon as the array increases above 20 I get this error.
Flattening of the model seems not to be any problem ... the problem is
in the compilation of the code ... please help !
Kind regards,
Marc Dierckx
SCK•CEN
SCK?CEN Disclaimer: www.sckcen.be/en/Legal-aspects/E-mail-disclaimer