Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Predictors.Validation.LinearInputDayOfAdjustment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.Predictors.Validation.LinearInputDayOfAdjustment,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.Predictors.Validation.LinearInputDayOfAdjustment") translateModel(Buildings.Controls.Predictors.Validation.LinearInputDayOfAdjustment,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.Predictors.Validation.LinearInputDayOfAdjustment") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.598/1.598, allocations: 297.8 MB / 313.7 MB, free: 172 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009027/0.0009028, allocations: 172.5 kB / 384.6 MB, free: 10.89 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.3/1.3, allocations: 223.2 MB / 0.6626 GB, free: 4.344 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007741/0.0007739, allocations: 91.88 kB / 0.7808 GB, free: 50.11 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004168/0.0004169, allocations: 16 kB / 0.9088 GB, free: 2.918 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6484/0.6488, allocations: 120.3 MB / 1.026 GB, free: 55.89 MB / 0.7292 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1859/0.8347, allocations: 148.9 MB / 1.172 GB, free: 12.36 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002639/0.8351, allocations: 79.86 kB / 1.172 GB, free: 12.29 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.137/0.9721, allocations: 68.72 MB / 1.239 GB, free: 8.312 MB / 0.8073 GB Notification: Performance of FrontEnd: time 3.687e-06/0.9721, allocations: 0 / 1.239 GB, free: 8.312 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 0.0001335/0.9723, allocations: 119.9 kB / 1.239 GB, free: 8.195 MB / 0.8073 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.008581/0.9808, allocations: 5.761 MB / 1.245 GB, free: 2.34 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.9809, allocations: 8.031 kB / 1.245 GB, free: 2.332 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001243/0.9821, allocations: 0.6236 MB / 1.245 GB, free: 1.703 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003544/0.9857, allocations: 1.874 MB / 1.247 GB, free: 15.79 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003185/0.986, allocations: 428.9 kB / 1.248 GB, free: 15.37 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007131/0.9868, allocations: 0.6293 MB / 1.248 GB, free: 14.74 MB / 0.823 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.001964/0.9887, allocations: 1.356 MB / 1.249 GB, free: 13.36 MB / 0.823 GB Error: pre-optimization module clockPartitioning (simulation) failed.