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

Failed building simulation causes postprocessing to fail #180

Closed
nmerket opened this issue Aug 26, 2020 · 4 comments
Closed

Failed building simulation causes postprocessing to fail #180

nmerket opened this issue Aug 26, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@nmerket
Copy link
Member

nmerket commented Aug 26, 2020

Describe the bug

It started with an unexplainable error in postprocessing

DEBUG:2020-07-21 23:12:29:__main__:Starting postprocessing
Traceback (most recent call last):
  File "/shared-projects/buildstock/envs/buildstock-0.18/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/shared-projects/buildstock/envs/buildstock-0.18/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/shared-projects/buildstock/envs/buildstock-0.18/lib/python3.7/site-packages/buildstockbatch/eagle.py", line 751, in <module>
    main()
  File "/shared-projects/buildstock/envs/buildstock-0.18/lib/python3.7/site-packages/buildstockbatch/utils.py", line 61, in run_with_error_capture
    return func(*args, **kwargs)
  File "/shared-projects/buildstock/envs/buildstock-0.18/lib/python3.7/site-packages/buildstockbatch/eagle.py", line 741, in main
    batch.process_results()
  File "/shared-projects/buildstock/envs/buildstock-0.18/lib/python3.7/site-packages/buildstockbatch/base.py", line 773, in process_results
    postprocessing.combine_results(fs, self.results_dir, self.cfg, do_timeseries=do_timeseries)
  File "/shared-projects/buildstock/envs/buildstock-0.18/lib/python3.7/site-packages/buildstockbatch/postprocessing.py", line 265, in combine_results
    dpout['job_id'] = job_id
TypeError: 'NoneType' object does not support item assignment

To Reproduce

This is kind of tricky since it doesn't happen very often, only when a simulation fails such that a data_point_out.json isn't created.

Expected behavior

Postprocessing to move on and include a row in the results.csv indicating the simulation failed.

Platform (please complete the following information):

  • Simulation platform: Eagle, I think.
  • BuildStockBatch version, branch, or sha: ?
  • OpenStudio-BuildStock version, branch, or sha: ?
  • Local Desktop OS: ?

cc @afontani

@nmerket nmerket added the bug Something isn't working label Aug 26, 2020
@nmerket
Copy link
Member Author

nmerket commented Aug 26, 2020

@afontani I would be interested to see how to duplicate this error. Could you point me to your simulation results where you are seeing this problem? Looking closer at this, it shouldn't be happening.

@afontani
Copy link
Collaborator

afontani commented Aug 27, 2020

@nmerket I know we talked about this today. For documentation purposes, the path on Eagle is /projects/enduse/mfm_runs/res_national_19_01_01_2018_pp_issue.

@lixiliu
Copy link
Contributor

lixiliu commented Dec 16, 2020

As discussed with @afontani, this could be a wall time issue, where no simulation file is output before a node times out. I had the same error in a recent upgrade run. When I upped my min_per_sim from 30 to 60 (this is for SFD only), I no longer had the 'NoneType' object error. I believe #196 is related to this error as well.

@nmerket
Copy link
Member Author

nmerket commented Jan 12, 2021

Duplicate to #196

@nmerket nmerket closed this as completed Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants