-
Notifications
You must be signed in to change notification settings - Fork 41
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
Error running many models in parallel #69
Comments
Hi @algchyhao, apologies for the delay! I'm not sure why you are having this issue. Possibly this may be due to the fact that EPA SWMM is not thread safe. Currently there are no unit tests for the However, on a broader degree, I think the scope of swmmio should be more focused on reading, writing, and manipulating SWMM models, rather than being used for running models programmatically. I would suggest that the community leverage pyswmm to run models (indeed maybe swmmio should leverage pyswmm to manage running simulations). That said, to help us debug, what type of environment are you running your models within? |
@aerispaha, I have modified a version of SWMMIO to use PySWMM. When i try to run a pool of simulations, it seems to default to the hotstart file process. It actually goes and adds 4 I ran: Output:
Original File with added lines:
I will submit my PR so you can take a look at my code. I added a simple PY wrapper to replace you execution stuff. It's not completely generic yet for any instance of Python... and it doesn't have unit tests as of this message.... they're to follow soon. |
@bemcdonnell thanks for looking into this! This is a feature of swmmio that has not been actively maintained for a while, so I'm not surprised that there are some issues. As I mentioned above in my comment above, I think it makes sense to leverage pyswmm for running models, rather than using a custom approach developed in swmmio. As such, I think we should set up a couple unit tests to ensure we're getting the behavior we want while using pyswmm as the "engine" to run the simulations. I think we can use swmmio to handle the model creation tasks, and pyswmm to run the simulations. Looking forward to getting this impplemented! |
Hi Aerispaha,
I found that when I run SWMM in parallel, it fails randomly. For example, if I run 500 cases in parallel, 0-20 out of 500 may not getting any results and prompt 303 error: not compatible hot start file. The number of failed runs differs every try. What could be the problem please?
The text was updated successfully, but these errors were encountered: