Veda2.0 Released!

Long model generation time

I am struggeling with long generation time for RUN file and LP model. My model is very simple at the moment, with 3 regions, a few technologies and some trade processes. 
As seen from the screenshot attached, it takes more than 14 minutes just for the model generation to finish beofre starting to solve the problem. 

Any thoughs on why this is happening and how to speed up the time?

Attached Files Thumbnail(s)
Thanks for the very intriguing problem report.
I would be grateful if you can provide the TIMES input files for this case (*.DD and *.RUN) plus the listing file (*.LST), to investigate the problem. If that would be possible, just pack these files (e.g. zipped) and you could send them to me via Dropbox, Google Drive or equivalent, by giving me the download link (in a private message if you like).

Thank you.
Thanks very much for the model input files!
Without them I would not have been able to give any help, but now I was easily able to find the culprit:  The levelization of IRE_FLO had an old performance bug (that part of the code was 13 years old). The good news is that this bug only affected performance.

After fixing that performance bug, the model preprocessing time (before generation) was reduced from 310 to 14 seconds. However, the model generation time is still notable, 160 seconds, but this is not too bad given the size of the model (3 million equations, 12 million non-zeros). The generation "speed" is thus 1.2 million equations per minute, which I think is reasonable. But there is an ongoing ETSAP project looking at the performance, and may achieve some improvements. Anyway, the total GAMS time before the solve was now 14+160=174 seconds.  The fix will be in the next release.

I also see that you are using an oldish version of TIMES (v4.5.6), which also gives you somewhat poorer performance, and so suggest to upgrade.
Dear Antti,
Thank you for the help of finding the performance bug!
Looking forward to seeing the results of the ongoing ETSAP project.
Will the fix be in the upcoming version that will be released next week?
Yes, we will try to achieve some additional improvement within the ETSAP project. Can I share the input files for your model case with the project partners (GAMS, PSI)?  The current fix will be in the next TIMES release.
You are welcome to share the input files with the project partners.
Regarding the new TIMES release, do you know when this is scheduled? In the meentime, is it a way that I can get around this performance bug by deactivating some of the input, so that the preprocessing time reduces?
The next release would be within some weeks' time. In the meantime, you could remove your IRE_FLO parameters from the model (if necessary, define the losses with IRE_FLOSUM instead). And upgrade to the latest version, v4.7.8.
Will do, thanks for the help!

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unexpected error in model run BSR 1 91 08-07-2024, 11:58 PM
Last Post: Antti-L
  Model geographical expansion stevenss 0 182 17-05-2024, 02:36 PM
Last Post: stevenss
  Generating _Trade_Links for multi-regional model kushagra 4 711 03-04-2024, 07:29 PM
Last Post: kushagra
  Model Infeasible Question VanessaDing 4 727 14-03-2024, 07:47 PM
Last Post: Antti-L
  RES generation LucasD 3 809 21-11-2023, 08:22 PM
Last Post: LucasD
  Delay material recycle time Edison Zhou 8 1,775 15-11-2023, 10:01 PM
Last Post: Edison Zhou
  Delay material recycle time Edison Zhou 0 304 26-10-2023, 07:51 PM
Last Post: Edison Zhou
  Methods of comparing model versions lclahane 1 662 19-05-2023, 12:02 AM
Last Post: Antti-L
  Getting an error while creating the model jskrzypek 7 3,606 25-01-2023, 01:04 AM
Last Post: Ravinder
  Implementing minimum utilization factor/activity of a technology over the time jabarivelisdeh 7 2,801 13-09-2022, 12:58 AM
Last Post: jabarivelisdeh

Forum Jump:

Users browsing this thread: 1 Guest(s)