Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.DemandResponse.Examples.ClientLBNL90.conf.json Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: translateModel(Buildings.Controls.DemandResponse.Examples.ClientLBNL90,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.DemandResponse.Examples.ClientLBNL90") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.009524/0.009524, allocations: 110.9 kB / 15.06 MB, free: 5.965 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001099/0.001099, allocations: 184.7 kB / 15.95 MB, free: 5.93 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 1.876/1.876, allocations: 194.6 MB / 211.3 MB, free: 11.28 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 2.153/2.153, allocations: 236.2 MB / 492.6 MB, free: 11.37 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004795/0.0004797, allocations: 12 kB / 0.5869 GB, free: 2.184 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5585/0.559, allocations: 98.69 MB / 0.6833 GB, free: 16.61 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1986/0.7577, allocations: 136.4 MB / 0.8165 GB, free: 5.73 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002786/0.758, allocations: 87.91 kB / 0.8166 GB, free: 5.645 MB / 0.6355 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2331:7-2332:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$bui90.getTableValueNoDer. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$bui90.getTableTimeTmin. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$bui90.getTableTimeTmax. Notification: Performance of FrontEnd - DAE generated: time 1.612/2.37, allocations: 260.1 MB / 1.071 GB, free: 69.42 MB / 0.7293 GB Notification: Performance of FrontEnd: time 2.92e-06/2.37, allocations: 0 / 1.071 GB, free: 69.42 MB / 0.7293 GB Notification: Performance of Transformations before backend: time 0.0007406/2.371, allocations: 0.666 MB / 1.071 GB, free: 68.76 MB / 0.7293 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11293 * Number of variables: 11293 Notification: Performance of Generate backend data structure: time 0.07627/2.447, allocations: 34.82 MB / 1.105 GB, free: 33.74 MB / 0.7293 GB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/2.447, allocations: 11.97 kB / 1.105 GB, free: 33.73 MB / 0.7293 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01231/2.46, allocations: 3.611 MB / 1.109 GB, free: 30.07 MB / 0.7293 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02993/2.49, allocations: 11.17 MB / 1.12 GB, free: 18.83 MB / 0.7293 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002712/2.493, allocations: 2.518 MB / 1.122 GB, free: 16.31 MB / 0.7293 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009719/2.502, allocations: 3.75 MB / 1.126 GB, free: 12.56 MB / 0.7293 GB Error: An independent subset of the model has imbalanced number of equations (11252) and variables (308). variables: yShed.y ene.y ene.u relErrWeather.y relErrWeather.u relErrAverage.y relErrAverage.u errorWeather.y errorWeather.u2 errorWeather.u1 clientWeather.TOut clientWeather.switch.y clientWeather.switch.u3 clientWeather.switch.u2 clientWeather.switch.u1 clientWeather.tri.y clientWeather.t4.condition clientWeather.t4.outPort.set clientWeather.t4.outPort.occupied clientWeather.t4.inPort.reset clientWeather.t4.inPort.available clientWeather.t4.fire clientWeather.t4.enableFire clientWeather.t4.localCondition clientWeather.she.PPre clientWeather.she.yShed clientWeather.she.PCon clientWeather.she.oldActive clientWeather.she.newActive clientWeather.she.outerStatePort.subgraphStatePort.activeSteps clientWeather.she.outerStatePort.subgraphStatePort.resume clientWeather.she.outerStatePort.subgraphStatePort.suspend clientWeather.she.outPort[1].reset clientWeather.she.outPort[1].available clientWeather.she.inPort[1].set clientWeather.she.inPort[1].occupied clientWeather.she.localActive clientWeather.she.active clientWeather.t3.condition clientWeather.t3.outPort.set clientWeather.t3.outPort.occupied clientWeather.t3.inPort.reset clientWeather.t3.inPort.available clientWeather.t3.fire clientWeather.t3.enableFire clientWeather.t3.localCondition clientWeather.t2.condition clientWeather.t2.outPort.set clientWeather.t2.outPort.occupied clientWeather.t2.inPort.reset clientWeather.t2.inPort.available clientWeather.t2.fire clientWeather.t2.enableFire clientWeather.t2.localCondition clientWeather.norOpe.PPre clientWeather.norOpe.PCon clientWeather.norOpe.active clientWeather.norOpe.oldActive clientWeather.norOpe.newActive clientWeather.norOpe.outerStatePort.subgraphStatePort.activeSteps clientWeather.norOpe.outerStatePort.subgraphStatePort.resume clientWeather.norOpe.outerStatePort.subgraphStatePort.suspend clientWeather.norOpe.outPort[2].reset clientWeather.norOpe.outPort[2].available clientWeather.norOpe.outPort[1].reset clientWeather.norOpe.outPort[1].available clientWeather.norOpe.inPort[1].set clientWeather.norOpe.inPort[1].occupied clientWeather.norOpe.localActive clientWeather.t1.condition clientWeather.t1.outPort.set clientWeather.t1.outPort.occupied clientWeather.t1.inPort.reset clientWeather.t1.inPort.available clientWeather.t1.fire clientWeather.t1.enableFire clientWeather.t1.localCondition clientWeather.comBasLin.TOut clientWeather.comBasLin.stoHis.y clientWeather.comBasLin.stoHis.u clientWeather.comBasLin.basLin.TOut clientWeather.comBasLin.basLin.TOut_in_internal clientWeather.comBasLin.basLin.idxSam clientWeather.comBasLin.basLin.intTOutLast clientWeather.comBasLin.basLin.intTOut clientWeather.comBasLin.basLin.EHisAve clientWeather.comBasLin.basLin.EActAve clientWeather.comBasLin.basLin._storeHistory clientWeather.comBasLin.basLin._typeOfDay[1] clientWeather.comBasLin.basLin.iSam[1] clientWeather.comBasLin.basLin.tLast clientWeather.comBasLin.basLin.ELast clientWeather.comBasLin.basLin.sampleTrigger clientWeather.comBasLin.basLin.PAve clientWeather.comBasLin.basLin.adj clientWeather.comBasLin.basLin.storeHistory clientWeather.comBasLin.basLin.typeOfDay[2] clientWeather.comBasLin.basLin.typeOfDay[1] clientWeather.comBasLin.basLin.PPre[1] clientWeather.comBasLin.basLin.ECon clientWeather.comBasLin.isEventDay clientWeather.comBasLin.typeOfDay[2] clientWeather.comBasLin.typeOfDay[1] clientWeather.comBasLin.PPre[1] clientWeather.comBasLin.ECon clientWeather.comBasLin.oldActive clientWeather.comBasLin.newActive clientWeather.comBasLin.outerStatePort.subgraphStatePort.activeSteps clientWeather.comBasLin.outerStatePort.subgraphStatePort.resume clientWeather.comBasLin.outerStatePort.subgraphStatePort.suspend clientWeather.comBasLin.outPort[1].reset clientWeather.comBasLin.outPort[1].available clientWeather.comBasLin.inPort[3].set clientWeather.comBasLin.inPort[3].occupied clientWeather.comBasLin.inPort[2].set clientWeather.comBasLin.inPort[2].occupied clientWeather.comBasLin.inPort[1].set clientWeather.comBasLin.inPort[1].occupied clientWeather.comBasLin.localActive clientWeather.comBasLin.active clientWeather.transition.condition clientWeather.transition.outPort.set clientWeather.transition.outPort.occupied clientWeather.transition.inPort.reset clientWeather.transition.inPort.available clientWeather.transition.fire clientWeather.transition.enableFire clientWeather.transition.localCondition clientWeather.stateGraphRoot.activeSteps clientWeather.stateGraphRoot.subgraphStatePort.activeSteps clientWeather.stateGraphRoot.subgraphStatePort.resume clientWeather.stateGraphRoot.subgraphStatePort.suspend clientWeather.stateGraphRoot.resume clientWeather.stateGraphRoot.suspend clientWeather.initialStep.active clientWeather.initialStep.oldActive clientWeather.initialStep.newActive clientWeather.initialStep.outerStatePort.subgraphStatePort.activeSteps clientWeather.initialStep.outerStatePort.subgraphStatePort.resume clientWeather.initialStep.outerStatePort.subgraphStatePort.suspend clientWeather.initialStep.outPort[1].reset clientWeather.initialStep.outPort[1].available clientWeather.initialStep.inPort[1].set clientWeather.initialStep.inPort[1].occupied clientWeather.initialStep.localActive clientWeather.PPreNoShe[1] clientWeather.PPre clientWeather.yShed clientWeather.shed clientWeather.ECon clientWeather.isEventDay clientWeather.typeOfDay[2] clientWeather.typeOfDay[1] errorAverage.y errorAverage.u2 errorAverage.u1 drSig.y drSig.u bui90.timeScaled bui90.nextTimeEventScaled bui90.nextTimeEvent bui90.y[3] bui90.y[2] bui90.y[1] dayType.skipIDayIncrement dayType.sampleTrigger dayType.iDay dayType.y[2] dayType.y[1] clientAverage.switch.y clientAverage.switch.u3 clientAverage.switch.u2 clientAverage.switch.u1 clientAverage.tri.y clientAverage.t4.condition clientAverage.t4.outPort.set clientAverage.t4.outPort.occupied clientAverage.t4.inPort.reset clientAverage.t4.inPort.available clientAverage.t4.fire clientAverage.t4.enableFire clientAverage.t4.localCondition clientAverage.she.PPre clientAverage.she.yShed clientAverage.she.PCon clientAverage.she.oldActive clientAverage.she.newActive clientAverage.she.outerStatePort.subgraphStatePort.activeSteps clientAverage.she.outerStatePort.subgraphStatePort.resume clientAverage.she.outerStatePort.subgraphStatePort.suspend clientAverage.she.outPort[1].reset clientAverage.she.outPort[1].available clientAverage.she.inPort[1].set clientAverage.she.inPort[1].occupied clientAverage.she.localActive clientAverage.she.active clientAverage.t3.condition clientAverage.t3.outPort.set clientAverage.t3.outPort.occupied clientAverage.t3.inPort.reset clientAverage.t3.inPort.available clientAverage.t3.fire clientAverage.t3.enableFire clientAverage.t3.localCondition clientAverage.t2.condition clientAverage.t2.outPort.set clientAverage.t2.outPort.occupied clientAverage.t2.inPort.reset clientAverage.t2.inPort.available clientAverage.t2.fire clientAverage.t2.enableFire clientAverage.t2.localCondition clientAverage.norOpe.PPre clientAverage.norOpe.PCon clientAverage.norOpe.active clientAverage.norOpe.oldActive clientAverage.norOpe.newActive clientAverage.norOpe.outerStatePort.subgraphStatePort.activeSteps clientAverage.norOpe.outerStatePort.subgraphStatePort.resume clientAverage.norOpe.outerStatePort.subgraphStatePort.suspend clientAverage.norOpe.outPort[2].reset clientAverage.norOpe.outPort[2].available clientAverage.norOpe.outPort[1].reset clientAverage.norOpe.outPort[1].available clientAverage.norOpe.inPort[1].set clientAverage.norOpe.inPort[1].occupied clientAverage.norOpe.localActive clientAverage.t1.condition clientAverage.t1.outPort.set clientAverage.t1.outPort.occupied clientAverage.t1.inPort.reset clientAverage.t1.inPort.available clientAverage.t1.fire clientAverage.t1.enableFire clientAverage.t1.localCondition clientAverage.comBasLin.stoHis.y clientAverage.comBasLin.stoHis.u clientAverage.comBasLin.basLin.idxSam clientAverage.comBasLin.basLin.intTOutLast clientAverage.comBasLin.basLin.intTOut clientAverage.comBasLin.basLin.EHisAve clientAverage.comBasLin.basLin.EActAve clientAverage.comBasLin.basLin._storeHistory clientAverage.comBasLin.basLin._typeOfDay[1] clientAverage.comBasLin.basLin.iSam[1] clientAverage.comBasLin.basLin.tLast clientAverage.comBasLin.basLin.ELast clientAverage.comBasLin.basLin.sampleTrigger clientAverage.comBasLin.basLin.PAve clientAverage.comBasLin.basLin.adj clientAverage.comBasLin.basLin.storeHistory clientAverage.comBasLin.basLin.typeOfDay[2] clientAverage.comBasLin.basLin.typeOfDay[1] clientAverage.comBasLin.basLin.PPre[1] clientAverage.comBasLin.basLin.ECon clientAverage.comBasLin.isEventDay clientAverage.comBasLin.typeOfDay[2] clientAverage.comBasLin.typeOfDay[1] clientAverage.comBasLin.PPre[1] clientAverage.comBasLin.ECon clientAverage.comBasLin.oldActive clientAverage.comBasLin.newActive clientAverage.comBasLin.outerStatePort.subgraphStatePort.activeSteps clientAverage.comBasLin.outerStatePort.subgraphStatePort.resume clientAverage.comBasLin.outerStatePort.subgraphStatePort.suspend clientAverage.comBasLin.outPort[1].reset clientAverage.comBasLin.outPort[1].available clientAverage.comBasLin.inPort[3].set clientAverage.comBasLin.inPort[3].occupied clientAverage.comBasLin.inPort[2].set clientAverage.comBasLin.inPort[2].occupied clientAverage.comBasLin.inPort[1].set clientAverage.comBasLin.inPort[1].occupied clientAverage.comBasLin.localActive clientAverage.comBasLin.active clientAverage.transition.condition clientAverage.transition.outPort.set clientAverage.transition.outPort.occupied clientAverage.transition.inPort.reset clientAverage.transition.inPort.available clientAverage.transition.fire clientAverage.transition.enableFire clientAverage.transition.localCondition clientAverage.stateGraphRoot.activeSteps clientAverage.stateGraphRoot.subgraphStatePort.activeSteps clientAverage.stateGraphRoot.subgraphStatePort.resume clientAverage.stateGraphRoot.subgraphStatePort.suspend clientAverage.stateGraphRoot.resume clientAverage.stateGraphRoot.suspend clientAverage.initialStep.active clientAverage.initialStep.oldActive clientAverage.initialStep.newActive clientAverage.initialStep.outerStatePort.subgraphStatePort.activeSteps clientAverage.initialStep.outerStatePort.subgraphStatePort.resume clientAverage.initialStep.outerStatePort.subgraphStatePort.suspend clientAverage.initialStep.outPort[1].reset clientAverage.initialStep.outPort[1].available clientAverage.initialStep.inPort[1].set clientAverage.initialStep.inPort[1].occupied clientAverage.initialStep.localActive clientAverage.PPreNoShe[1] clientAverage.PPre clientAverage.yShed clientAverage.shed clientAverage.ECon clientAverage.isEventDay clientAverage.typeOfDay[2] clientAverage.typeOfDay[1] equations: 1 : clientAverage.initialStep.active = clientAverage.initialStep.localActive 2 : clientAverage.initialStep.localActive = pre(clientAverage.initialStep.newActive) 3 : clientAverage.initialStep.newActive = if clientAverage.initialStep.outerStatePort.subgraphStatePort.resume then clientAverage.initialStep.oldActive else (Modelica.StateGraph.Temporary.anyTrue({clientAverage.initialStep.inPort[1].set}) or clientAverage.initialStep.localActive and not Modelica.StateGraph.Temporary.anyTrue({clientAverage.initialStep.outPort[1].reset})) and not clientAverage.initialStep.outerStatePort.subgraphStatePort.suspend 4 : clientAverage.initialStep.outerStatePort.subgraphStatePort.activeSteps = if clientAverage.initialStep.localActive then 1.0 else 0.0 5 : clientAverage.initialStep.inPort[1].occupied = clientAverage.initialStep.localActive 6 : clientAverage.initialStep.outPort[1].available = clientAverage.initialStep.localActive 7 : clientAverage.initialStep.inPort[1].set = false 8 : clientAverage.stateGraphRoot.suspend = false 9 : clientAverage.stateGraphRoot.resume = false 10 : clientAverage.stateGraphRoot.activeSteps = -integer(clientAverage.stateGraphRoot.subgraphStatePort.activeSteps) 11 : clientAverage.stateGraphRoot.suspend = clientAverage.stateGraphRoot.subgraphStatePort.suspend 12 : clientAverage.stateGraphRoot.resume = clientAverage.stateGraphRoot.subgraphStatePort.resume 13 : clientAverage.transition.localCondition = clientAverage.transition.condition 14 : clientAverage.transition.condition = true 15 : clientAverage.transition.fire = clientAverage.transition.enableFire 16 : clientAverage.transition.enableFire = clientAverage.transition.localCondition and clientAverage.transition.inPort.available and not clientAverage.transition.outPort.occupied 17 : clientAverage.transition.inPort.reset = clientAverage.transition.fire 18 : clientAverage.transition.outPort.set = clientAverage.transition.fire 19 : clientAverage.comBasLin.basLin.sampleTrigger = sample(1, clientAverage.comBasLin.basLin.samStart, 900.0) 20 : clientAverage.comBasLin.basLin.intTOut = 0.0 21 : algorithm when clientAverage.comBasLin.basLin.sampleTrigger then clientAverage.comBasLin.basLin._storeHistory := if not pre(clientAverage.comBasLin.basLin._storeHistory) and not Buildings.Controls.Predictors.ElectricalLoad$clientAverage$comBasLin$basLin.isMidNight(time) then false else clientAverage.comBasLin.basLin.storeHistory; clientAverage.comBasLin.basLin._typeOfDay := Buildings.Controls.Predictors.ElectricalLoad$clientAverage$comBasLin$basLin.getTypeOfDays(time, {clientAverage.comBasLin.basLin.typeOfDay[1], clientAverage.comBasLin.basLin.typeOfDay[2]}, 900.0, 1); clientAverage.comBasLin.basLin.idxSam := Buildings.Controls.Predictors.ElectricalLoad$clientAverage$comBasLin$basLin.getIndex(-1 + clientAverage.comBasLin.basLin.iSam[1], 96); if clientAverage.comBasLin.basLin._storeHistory or pre(clientAverage.comBasLin.basLin._storeHistory) then if time - clientAverage.comBasLin.basLin.tLast > 1e-05 then clientAverage.comBasLin.basLin.iHis[pre(clientAverage.comBasLin.basLin._typeOfDay[1]),clientAverage.comBasLin.basLin.idxSam] := Buildings.Controls.Predictors.ElectricalLoad$clientAverage$comBasLin$basLin.incrementIndex(clientAverage.comBasLin.basLin.iHis[pre(clientAverage.comBasLin.basLin._typeOfDay[1]),clientAverage.comBasLin.basLin.idxSam], 10); if clientAverage.comBasLin.basLin.iHis[pre(clientAverage.comBasLin.basLin._typeOfDay[1]),clientAverage.comBasLin.basLin.idxSam] == 10 then clientAverage.comBasLin.basLin.historyComplete[pre(clientAverage.comBasLin.basLin._typeOfDay[1]),clientAverage.comBasLin.basLin.idxSam] := true; end if; clientAverage.comBasLin.basLin.PAve := (clientAverage.comBasLin.basLin.ECon - clientAverage.comBasLin.basLin.ELast) / (time - clientAverage.comBasLin.basLin.tLast); clientAverage.comBasLin.basLin.P[pre(clientAverage.comBasLin.basLin._typeOfDay[1]),clientAverage.comBasLin.basLin.idxSam,clientAverage.comBasLin.basLin.iHis[pre(clientAverage.comBasLin.basLin._typeOfDay[1]),clientAverage.comBasLin.basLin.idxSam]] := clientAverage.comBasLin.basLin.PAve; end if; end if; clientAverage.comBasLin.basLin.ELast := clientAverage.comBasLin.basLin.ECon; clientAverage.comBasLin.basLin.intTOutLast := clientAverage.comBasLin.basLin.intTOut; clientAverage.comBasLin.basLin.tLast := time; for m in 1:1 loop clientAverage.comBasLin.basLin.PPre[m] := Buildings.Controls.Predictors.BaseClasses.average({clientAverage.comBasLin.basLin.P[clientAverage.comBasLin.basLin._typeOfDay[m],clientAverage.comBasLin.basLin.iSam[m],1], clientAverage.comBasLin.basLin.P[clientAverage.comBasLin.basLin._typeOfDay[m],clientAverage.comBasLin.basLin.iSam[m],2], clientAverage.comBasLin.basLin.P[clientAverage.comBasLin.basLin._typeOfDay[m],clientAverage.comBasLin.basLin.iSam[m],3], clientAverage.comBasLin.basLin.P[clientAverage.comBasLin.basLin._typeOfDay[m],clientAverage.comBasLin.basLin.iSam[m],4], clientAverage.comBasLin.basLin.P[clientAverage.comBasLin.basLin._typeOfDay[m],clientAverage.comBasLin.basLin.iSam[m],5], clientAverage.comBasLin.basLin.P[clientAverage.comBasLin.basLin._typeOfDay[m],clientAverage.comBasLin.basLin.iSam[m],6], clientAverage.comBasLin.basLin.P[clientAverage.comBasLin.basLin._typeOfDay[m],clientAverage.comBasLin.basLin.iSam[m],7], clientAverage.comBasLin.basLin.P[clientAverage.comBasLin.basLin._typeOfDay[m],clientAverage.comBasLin.basLin.iSam[m],8], clientAverage.comBasLin.basLin.P[clientAverage.comBasLin.basLin._typeOfDay[m],clientAverage.comBasLin.basLin.iSam[m],9], clientAverage.comBasLin.basLin.P[clientAverage.comBasLin.basLin._typeOfDay[m],clientAverage.comBasLin.basLin.iSam[m],10]}, if clientAverage.comBasLin.basLin.historyComplete[clientAverage.comBasLin.basLin._typeOfDay[m],clientAverage.comBasLin.basLin.iSam[m]] then 10 else clientAverage.comBasLin.basLin.iHis[clientAverage.comBasLin.basLin._typeOfDay[m],clientAverage.comBasLin.basLin.iSam[m]]); end for; if clientAverage.comBasLin.basLin._storeHistory or pre(clientAverage.comBasLin.basLin._storeHistory) then clientAverage.comBasLin.basLin.PPreHis[clientAverage.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientAverage$comBasLin$basLin.getIndex(1 + clientAverage.comBasLin.basLin.idxSam, 96)] := clientAverage.comBasLin.basLin.PPre[1]; clientAverage.comBasLin.basLin.PPreHisSet[clientAverage.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientAverage$comBasLin$basLin.getIndex(1 + clientAverage.comBasLin.basLin.idxSam, 96)] := clientAverage.comBasLin.basLin.iHis[clientAverage.comBasLin.basLin._typeOfDay[1],clientAverage.comBasLin.basLin.iSam[1]] > 0; end if; clientAverage.comBasLin.basLin.EHisAve := 0.0; clientAverage.comBasLin.basLin.EActAve := 0.0; for i in -16:-5 loop if Modelica.Math.BooleanVectors.allTrue({clientAverage.comBasLin.basLin.PPreHisSet[clientAverage.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientAverage$comBasLin$basLin.getIndex(clientAverage.comBasLin.basLin.iSam[1] + -16, 96)], clientAverage.comBasLin.basLin.PPreHisSet[clientAverage.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientAverage$comBasLin$basLin.getIndex(clientAverage.comBasLin.basLin.iSam[1] + -15, 96)], clientAverage.comBasLin.basLin.PPreHisSet[clientAverage.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientAverage$comBasLin$basLin.getIndex(clientAverage.comBasLin.basLin.iSam[1] + -14, 96)], clientAverage.comBasLin.basLin.PPreHisSet[clientAverage.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientAverage$comBasLin$basLin.getIndex(clientAverage.comBasLin.basLin.iSam[1] + -13, 96)], clientAverage.comBasLin.basLin.PPreHisSet[clientAverage.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientAverage$comBasLin$basLin.getIndex(clientAverage.comBasLin.basLin.iSam[1] + -12, 96)], clientAverage.comBasLin.basLin.PPreHisSet[clientAverage.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientAverage$comBasLin$basLin.getIndex(clientAverage.comBasLin.basLin.iSam[1] + -11, 96)], clientAverage.comBasLin.basLin.PPreHisSet[clientAverage.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientAverage$comBasLin$basLin.getIndex(clientAverage.comBasLin.basLin.iSam[1] + -10, 96)], clientAverage.comBasLin.basLin.PPreHisSet[clientAverage.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientAverage$comBasLin$basLin.getIndex(clientAverage.comBasLin.basLin.iSam[1] + -9, 96)], clientAverage.comBasLin.basLin.PPreHisSet[clientAverage.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientAverage$comBasLin$basLin.getIndex(clientAverage.comBasLin.basLin.iSam[1] + -8, 96)], clientAverage.comBasLin.basLin.PPreHisSet[clientAverage.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientAverage$comBasLin$basLin.getIndex(clientAverage.comBasLin.basLin.iSam[1] + -7, 96)], clientAverage.comBasLin.basLin.PPreHisSet[clientAverage.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientAverage$comBasLin$basLin.getIndex(clientAverage.comBasLin.basLin.iSam[1] + -6, 96)], clientAverage.comBasLin.basLin.PPreHisSet[clientAverage.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientAverage$comBasLin$basLin.getIndex(clientAverage.comBasLin.basLin.iSam[1] + -5, 96)]}) then clientAverage.comBasLin.basLin.EHisAve := clientAverage.comBasLin.basLin.EHisAve + 900.0 * clientAverage.comBasLin.basLin.PPreHis[clientAverage.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientAverage$comBasLin$basLin.getIndex(1 + clientAverage.comBasLin.basLin.idxSam + i, 96)]; clientAverage.comBasLin.basLin.EActAve := clientAverage.comBasLin.basLin.EActAve + 900.0 * clientAverage.comBasLin.basLin.P[clientAverage.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientAverage$comBasLin$basLin.getIndex(1 + clientAverage.comBasLin.basLin.idxSam + i, 96),clientAverage.comBasLin.basLin.iHis[clientAverage.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientAverage$comBasLin$basLin.getIndex(1 + clientAverage.comBasLin.basLin.idxSam + i, 96)]]; else clientAverage.comBasLin.basLin.EHisAve := 0.0; clientAverage.comBasLin.basLin.EActAve := 0.0; end if; end for; if clientAverage.comBasLin.basLin.EHisAve > 1e-15 or clientAverage.comBasLin.basLin.EHisAve < -1e-15 then clientAverage.comBasLin.basLin.adj := min(clientAverage.comBasLin.basLin.maxAdjFac, max(clientAverage.comBasLin.basLin.minAdjFac, clientAverage.comBasLin.basLin.EActAve / clientAverage.comBasLin.basLin.EHisAve)); else clientAverage.comBasLin.basLin.adj := 1.0; end if; clientAverage.comBasLin.basLin.PPre[:] := {clientAverage.comBasLin.basLin.PPre[1] * clientAverage.comBasLin.basLin.adj}; for i in 1:1 loop clientAverage.comBasLin.basLin.iSam[i] := Buildings.Controls.Predictors.ElectricalLoad$clientAverage$comBasLin$basLin.incrementIndex(clientAverage.comBasLin.basLin.iSam[i], 96); end for; end when; 22 : clientAverage.comBasLin.stoHis.y = not clientAverage.comBasLin.stoHis.u 23 : clientAverage.comBasLin.active = clientAverage.comBasLin.localActive 24 : clientAverage.comBasLin.localActive = pre(clientAverage.comBasLin.newActive) 25 : clientAverage.comBasLin.newActive = if clientAverage.comBasLin.outerStatePort.subgraphStatePort.resume then clientAverage.comBasLin.oldActive else (Modelica.StateGraph.Temporary.anyTrue({clientAverage.comBasLin.inPort[1].set, clientAverage.comBasLin.inPort[2].set, clientAverage.comBasLin.inPort[3].set}) or clientAverage.comBasLin.localActive and not Modelica.StateGraph.Temporary.anyTrue({clientAverage.comBasLin.outPort[1].reset})) and not clientAverage.comBasLin.outerStatePort.subgraphStatePort.suspend 26 : clientAverage.comBasLin.outerStatePort.subgraphStatePort.activeSteps = if clientAverage.comBasLin.localActive then 1.0 else 0.0 27 : clientAverage.comBasLin.inPort[1].occupied = clientAverage.comBasLin.localActive 28 : clientAverage.comBasLin.inPort[2].occupied = clientAverage.comBasLin.inPort[1].occupied or clientAverage.comBasLin.inPort[1].set 29 : clientAverage.comBasLin.inPort[3].occupied = clientAverage.comBasLin.inPort[2].occupied or clientAverage.comBasLin.inPort[2].set 30 : clientAverage.comBasLin.outPort[1].available = clientAverage.comBasLin.localActive 31 : clientAverage.t1.localCondition = clientAverage.t1.condition 32 : clientAverage.t1.condition = true 33 : clientAverage.t1.fire = clientAverage.t1.enableFire 34 : clientAverage.t1.enableFire = clientAverage.t1.localCondition and clientAverage.t1.inPort.available and not clientAverage.t1.outPort.occupied 35 : clientAverage.t1.inPort.reset = clientAverage.t1.fire 36 : clientAverage.t1.outPort.set = clientAverage.t1.fire 37 : clientAverage.norOpe.PPre = clientAverage.norOpe.PCon 38 : clientAverage.norOpe.active = clientAverage.norOpe.localActive 39 : clientAverage.norOpe.localActive = pre(clientAverage.norOpe.newActive) 40 : clientAverage.norOpe.newActive = if clientAverage.norOpe.outerStatePort.subgraphStatePort.resume then clientAverage.norOpe.oldActive else (Modelica.StateGraph.Temporary.anyTrue({clientAverage.norOpe.inPort[1].set}) or clientAverage.norOpe.localActive and not Modelica.StateGraph.Temporary.anyTrue({clientAverage.norOpe.outPort[1].reset, clientAverage.norOpe.outPort[2].reset})) and not clientAverage.norOpe.outerStatePort.subgraphStatePort.suspend 41 : clientAverage.norOpe.outerStatePort.subgraphStatePort.activeSteps = if clientAverage.norOpe.localActive then 1.0 else 0.0 42 : clientAverage.norOpe.inPort[1].occupied = clientAverage.norOpe.localActive 43 : clientAverage.norOpe.outPort[1].available = clientAverage.norOpe.localActive 44 : clientAverage.norOpe.outPort[2].available = clientAverage.norOpe.outPort[1].available and not clientAverage.norOpe.outPort[1].reset 45 : clientAverage.t2.localCondition = clientAverage.t2.condition 46 : clientAverage.t2.fire = clientAverage.t2.enableFire 47 : clientAverage.t2.enableFire = clientAverage.t2.localCondition and clientAverage.t2.inPort.available and not clientAverage.t2.outPort.occupied 48 : clientAverage.t2.inPort.reset = clientAverage.t2.fire 49 : clientAverage.t2.outPort.set = clientAverage.t2.fire 50 : clientAverage.t3.localCondition = clientAverage.t3.condition 51 : clientAverage.t3.fire = clientAverage.t3.enableFire 52 : clientAverage.t3.enableFire = clientAverage.t3.localCondition and clientAverage.t3.inPort.available and not clientAverage.t3.outPort.occupied 53 : clientAverage.t3.inPort.reset = clientAverage.t3.fire 54 : clientAverage.t3.outPort.set = clientAverage.t3.fire 55 : clientAverage.she.PPre = clientAverage.she.yShed * clientAverage.she.PCon 56 : clientAverage.she.active = clientAverage.she.localActive 57 : clientAverage.she.localActive = pre(clientAverage.she.newActive) 58 : clientAverage.she.newActive = if clientAverage.she.outerStatePort.subgraphStatePort.resume then clientAverage.she.oldActive else (Modelica.StateGraph.Temporary.anyTrue({clientAverage.she.inPort[1].set}) or clientAverage.she.localActive and not Modelica.StateGraph.Temporary.anyTrue({clientAverage.she.outPort[1].reset})) and not clientAverage.she.outerStatePort.subgraphStatePort.suspend 59 : clientAverage.she.outerStatePort.subgraphStatePort.activeSteps = if clientAverage.she.localActive then 1.0 else 0.0 60 : clientAverage.she.inPort[1].occupied = clientAverage.she.localActive 61 : clientAverage.she.outPort[1].available = clientAverage.she.localActive 62 : clientAverage.t4.localCondition = clientAverage.t4.condition 63 : clientAverage.t4.fire = clientAverage.t4.enableFire 64 : clientAverage.t4.enableFire = clientAverage.t4.localCondition and clientAverage.t4.inPort.available and not clientAverage.t4.outPort.occupied 65 : clientAverage.t4.inPort.reset = clientAverage.t4.fire 66 : clientAverage.t4.outPort.set = clientAverage.t4.fire 67 : clientAverage.tri.y = sample(2, clientAverage.tri.startTime, 900.0) 68 : clientAverage.switch.y = if clientAverage.switch.u2 then clientAverage.switch.u1 else clientAverage.switch.u3 69 : dayType.y[1] = dayType.days[1 + mod(-1 + dayType.iDay, 7)] 70 : dayType.y[2] = dayType.days[1 + mod(dayType.iDay, 7)] 71 : dayType.sampleTrigger = sample(3, dayType.firstSample, dayType.samplePeriod) 72 : bui90.timeScaled = time 73 : bui90.y[1] = bui90.p_offset[1] + Modelica.Blocks.Sources.CombiTimeTable$bui90.getTableValueNoDer(bui90.tableID, 1, bui90.timeScaled, bui90.nextTimeEventScaled, pre(bui90.nextTimeEventScaled), bui90.tableOnFileRead) 74 : bui90.y[2] = bui90.p_offset[2] + Modelica.Blocks.Sources.CombiTimeTable$bui90.getTableValueNoDer(bui90.tableID, 2, bui90.timeScaled, bui90.nextTimeEventScaled, pre(bui90.nextTimeEventScaled), bui90.tableOnFileRead) 75 : bui90.y[3] = bui90.p_offset[3] + Modelica.Blocks.Sources.CombiTimeTable$bui90.getTableValueNoDer(bui90.tableID, 3, bui90.timeScaled, bui90.nextTimeEventScaled, pre(bui90.nextTimeEventScaled), bui90.tableOnFileRead) 76 : drSig.y = drSig.u > drSig.threshold 77 : errorAverage.y = errorAverage.k1 * errorAverage.u1 + errorAverage.k2 * errorAverage.u2 78 : clientWeather.initialStep.active = clientWeather.initialStep.localActive 79 : clientWeather.initialStep.localActive = pre(clientWeather.initialStep.newActive) 80 : clientWeather.initialStep.newActive = if clientWeather.initialStep.outerStatePort.subgraphStatePort.resume then clientWeather.initialStep.oldActive else (Modelica.StateGraph.Temporary.anyTrue({clientWeather.initialStep.inPort[1].set}) or clientWeather.initialStep.localActive and not Modelica.StateGraph.Temporary.anyTrue({clientWeather.initialStep.outPort[1].reset})) and not clientWeather.initialStep.outerStatePort.subgraphStatePort.suspend 81 : clientWeather.initialStep.outerStatePort.subgraphStatePort.activeSteps = if clientWeather.initialStep.localActive then 1.0 else 0.0 82 : clientWeather.initialStep.inPort[1].occupied = clientWeather.initialStep.localActive 83 : clientWeather.initialStep.outPort[1].available = clientWeather.initialStep.localActive 84 : clientWeather.initialStep.inPort[1].set = false 85 : clientWeather.stateGraphRoot.suspend = false 86 : clientWeather.stateGraphRoot.resume = false 87 : clientWeather.stateGraphRoot.activeSteps = -integer(clientWeather.stateGraphRoot.subgraphStatePort.activeSteps) 88 : clientWeather.stateGraphRoot.suspend = clientWeather.stateGraphRoot.subgraphStatePort.suspend 89 : clientWeather.stateGraphRoot.resume = clientWeather.stateGraphRoot.subgraphStatePort.resume 90 : clientWeather.transition.localCondition = clientWeather.transition.condition 91 : clientWeather.transition.condition = true 92 : clientWeather.transition.fire = clientWeather.transition.enableFire 93 : clientWeather.transition.enableFire = clientWeather.transition.localCondition and clientWeather.transition.inPort.available and not clientWeather.transition.outPort.occupied 94 : clientWeather.transition.inPort.reset = clientWeather.transition.fire 95 : clientWeather.transition.outPort.set = clientWeather.transition.fire 96 : clientWeather.comBasLin.basLin.sampleTrigger = sample(4, clientWeather.comBasLin.basLin.samStart, 900.0) 97 : der(clientWeather.comBasLin.basLin.intTOut) = clientWeather.comBasLin.basLin.TOut_in_internal 98 : algorithm when clientWeather.comBasLin.basLin.sampleTrigger then clientWeather.comBasLin.basLin._storeHistory := if not pre(clientWeather.comBasLin.basLin._storeHistory) and not Buildings.Controls.Predictors.ElectricalLoad$clientWeather$comBasLin$basLin.isMidNight(time) then false else clientWeather.comBasLin.basLin.storeHistory; clientWeather.comBasLin.basLin._typeOfDay := Buildings.Controls.Predictors.ElectricalLoad$clientWeather$comBasLin$basLin.getTypeOfDays(time, {clientWeather.comBasLin.basLin.typeOfDay[1], clientWeather.comBasLin.basLin.typeOfDay[2]}, 900.0, 1); clientWeather.comBasLin.basLin.idxSam := Buildings.Controls.Predictors.ElectricalLoad$clientWeather$comBasLin$basLin.getIndex(-1 + clientWeather.comBasLin.basLin.iSam[1], 96); if clientWeather.comBasLin.basLin._storeHistory or pre(clientWeather.comBasLin.basLin._storeHistory) then if time - clientWeather.comBasLin.basLin.tLast > 1e-05 then clientWeather.comBasLin.basLin.iHis[pre(clientWeather.comBasLin.basLin._typeOfDay[1]),clientWeather.comBasLin.basLin.idxSam] := Buildings.Controls.Predictors.ElectricalLoad$clientWeather$comBasLin$basLin.incrementIndex(clientWeather.comBasLin.basLin.iHis[pre(clientWeather.comBasLin.basLin._typeOfDay[1]),clientWeather.comBasLin.basLin.idxSam], 10); if clientWeather.comBasLin.basLin.iHis[pre(clientWeather.comBasLin.basLin._typeOfDay[1]),clientWeather.comBasLin.basLin.idxSam] == 10 then clientWeather.comBasLin.basLin.historyComplete[pre(clientWeather.comBasLin.basLin._typeOfDay[1]),clientWeather.comBasLin.basLin.idxSam] := true; end if; clientWeather.comBasLin.basLin.PAve := (clientWeather.comBasLin.basLin.ECon - clientWeather.comBasLin.basLin.ELast) / (time - clientWeather.comBasLin.basLin.tLast); clientWeather.comBasLin.basLin.P[pre(clientWeather.comBasLin.basLin._typeOfDay[1]),clientWeather.comBasLin.basLin.idxSam,clientWeather.comBasLin.basLin.iHis[pre(clientWeather.comBasLin.basLin._typeOfDay[1]),clientWeather.comBasLin.basLin.idxSam]] := clientWeather.comBasLin.basLin.PAve; clientWeather.comBasLin.basLin.T[pre(clientWeather.comBasLin.basLin._typeOfDay[1]),clientWeather.comBasLin.basLin.idxSam,clientWeather.comBasLin.basLin.iHis[pre(clientWeather.comBasLin.basLin._typeOfDay[1]),clientWeather.comBasLin.basLin.idxSam]] := (clientWeather.comBasLin.basLin.intTOut - clientWeather.comBasLin.basLin.intTOutLast) / (time - clientWeather.comBasLin.basLin.tLast); end if; end if; clientWeather.comBasLin.basLin.ELast := clientWeather.comBasLin.basLin.ECon; clientWeather.comBasLin.basLin.intTOutLast := clientWeather.comBasLin.basLin.intTOut; clientWeather.comBasLin.basLin.tLast := time; if clientWeather.comBasLin.basLin.predictionModel == Buildings.Controls.Predictors.Types.PredictionModel.WeatherRegression then for m in 1:1 loop clientWeather.comBasLin.basLin.PPre[m] := Buildings.Controls.Predictors.BaseClasses.weatherRegression({clientWeather.comBasLin.basLin.P[clientWeather.comBasLin.basLin._typeOfDay[m],clientWeather.comBasLin.basLin.iSam[m],1], clientWeather.comBasLin.basLin.P[clientWeather.comBasLin.basLin._typeOfDay[m],clientWeather.comBasLin.basLin.iSam[m],2], clientWeather.comBasLin.basLin.P[clientWeather.comBasLin.basLin._typeOfDay[m],clientWeather.comBasLin.basLin.iSam[m],3], clientWeather.comBasLin.basLin.P[clientWeather.comBasLin.basLin._typeOfDay[m],clientWeather.comBasLin.basLin.iSam[m],4], clientWeather.comBasLin.basLin.P[clientWeather.comBasLin.basLin._typeOfDay[m],clientWeather.comBasLin.basLin.iSam[m],5], clientWeather.comBasLin.basLin.P[clientWeather.comBasLin.basLin._typeOfDay[m],clientWeather.comBasLin.basLin.iSam[m],6], clientWeather.comBasLin.basLin.P[clientWeather.comBasLin.basLin._typeOfDay[m],clientWeather.comBasLin.basLin.iSam[m],7], clientWeather.comBasLin.basLin.P[clientWeather.comBasLin.basLin._typeOfDay[m],clientWeather.comBasLin.basLin.iSam[m],8], clientWeather.comBasLin.basLin.P[clientWeather.comBasLin.basLin._typeOfDay[m],clientWeather.comBasLin.basLin.iSam[m],9], clientWeather.comBasLin.basLin.P[clientWeather.comBasLin.basLin._typeOfDay[m],clientWeather.comBasLin.basLin.iSam[m],10]}, if clientWeather.comBasLin.basLin.historyComplete[clientWeather.comBasLin.basLin._typeOfDay[m],clientWeather.comBasLin.basLin.iSam[m]] then 10 else clientWeather.comBasLin.basLin.iHis[clientWeather.comBasLin.basLin._typeOfDay[m],clientWeather.comBasLin.basLin.iSam[m]], if m == 1 then clientWeather.comBasLin.basLin.TOut_in_internal else {}[-1 + m], {clientWeather.comBasLin.basLin.T[clientWeather.comBasLin.basLin._typeOfDay[m],clientWeather.comBasLin.basLin.iSam[m],1], clientWeather.comBasLin.basLin.T[clientWeather.comBasLin.basLin._typeOfDay[m],clientWeather.comBasLin.basLin.iSam[m],2], clientWeather.comBasLin.basLin.T[clientWeather.comBasLin.basLin._typeOfDay[m],clientWeather.comBasLin.basLin.iSam[m],3], clientWeather.comBasLin.basLin.T[clientWeather.comBasLin.basLin._typeOfDay[m],clientWeather.comBasLin.basLin.iSam[m],4], clientWeather.comBasLin.basLin.T[clientWeather.comBasLin.basLin._typeOfDay[m],clientWeather.comBasLin.basLin.iSam[m],5], clientWeather.comBasLin.basLin.T[clientWeather.comBasLin.basLin._typeOfDay[m],clientWeather.comBasLin.basLin.iSam[m],6], clientWeather.comBasLin.basLin.T[clientWeather.comBasLin.basLin._typeOfDay[m],clientWeather.comBasLin.basLin.iSam[m],7], clientWeather.comBasLin.basLin.T[clientWeather.comBasLin.basLin._typeOfDay[m],clientWeather.comBasLin.basLin.iSam[m],8], clientWeather.comBasLin.basLin.T[clientWeather.comBasLin.basLin._typeOfDay[m],clientWeather.comBasLin.basLin.iSam[m],9], clientWeather.comBasLin.basLin.T[clientWeather.comBasLin.basLin._typeOfDay[m],clientWeather.comBasLin.basLin.iSam[m],10]}); end for; else clientWeather.comBasLin.basLin.PPre := {0.0}; assert(false, "Wrong value for prediction model."); end if; if clientWeather.comBasLin.basLin._storeHistory or pre(clientWeather.comBasLin.basLin._storeHistory) then clientWeather.comBasLin.basLin.PPreHis[clientWeather.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientWeather$comBasLin$basLin.getIndex(1 + clientWeather.comBasLin.basLin.idxSam, 96)] := clientWeather.comBasLin.basLin.PPre[1]; clientWeather.comBasLin.basLin.PPreHisSet[clientWeather.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientWeather$comBasLin$basLin.getIndex(1 + clientWeather.comBasLin.basLin.idxSam, 96)] := clientWeather.comBasLin.basLin.iHis[clientWeather.comBasLin.basLin._typeOfDay[1],clientWeather.comBasLin.basLin.iSam[1]] > 0; end if; clientWeather.comBasLin.basLin.EHisAve := 0.0; clientWeather.comBasLin.basLin.EActAve := 0.0; for i in -16:-5 loop if Modelica.Math.BooleanVectors.allTrue({clientWeather.comBasLin.basLin.PPreHisSet[clientWeather.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientWeather$comBasLin$basLin.getIndex(clientWeather.comBasLin.basLin.iSam[1] + -16, 96)], clientWeather.comBasLin.basLin.PPreHisSet[clientWeather.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientWeather$comBasLin$basLin.getIndex(clientWeather.comBasLin.basLin.iSam[1] + -15, 96)], clientWeather.comBasLin.basLin.PPreHisSet[clientWeather.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientWeather$comBasLin$basLin.getIndex(clientWeather.comBasLin.basLin.iSam[1] + -14, 96)], clientWeather.comBasLin.basLin.PPreHisSet[clientWeather.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientWeather$comBasLin$basLin.getIndex(clientWeather.comBasLin.basLin.iSam[1] + -13, 96)], clientWeather.comBasLin.basLin.PPreHisSet[clientWeather.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientWeather$comBasLin$basLin.getIndex(clientWeather.comBasLin.basLin.iSam[1] + -12, 96)], clientWeather.comBasLin.basLin.PPreHisSet[clientWeather.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientWeather$comBasLin$basLin.getIndex(clientWeather.comBasLin.basLin.iSam[1] + -11, 96)], clientWeather.comBasLin.basLin.PPreHisSet[clientWeather.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientWeather$comBasLin$basLin.getIndex(clientWeather.comBasLin.basLin.iSam[1] + -10, 96)], clientWeather.comBasLin.basLin.PPreHisSet[clientWeather.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientWeather$comBasLin$basLin.getIndex(clientWeather.comBasLin.basLin.iSam[1] + -9, 96)], clientWeather.comBasLin.basLin.PPreHisSet[clientWeather.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientWeather$comBasLin$basLin.getIndex(clientWeather.comBasLin.basLin.iSam[1] + -8, 96)], clientWeather.comBasLin.basLin.PPreHisSet[clientWeather.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientWeather$comBasLin$basLin.getIndex(clientWeather.comBasLin.basLin.iSam[1] + -7, 96)], clientWeather.comBasLin.basLin.PPreHisSet[clientWeather.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientWeather$comBasLin$basLin.getIndex(clientWeather.comBasLin.basLin.iSam[1] + -6, 96)], clientWeather.comBasLin.basLin.PPreHisSet[clientWeather.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientWeather$comBasLin$basLin.getIndex(clientWeather.comBasLin.basLin.iSam[1] + -5, 96)]}) then clientWeather.comBasLin.basLin.EHisAve := clientWeather.comBasLin.basLin.EHisAve + 900.0 * clientWeather.comBasLin.basLin.PPreHis[clientWeather.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientWeather$comBasLin$basLin.getIndex(1 + clientWeather.comBasLin.basLin.idxSam + i, 96)]; clientWeather.comBasLin.basLin.EActAve := clientWeather.comBasLin.basLin.EActAve + 900.0 * clientWeather.comBasLin.basLin.P[clientWeather.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientWeather$comBasLin$basLin.getIndex(1 + clientWeather.comBasLin.basLin.idxSam + i, 96),clientWeather.comBasLin.basLin.iHis[clientWeather.comBasLin.basLin._typeOfDay[1],Buildings.Controls.Predictors.ElectricalLoad$clientWeather$comBasLin$basLin.getIndex(1 + clientWeather.comBasLin.basLin.idxSam + i, 96)]]; else clientWeather.comBasLin.basLin.EHisAve := 0.0; clientWeather.comBasLin.basLin.EActAve := 0.0; end if; end for; if clientWeather.comBasLin.basLin.EHisAve > 1e-15 or clientWeather.comBasLin.basLin.EHisAve < -1e-15 then clientWeather.comBasLin.basLin.adj := min(clientWeather.comBasLin.basLin.maxAdjFac, max(clientWeather.comBasLin.basLin.minAdjFac, clientWeather.comBasLin.basLin.EActAve / clientWeather.comBasLin.basLin.EHisAve)); else clientWeather.comBasLin.basLin.adj := 1.0; end if; clientWeather.comBasLin.basLin.PPre[:] := {clientWeather.comBasLin.basLin.PPre[1] * clientWeather.comBasLin.basLin.adj}; for i in 1:1 loop clientWeather.comBasLin.basLin.iSam[i] := Buildings.Controls.Predictors.ElectricalLoad$clientWeather$comBasLin$basLin.incrementIndex(clientWeather.comBasLin.basLin.iSam[i], 96); end for; end when; 99 : clientWeather.comBasLin.stoHis.y = not clientWeather.comBasLin.stoHis.u 100 : clientWeather.comBasLin.active = clientWeather.comBasLin.localActive 101 : clientWeather.comBasLin.localActive = pre(clientWeather.comBasLin.newActive) 102 : clientWeather.comBasLin.newActive = if clientWeather.comBasLin.outerStatePort.subgraphStatePort.resume then clientWeather.comBasLin.oldActive else (Modelica.StateGraph.Temporary.anyTrue({clientWeather.comBasLin.inPort[1].set, clientWeather.comBasLin.inPort[2].set, clientWeather.comBasLin.inPort[3].set}) or clientWeather.comBasLin.localActive and not Modelica.StateGraph.Temporary.anyTrue({clientWeather.comBasLin.outPort[1].reset})) and not clientWeather.comBasLin.outerStatePort.subgraphStatePort.suspend 103 : clientWeather.comBasLin.outerStatePort.subgraphStatePort.activeSteps = if clientWeather.comBasLin.localActive then 1.0 else 0.0 104 : clientWeather.comBasLin.inPort[1].occupied = clientWeather.comBasLin.localActive 105 : clientWeather.comBasLin.inPort[2].occupied = clientWeather.comBasLin.inPort[1].occupied or clientWeather.comBasLin.inPort[1].set 106 : clientWeather.comBasLin.inPort[3].occupied = clientWeather.comBasLin.inPort[2].occupied or clientWeather.comBasLin.inPort[2].set 107 : clientWeather.comBasLin.outPort[1].available = clientWeather.comBasLin.localActive 108 : clientWeather.t1.localCondition = clientWeather.t1.condition 109 : clientWeather.t1.condition = true 110 : clientWeather.t1.fire = clientWeather.t1.enableFire 111 : clientWeather.t1.enableFire = clientWeather.t1.localCondition and clientWeather.t1.inPort.available and not clientWeather.t1.outPort.occupied 112 : clientWeather.t1.inPort.reset = clientWeather.t1.fire 113 : clientWeather.t1.outPort.set = clientWeather.t1.fire 114 : clientWeather.norOpe.PPre = clientWeather.norOpe.PCon 115 : clientWeather.norOpe.active = clientWeather.norOpe.localActive 116 : clientWeather.norOpe.localActive = pre(clientWeather.norOpe.newActive) 117 : clientWeather.norOpe.newActive = if clientWeather.norOpe.outerStatePort.subgraphStatePort.resume then clientWeather.norOpe.oldActive else (Modelica.StateGraph.Temporary.anyTrue({clientWeather.norOpe.inPort[1].set}) or clientWeather.norOpe.localActive and not Modelica.StateGraph.Temporary.anyTrue({clientWeather.norOpe.outPort[1].reset, clientWeather.norOpe.outPort[2].reset})) and not clientWeather.norOpe.outerStatePort.subgraphStatePort.suspend 118 : clientWeather.norOpe.outerStatePort.subgraphStatePort.activeSteps = if clientWeather.norOpe.localActive then 1.0 else 0.0 119 : clientWeather.norOpe.inPort[1].occupied = clientWeather.norOpe.localActive 120 : clientWeather.norOpe.outPort[1].available = clientWeather.norOpe.localActive 121 : clientWeather.norOpe.outPort[2].available = clientWeather.norOpe.outPort[1].available and not clientWeather.norOpe.outPort[1].reset 122 : clientWeather.t2.localCondition = clientWeather.t2.condition 123 : clientWeather.t2.fire = clientWeather.t2.enableFire 124 : clientWeather.t2.enableFire = clientWeather.t2.localCondition and clientWeather.t2.inPort.available and not clientWeather.t2.outPort.occupied 125 : clientWeather.t2.inPort.reset = clientWeather.t2.fire 126 : clientWeather.t2.outPort.set = clientWeather.t2.fire 127 : clientWeather.t3.localCondition = clientWeather.t3.condition 128 : clientWeather.t3.fire = clientWeather.t3.enableFire 129 : clientWeather.t3.enableFire = clientWeather.t3.localCondition and clientWeather.t3.inPort.available and not clientWeather.t3.outPort.occupied 130 : clientWeather.t3.inPort.reset = clientWeather.t3.fire 131 : clientWeather.t3.outPort.set = clientWeather.t3.fire 132 : clientWeather.she.PPre = clientWeather.she.yShed * clientWeather.she.PCon 133 : clientWeather.she.active = clientWeather.she.localActive 134 : clientWeather.she.localActive = pre(clientWeather.she.newActive) 135 : clientWeather.she.newActive = if clientWeather.she.outerStatePort.subgraphStatePort.resume then clientWeather.she.oldActive else (Modelica.StateGraph.Temporary.anyTrue({clientWeather.she.inPort[1].set}) or clientWeather.she.localActive and not Modelica.StateGraph.Temporary.anyTrue({clientWeather.she.outPort[1].reset})) and not clientWeather.she.outerStatePort.subgraphStatePort.suspend 136 : clientWeather.she.outerStatePort.subgraphStatePort.activeSteps = if clientWeather.she.localActive then 1.0 else 0.0 137 : clientWeather.she.inPort[1].occupied = clientWeather.she.localActive 138 : clientWeather.she.outPort[1].available = clientWeather.she.localActive 139 : clientWeather.t4.localCondition = clientWeather.t4.condition 140 : clientWeather.t4.fire = clientWeather.t4.enableFire 141 : clientWeather.t4.enableFire = clientWeather.t4.localCondition and clientWeather.t4.inPort.available and not clientWeather.t4.outPort.occupied 142 : clientWeather.t4.inPort.reset = clientWeather.t4.fire 143 : clientWeather.t4.outPort.set = clientWeather.t4.fire 144 : clientWeather.tri.y = sample(5, clientWeather.tri.startTime, 900.0) 145 : clientWeather.switch.y = if clientWeather.switch.u2 then clientWeather.switch.u1 else clientWeather.switch.u3 146 : errorWeather.y = errorWeather.k1 * errorWeather.u1 + errorWeather.k2 * errorWeather.u2 147 : relErrAverage.y = relErrAverage.k * relErrAverage.u 148 : relErrWeather.y = relErrWeather.k * relErrWeather.u 149 : der(ene.y) = ene.k * ene.u 150 : yShed.y = yShed.k 151 : clientAverage.stateGraphRoot.subgraphStatePort.activeSteps + clientAverage.initialStep.outerStatePort.subgraphStatePort.activeSteps + clientAverage.norOpe.outerStatePort.subgraphStatePort.activeSteps + clientAverage.she.outerStatePort.subgraphStatePort.activeSteps + clientAverage.comBasLin.outerStatePort.subgraphStatePort.activeSteps = 0.0 152 : clientAverage.comBasLin.ECon = clientAverage.comBasLin.basLin.ECon 153 : clientAverage.comBasLin.PPre[1] = clientAverage.comBasLin.basLin.PPre[1] 154 : clientAverage.comBasLin.isEventDay = clientAverage.comBasLin.stoHis.u 155 : clientAverage.comBasLin.basLin.storeHistory = clientAverage.comBasLin.stoHis.y 156 : clientAverage.comBasLin.basLin.typeOfDay[1] = clientAverage.comBasLin.typeOfDay[1] 157 : clientAverage.comBasLin.basLin.typeOfDay[2] = clientAverage.comBasLin.typeOfDay[2] 158 : clientAverage.initialStep.outPort[1].available = clientAverage.transition.inPort.available 159 : clientAverage.initialStep.outPort[1].reset = clientAverage.transition.inPort.reset 160 : clientAverage.comBasLin.inPort[1].occupied = clientAverage.transition.outPort.occupied 161 : clientAverage.comBasLin.inPort[1].set = clientAverage.transition.outPort.set 162 : clientAverage.comBasLin.outPort[1].available = clientAverage.t1.inPort.available 163 : clientAverage.comBasLin.outPort[1].reset = clientAverage.t1.inPort.reset 164 : clientAverage.norOpe.inPort[1].occupied = clientAverage.t1.outPort.occupied 165 : clientAverage.norOpe.inPort[1].set = clientAverage.t1.outPort.set 166 : clientAverage.ECon = clientAverage.comBasLin.ECon 167 : clientAverage.PPreNoShe[1] = clientAverage.comBasLin.PPre[1] 168 : clientAverage.PPreNoShe[1] = clientAverage.norOpe.PCon 169 : clientAverage.comBasLin.inPort[2].occupied = clientAverage.t2.outPort.occupied 170 : clientAverage.comBasLin.inPort[2].set = clientAverage.t2.outPort.set 171 : clientAverage.she.inPort[1].occupied = clientAverage.t3.outPort.occupied 172 : clientAverage.she.inPort[1].set = clientAverage.t3.outPort.set 173 : clientAverage.she.outPort[1].available = clientAverage.t4.inPort.available 174 : clientAverage.she.outPort[1].reset = clientAverage.t4.inPort.reset 175 : clientAverage.comBasLin.inPort[3].occupied = clientAverage.t4.outPort.occupied 176 : clientAverage.comBasLin.inPort[3].set = clientAverage.t4.outPort.set 177 : clientAverage.t2.condition = clientAverage.t4.condition 178 : clientAverage.t2.condition = clientAverage.tri.y 179 : clientAverage.norOpe.PPre = clientAverage.she.PCon 180 : clientAverage.norOpe.PPre = clientAverage.switch.u1 181 : clientAverage.norOpe.active = clientAverage.switch.u2 182 : clientAverage.norOpe.outPort[1].available = clientAverage.t2.inPort.available 183 : clientAverage.norOpe.outPort[1].reset = clientAverage.t2.inPort.reset 184 : clientAverage.norOpe.outPort[2].available = clientAverage.t3.inPort.available 185 : clientAverage.norOpe.outPort[2].reset = clientAverage.t3.inPort.reset 186 : clientAverage.shed = clientAverage.t3.condition 187 : clientAverage.she.PPre = clientAverage.switch.u3 188 : clientAverage.comBasLin.isEventDay = clientAverage.isEventDay 189 : clientAverage.comBasLin.typeOfDay[1] = clientAverage.typeOfDay[1] 190 : clientAverage.comBasLin.typeOfDay[2] = clientAverage.typeOfDay[2] 191 : clientAverage.she.yShed = clientAverage.yShed 192 : clientAverage.PPre = clientAverage.switch.y 193 : clientWeather.stateGraphRoot.subgraphStatePort.activeSteps + clientWeather.initialStep.outerStatePort.subgraphStatePort.activeSteps + clientWeather.norOpe.outerStatePort.subgraphStatePort.activeSteps + clientWeather.she.outerStatePort.subgraphStatePort.activeSteps + clientWeather.comBasLin.outerStatePort.subgraphStatePort.activeSteps = 0.0 194 : clientWeather.comBasLin.basLin.TOut = clientWeather.comBasLin.basLin.TOut_in_internal 195 : clientWeather.comBasLin.ECon = clientWeather.comBasLin.basLin.ECon 196 : clientWeather.comBasLin.TOut = clientWeather.comBasLin.basLin.TOut 197 : clientWeather.comBasLin.PPre[1] = clientWeather.comBasLin.basLin.PPre[1] 198 : clientWeather.comBasLin.isEventDay = clientWeather.comBasLin.stoHis.u 199 : clientWeather.comBasLin.basLin.storeHistory = clientWeather.comBasLin.stoHis.y 200 : clientWeather.comBasLin.basLin.typeOfDay[1] = clientWeather.comBasLin.typeOfDay[1] 201 : clientWeather.comBasLin.basLin.typeOfDay[2] = clientWeather.comBasLin.typeOfDay[2] 202 : clientWeather.initialStep.outPort[1].available = clientWeather.transition.inPort.available 203 : clientWeather.initialStep.outPort[1].reset = clientWeather.transition.inPort.reset 204 : clientWeather.comBasLin.inPort[1].occupied = clientWeather.transition.outPort.occupied 205 : clientWeather.comBasLin.inPort[1].set = clientWeather.transition.outPort.set 206 : clientWeather.comBasLin.outPort[1].available = clientWeather.t1.inPort.available 207 : clientWeather.comBasLin.outPort[1].reset = clientWeather.t1.inPort.reset 208 : clientWeather.norOpe.inPort[1].occupied = clientWeather.t1.outPort.occupied 209 : clientWeather.norOpe.inPort[1].set = clientWeather.t1.outPort.set 210 : clientWeather.ECon = clientWeather.comBasLin.ECon 211 : clientWeather.PPreNoShe[1] = clientWeather.comBasLin.PPre[1] 212 : clientWeather.PPreNoShe[1] = clientWeather.norOpe.PCon 213 : clientWeather.comBasLin.inPort[2].occupied = clientWeather.t2.outPort.occupied 214 : clientWeather.comBasLin.inPort[2].set = clientWeather.t2.outPort.set 215 : clientWeather.she.inPort[1].occupied = clientWeather.t3.outPort.occupied 216 : clientWeather.she.inPort[1].set = clientWeather.t3.outPort.set 217 : clientWeather.she.outPort[1].available = clientWeather.t4.inPort.available 218 : clientWeather.she.outPort[1].reset = clientWeather.t4.inPort.reset 219 : clientWeather.comBasLin.inPort[3].occupied = clientWeather.t4.outPort.occupied 220 : clientWeather.comBasLin.inPort[3].set = clientWeather.t4.outPort.set 221 : clientWeather.t2.condition = clientWeather.t4.condition 222 : clientWeather.t2.condition = clientWeather.tri.y 223 : clientWeather.norOpe.PPre = clientWeather.she.PCon 224 : clientWeather.norOpe.PPre = clientWeather.switch.u1 225 : clientWeather.norOpe.active = clientWeather.switch.u2 226 : clientWeather.norOpe.outPort[1].available = clientWeather.t2.inPort.available 227 : clientWeather.norOpe.outPort[1].reset = clientWeather.t2.inPort.reset 228 : clientWeather.norOpe.outPort[2].available = clientWeather.t3.inPort.available 229 : clientWeather.norOpe.outPort[2].reset = clientWeather.t3.inPort.reset 230 : clientWeather.shed = clientWeather.t3.condition 231 : clientWeather.she.PPre = clientWeather.switch.u3 232 : clientWeather.comBasLin.isEventDay = clientWeather.isEventDay 233 : clientWeather.TOut = clientWeather.comBasLin.TOut 234 : clientWeather.comBasLin.typeOfDay[1] = clientWeather.typeOfDay[1] 235 : clientWeather.comBasLin.typeOfDay[2] = clientWeather.typeOfDay[2] 236 : clientWeather.she.yShed = clientWeather.yShed 237 : clientWeather.PPre = clientWeather.switch.y 238 : clientAverage.isEventDay = clientAverage.shed 239 : clientAverage.isEventDay = clientWeather.isEventDay 240 : clientAverage.isEventDay = clientWeather.shed 241 : clientAverage.isEventDay = drSig.y 242 : bui90.y[3] = drSig.u 243 : clientAverage.PPre = errorAverage.u1 244 : clientWeather.PPre = errorWeather.u1 245 : bui90.y[1] = clientWeather.TOut 246 : errorAverage.y = relErrAverage.u 247 : errorWeather.y = relErrWeather.u 248 : bui90.y[2] = ene.u 249 : bui90.y[2] = errorAverage.u2 250 : bui90.y[2] = errorWeather.u2 251 : clientAverage.ECon = clientWeather.ECon 252 : clientAverage.ECon = ene.y 253 : clientAverage.typeOfDay[1] = clientWeather.typeOfDay[1] 254 : clientAverage.typeOfDay[1] = dayType.y[1] 255 : clientAverage.typeOfDay[2] = clientWeather.typeOfDay[2] 256 : clientAverage.typeOfDay[2] = dayType.y[2] 257 : clientAverage.yShed = clientWeather.yShed 258 : clientAverage.yShed = yShed.y 259 : clientWeather.comBasLin.outerStatePort.subgraphStatePort.suspend = clientWeather.initialStep.outerStatePort.subgraphStatePort.suspend 260 : clientWeather.comBasLin.outerStatePort.subgraphStatePort.suspend = clientWeather.norOpe.outerStatePort.subgraphStatePort.suspend 261 : clientWeather.comBasLin.outerStatePort.subgraphStatePort.suspend = clientWeather.she.outerStatePort.subgraphStatePort.suspend 262 : clientWeather.comBasLin.outerStatePort.subgraphStatePort.suspend = clientWeather.stateGraphRoot.subgraphStatePort.suspend 263 : clientWeather.comBasLin.outerStatePort.subgraphStatePort.resume = clientWeather.initialStep.outerStatePort.subgraphStatePort.resume 264 : clientWeather.comBasLin.outerStatePort.subgraphStatePort.resume = clientWeather.norOpe.outerStatePort.subgraphStatePort.resume 265 : clientWeather.comBasLin.outerStatePort.subgraphStatePort.resume = clientWeather.she.outerStatePort.subgraphStatePort.resume 266 : clientWeather.comBasLin.outerStatePort.subgraphStatePort.resume = clientWeather.stateGraphRoot.subgraphStatePort.resume 267 : clientAverage.comBasLin.outerStatePort.subgraphStatePort.suspend = clientAverage.initialStep.outerStatePort.subgraphStatePort.suspend 268 : clientAverage.comBasLin.outerStatePort.subgraphStatePort.suspend = clientAverage.norOpe.outerStatePort.subgraphStatePort.suspend 269 : clientAverage.comBasLin.outerStatePort.subgraphStatePort.suspend = clientAverage.she.outerStatePort.subgraphStatePort.suspend 270 : clientAverage.comBasLin.outerStatePort.subgraphStatePort.suspend = clientAverage.stateGraphRoot.subgraphStatePort.suspend 271 : clientAverage.comBasLin.outerStatePort.subgraphStatePort.resume = clientAverage.initialStep.outerStatePort.subgraphStatePort.resume 272 : clientAverage.comBasLin.outerStatePort.subgraphStatePort.resume = clientAverage.norOpe.outerStatePort.subgraphStatePort.resume 273 : clientAverage.comBasLin.outerStatePort.subgraphStatePort.resume = clientAverage.she.outerStatePort.subgraphStatePort.resume 274 : clientAverage.comBasLin.outerStatePort.subgraphStatePort.resume = clientAverage.stateGraphRoot.subgraphStatePort.resume 275 : when clientWeather.she.outerStatePort.subgraphStatePort.suspend then clientWeather.she.oldActive := clientWeather.she.localActive; end when; 276 : when clientWeather.norOpe.outerStatePort.subgraphStatePort.suspend then clientWeather.norOpe.oldActive := clientWeather.norOpe.localActive; end when; 277 : when clientWeather.comBasLin.outerStatePort.subgraphStatePort.suspend then clientWeather.comBasLin.oldActive := clientWeather.comBasLin.localActive; end when; 278 : when clientWeather.initialStep.outerStatePort.subgraphStatePort.suspend then clientWeather.initialStep.oldActive := clientWeather.initialStep.localActive; end when; 279 : when {time >= pre(bui90.nextTimeEvent), initial()} then bui90.nextTimeEventScaled := Modelica.Blocks.Sources.CombiTimeTable$bui90.getNextTimeEvent(bui90.tableID, bui90.timeScaled, bui90.tableOnFileRead); end when; 280 : when {time >= pre(bui90.nextTimeEvent), initial()} then bui90.nextTimeEvent := if bui90.nextTimeEventScaled < 1.797693134862316e+308 then bui90.nextTimeEventScaled else 1.797693134862316e+308; end when; 281 : when dayType.sampleTrigger then dayType.skipIDayIncrement := false; end when; 282 : when dayType.sampleTrigger then dayType.iDay := if pre(dayType.skipIDayIncrement) then pre(dayType.iDay) else 1 + mod(pre(dayType.iDay), 7); end when; 283 : when clientAverage.she.outerStatePort.subgraphStatePort.suspend then clientAverage.she.oldActive := clientAverage.she.localActive; end when; 284 : when clientAverage.norOpe.outerStatePort.subgraphStatePort.suspend then clientAverage.norOpe.oldActive := clientAverage.norOpe.localActive; end when; 285 : when clientAverage.comBasLin.outerStatePort.subgraphStatePort.suspend then clientAverage.comBasLin.oldActive := clientAverage.comBasLin.localActive; end when; 286 : when clientAverage.initialStep.outerStatePort.subgraphStatePort.suspend then clientAverage.initialStep.oldActive := clientAverage.initialStep.localActive; end when; Notification: Performance of preOpt clockPartitioning (simulation) : time 0.00995/2.512, allocations: 5.96 MB / 1.132 GB, free: 6.508 MB / 0.7293 GB Error: pre-optimization module clockPartitioning (simulation) failed.