Hi,
I might have forgotten to add some new appeared .h files to the installer. I'll have a look and let you know. Cheers, Adrian Pop/ On 2010-08-23 15:27, Dierckx Marc wrote:
Hi, Thank you for the effort ! Somehow I am still struggling with OpenModelica ... sorry ... I installed this new version 5940 suggested by Adrian but no avail ... Now I can not get any model to run ... I tried the dcmotor.mo in OMShell but it failed :( Looking at the logfile dcmotor.log I see the error "'C:\OpenModelica1.5.0\' is not recognized as an internal or external command, operable program or batch file.". Nevertheless I see that the dcmotor.cpp file has been generated ... maybe the c compiler can not be found? Or can it be a problem with the makefile ... it is listed below and the slashes \/ seem a little bit awkward to me ... # Makefile generated by OpenModelica CC=g++ CXX=g++ LINK=g++ -shared -export-dynamic EXEEXT=.exe DLLEXT=.dll CFLAGS=-I"C:\OpenModelica1.5.0\/include/omc" -msse2 -mfpmath=sse ${MODELICAUSERCFLAGS} LDFLAGS=-L"C:\OpenModelica1.5.0\/lib/omc" -lc_runtime SENDDATALIBS=-lsendData -lQtNetwork-mingw -lQtCore-mingw -lQtGui-mingw -luuid -lole32 -lws2_32 .PHONY: dcmotor dcmotor: dcmotor.cpp $(CXX) $(CFLAGS) -I. -o dcmotor$(EXEEXT) dcmotor.cpp -lsim $(LDFLAGS) -lf2c -linteractive $(SENDDATALIBS) Kind regards, Marc -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Adrian Pop Sent: vrijdag 20 augustus 2010 1:35 To: [email protected] Cc: Per Östlund Subject: Re: Larger arrays Hi, You can find a .msi build of revision 5940 here: http://build.openmodelica.org/omc/builds/windows/ Cheers, Adrian Pop/ On 2010-08-13 09:13, Per Östlund wrote: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-disclaimerSCK·CEN Disclaimer: www.sckcen.be/en/Legal-aspects/E-mail-disclaimer
