Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Subsequences.Validation.SystemRequests.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Subsequences.Validation.SystemRequests,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sysReq.TCooSet|sysReq.TZon|sysReq.uCoo|sysReq.uDam|sysReq.uVal|sysReq.VSet_flow|sysReq.VDis_flow|sysReq.TDisSet|sysReq.TDis|sysReq.yZonTemResReq|sysReq.yZonPreResReq|sysReq.yHeaValResReq|sysReq.yHotWatPlaReq",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Subsequences.Validation.SystemRequests") translateModel(Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Subsequences.Validation.SystemRequests,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sysReq.TCooSet|sysReq.TZon|sysReq.uCoo|sysReq.uDam|sysReq.uVal|sysReq.VSet_flow|sysReq.VDis_flow|sysReq.TDisSet|sysReq.TDis|sysReq.yZonTemResReq|sysReq.yZonPreResReq|sysReq.yHeaValResReq|sysReq.yHotWatPlaReq",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Subsequences.Validation.SystemRequests") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001703/0.001704, allocations: 110.9 kB / 16.42 MB, free: 6.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001961/0.001961, allocations: 190.7 kB / 17.35 MB, free: 5.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.438/1.438, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.807/2.807, allocations: 472.7 MB / 0.746 GB, free: 444 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 71.83 kB / 1.07 GB, free: 9.512 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.014/1.015, allocations: 159.9 MB / 1.226 GB, free: 13.49 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Subsequences.Validation.SystemRequests): time 0.005906/1.021, allocations: 3.02 MB / 1.229 GB, free: 10.46 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.004934/1.026, allocations: 2.086 MB / 1.231 GB, free: 8.359 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001599/1.028, allocations: 27.88 kB / 1.231 GB, free: 8.332 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0009481/1.029, allocations: 154.3 kB / 1.232 GB, free: 8.18 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.001109/1.03, allocations: 154.5 kB / 1.232 GB, free: 8.027 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.00185/1.032, allocations: 0.5529 MB / 1.232 GB, free: 7.477 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.002419/1.034, allocations: 1.343 MB / 1.234 GB, free: 6.129 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001371/1.036, allocations: 0.5238 MB / 1.234 GB, free: 5.586 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001115/1.037, allocations: 0.506 MB / 1.235 GB, free: 5.078 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008797/1.038, allocations: 0.5211 MB / 1.235 GB, free: 4.555 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0004399/1.038, allocations: 140 kB / 1.235 GB, free: 4.418 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004304/1.039, allocations: 155.9 kB / 1.235 GB, free: 4.266 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0003796/1.039, allocations: 275.2 kB / 1.236 GB, free: 3.996 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0008567/1.04, allocations: 0.5481 MB / 1.236 GB, free: 3.445 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.002257/1.042, allocations: 1.705 MB / 1.238 GB, free: 1.738 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 6.341e-06/1.042, allocations: 4 kB / 1.238 GB, free: 1.734 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.104e-06/1.042, allocations: 0 / 1.238 GB, free: 1.734 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.738e-05/1.042, allocations: 0 / 1.238 GB, free: 1.734 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 179 * Number of variables: 179 Notification: Performance of Generate backend data structure: time 0.004487/1.047, allocations: 1.494 MB / 1.239 GB, free: 172 kB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/1.047, allocations: 12.03 kB / 1.239 GB, free: 160 kB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003427/1.047, allocations: 128.2 kB / 1.239 GB, free: 32 kB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002334/1.05, allocations: 0.8733 MB / 1.24 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001037/1.05, allocations: 70.36 kB / 1.24 GB, free: 15.05 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001869/1.05, allocations: 96.36 kB / 1.24 GB, free: 14.96 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001826/1.052, allocations: 0.841 MB / 1.241 GB, free: 14.1 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.415e-05/1.052, allocations: 3.938 kB / 1.241 GB, free: 14.09 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.203e-05/1.052, allocations: 39.98 kB / 1.241 GB, free: 14.05 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.792e-05/1.052, allocations: 16 kB / 1.241 GB, free: 14.04 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001591/1.053, allocations: 0.5956 MB / 1.242 GB, free: 13.45 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003955/1.057, allocations: 2.2 MB / 1.244 GB, free: 11.18 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001816/1.059, allocations: 0.892 MB / 1.245 GB, free: 10.25 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008608/1.06, allocations: 374.9 kB / 1.245 GB, free: 9.871 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 6.619e-05/1.06, allocations: 16.22 kB / 1.245 GB, free: 9.855 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001245/1.061, allocations: 0.6325 MB / 1.246 GB, free: 9.203 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=92): time 3.867e-06/1.061, allocations: 4 kB / 1.246 GB, free: 9.199 MB / 0.9669 GB Notification: Performance of matching and sorting (n=92): time 0.003266/1.065, allocations: 1.303 MB / 1.247 GB, free: 7.895 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.721e-05/1.065, allocations: 118.8 kB / 1.247 GB, free: 7.754 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009657/1.066, allocations: 0.5937 MB / 1.248 GB, free: 7.152 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0001879/1.066, allocations: 73.69 kB / 1.248 GB, free: 7.074 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004763/1.066, allocations: 385.6 kB / 1.248 GB, free: 6.691 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002451/1.067, allocations: 230.3 kB / 1.249 GB, free: 6.465 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005174/1.067, allocations: 226.9 kB / 1.249 GB, free: 6.238 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0002976/1.068, allocations: 402.7 kB / 1.249 GB, free: 5.836 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001147/1.069, allocations: 326.4 kB / 1.249 GB, free: 5.516 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001331/1.07, allocations: 0.63 MB / 1.25 GB, free: 4.758 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002087/1.072, allocations: 0.8843 MB / 1.251 GB, free: 3.742 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.018e-05/1.072, allocations: 4 kB / 1.251 GB, free: 3.738 MB / 0.9669 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.00299/1.075, allocations: 1.077 MB / 1.252 GB, free: 2.652 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 6.817e-05/1.075, allocations: 37.69 kB / 1.252 GB, free: 2.609 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.365e-05/1.075, allocations: 12 kB / 1.252 GB, free: 2.598 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.932e-05/1.075, allocations: 12 kB / 1.252 GB, free: 2.586 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006597/1.076, allocations: 163.6 kB / 1.252 GB, free: 2.426 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.748e-05/1.076, allocations: 15.94 kB / 1.252 GB, free: 2.41 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001025/1.077, allocations: 179.2 kB / 1.252 GB, free: 2.234 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001158/1.077, allocations: 51.98 kB / 1.252 GB, free: 2.184 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 111 ($PRE.sysReq.tim1.u,$PRE.sysReq.tim2.u,$PRE.sysReq.tim3.u,$PRE.sysReq.tim4.u,$PRE.sysReq.tim5.u,sysReq.sampler.firstTrigger,$PRE.sysReq.sampler.firstTrigger,$whenCondition21,$whenCondition22,$PRE.sysReq.tim2.t_next,$whenCondition16,$PRE.sysReq.tim1.t_next,$whenCondition13,sysReq.sampler.sampleTrigger,$whenCondition19,TCooSet.sampleTrigger,$whenCondition20,sysReq.tim2.t_next,booPul.y,$PRE.booPul.y,TCooSet.y,$PRE.TCooSet.y,sysReq.sampler.y,sysReq.tim2.y,sysReq.tim2.u,sysReq.tim1.y,sysReq.tim1.u,sysReq.intSwi1.y,sysReq.and2.y,sysReq.and1.y,sysReq.booToInt.y,sysReq.greThr.greHys.y,$PRE.sysReq.greThr.greHys.y,sysReq.greThr2.greHys.y,$PRE.sysReq.greThr2.greHys.y,sysReq.greThr1.greHys.y,$PRE.sysReq.greThr1.greHys.y,sysReq.yZonTemResReq,$whenCondition15,$whenCondition14,$whenCondition18,$whenCondition17,sysReq.tim1.t_next,sysReq.sampler3.firstTrigger,$PRE.sysReq.sampler3.firstTrigger,sysReq.sampler2.firstTrigger,$PRE.sysReq.sampler2.firstTrigger,sysReq.sampler1.firstTrigger,$PRE.sysReq.sampler1.firstTrigger,$PRE.sysReq.tim3.t_next,$whenCondition7,sysReq.sampler1.sampleTrigger,$whenCondition10,sysReq.sampler2.sampleTrigger,$whenCondition11,sysReq.sampler3.sampleTrigger,$whenCondition12,sysReq.sampler3.y,sysReq.sampler2.y,sysReq.sampler1.y,sysReq.and5.y,sysReq.greEqu1.greHys.y,$PRE.sysReq.greEqu1.greHys.y,sysReq.greEqu.greHys.y,$PRE.sysReq.greEqu.greHys.y,sysReq.tim3.y,sysReq.tim3.u,sysReq.swi5.y,sysReq.and4.y,sysReq.and3.y,sysReq.booToInt1.y,sysReq.greThr4.greHys.y,$PRE.sysReq.greThr4.greHys.y,sysReq.greThr3.greHys.y,$PRE.sysReq.greThr3.greHys.y,sysReq.yZonPreResReq,$whenCondition9,$whenCondition8,sysReq.tim3.t_next,$PRE.sysReq.tim5.t_next,$whenCondition4,$PRE.sysReq.tim4.t_next,$whenCondition1,sysReq.tim5.t_next,sysReq.greThr6.greHys.y,$PRE.sysReq.greThr6.greHys.y,sysReq.booToInt2.y,sysReq.greThr5.greHys.y,$PRE.sysReq.greThr5.greHys.y,sysReq.tim5.y,sysReq.tim5.u,sysReq.tim4.y,sysReq.tim4.u,sysReq.intSwi3.y,sysReq.les1.lesHys.y,$PRE.sysReq.les1.lesHys.y,sysReq.les.lesHys.y,$PRE.sysReq.les.lesHys.y,sysReq.yHotWatPlaReq,sysReq.yHeaValResReq,$whenCondition3,$whenCondition2,$whenCondition6,$whenCondition5,sysReq.tim4.t_next,sysReq.twoCooResReq.y,sysReq.thrCooResReq.y,sysReq.twoPreResReq.y,sysReq.thrPreResReq.y,sysReq.twoHeaResReq.y,sysReq.thrHeaResReq.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (136): * Single equations (assignments): 135 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006572/1.078, allocations: 311 kB / 1.253 GB, free: 1.863 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002707/1.078, allocations: 91.42 kB / 1.253 GB, free: 1.773 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002394/1.078, allocations: 90.17 kB / 1.253 GB, free: 1.684 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.107e-05/1.079, allocations: 7.984 kB / 1.253 GB, free: 1.676 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/1.079, allocations: 4 kB / 1.253 GB, free: 1.672 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002343/1.079, allocations: 164.3 kB / 1.253 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000206/1.079, allocations: 35.98 kB / 1.253 GB, free: 1.457 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006979/1.08, allocations: 99.86 kB / 1.253 GB, free: 1.359 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003525/1.08, allocations: 131.8 kB / 1.253 GB, free: 1.23 MB / 0.9669 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002835/1.083, allocations: 1.275 MB / 1.255 GB, free: 15.95 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002451/1.085, allocations: 1.322 MB / 1.256 GB, free: 14.6 MB / 0.9825 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001066/1.086, allocations: 487.3 kB / 1.256 GB, free: 14.13 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004983/1.087, allocations: 379.1 kB / 1.257 GB, free: 13.76 MB / 0.9825 GB Notification: Performance of Backend: time 1.082e-06/1.087, allocations: 0 / 1.257 GB, free: 13.76 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.002385/1.089, allocations: 0.7228 MB / 1.257 GB, free: 13.02 MB / 0.9825 GB Notification: Performance of SimCode: time 0.003307/1.093, allocations: 1.732 MB / 1.259 GB, free: 11.24 MB / 0.9825 GB Notification: Performance of Templates: time 0.02907/1.122, allocations: 12.18 MB / 1.271 GB, free: 15.2 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Subsequences.Validation.SystemRequests.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Subsequences.Validation.SystemRequests.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Subsequences.Validation.SystemRequests.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Subsequences.Validation.SystemRequests.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Subsequences.Validation.SystemRequests.sim & ./Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Subsequences.Validation.SystemRequests -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Subsequences.Validation.SystemRequests.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Subsequences.Validation.SystemRequests_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_ASHRAE_G36_TerminalUnits_Reheat_Subsequences_Validation_SystemRequests.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Subsequences.Validation.SystemRequests.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches