Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output fails when running with duration higher than 2000 #332

Open
5 tasks
LucianSheen opened this issue Apr 25, 2023 · 7 comments
Open
5 tasks

Output fails when running with duration higher than 2000 #332

LucianSheen opened this issue Apr 25, 2023 · 7 comments

Comments

@LucianSheen
Copy link

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)
@pgleeson
Copy link
Member

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?

@LucianSheen
Copy link
Author

LucianSheen commented Apr 28, 2023 via email

@pgleeson
Copy link
Member

pgleeson commented May 5, 2023

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...

@LucianSheen
Copy link
Author

LucianSheen commented May 5, 2023 via email

@LucianSheen
Copy link
Author

LucianSheen commented Sep 19, 2023 via email

@pgleeson
Copy link
Member

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

@Daasin
Copy link

Daasin commented Oct 24, 2024

Huh, this is the same issue I've been having too...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants