openworm/OpenWorm

Output fails when running with duration higher than 2000

Opened this issue · 6 comments

If this issue is intended to be a bug report, please fill out the following:

Expected behavior
Using 0.9.3 image in docker, but whenever I try to run the simulation with command run.cmd -d 2000 or more, it fails.

here is an example:

2023-04-22 02:25:06 >> --------------------------------------------------------------
2023-04-22 02:25:06 >> Command exited with -9: python sibernetic_c302.py
2023-04-22 02:25:06 -duration 2200.0
2023-04-22 02:25:06 -dt 0.005
2023-04-22 02:25:06 -dtNrn 0.05
2023-04-22 02:25:06 -logstep 100
2023-04-22 02:25:06 -device=CPU
2023-04-22 02:25:06 -configuration worm_crawl_half_resolution
2023-04-22 02:25:06 -reference FW
2023-04-22 02:25:06 -c302params C2
2023-04-22 02:25:06 -datareader UpdatedSpreadsheetDataReader2
2023-04-22 02:25:06 -outDir simulations
2023-04-22 02:25:06 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023-04-22 02:25:06
2023-04-22 02:25:06 Exiting as the last command failed

Actual behavior

Steps to reproduce the behavior


If this issue is intended to be a beginner issue, please add all of the following:

  • Requirements are clearly specified
  • Links to relevant "getting started" documentation
  • Tagged as "beginner"
  • Tagged with language skill needed to complete
  • Level of difficulty:
    • Trivial = Changing one-line of code somewhere.
    • Standalone = Changes & Development do not affect other components of project. Tasks can be on a critical path, but probably should not be.
    • Simple = from 2 hours work to maybe a week’s work (Thinking + Coding)

Thanks for reporting @LucianSheen. I've not had problems running the docker file myself recently, but admittedly I've not run it for very long simulations. I'll try again locally and see if I can reproduce. Just to clarify, did you rebuild the image from the master branch or use the dockerhub version?

So I've been trying to test this out. The 5 second run of the Docker image worked fine on my Linux machine, but took 10 hours. It has 20 processers and 64GB ram and after it finished the swap memory had been used, so I suspect it took up quite a bit of memory while running.

A simulation of 0.5 seconds on my more modest laptop (Mac M2) failed with a similar error to you. I suspect then that it's running out of memory in the image and failing. What OS/specs are your machine?

Unfortunately I suspect it will require quite a powerful machine to run the full thing, unless Sibernetic (or the Python interface) can be optimised more...

Hi @LucianSheen. I've not been involved with that code, but I see @portegys over there has helped you out with some answers.

BTW, there is a new Python visualisation/replay tool for the Boyle Berri Cohen model at https://github.com/OpenSourceBrain/CelegansNeuromechanicalGaitModulation.

See also https://github.com/openworm/CE_locomotion