@
KC27 , helaas geeft de nieuwe versie mij ook een error bij optimalisatie berekening met debug:
ERROR while running Cbc. Signal SIGSEGV caught. Getting stack trace.
en
ERROR while running Cbc. Signal SIGABRT caught. Getting stack trace.
Mijn log:
2026-04-12 21:13:06 INFO: Loaded 6 secrets from ../data/secrets.json
2026-04-12 21:13:06 INFO: Validating configuration with ConfigurationV0
2026-04-12 21:13:06 info: Day Ahead Optimalisering versie: 2026.04.2
2026-04-12 21:13:06 info: Day Ahead Optimalisering gestart op: 12-04-2026 21:13:06
2026-04-12 21:13:06 info: Day Ahead Optimalisatie gestart: 12-04-2026 21:13:06 taak: calc_optimum_met_debug
2026-04-12 21:13:06 info: Debug = True
2026-04-12 21:13:06 info: Zelf berekende baseload
2026-04-12 21:13:06 info: ML prediction Zuid
date_time prediction
0 2026-04-12 21:00:00+02:00 0.003
1 2026-04-12 22:00:00+02:00 0.003
2 2026-04-12 23:00:00+02:00 0.003
3 2026-04-13 00:00:00+02:00 0.003
4 2026-04-13 01:00:00+02:00 0.003
5 2026-04-13 02:00:00+02:00 0.003
6 2026-04-13 03:00:00+02:00 0.003
7 2026-04-13 04:00:00+02:00 0.003
8 2026-04-13 05:00:00+02:00 0.003
9 2026-04-13 06:00:00+02:00 0.003
10 2026-04-13 07:00:00+02:00 0.015
11 2026-04-13 08:00:00+02:00 0.138
12 2026-04-13 09:00:00+02:00 0.250
13 2026-04-13 10:00:00+02:00 0.203
14 2026-04-13 11:00:00+02:00 0.239
15 2026-04-13 12:00:00+02:00 0.753
16 2026-04-13 13:00:00+02:00 2.042
17 2026-04-13 14:00:00+02:00 2.206
18 2026-04-13 15:00:00+02:00 2.112
19 2026-04-13 16:00:00+02:00 1.635
20 2026-04-13 17:00:00+02:00 0.649
21 2026-04-13 18:00:00+02:00 0.103
22 2026-04-13 19:00:00+02:00 0.030
23 2026-04-13 20:00:00+02:00 0.004
24 2026-04-13 21:00:00+02:00 0.003
25 2026-04-13 22:00:00+02:00 0.003
26 2026-04-13 23:00:00+02:00 0.003
2026-04-12 21:13:06 info: ML prediction Oost
date_time prediction
0 2026-04-12 21:00:00+02:00 0.006
1 2026-04-12 22:00:00+02:00 0.007
2 2026-04-12 23:00:00+02:00 0.007
3 2026-04-13 00:00:00+02:00 0.007
4 2026-04-13 01:00:00+02:00 0.007
5 2026-04-13 02:00:00+02:00 0.017
6 2026-04-13 03:00:00+02:00 0.017
7 2026-04-13 04:00:00+02:00 0.017
8 2026-04-13 05:00:00+02:00 0.017
9 2026-04-13 06:00:00+02:00 0.017
10 2026-04-13 07:00:00+02:00 0.025
11 2026-04-13 08:00:00+02:00 0.102
12 2026-04-13 09:00:00+02:00 0.161
13 2026-04-13 10:00:00+02:00 0.119
14 2026-04-13 11:00:00+02:00 0.149
15 2026-04-13 12:00:00+02:00 0.457
16 2026-04-13 13:00:00+02:00 0.878
17 2026-04-13 14:00:00+02:00 0.863
18 2026-04-13 15:00:00+02:00 0.738
19 2026-04-13 16:00:00+02:00 0.420
20 2026-04-13 17:00:00+02:00 0.128
21 2026-04-13 18:00:00+02:00 0.043
22 2026-04-13 19:00:00+02:00 0.027
23 2026-04-13 20:00:00+02:00 0.011
24 2026-04-13 21:00:00+02:00 0.009
25 2026-04-13 22:00:00+02:00 0.009
26 2026-04-13 23:00:00+02:00 0.009
2026-04-12 21:13:06 info: ML prediction West
date_time prediction
0 2026-04-12 21:00:00+02:00 0.007
1 2026-04-12 22:00:00+02:00 0.004
2 2026-04-12 23:00:00+02:00 0.004
3 2026-04-13 00:00:00+02:00 0.009
4 2026-04-13 01:00:00+02:00 0.009
5 2026-04-13 02:00:00+02:00 0.001
6 2026-04-13 03:00:00+02:00 0.001
7 2026-04-13 04:00:00+02:00 0.001
8 2026-04-13 05:00:00+02:00 0.001
9 2026-04-13 06:00:00+02:00 0.001
10 2026-04-13 07:00:00+02:00 0.020
11 2026-04-13 08:00:00+02:00 0.111
12 2026-04-13 09:00:00+02:00 0.165
13 2026-04-13 10:00:00+02:00 0.170
14 2026-04-13 11:00:00+02:00 0.182
15 2026-04-13 12:00:00+02:00 0.470
16 2026-04-13 13:00:00+02:00 0.525
17 2026-04-13 14:00:00+02:00 0.611
18 2026-04-13 15:00:00+02:00 0.778
19 2026-04-13 16:00:00+02:00 0.564
20 2026-04-13 17:00:00+02:00 0.225
21 2026-04-13 18:00:00+02:00 0.138
22 2026-04-13 19:00:00+02:00 0.068
23 2026-04-13 20:00:00+02:00 0.023
24 2026-04-13 21:00:00+02:00 0.001
25 2026-04-13 22:00:00+02:00 0.001
26 2026-04-13 23:00:00+02:00 0.001
2026-04-12 21:13:06 info: Start waarden:
uur tijd spot p_l p_t base pv_ac pv_dc
0 21:00 2026-04-12 21:00:00 0.137 0.313 0.313 0.867 0.003 0.010
1 22:00 2026-04-12 22:00:00 0.131 0.305 0.305 0.771 0.003 0.011
2 23:00 2026-04-12 23:00:00 0.121 0.293 0.293 0.466 0.003 0.011
3 00:00 2026-04-13 00:00:00 0.116 0.287 0.287 0.287 0.003 0.016
4 01:00 2026-04-13 01:00:00 0.110 0.280 0.280 0.220 0.003 0.016
5 02:00 2026-04-13 02:00:00 0.106 0.276 0.276 0.228 0.003 0.018
6 03:00 2026-04-13 03:00:00 0.106 0.276 0.276 0.202 0.003 0.018
7 04:00 2026-04-13 04:00:00 0.109 0.279 0.279 0.223 0.003 0.018
8 05:00 2026-04-13 05:00:00 0.117 0.289 0.289 0.200 0.003 0.018
9 06:00 2026-04-13 06:00:00 0.135 0.310 0.310 0.290 0.003 0.018
10 07:00 2026-04-13 07:00:00 0.144 0.322 0.322 0.439 0.015 0.045
11 08:00 2026-04-13 08:00:00 0.173 0.357 0.357 -0.305 0.138 0.213
12 09:00 2026-04-13 09:00:00 0.164 0.345 0.345 -1.113 0.250 0.326
13 10:00 2026-04-13 10:00:00 0.142 0.319 0.319 -0.640 0.203 0.289
14 11:00 2026-04-13 11:00:00 0.122 0.295 0.295 -0.753 0.239 0.331
15 12:00 2026-04-13 12:00:00 0.112 0.282 0.282 -0.309 0.753 0.927
16 13:00 2026-04-13 13:00:00 0.106 0.276 0.276 0.003 2.042 1.404
17 14:00 2026-04-13 14:00:00 0.114 0.285 0.285 -0.372 2.206 1.474
18 15:00 2026-04-13 15:00:00 0.117 0.289 0.289 -0.235 2.112 1.517
19 16:00 2026-04-13 16:00:00 0.114 0.285 0.285 -0.142 1.635 0.983
20 17:00 2026-04-13 17:00:00 0.125 0.299 0.299 0.477 0.649 0.353
21 18:00 2026-04-13 18:00:00 0.145 0.322 0.322 0.470 0.103 0.181
22 19:00 2026-04-13 19:00:00 0.165 0.347 0.347 0.824 0.030 0.095
23 20:00 2026-04-13 20:00:00 0.154 0.333 0.333 0.794 0.004 0.034
24 21:00 2026-04-13 21:00:00 0.143 0.320 0.320 0.227 0.003 0.011
25 22:00 2026-04-13 22:00:00 0.131 0.305 0.305 0.458 0.003 0.011
26 23:00 2026-04-13 23:00:00 0.123 0.296 0.296 0.521 0.003 0.011
2026-04-12 21:13:07 info: No reduced hours applied for Deye
2026-04-12 21:13:07 info: No reduced power applied during discharging at low soc
2026-04-12 21:13:07 info: No reduced power applied during charging at high soc
2026-04-12 21:13:07 info: Startwaarde SoC Deye: 78.0%
2026-04-12 21:13:07 info: Boiler niet aanwezig of staat uit, boiler wordt niet ingepland
2026-04-12 21:13:07 info: Warmtepomp niet aanwezig - warmtepomp wordt niet ingepland
2026-04-12 21:13:07 info: Strategie: minimale kosten
2026-04-12 21:13:07 info: Maximale fout (maximal gap): 0.005000 euro
Cbc0036I Heuristics switched off as 54 branching objects are of wrong type
▶ Cut generation (root node)
Pass Rows Tight Frac Suminf Objective Time(s)
──── ──────── ──────── ────── ────────── ──────────────── ────────
1 405 0 41 2.612 -5.46132 0.011
2 446 41 0 0 -5.46132 0.015
▶ Branch and bound
Nodes OnTree Depth BestSol Method BestBound Gap% Time(s)
──────── ──────── ────── ─────────────── ──────────────── ─────────────── ──────── ─────────
★ 6 0 0 -5.43678 strong branching -5.45513 0.34% 0.031
★ 6 0 0 -5.43843 strong branching -5.45513 0.31% 0.032
★ 11 0 0 -5.44161 strong branching -5.45513 0.25% 0.038
★ 19 0 0 -5.45513 strong branching -5.45513 0.00% 0.058
✔ Optimal — Obj: -5.45513 Bound: -5.45513 Gap: 0.00% Nodes: 20 Iters: 234 Time: 0.061s
Cut generator summary:
Generator Row cuts Avg density Col cuts Time(s) Next run
────────────────────── ──────── ─────────── ──────── ───────── ────────────
Probing 131 2.3 0 0.001 every node
Gomory 28 25.8 0 0.000 every node
Knapsack 0 0.0 0 0.001 disabled
Clique 0 0.0 0 0.000 disabled
MixedIntegerRounding2 28 6.1 0 0.000 every node
FlowCover 17 4.0 0 0.000 every node
TwoMirCuts 34 11.6 0 0.000 disabled
✔ Cut generation complete — 41 cuts, obj -5.46132 → -5.46132 in 2 passes
ERROR while running Cbc. Signal SIGSEGV caught. Getting stack trace.
/root/dao/prog/miplib/lib/libCbc.so(_Z15CbcCrashHandleri+0xf2) [0x7f5817cc5672]
/lib/x86_64-linux-gnu/libc.so.6(+0x3fdf0) [0x7f5841e48df0]
/root/dao/prog/miplib/lib/libCoinUtils.so.0(_ZN18CoinMessageHandler13internalPrintEv+0xe5) [0x7f5817545ab5]
/root/dao/prog/miplib/lib/libCoinUtils.so.0(_ZN18CoinMessageHandler6finishEv+0x2b) [0x7f5817546f4b]
/root/dao/prog/miplib/lib/libCoinUtils.so.0(_ZN18CoinMessageHandlerlsE17CoinMessageMarker+0x5d) [0x7f58175479fd]
/root/dao/prog/miplib/lib/libCgl.so.0(_ZN13CglPreProcess11postProcessER18OsiSolverInterfacei+0x854) [0x7f5817a54fc4]
/root/dao/prog/miplib/lib/libCbc.so(_Z8CbcMain1St5dequeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EER8CbcModelR13CbcParametersPFiPS8_iEP9ampl_info+0x1bfff) [0x7f5817cf757f]
/root/dao/prog/miplib/lib/libCbc.so(Cbc_solve+0x2418) [0x7f5817d5c358]
/root/dao/venv/day_ahead/lib/python3.13/site-packages/_cffi_backend.cpython-313-x86_64-linux-gnu.so(+0x2d052) [0x7f583543b052]
/root/dao/venv/day_ahead/lib/python3.13/site-packages/_cffi_backend.cpython-313-x86_64-linux-gnu.so(+0x2b978) [0x7f5835439978]
/root/dao/venv/day_ahead/lib/python3.13/site-packages/_cffi_backend.cpython-313-x86_64-linux-gnu.so(cffistatic_ffi_call+0x178) [0x7f5835439af3]
/root/dao/venv/day_ahead/lib/python3.13/site-packages/_cffi_backend.cpython-313-x86_64-linux-gnu.so(+0x135e7) [0x7f58354215e7]
python3(_PyObject_MakeTpCall+0x27b) [0x54726b]
python3(_PyEval_EvalFrameDefault+0x2661) [0x563da1]
python3(PyEval_EvalCode+0xcc) [0x55d48c]
python3() [0x6ab8d1]
python3() [0x6a899c]
python3() [0x6b9943]
python3() [0x6b93e3]
python3() [0x6b921e]
python3(Py_RunMain+0x3c1) [0x6b86f1]
python3(Py_BytesMain+0x2b) [0x6838eb]
/lib/x86_64-linux-gnu/libc.so.6(+0x29ca8) [0x7f5841e32ca8]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x85) [0x7f5841e32d65]
python3(_start+0x21) [0x682c81]
ERROR while running Cbc. Signal SIGABRT caught. Getting stack trace.
/root/dao/prog/miplib/lib/libCbc.so(_Z15CbcCrashHandleri+0xf2) [0x7f5817cc5672]
/lib/x86_64-linux-gnu/libc.so.6(+0x3fdf0) [0x7f5841e48df0]
/lib/x86_64-linux-gnu/libc.so.6(+0x9495c) [0x7f5841e9d95c]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x12) [0x7f5841e48cc2]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x22) [0x7f5841e314ac]
/root/dao/prog/miplib/lib/libCbc.so(+0x79f38) [0x7f5817bd6f38]
/lib/x86_64-linux-gnu/libc.so.6(+0x3fdf0) [0x7f5841e48df0]
/root/dao/prog/miplib/lib/libCoinUtils.so.0(_ZN18CoinMessageHandler13internalPrintEv+0xe5) [0x7f5817545ab5]
/root/dao/prog/miplib/lib/libCoinUtils.so.0(_ZN18CoinMessageHandler6finishEv+0x2b) [0x7f5817546f4b]
/root/dao/prog/miplib/lib/libCoinUtils.so.0(_ZN18CoinMessageHandlerlsE17CoinMessageMarker+0x5d) [0x7f58175479fd]
/root/dao/prog/miplib/lib/libCgl.so.0(_ZN13CglPreProcess11postProcessER18OsiSolverInterfacei+0x854) [0x7f5817a54fc4]
/root/dao/prog/miplib/lib/libCbc.so(_Z8CbcMain1St5dequeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EER8CbcModelR13CbcParametersPFiPS8_iEP9ampl_info+0x1bfff) [0x7f5817cf757f]
/root/dao/prog/miplib/lib/libCbc.so(Cbc_solve+0x2418) [0x7f5817d5c358]
/root/dao/venv/day_ahead/lib/python3.13/site-packages/_cffi_backend.cpython-313-x86_64-linux-gnu.so(+0x2d052) [0x7f583543b052]
/root/dao/venv/day_ahead/lib/python3.13/site-packages/_cffi_backend.cpython-313-x86_64-linux-gnu.so(+0x2b978) [0x7f5835439978]
/root/dao/venv/day_ahead/lib/python3.13/site-packages/_cffi_backend.cpython-313-x86_64-linux-gnu.so(cffistatic_ffi_call+0x178) [0x7f5835439af3]
/root/dao/venv/day_ahead/lib/python3.13/site-packages/_cffi_backend.cpython-313-x86_64-linux-gnu.so(+0x135e7) [0x7f58354215e7]
python3(_PyObject_MakeTpCall+0x27b) [0x54726b]
python3(_PyEval_EvalFrameDefault+0x2661) [0x563da1]
python3(PyEval_EvalCode+0xcc) [0x55d48c]
python3() [0x6ab8d1]
python3() [0x6a899c]
python3() [0x6b9943]
python3() [0x6b93e3]
python3() [0x6b921e]
python3(Py_RunMain+0x3c1) [0x6b86f1]
python3(Py_BytesMain+0x2b) [0x6838eb]
/lib/x86_64-linux-gnu/libc.so.6(+0x29ca8) [0x7f5841e32ca8]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x85) [0x7f5841e32d65]
python3(_start+0x21) [0x682c81]
en
2026-04-12 21:00:00 info: Day Ahead Optimalisering versie: 2026.04.2
2026-04-12 21:00:00 info: Day Ahead Optimalisering gestart op: 12-04-2026 21:00:00
2026-04-12 21:00:00 info: Day Ahead Optimalisatie gestart: 12-04-2026 21:00:00 taak: calc_optimum
2026-04-12 21:00:00 info: Debug = False
2026-04-12 21:00:00 info: Zelf berekende baseload
2026-04-12 21:00:00 fout: Er is een fout opgetreden, zie de fout-tracering
Traceback (most recent call last):
File "/root/dao/prog/da_base.py", line 694, in run_task_function
getattr(self, run_task["function"])()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/root/dao/prog/da_base.py", line 546, in calc_optimum
dacalc.calc_optimum()
~~~~~~~~~~~~~~~~~~~^^
File "/root/dao/prog/day_ahead.py", line 288, in calc_optimum
solar_prog = self.calc_solar_predictions(
self.solar[s], start_interval_dt, end, self.interval
)
File "/root/dao/prog/da_base.py", line 587, in calc_solar_predictions
solar_prog = solar_predictor.predict_solar_device(
solar_option, vanaf, tot
)
File "/root/dao/prog/solar_predictor.py", line 1024, in predict_solar_device
prediction = self.predict(weather_data)
File "/root/dao/prog/solar_predictor.py", line 702, in predict
prediction = self.model.predict(featured_df)
File "/root/dao/venv/day_ahead/lib/python3.13/site-packages/xgboost/core.py", line 751, in inner_f
return func(**kwargs)
File "/root/dao/venv/day_ahead/lib/python3.13/site-packages/xgboost/sklearn.py", line 1446, in predict
predts = self.get_booster().inplace_predict(
data=X,
...<4 lines>...
validate_features=validate_features,
)
File "/root/dao/venv/day_ahead/lib/python3.13/site-packages/xgboost/core.py", line 751, in inner_f
return func(**kwargs)
File "/root/dao/venv/day_ahead/lib/python3.13/site-packages/xgboost/core.py", line 2854, in inplace_predict
self._validate_features(fns)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^
File "/root/dao/venv/day_ahead/lib/python3.13/site-packages/xgboost/core.py", line 3429, in _validate_features
raise ValueError(msg.format(self.feature_names, feature_names))
ValueError: feature_names mismatch: ['temperature', 'irradiance', 'day_of_week', 'hour', 'quarter', 'month', 'season', 'week_nr'] ['temperature', 'irradiance', 'windvelocity', 'day_of_week', 'hour', 'quarter', 'month', 'season', 'week_nr']
training data did not have the following fields: windvelocity
feature_names mismatch: ['temperature', 'irradiance', 'day_of_week', 'hour', 'quarter', 'month', 'season', 'week_nr'] ['temperature', 'irradiance', 'windvelocity', 'day_of_week', 'hour', 'quarter', 'month', 'season', 'week_nr']
training data did not have the following fields: windvelocity
Ja, om het makkelijk te houden, heb ik 2 TOU gedefinieerd aan wie ik beide elke keer schrijf met de waardes van SOC en Power.
Program 1: 00:00
Program 2: 23.55
De feedin is een van de triggers voor het script en dit is de snelheid om te laden of te ontladen.
In mijn config staan enkel variablen gedefineerd die ik (nog) niet gebruik.
[
Voor 17% gewijzigd door
The Source op 12-04-2026 21:33
]