Help - Search - Members - Calendar
Full Version: error in compilitation
Modelica Forum > Modelica > Modelica
francesco
I have a problem compiling my model (I am using Thermopower library but I think this kind of problem could be general).

When I make a simulation it gives me this kind of error in the tab SIMULATION:

gcc -c -O1 -ffunction-sections -mpentium -march=pentium -ffast-math -DDYMOSIM dsmodel.c
E:\Programmi\Dymola\source\dsblock1.c: In function `equations_':
E:\Programmi\Dymola\source\dsblock1.c:285: warning: This file contains more `{'s than `}'s.
E:\Programmi\Dymola\source\dsblock2.c: In function `dsblock_':
E:\Programmi\Dymola\source\dsblock2.c:103: warning: This file contains more `{'s than `}'s.
E:\Programmi\Dymola\source\dsblock3.c:52: warning: This file contains more `{'s than `}'s.
E:\Programmi\Dymola\source\dsblock4.c: In function `declare_':
E:\Programmi\Dymola\source\dsblock4.c:114: warning: This file contains more `}'s than `{'s.
E:\Programmi\Dymola\source\dsblock5.c: At top level:
E:\Programmi\Dymola\source\dsblock5.c:532: warning: This file contains more `}'s than `{'s.
as: dsmodel.o: reloc overflow: 0x15e3d > 0xffff
dsmodel.o: File truncated
E:\DOCUME~1\salvo\IMPOST~1\Temp\ccCybaaa.s: Assembler messages:
E:\DOCUME~1\salvo\IMPOST~1\Temp\ccCybaaa.s:643652: FATAL: Can't close dsmodel.o
: File truncated
gcc -c -O1 -mpentium -march=pentium -ffast-math -DDYMOSIM dsmodelext*.c

Error generating Dymosim.

This error accours when I am introducing one more component. I mean, I am simulating a centralized heating system, I add a new boilers (which is equal to the others already present in the model) and this error accours.

In addition I would expted this error accurred durring compilitation non during simulation...I really don't understand

Can you help me? Bitte!

Thanks,

Fra
wagner
Hello francesco,

maybe this is a specific problem of the gcc compiler. Did you try to use one of the other compilers (like Visual Studio 2005)?

General indication:

"as: dsmodel.o: reloc overflow: 0x15e3d > 0xffff" probably means that you get an overflow in memory or in a buffer or something similar. It is not a problem of your model. How many equations and state variables do you have? Maybe your global model exceeds predefined bounds of Dymola.

Regards

Florian



francesco
QUOTE(wagner @ Apr 12 2007, 03:16 PM) *

Hello francesco,

maybe this is a specific problem of the gcc compiler. Did you try to use one of the other compilers (like Visual Studio 2005)?

General indication:

"as: dsmodel.o: reloc overflow: 0x15e3d > 0xffff" probably means that you get an overflow in memory or in a buffer or something similar. It is not a problem of your model. How many equations and state variables do you have? Maybe your global model exceeds predefined bounds of Dymola.

Regards

Florian


Thank you very much for your advices.
the model has 7519 scalar unknowns (and 7519 scalar equations of course). Does it exceed predefined bounds of Dymola?

Francesco















francesco
QUOTE(wagner @ Apr 12 2007, 03:16 PM) *

Hello francesco,

maybe this is a specific problem of the gcc compiler. Did you try to use one of the other compilers (like Visual Studio 2005)?

General indication:

"as: dsmodel.o: reloc overflow: 0x15e3d > 0xffff" probably means that you get an overflow in memory or in a buffer or something similar. It is not a problem of your model. How many equations and state variables do you have? Maybe your global model exceeds predefined bounds of Dymola.

Regards

Florian


I am sorry to bother you once more...but I am not able to use another compiler. I mean in the user's manual it's said to modify the file msvvdir.bat in the bin folder but I am not able to find it!
Thank you a lot for your time
regards,

Francesco
wagner
Hello Francesco,

sorry, I did not see your reply to my last post.

If you only have 7000 equations this should not be a problem for dymola. But what you didn't post is the number of state variables you have. You can get this information when you activate (I'm using Dymola 6.0d):

- in the experiment setup
- on the translation tab
- in the logging section
- list continous time states selected

This number would be quite interesting.

Which version of Dymola are you using? In Dymola 6.0d you don't have to change the msvvdir.bat anymore. Installed Visual Studio compiler versions are automatically detected if you install (or reinstall) Dymola.

If you don't get the Visual Studio 2005 compiler running I can offer you to mail me your model and I will check on my PC if I get the same error when I try to compile your model.

Regards

Florian
francesco
Really, don't worry.
I am using also dymola 6.0 and just now I tried to reinstall it but the c++ compilator didn't work either.
By the way there are:
continuous time states: 132 scalars
time-varying variables: 2632 scalars
I'd send you my model, but you need also the library which it's using it. it is ok for you?

Regards,
Francesco


QUOTE(wagner @ Apr 21 2007, 05:21 PM) *

Hello Francesco,

sorry, I did not see your reply to my last post.

If you only have 7000 equations this should not be a problem for dymola. But what you didn't post is the number of state variables you have. You can get this information when you activate (I'm using Dymola 6.0d):

- in the experiment setup
- on the translation tab
- in the logging section
- list continous time states selected

This number would be quite interesting.

Which version of Dymola are you using? In Dymola 6.0d you don't have to change the msvvdir.bat anymore. Installed Visual Studio compiler versions are automatically detected if you install (or reinstall) Dymola.

If you don't get the Visual Studio 2005 compiler running I can offer you to mail me your model and I will check on my PC if I get the same error when I try to compile your model.

Regards

Florian

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.