Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.Predictors.Validation.LinearInputDayOfAdjustment.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.LinearInputDayOfAdjustment,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.Predictors.Validation.LinearInputDayOfAdjustment") translateModel(Buildings.Controls.Predictors.Validation.LinearInputDayOfAdjustment,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.Predictors.Validation.LinearInputDayOfAdjustment") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.564/2.564, allocations: 287.5 MB / 303.2 MB, free: 8.23 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.001287/0.001287, allocations: 179.3 kB / 371.8 MB, free: 10.82 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.076/2.076, 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.0009697/0.0009691, allocations: 97.73 kB / 0.7438 GB, free: 6.551 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005208/0.000521, allocations: 10.72 kB / 0.8667 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2291/0.2296, allocations: 115.3 MB / 0.9793 GB, free: 28.22 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9487/1.178, allocations: 145.6 MB / 1.121 GB, free: 15.63 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000281/1.179, allocations: 80.11 kB / 1.122 GB, free: 15.63 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.2205/1.399, allocations: 67.28 MB / 1.187 GB, free: 7.727 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.445e-06/1.399, allocations: 3.938 kB / 1.187 GB, free: 7.723 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0001929/1.399, allocations: 112 kB / 1.187 GB, free: 7.613 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1841 * Number of variables: 1841 Notification: Performance of Generate backend data structure: time 0.01386/1.413, allocations: 5.758 MB / 1.193 GB, free: 2.387 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/1.413, allocations: 12.03 kB / 1.193 GB, free: 2.375 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001999/1.415, allocations: 0.6228 MB / 1.194 GB, free: 1.746 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006694/1.422, allocations: 1.87 MB / 1.195 GB, free: 15.98 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005339/1.423, allocations: 431.2 kB / 1.196 GB, free: 15.77 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001346/1.424, allocations: 0.6319 MB / 1.196 GB, free: 15.34 MB / 0.7292 GB Error: An independent subset of the model has imbalanced number of equations (1794) and variables (195). variables: integrator.y integrator.u TSam.y TSam.u TSam.firstTrigger TSam.sampleTrigger err.y err.u2 err.u1 to_degC.y to_degC.u PCon.y PCon.u2 PCon.u1 POffSet.y TOut.y baseLoad.TOut baseLoad.TOut_in_internal baseLoad.idxSam baseLoad.intTOut 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] baseLoad.ECon equations: 1 : baseLoad.sampleTrigger = sample(1, baseLoad.samStart, 3600.0) 2 : der(baseLoad.intTOut) = baseLoad.TOut_in_internal 3 : 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; 4 : TOut.y = TOut.offset + (if time < TOut.startTime then 0.0 else if time < TOut.startTime + TOut.duration then (time - TOut.startTime) * TOut.height / TOut.duration else TOut.height) 5 : POffSet.y = POffSet.k 6 : PCon.y = PCon.k1 * PCon.u1 + PCon.k2 * PCon.u2 7 : to_degC.y = -273.15 + to_degC.u 8 : err.y = err.k1 * err.u1 + err.k2 * err.u2 9 : TSam.sampleTrigger = sample(4, TSam.startTime, TSam.samplePeriod) 10 : der(integrator.y) = integrator.k * integrator.u 11 : baseLoad.TOut = baseLoad.TOut_in_internal 12 : PCon.u1 = POffSet.y 13 : TOut.y = TSam.u 14 : TSam.y = baseLoad.TOut 15 : TSam.y = to_degC.u 16 : PCon.y = err.u2 17 : PCon.y = integrator.u 18 : baseLoad.ECon = integrator.y 19 : PCon.u2 = to_degC.y 20 : baseLoad.PPre[1] = err.u1 21 : when TSam.sampleTrigger then TSam.firstTrigger := time <= TSam.startTime + 0.5 * TSam.samplePeriod; end when; 22 : when {TSam.sampleTrigger, initial()} then TSam.y := TSam.u; end when; Notification: Performance of preOpt clockPartitioning (simulation) : time 0.003259/1.427, allocations: 1.362 MB / 1.198 GB, free: 14.22 MB / 0.7292 GB Error: pre-optimization module clockPartitioning (simulation) failed.