Hi Marc,
Adrian said that he would compile a new version of OMC when I had fixed
the bug, so hopefully you will be able to use that. He's on vacation
today though, so he probably won't do that until next week.
If you want to try and compile OMC for yourself you can follow the
directions here to download the source code:
http://openmodelica.org/index.php/developer/source-code . The follow the
instructions in README-OMDev-MINGW.txt for how to compile it. It's
somewhat complicated to compile OMC in Windows though, so unless you're
in a hurry you're probably better off waiting for Adrian.
Best regards,
Per Östlund
On 2010-08-12 17:15, Dierckx Marc wrote:
Hello,
Thank you for all your answers ...
I use a clean install of the final version of OpenModelica that is
available for download at the OpenModelica website ... the version is
1.5.0 ...
Will the fix (revision 5914) be available on the website as a .exe
file or do I have to do a compilation from source code ... compilation
of the source code is something new to me so I am a little bit afraid
that this might be a dead end ... but I will try ... where to find the
final version of the code with this bug fixed ?
Kind regards,
Marc
------------------------------------------------------------------------
*From:* [email protected]
[mailto:[email protected]] *On Behalf Of *Per
Östlund
*Sent:* donderdag 12 augustus 2010 11:02
*To:* [email protected]
*Cc:* Mohsen Torabzadeh-Tari
*Subject:* Re: Larger arrays
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
SCK·CEN Disclaimer: www.sckcen.be/en/Legal-aspects/E-mail-disclaimer