Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.Predictors.Validation.SineInputDayOfAdjustment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.Predictors.Validation.SineInputDayOfAdjustment,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.Predictors.Validation.SineInputDayOfAdjustment") translateModel(Buildings.Controls.Predictors.Validation.SineInputDayOfAdjustment,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.Predictors.Validation.SineInputDayOfAdjustment") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.56/2.56, allocations: 287.5 MB / 303.2 MB, free: 8.234 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.001353/0.001352, allocations: 178.1 kB / 371.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.1/2.1, allocations: 205.4 MB / 0.6305 GB, free: 10.56 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.0009343/0.0009343, allocations: 107.5 kB / 0.7438 GB, free: 6.543 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007816/0.0007816, allocations: 11.28 kB / 0.8667 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2329, allocations: 115.3 MB / 0.9793 GB, free: 28.2 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9562/1.189, allocations: 145.3 MB / 1.121 GB, free: 15.8 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000351/1.19, allocations: 84.28 kB / 1.121 GB, free: 15.8 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.1353/1.325, allocations: 37.16 MB / 1.158 GB, free: 17.25 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.046e-06/1.325, allocations: 0 / 1.158 GB, free: 17.25 MB / 0.698 GB Notification: Performance of Transformations before backend: time 9.253e-05/1.325, allocations: 72 kB / 1.158 GB, free: 17.18 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1093 * Number of variables: 1093 Notification: Performance of Generate backend data structure: time 0.008/1.333, allocations: 3.565 MB / 1.161 GB, free: 13.94 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/1.333, allocations: 16.03 kB / 1.161 GB, free: 13.92 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009305/1.334, allocations: 356.6 kB / 1.161 GB, free: 13.57 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003676/1.338, allocations: 1.176 MB / 1.163 GB, free: 12.45 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002673/1.338, allocations: 251.2 kB / 1.163 GB, free: 12.33 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007396/1.339, allocations: 363.9 kB / 1.163 GB, free: 12.09 MB / 0.698 GB Error: An independent subset of the model has imbalanced number of equations (1054) and variables (175). variables: baseLoad.idxSam baseLoad.PPreHisSet[3,24] baseLoad.PPreHisSet[3,23] baseLoad.PPreHisSet[3,22] baseLoad.PPreHisSet[3,21] baseLoad.PPreHisSet[3,20] baseLoad.PPreHisSet[3,19] baseLoad.PPreHisSet[3,18] baseLoad.PPreHisSet[3,17] baseLoad.PPreHisSet[3,16] baseLoad.PPreHisSet[3,15] baseLoad.PPreHisSet[3,14] baseLoad.PPreHisSet[3,13] baseLoad.PPreHisSet[3,12] baseLoad.PPreHisSet[3,11] baseLoad.PPreHisSet[3,10] baseLoad.PPreHisSet[3,9] baseLoad.PPreHisSet[3,8] baseLoad.PPreHisSet[3,7] baseLoad.PPreHisSet[3,6] baseLoad.PPreHisSet[3,5] baseLoad.PPreHisSet[3,4] baseLoad.PPreHisSet[3,3] baseLoad.PPreHisSet[3,2] baseLoad.PPreHisSet[3,1] baseLoad.PPreHisSet[2,24] baseLoad.PPreHisSet[2,23] baseLoad.PPreHisSet[2,22] baseLoad.PPreHisSet[2,21] baseLoad.PPreHisSet[2,20] baseLoad.PPreHisSet[2,19] baseLoad.PPreHisSet[2,18] baseLoad.PPreHisSet[2,17] baseLoad.PPreHisSet[2,16] baseLoad.PPreHisSet[2,15] baseLoad.PPreHisSet[2,14] baseLoad.PPreHisSet[2,13] baseLoad.PPreHisSet[2,12] baseLoad.PPreHisSet[2,11] baseLoad.PPreHisSet[2,10] baseLoad.PPreHisSet[2,9] baseLoad.PPreHisSet[2,8] baseLoad.PPreHisSet[2,7] baseLoad.PPreHisSet[2,6] baseLoad.PPreHisSet[2,5] baseLoad.PPreHisSet[2,4] baseLoad.PPreHisSet[2,3] baseLoad.PPreHisSet[2,2] baseLoad.PPreHisSet[2,1] baseLoad.PPreHisSet[1,24] baseLoad.PPreHisSet[1,23] baseLoad.PPreHisSet[1,22] baseLoad.PPreHisSet[1,21] baseLoad.PPreHisSet[1,20] baseLoad.PPreHisSet[1,19] baseLoad.PPreHisSet[1,18] baseLoad.PPreHisSet[1,17] baseLoad.PPreHisSet[1,16] baseLoad.PPreHisSet[1,15] baseLoad.PPreHisSet[1,14] baseLoad.PPreHisSet[1,13] baseLoad.PPreHisSet[1,12] baseLoad.PPreHisSet[1,11] baseLoad.PPreHisSet[1,10] baseLoad.PPreHisSet[1,9] baseLoad.PPreHisSet[1,8] baseLoad.PPreHisSet[1,7] baseLoad.PPreHisSet[1,6] baseLoad.PPreHisSet[1,5] baseLoad.PPreHisSet[1,4] baseLoad.PPreHisSet[1,3] baseLoad.PPreHisSet[1,2] baseLoad.PPreHisSet[1,1] baseLoad.PPreHis[3,24] baseLoad.PPreHis[3,23] baseLoad.PPreHis[3,22] baseLoad.PPreHis[3,21] baseLoad.PPreHis[3,20] baseLoad.PPreHis[3,19] baseLoad.PPreHis[3,18] baseLoad.PPreHis[3,17] baseLoad.PPreHis[3,16] baseLoad.PPreHis[3,15] baseLoad.PPreHis[3,14] baseLoad.PPreHis[3,13] baseLoad.PPreHis[3,12] baseLoad.PPreHis[3,11] baseLoad.PPreHis[3,10] baseLoad.PPreHis[3,9] baseLoad.PPreHis[3,8] baseLoad.PPreHis[3,7] baseLoad.PPreHis[3,6] baseLoad.PPreHis[3,5] baseLoad.PPreHis[3,4] baseLoad.PPreHis[3,3] baseLoad.PPreHis[3,2] baseLoad.PPreHis[3,1] baseLoad.PPreHis[2,24] baseLoad.PPreHis[2,23] baseLoad.PPreHis[2,22] baseLoad.PPreHis[2,21] baseLoad.PPreHis[2,20] baseLoad.PPreHis[2,19] baseLoad.PPreHis[2,18] baseLoad.PPreHis[2,17] baseLoad.PPreHis[2,16] baseLoad.PPreHis[2,15] baseLoad.PPreHis[2,14] baseLoad.PPreHis[2,13] baseLoad.PPreHis[2,12] baseLoad.PPreHis[2,11] baseLoad.PPreHis[2,10] baseLoad.PPreHis[2,9] baseLoad.PPreHis[2,8] baseLoad.PPreHis[2,7] baseLoad.PPreHis[2,6] baseLoad.PPreHis[2,5] baseLoad.PPreHis[2,4] baseLoad.PPreHis[2,3] baseLoad.PPreHis[2,2] baseLoad.PPreHis[2,1] baseLoad.PPreHis[1,24] baseLoad.PPreHis[1,23] baseLoad.PPreHis[1,22] baseLoad.PPreHis[1,21] baseLoad.PPreHis[1,20] baseLoad.PPreHis[1,19] baseLoad.PPreHis[1,18] baseLoad.PPreHis[1,17] baseLoad.PPreHis[1,16] baseLoad.PPreHis[1,15] baseLoad.PPreHis[1,14] baseLoad.PPreHis[1,13] baseLoad.PPreHis[1,12] baseLoad.PPreHis[1,11] baseLoad.PPreHis[1,10] baseLoad.PPreHis[1,9] baseLoad.PPreHis[1,8] baseLoad.PPreHis[1,7] baseLoad.PPreHis[1,6] baseLoad.PPreHis[1,5] baseLoad.PPreHis[1,4] baseLoad.PPreHis[1,3] baseLoad.PPreHis[1,2] baseLoad.PPreHis[1,1] baseLoad.EHisAve baseLoad.EActAve baseLoad._storeHistory baseLoad._typeOfDay[1] baseLoad.iSam[12] baseLoad.iSam[11] baseLoad.iSam[10] baseLoad.iSam[9] baseLoad.iSam[8] baseLoad.iSam[7] baseLoad.iSam[6] baseLoad.iSam[5] baseLoad.iSam[4] baseLoad.iSam[3] baseLoad.iSam[2] baseLoad.iSam[1] baseLoad.sampleTrigger baseLoad.adj baseLoad.PPre[12] baseLoad.PPre[11] baseLoad.PPre[10] baseLoad.PPre[9] baseLoad.PPre[8] baseLoad.PPre[7] baseLoad.PPre[6] baseLoad.PPre[5] baseLoad.PPre[4] baseLoad.PPre[3] baseLoad.PPre[2] baseLoad.PPre[1] equations: 1 : baseLoad.sampleTrigger = sample(1, baseLoad.samStart, 3600.0) 2 : algorithm when baseLoad.sampleTrigger then baseLoad.PPre[:] := {baseLoad.PPre[1] * baseLoad.adj, baseLoad.PPre[2] * baseLoad.adj, baseLoad.PPre[3] * baseLoad.adj, baseLoad.PPre[4] * baseLoad.adj, baseLoad.PPre[5] * baseLoad.adj, baseLoad.PPre[6] * baseLoad.adj, baseLoad.PPre[7] * baseLoad.adj, baseLoad.PPre[8] * baseLoad.adj, baseLoad.PPre[9] * baseLoad.adj, baseLoad.PPre[10] * baseLoad.adj, baseLoad.PPre[11] * baseLoad.adj, baseLoad.PPre[12] * baseLoad.adj}; if baseLoad.EHisAve > 1e-15 or baseLoad.EHisAve < -1e-15 then baseLoad.adj := min(baseLoad.maxAdjFac, max(baseLoad.minAdjFac, baseLoad.EActAve / baseLoad.EHisAve)); else baseLoad.adj := 1.0; end if; for i in -4:-2 loop if Modelica.Math.BooleanVectors.allTrue({baseLoad.PPreHisSet[baseLoad._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$baseLoad.getIndex(baseLoad.iSam[1] + -4, 24)], baseLoad.PPreHisSet[baseLoad._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$baseLoad.getIndex(baseLoad.iSam[1] + -3, 24)], baseLoad.PPreHisSet[baseLoad._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$baseLoad.getIndex(baseLoad.iSam[1] + -2, 24)]}) then baseLoad.EHisAve := baseLoad.EHisAve + 3600.0 * baseLoad.PPreHis[baseLoad._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$baseLoad.getIndex(1 + baseLoad.idxSam + i, 24)]; baseLoad.EActAve := baseLoad.EActAve + 3600.0 * baseLoad.P[baseLoad._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$baseLoad.getIndex(1 + baseLoad.idxSam + i, 24),baseLoad.iHis[baseLoad._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$baseLoad.getIndex(1 + baseLoad.idxSam + i, 24)]]; else baseLoad.EHisAve := 0.0; baseLoad.EActAve := 0.0; end if; end for; baseLoad.EActAve := 0.0; baseLoad.EHisAve := 0.0; if baseLoad._storeHistory or pre(baseLoad._storeHistory) then baseLoad.PPreHis[baseLoad._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$baseLoad.getIndex(1 + baseLoad.idxSam, 24)] := baseLoad.PPre[1]; baseLoad.PPreHisSet[baseLoad._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$baseLoad.getIndex(1 + baseLoad.idxSam, 24)] := baseLoad.iHis[baseLoad._typeOfDay[1],baseLoad.iSam[1]] > 0; end if; for i in 1:12 loop baseLoad.iSam[i] := Buildings.Controls.Predictors.ElectricalLoad$baseLoad.incrementIndex(baseLoad.iSam[i], 24); end for; end when; Notification: Performance of preOpt clockPartitioning (simulation) : time 0.002648/1.342, allocations: 1.164 MB / 1.164 GB, free: 11.12 MB / 0.698 GB Error: pre-optimization module clockPartitioning (simulation) failed.