Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Predictors.Validation.ConstantInputDayOfAdjustment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.Predictors.Validation.ConstantInputDayOfAdjustment,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Predictors.Validation.ConstantInputDayOfAdjustment") translateModel(Buildings.Controls.Predictors.Validation.ConstantInputDayOfAdjustment,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Predictors.Validation.ConstantInputDayOfAdjustment") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.301/1.301, allocations: 252 MB / 267.9 MB, free: 10.91 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009469/0.0009471, allocations: 190 kB / 327.6 MB, free: 2.141 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.483/1.483, allocations: 205.4 MB / 0.5785 GB, free: 20.48 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007521/0.0007521, allocations: 90.3 kB / 0.6831 GB, free: 13.28 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003814/0.0003815, allocations: 9 kB / 0.7974 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1886/0.189, allocations: 106.3 MB / 0.9012 GB, free: 64.04 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1601/0.3491, allocations: 138 MB / 1.036 GB, free: 5.801 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002127/0.3494, allocations: 87.94 kB / 1.036 GB, free: 5.715 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.4294/0.7788, allocations: 36.39 MB / 1.072 GB, free: 140.2 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.705e-06/0.7788, allocations: 3.703 kB / 1.072 GB, free: 140.2 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001651/0.779, allocations: 65.34 kB / 1.072 GB, free: 140.2 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: 1085 * Number of variables: 1085 Notification: Performance of Generate backend data structure: time 0.009886/0.7889, allocations: 3.528 MB / 1.075 GB, free: 139 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.789, allocations: 10.56 kB / 1.075 GB, free: 139 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001756/0.7907, allocations: 350.2 kB / 1.076 GB, free: 138.8 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003507/0.7943, allocations: 1.157 MB / 1.077 GB, free: 138.4 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003674/0.7947, allocations: 246.2 kB / 1.077 GB, free: 138.4 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001218/0.7959, allocations: 366.5 kB / 1.077 GB, free: 138.4 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.002144/0.798, allocations: 1.142 MB / 1.078 GB, free: 138.2 MB / 0.698 GB Error: pre-optimization module clockPartitioning (simulation) failed.