You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following exception at start related to sunData, and sometimes also later. I merged the old ORTEP scripts using the sst sensor and model workspace with the most recent Demkit. In the ORTEP model the sunData is used to predict PV on both 3-phase and single-line inverters:
09:24:43 | MESSAGE: Starting
09:24:50 | MESSAGE: Simulating at time: 09-08-2023 09:24:50 CEST+0200
Exception in thread Thread-3 (zCallSingle):
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/home/dennis/work/ortep/demkit-github/components/core/core.py", line 682, in zCallSingle
return getattr(recv, func)(*args)
File "/home/dennis/work/ortep/demkit-github/components/ctrl/groupCtrl.py", line 225, in initiatePlanning
self.doInitialPlanning(s)
File "/home/dennis/work/ortep/demkit-github/components/ctrl/groupCtrl.py", line 261, in doInitialPlanning
results = self.zCall(self.children, 'doInitialPlanning', s, list(parents))
File "/home/dennis/work/ortep/demkit-github/components/core/entity.py", line 143, in zCall
return self.host.zCall(receivers, func, *args)
File "/home/dennis/work/ortep/demkit-github/components/core/core.py", line 654, in zCall
return self.zCallList(receivers, func, *args)
File "/home/dennis/work/ortep/demkit-github/components/core/core.py", line 671, in zCallList
result[recv] = getattr(recv, func)(*args)
File "/home/dennis/work/ortep/demkit-github/components/ctrl/devCtrl.py", line 158, in doInitialPlanning
result = copy.deepcopy(self.doPlanning(signal, False))
File "/home/dennis/work/ortep/demkit-github/components/ctrl/loadCtrl.py", line 133, in doPlanning
p[c] = self.doPrediction(time-(time%timeBase), time-(time%timeBase)+timeBase*len(signal.desired[c]))
File "/home/dennis/work/ortep/demkit-github/components/ctrl/live/livePvCtrl.py", line 82, in doPrediction
result = self.predictProduction(sunPrediction, startTime, endTime)
File "/home/dennis/work/ortep/demkit-github/components/ctrl/live/livePvCtrl.py", line 171, in predictProduction
result.append(min(0, max(sunData[idx]['GHI']*self.model[b][0] + sunData[idx]['DNI']*self.model[b][1], self.maxProduction[b]) ) )
IndexError: list index out of range
Kind regards,
Dennis
The text was updated successfully, but these errors were encountered:
I did some debugging, on the arguments of result.append and found the following, apparently self.maxProduction is empty, while it worked fine until 01:00 this morning after I started yesterday.
12:17:41 | WARNING: [PVCTRL_3P_L1] livePvCtrl model b=20 idx=0, len(model)=48, len(maxProduction)=0
Because of this, I now initialize self.maxProduction in livePvCtrl::startup() after self.bins is initialized.
Apparently not all realized values are available after restarting demkit with live data, also had to change the following in loadCtrl::updatePrediction(self):
The mix-up may have appeared because I wrestled a bit with the ortep model while changing the measurements and prediction of the single-line inverter from L2 to L3.
bijwaard
changed the title
Exception at start
Exception at live re-start
Aug 9, 2023
Hi Gerwin,
I get the following exception at start related to sunData, and sometimes also later. I merged the old ORTEP scripts using the sst sensor and model workspace with the most recent Demkit. In the ORTEP model the sunData is used to predict PV on both 3-phase and single-line inverters:
Kind regards,
Dennis
The text was updated successfully, but these errors were encountered: