Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.Predictors.Examples.BESTEST.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.Predictors.Examples.BESTEST,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Controls.Predictors.Examples.BESTEST") translateModel(Buildings.Controls.Predictors.Examples.BESTEST,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Controls.Predictors.Examples.BESTEST") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.724/1.724, allocations: 288.4 MB / 303.4 MB, free: 8.195 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009604/0.0009605, allocations: 172.5 kB / 372 MB, free: 10.25 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.568/1.568, allocations: 205.4 MB / 0.6307 GB, free: 9.961 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008698/0.0008696, allocations: 77.53 kB / 0.7441 GB, free: 5.898 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004994/0.0004995, allocations: 11.41 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3028/0.3033, allocations: 115.3 MB / 0.9796 GB, free: 27.66 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Predictors.Examples.BESTEST): time 0.9289/1.232, allocations: 207.8 MB / 1.182 GB, free: 1.52 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.07739/1.31, allocations: 36.2 MB / 1.218 GB, free: 4.051 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.02577/1.336, allocations: 263.6 kB / 1.218 GB, free: 3.941 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0251/1.361, allocations: 6.076 MB / 1.224 GB, free: 60 kB / 0.7448 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/BoundaryConditions/WeatherData/BaseClasses/getHeaderElementTMY3.mo:2:1-105:25:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘ contains a call to impure function ‘Modelica.Utilities.Streams.readLine‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/BoundaryConditions/WeatherData/BaseClasses/getLongitudeTMY3.mo:2:1-48:21:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getLongitudeTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/BoundaryConditions/WeatherData/BaseClasses/getLatitudeTMY3.mo:2:1-48:20:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getLatitudeTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/BoundaryConditions/WeatherData/BaseClasses/getTimeZoneTMY3.mo:2:1-47:20:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getTimeZoneTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. Notification: Performance of NFTyping.typeBindings: time 0.03263/1.393, allocations: 5.382 MB / 1.229 GB, free: 11.1 MB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.02176/1.415, allocations: 4.577 MB / 1.234 GB, free: 6.539 MB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.07886/1.494, allocations: 50.43 MB / 1.283 GB, free: 4.035 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.03727/1.531, allocations: 16.91 MB / 1.299 GB, free: 3.016 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.04268/1.574, allocations: 19.02 MB / 1.318 GB, free: 15.94 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.03441/1.609, allocations: 15.74 MB / 1.333 GB, free: 152 kB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 0.01157/1.62, allocations: 1.297 MB / 1.335 GB, free: 14.85 MB / 0.8698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02553/1.646, allocations: 4.557 MB / 1.339 GB, free: 10.29 MB / 0.8698 GB Notification: Performance of NFScalarize.scalarize: time 0.02116/1.667, allocations: 11.86 MB / 1.351 GB, free: 14.39 MB / 0.8855 GB Notification: Performance of NFVerifyModel.verify: time 0.01998/1.687, allocations: 7.195 MB / 1.358 GB, free: 7.176 MB / 0.8855 GB Notification: Performance of NFConvertDAE.convert: time 0.07412/1.761, allocations: 49.89 MB / 1.406 GB, free: 5.168 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 1.046e-05/1.761, allocations: 4 kB / 1.406 GB, free: 5.164 MB / 0.9323 GB Notification: Performance of FrontEnd: time 2.956e-06/1.761, allocations: 3.938 kB / 1.406 GB, free: 5.16 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.003382/1.765, allocations: 0 / 1.406 GB, free: 5.16 MB / 0.9323 GB Error: Too many equations, over-determined system. The model has 4359 equation(s) and 4357 variable(s). Error: algorithm when preReg.sampleTrigger then preReg._storeHistory := if not pre(preReg._storeHistory) and not Buildings.Controls.Predictors.Examples.BESTEST.preReg.isMidNight(time) then false else preReg.storeHistory; preReg._typeOfDay := Buildings.Controls.Predictors.Examples.BESTEST.preReg.getTypeOfDays(time, preReg.typeOfDay, preReg.dt, 1); preReg.idxSam := Buildings.Controls.Predictors.Examples.BESTEST.preReg.getIndex(preReg.iSam[1] - 1, 24); if preReg._storeHistory or pre(preReg._storeHistory) then if time - preReg.tLast > 1e-05 then preReg.iHis[pre(preReg._typeOfDay[1]),preReg.idxSam] := Buildings.Controls.Predictors.Examples.BESTEST.preReg.incrementIndex(preReg.iHis[pre(preReg._typeOfDay[1]),preReg.idxSam], 10); if preReg.iHis[pre(preReg._typeOfDay[1]),preReg.idxSam] == 10 then preReg.historyComplete[pre(preReg._typeOfDay[1]),preReg.idxSam] := true; end if; preReg.PAve := (preReg.ECon - preReg.ELast) / (time - preReg.tLast); preReg.P[pre(preReg._typeOfDay[1]),preReg.idxSam,preReg.iHis[pre(preReg._typeOfDay[1]),preReg.idxSam]] := preReg.PAve; preReg.T[pre(preReg._typeOfDay[1]),preReg.idxSam,preReg.iHis[pre(preReg._typeOfDay[1]),preReg.idxSam]] := (preReg.intTOut - preReg.intTOutLast) / (time - preReg.tLast); end if; end if; preReg.ELast := preReg.ECon; preReg.intTOutLast := preReg.intTOut; preReg.tLast := time; for m/* iter index 0 */ in 1:1 loop preReg.PPre[m] := Buildings.Controls.Predictors.BaseClasses.weatherRegression(array(preReg.P[preReg._typeOfDay[m],preReg.iSam[m],i] for i in 1:10), if preReg.historyComplete[preReg._typeOfDay[m],preReg.iSam[m]] then 10 else preReg.iHis[preReg._typeOfDay[m],preReg.iSam[m]], if m == 1 then preReg.TOut_in_internal else preReg.TOutFut_in_internal[m - 1], array(preReg.T[preReg._typeOfDay[m],preReg.iSam[m],i] for i in 1:10)); end for; if preReg._storeHistory or pre(preReg._storeHistory) then preReg.PPreHis[preReg._typeOfDay[1],Buildings.Controls.Predictors.Examples.BESTEST.preReg.getIndex(preReg.idxSam + 1, 24)] := preReg.PPre[1]; preReg.PPreHisSet[preReg._typeOfDay[1],Buildings.Controls.Predictors.Examples.BESTEST.preReg.getIndex(preReg.idxSam + 1, 24)] := preReg.iHis[preReg._typeOfDay[1],preReg.iSam[1]] > 0; end if; preReg.EHisAve := 0.0; preReg.EActAve := 0.0; for i/* iter index 0 */ in -4:-2 loop if Modelica.Math.BooleanVectors.allTrue(array(preReg.PPreHisSet[preReg._typeOfDay[1],Buildings.Controls.Predictors.Examples.BESTEST.preReg.getIndex(preReg.iSam[1] + i, 24)] for i in -4:-2)) then preReg.EHisAve := preReg.EHisAve + preReg.dt * preReg.PPreHis[preReg._typeOfDay[1],Buildings.Controls.Predictors.Examples.BESTEST.preReg.getIndex(preReg.idxSam + i + 1, 24)]; preReg.EActAve := preReg.EActAve + preReg.dt * preReg.P[preReg._typeOfDay[1],Buildings.Controls.Predictors.Examples.BESTEST.preReg.getIndex(preReg.idxSam + i + 1, 24),preReg.iHis[preReg._typeOfDay[1],Buildings.Controls.Predictors.Examples.BESTEST.preReg.getIndex(preReg.idxSam + i + 1, 24)]]; else preReg.EHisAve := 0.0; preReg.EActAve := 0.0; end if; end for; if preReg.EHisAve > 1e-15 or preReg.EHisAve < -1e-15 then preReg.adj := min(preReg.maxAdjFac, max(preReg.minAdjFac, preReg.EActAve / preReg.EHisAve)); else preReg.adj := 1.0; end if; preReg.PPre[:] := {preReg.PPre[1] * preReg.adj}; for i/* iter index 0 */ in 1:1 loop preReg.iSam[i] := Buildings.Controls.Predictors.Examples.BESTEST.preReg.incrementIndex(preReg.iSam[i], 24); end for; end when; has size 1740 but 19 variables (preReg.ECon, preReg.PPre[1], preReg.typeOfDay[1], preReg.typeOfDay[2], preReg.storeHistory, preReg.adj, preReg.PAve, preReg.sampleTrigger, preReg.ELast, preReg.tLast, preReg.iSam[1], preReg._typeOfDay[1], preReg._storeHistory, preReg.EActAve, preReg.EHisAve, preReg.intTOut, preReg.intTOutLast, preReg.idxSam, preReg.TOut_in_internal)