nismod / nismod2

National Infrastructure Systems Model setup, configuration and tests
MIT License
7 stars 5 forks source link

energy_supply_agent run fails with mosel exit code -9 #146

Open tomalrussell opened 5 years ago

tomalrussell commented 5 years ago

Since testing on #145 - smif run energy_supply_agent -v - smif runs okay, creates 3059 interventions (is this too many?), mosel fails with exit code -9.

LahiruJayasuriya commented 5 years ago

@tomalrussell In this rule-based case, does SMIF read the full list of interventions defined in energy_supply_optimised sector model and then try to stick to the rule (where is this given ? in the *.py file ?) Is this case, there could be 3059 interventions. But it shouldn't be a problem in terms of running the model. Here, MOSEL may have accounted for a data error, hence failed.

LahiruJayasuriya commented 5 years ago

3088 interventions are combinations of all listed interventions (electric world/multi-vector/net zero) in energy_supply_optimised sector model. Overall the model run works for me.

tomalrussell commented 5 years ago

@LahiruJayasuriya yes, it picks the cheapest interventions up to some budget, following the logic in planning/energyagent.py

Sounds okay, could be some limitation of the virtual machine I'm using. Do you know what the -9 code means?

If this doesn't replicate, we can close the issue, always re-open if it becomes important.

LahiruJayasuriya commented 5 years ago

Makes sense, I think the interventions lists do not include accurate cost values. At the moment all are kept zero. I'll note this down to update in a next release.

Error code -9 Error on read of basis file. (as in https://www.maths.ed.ac.uk/hall/Xpress/FICO_Docs/optimizer/HTML/chapter9.html) The basis file .BSS is corrupt. Please make sure that there is adequate disk space for the file and that it has not been corrupted.

Looks relevant to disk space, but I'm afraid I don't know more specific details on this.