pnnl / tesp

Other
39 stars 37 forks source link

v1.0.0 te30/run0.sh and run.sh produce no graphs #40

Closed trevorhardy closed 3 years ago

trevorhardy commented 3 years ago

Both run0.sh and run.sh run without error on the console but the graphing script produces an error and no graphs

$ python3 plots.py TE_Challenge

File TE_Challenge has baseMVA 100.0

Generator Dictionary:
Unit Bus Type Pnom Pmax Costs[Start Stop C2 C1 C0]
1 1 pv 163.0 247.0 [ 500.0 0.0 0.03 1.3 180.0 ]
2 2 swing 0.0 192.0 [ 2000.0 0.0 0.085 3.0 100.0 ]
3 3 pv 85.0 128.0 [ 3000.0 0.0 0.122 5.0 135.0 ]
4 9 pq 0.0 250.0 [ 3000.0 0.0 3.0 50.0 1500.0 ]
5 7 pq 0.0 0.0 [ 0.0 0.0 0.0 0.0 0.0 ]

DSO Bus Dictionary:
Bus Pnom Qnom ampFactor [GridLAB-D Substations]
7 100.0 35.0 250.0 ['SUBSTATION7']
Traceback (most recent call last):
  File "plots.py", line 14, in <module>
    pmetrics = pp.read_pypower_metrics (rootname)
  File "/usr/local/lib/python3.8/dist-packages/tesp_support/process_pypower.py", line 92, in read_pypower_metrics
    lst_b = json.loads(lp_b)
  File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
temcdrm commented 3 years ago

what os?

trevorhardy commented 3 years ago

I ran the TESP installer on a VirtualBox VM with a clean installation of Ubuntu LTS 20.04.1

trevorhardy commented 3 years ago

Still failing for me with the same error message after logout and login.

temcdrm commented 3 years ago

Cannot reproduce: Ubuntu 20.0.4 LTS, Python 3.8.5, tesp_support 0.9.4

Please zip up the contents of examples/te30 and post here

trevorhardy commented 3 years ago

Confirmed I'm still having problems; here's the .zip te30.zip

temcdrm commented 3 years ago

The simulations didn't actually run to completion. gridlabd.log from December 10 indicates an empty GLPATH causing error termination, and *0.log from December 11 indicates those simulations never got started.

It's possible the December 10 failure was caused by the environment not being set. The December 11 failure could have been caused by stale processes left over from the day before. To retry:

trevorhardy commented 3 years ago

I restarted the VM (virtual power off and back on) and ran the above commands followed by python3 plots.py TE_Challenge: I still get the same error and am seeing the same empty output JSONs you referenced.

After trying the above when I look for hung processes us ps or lsof I don't see any.

> echo $GLPATH
/opt/tesp/lib/gridlabd:/opt/tesp/share/gridlabd

I've attached the lastest TE30 folder as well. te30.zip

trevorhardy commented 3 years ago

Resolved through restart of VM.