PSC-PublicHealth / HERMES

0 stars 0 forks source link

Sim.py negative time error #93

Open jennBakal opened 6 years ago

jennBakal commented 6 years ago

the following error occurs occasionally

Exception: 'SimPy: hold: delay time negative: -0.0031459960969, in <UseVials(Matola-Rio)>'
------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\pwedlock\Documents\HERMES\HERMES\HERMES2\src\sim\main.py", line 682, in <module>  main()
  File "C:\Users\pwedlock\Documents\HERMES\HERMES\HERMES2\src\sim\main.py", line 532, in main
    output = r.runModel()
File "C:\Users\pwedlock\Documents\HERMES\HERMES\HERMES2\src\sim\..\sim\hermes.py", line 578, in runModel
    self.simulate(until=until)
  File "C:\Users\pwedlock\Documents\HERMES\HERMES\HERMES2\src\sim\..\ui_server/thirdparty/SimPy/simpy-2.3.1\SimPy\SimulationStep.py", line 40, in simulate
    return Simulation.simulate(self, until)
  File "C:\Users\pwedlock\Documents\HERMES\HERMES\HERMES2\src\sim\..\ui_server/thirdparty/SimPy/simpy-2.3.1\SimPy\Simulation.py", line 565, in simulate
    raise FatalSimerror('SimPy: ' + error.value)
FatalSimerror: 'SimPy: hold: delay time negative: -0.0031459960969, in <UseVials(Matola-Rio)>'
Xuth commented 5 years ago

I believe that this is now fixed in the branch "fixes_for_patrick"

ptrwed commented 5 years ago

I have not been able to replicate the issue on my comp, but will try a different model that was causing a lot of issues with this. Just to confirm it is fixed.