Veda2.0 Released!


Unexpected termination of the VEDA-FE run
#1
Hello,

I have one issue i'm trying to solve. After a successful synchronisation into VEDA FE, i have an "unexpected termination of run". The QA_check is perfect, almost no warning at all (only the *** Demand: DEM commodity with missing COM_PROJ Projection which corresponds to some demand commodities without any demand projection for them, thus harmless though)

However in the .lst file (please find it enclosed here) there are one error message:

---- 167471 Assignment OBJ_DISC      0.000     4.369 SECS    200 Mb      1

---- 167472 IF-ELSE                  0.000     4.369 SECS    200 Mb 
---- 167474 Loop                     0.000     4.369 SECS    200 Mb 
---- 167476 Assignment F             0.000     4.369 SECS    200 Mb      1
---- 167477 Assignment F             0.000     4.369 SECS    200 Mb      1
**** Exec Error at line 167481: division by zero (0)
---- 167479 Loop                     0.000     4.369 SECS    200 Mb 
---- 167483 Assignment G_DRATE       0.000     4.369 SECS    200 Mb     13

Unfortunately, I really do not understand this issue. Do you have any idea please?
Thanks in advance


Attached Files
.zip   20-09-2019_BASE.zip (Size: 62.25 KB / Downloads: 2)
Reply
#2
Some time ago there was another user reporting apparently the same problem:

http://forum.kanors-emr.org/showthread.php?tid=756

I tried to find a way to reproduce the problem by myself, but without any luck. However, that other user had also some other problems in his model, and the problem went away after fixing them. But I would very much like to know what may cause such a division by zero error, which you are now also getting.

I would thus be grateful if you could provide a reproducible test case (the *.DD and *.RUN files) for the case where you get the error). If you can zip and upload these files e.g. to Dropbox or Google Drive, and send me the download link, I would be grateful.
Reply
#3
Hello Antti
I maybe finally found where is located the problem.
The problem was to have the sheet defaults in syssettings for ~Currencies to define a default currency for the whole model where i did not define any default currency so i assume the model maybe was having a problem with that (considering maybe zero which explains the divided by zero). Well it is just an assumption and maybe you can confirm that.
In any case after removing it, the model started to work smoothly
Thank you for your time
Reply
#4
Thanks for the follow-up.

Yes, it never occurred to me that the set CUR would be empty!  That is obviously the explanation for the problem.  But what is even more peculiar, GAMS still reads in the G_DRATE parameter, with the undefined currency 'CUR', and TIMES therefore actually thinks that 'CUR' is a member of the set CUR.  This messy situation is possible, because VEDA sets an option to allow for domain violations.

Anyway, thanks for helping to find out the reason for this problem. I can now implement a new QA check to issue a clear error when this situation occurs (set CUR is empty, or does not contain the currencies used).
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Veda Help Saad Awan 2 981 11-07-2023, 02:51 PM
Last Post: Saad Awan
  Veda Help Saad Awan 15 4,919 11-07-2023, 12:55 PM
Last Post: AKanudia
  Veda Errors Saad Awan 0 535 03-07-2023, 06:10 PM
Last Post: Saad Awan
  Veda Errors Saad Awan 2 1,144 16-06-2023, 04:06 PM
Last Post: Saad Awan
  Unexpected Termination of Run! Yunfei Han 6 2,414 15-05-2023, 05:16 PM
Last Post: Yunfei Han
  Unexpected termination of run [email protected] 8 10,594 29-03-2023, 01:56 PM
Last Post: Antti-L
  CSV Export in Veda olexandr 4 4,277 21-04-2021, 08:36 PM
Last Post: AKanudia
  MAC vs. Windows for VEDA-TIMES FE & BE? mbr1818 5 9,925 22-02-2021, 01:52 PM
Last Post: AKanudia
  problem with (re)SYNC of previous working models/DB after reinstall of VEDA Koen Smekens 9 7,972 29-12-2020, 08:01 PM
Last Post: Antti-L
  Unexpected Termination of run! guozhi1305 6 6,930 25-08-2020, 04:06 PM
Last Post: guozhi1305

Forum Jump:


Users browsing this thread: 1 Guest(s)