Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Predictors.Validation.SineInputDayOfAdjustment.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.SineInputDayOfAdjustment,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Predictors.Validation.SineInputDayOfAdjustment") translateModel(Buildings.Controls.Predictors.Validation.SineInputDayOfAdjustment,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Predictors.Validation.SineInputDayOfAdjustment") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.349/1.349, allocations: 252 MB / 267.9 MB, free: 10.92 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.001089/0.001089, allocations: 188.2 kB / 327.6 MB, free: 2.164 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.581/1.581, allocations: 205.4 MB / 0.5785 GB, free: 20.24 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.0007731/0.000773, allocations: 98.23 kB / 0.6831 GB, free: 12.85 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004156/0.0004159, allocations: 10.75 kB / 0.7974 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2136/0.214, allocations: 106.3 MB / 0.9012 GB, free: 63.74 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1723/0.3863, allocations: 139.2 MB / 1.037 GB, free: 4.375 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002591/0.3866, allocations: 79.95 kB / 1.037 GB, free: 4.297 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.4905/0.8772, allocations: 37.17 MB / 1.074 GB, free: 140.5 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.794e-06/0.8772, allocations: 0 / 1.074 GB, free: 140.5 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001558/0.8774, allocations: 67.94 kB / 1.074 GB, free: 140.5 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.007484/0.8849, allocations: 3.581 MB / 1.077 GB, free: 139.2 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.8849, allocations: 9.781 kB / 1.077 GB, free: 139.2 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001074/0.886, allocations: 357.9 kB / 1.077 GB, free: 139 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002561/0.8886, allocations: 1.171 MB / 1.079 GB, free: 138.6 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002159/0.8888, allocations: 246.6 kB / 1.079 GB, free: 138.6 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000563/0.8894, allocations: 364.1 kB / 1.079 GB, free: 138.6 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.001855/0.8912, allocations: 1.166 MB / 1.08 GB, free: 138.4 MB / 0.698 GB Error: pre-optimization module clockPartitioning (simulation) failed.