Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TimerWithReset.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Templates.Plants.Controls.Utilities.Validation.TimerWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|noThr.u|res.y|noThr.t|noThr.y|noThrRes.y|noThr.passed|noThrRes.passed|thrTim.u|thrTim.t|thrTim.y|thrTimRes.y|thrTim.passed|thrTimRes.passed|thrTim1.u|thrTim1.t|thrTim1.y|thrTim1Res.y|thrTim1.passed|thrTim1Res.passed",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TimerWithReset") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.TimerWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|noThr.u|res.y|noThr.t|noThr.y|noThrRes.y|noThr.passed|noThrRes.passed|thrTim.u|thrTim.t|thrTim.y|thrTimRes.y|thrTim.passed|thrTimRes.passed|thrTim1.u|thrTim1.t|thrTim1.y|thrTim1Res.y|thrTim1.passed|thrTim1Res.passed",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TimerWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001607/0.001607, allocations: 108.3 kB / 16.41 MB, free: 6.508 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.001817/0.001817, allocations: 192.3 kB / 17.35 MB, free: 5.742 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.496/1.496, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.583/2.583, allocations: 469.4 MB / 0.7428 GB, free: 3.477 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 63.91 kB / 1.065 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7416/0.7429, allocations: 159.1 MB / 1.221 GB, free: 2.359 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.TimerWithReset): time 0.003588/0.7465, allocations: 2.354 MB / 1.223 GB, free: 15.99 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002136/0.7487, allocations: 1.153 MB / 1.224 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002809/0.749, allocations: 11.94 kB / 1.224 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0002257/0.7493, allocations: 63.27 kB / 1.224 GB, free: 14.76 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001819/0.7494, allocations: 71.2 kB / 1.224 GB, free: 14.69 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001346/0.7508, allocations: 0.5568 MB / 1.225 GB, free: 14.14 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.001066/0.7519, allocations: 1.026 MB / 1.226 GB, free: 13.11 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007274/0.7526, allocations: 0.5405 MB / 1.227 GB, free: 12.56 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004001/0.753, allocations: 367.1 kB / 1.227 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004496/0.7535, allocations: 374.6 kB / 1.227 GB, free: 11.84 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001738/0.7537, allocations: 104 kB / 1.227 GB, free: 11.73 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002253/0.7539, allocations: 131.9 kB / 1.227 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001745/0.7541, allocations: 203.5 kB / 1.228 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0003713/0.7545, allocations: 390.5 kB / 1.228 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0009328/0.7554, allocations: 1.049 MB / 1.229 GB, free: 9.977 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.7554, allocations: 0 / 1.229 GB, free: 9.977 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.522e-06/0.7554, allocations: 0 / 1.229 GB, free: 9.977 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 2.181e-05/0.7554, allocations: 0 / 1.229 GB, free: 9.977 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: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.001721/0.7572, allocations: 1.005 MB / 1.23 GB, free: 8.902 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.7572, allocations: 12.62 kB / 1.23 GB, free: 8.891 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000165/0.7574, allocations: 80.17 kB / 1.23 GB, free: 8.812 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009676/0.7584, allocations: 476.8 kB / 1.231 GB, free: 8.309 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.327e-05/0.7584, allocations: 65.66 kB / 1.231 GB, free: 8.246 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000132/0.7586, allocations: 96.34 kB / 1.231 GB, free: 8.152 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00118/0.7598, allocations: 0.7864 MB / 1.231 GB, free: 7.316 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.7598, allocations: 7.875 kB / 1.231 GB, free: 7.309 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.422e-05/0.7599, allocations: 35.97 kB / 1.232 GB, free: 7.273 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/0.7599, allocations: 12 kB / 1.232 GB, free: 7.262 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008415/0.7607, allocations: 0.5086 MB / 1.232 GB, free: 6.754 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003008/0.7638, allocations: 2.717 MB / 1.235 GB, free: 3.93 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00105/0.7648, allocations: 0.7298 MB / 1.235 GB, free: 3.152 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00046/0.7653, allocations: 333.5 kB / 1.236 GB, free: 2.812 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.272e-05/0.7653, allocations: 20.31 kB / 1.236 GB, free: 2.793 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008288/0.7662, allocations: 0.5935 MB / 1.236 GB, free: 2.172 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=81): time 2.325e-06/0.7662, allocations: 3.938 kB / 1.236 GB, free: 2.168 MB / 0.9512 GB Notification: Performance of matching and sorting (n=81): time 0.001763/0.7679, allocations: 1.118 MB / 1.237 GB, free: 1.043 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.02e-05/0.768, allocations: 178.9 kB / 1.238 GB, free: 0.832 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002531/0.7683, allocations: 302.1 kB / 1.238 GB, free: 0.5312 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 9.757e-05/0.7684, allocations: 73.69 kB / 1.238 GB, free: 464 kB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001622/0.7686, allocations: 240.9 kB / 1.238 GB, free: 216 kB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001406/0.7687, allocations: 189.6 kB / 1.238 GB, free: 24 kB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00029/0.769, allocations: 235.4 kB / 1.239 GB, free: 15.79 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.00014/0.7692, allocations: 370.7 kB / 1.239 GB, free: 15.41 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005177/0.7697, allocations: 266.4 kB / 1.239 GB, free: 15.15 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000648/0.7703, allocations: 0.5412 MB / 1.24 GB, free: 14.5 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009086/0.7713, allocations: 0.7438 MB / 1.24 GB, free: 13.63 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.7713, allocations: 4 kB / 1.24 GB, free: 13.62 MB / 0.9669 GB Notification: Performance of matching and sorting (n=134) (initialization): time 0.001432/0.7727, allocations: 0.9314 MB / 1.241 GB, free: 12.67 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 5.365e-05/0.7728, allocations: 71.39 kB / 1.241 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.7728, allocations: 8 kB / 1.241 GB, free: 12.58 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.759e-05/0.7728, allocations: 16 kB / 1.241 GB, free: 12.56 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003368/0.7732, allocations: 100.4 kB / 1.242 GB, free: 12.46 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.28e-05/0.7732, allocations: 23.92 kB / 1.242 GB, free: 12.44 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005755/0.7738, allocations: 135.1 kB / 1.242 GB, free: 12.31 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.097e-05/0.7739, allocations: 55.98 kB / 1.242 GB, free: 12.25 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 108 ($PRE.res.onDel1.u,$PRE.res.onDel2.u,$PRE.res.toTrue.enableFire,$PRE.res.toFalse.enableFire,$PRE.res.toTrue1.enableFire,$PRE.res.toFalse1.enableFire,thrTim1Res.passed,$PRE.thrTim1Res.passed,thrTimRes.passed,$PRE.thrTimRes.passed,noThrRes.passed,$PRE.noThrRes.passed,thrTim1.passed,$PRE.thrTim1.passed,thrTim.passed,$PRE.thrTim.passed,noThr.passed,$PRE.noThr.passed,$PRE.res.onDel2.t_next,$whenCondition22,$PRE.res.onDel1.t_next,$whenCondition19,$whenCondition11,$whenCondition12,$whenCondition9,$whenCondition10,$whenCondition3,res.onDel2.t_next,res.toFalse1.enableFire,res.toTrue1.enableFire,res.initialStep.oldActive,$PRE.res.initialStep.oldActive,res.initialStep.newActive,$PRE.res.initialStep.newActive,res.initialStep.outPort[2].available,res.initialStep.localActive,$PRE.res.initialStep.localActive,res.initialStep.active,res.toFalse.enableFire,res.toFalse.localCondition,res.outputTrue.active,res.outputTrue.oldActive,$PRE.res.outputTrue.oldActive,res.outputTrue.newActive,$PRE.res.outputTrue.newActive,res.outputTrue.inPort[2].occupied,res.outputTrue.localActive,$PRE.res.outputTrue.localActive,res.toTrue.enableFire,res.toTrue.localCondition,res.outputFalse.active,res.outputFalse.oldActive,$PRE.res.outputFalse.oldActive,res.outputFalse.newActive,$PRE.res.outputFalse.newActive,res.outputFalse.inPort[2].occupied,res.outputFalse.localActive,$PRE.res.outputFalse.localActive,res.stateGraphRoot.activeSteps,res.onDel2.y,res.onDel2.u,res.onDel1.y,res.onDel1.u,res.u,thrTim1Res.entryTime,$PRE.thrTim1Res.entryTime,thrTimRes.entryTime,$PRE.thrTimRes.entryTime,noThrRes.entryTime,$PRE.noThrRes.entryTime,booPul1.y,$PRE.booPul1.y,booPul.y,$PRE.booPul.y,thrTim1.entryTime,$PRE.thrTim1.entryTime,thrTim.entryTime,$PRE.thrTim.entryTime,noThr.entryTime,$PRE.noThr.entryTime,$whenCondition4,$whenCondition2,$whenCondition1,$whenCondition5,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition16,$whenCondition18,$whenCondition17,$whenCondition21,$whenCondition20,$whenCondition24,$whenCondition23,res.onDel1.t_next,res.toTrue.t_start,$PRE.res.toTrue.t_start,res.toFalse.t_start,$PRE.res.toFalse.t_start,res.toTrue1.t_start,$PRE.res.toTrue1.t_start,res.toFalse1.t_start,$PRE.res.toFalse1.t_start,res.stateGraphRoot.resume,res.stateGraphRoot.suspend) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 2 * 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.0003242/0.7742, allocations: 295 kB / 1.242 GB, free: 11.95 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.452e-05/0.7743, allocations: 51.52 kB / 1.242 GB, free: 11.9 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001343/0.7757, allocations: 0.8736 MB / 1.243 GB, free: 11.02 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.27e-05/0.7757, allocations: 7.984 kB / 1.243 GB, free: 11.01 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.7757, allocations: 0 / 1.243 GB, free: 11.01 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 7.928e-05/0.7758, allocations: 128.4 kB / 1.243 GB, free: 10.87 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.7759, allocations: 43.91 kB / 1.243 GB, free: 10.82 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002225/0.7761, allocations: 35.95 kB / 1.243 GB, free: 10.79 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001882/0.7763, allocations: 96.52 kB / 1.243 GB, free: 10.7 MB / 0.9669 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001551/0.7779, allocations: 1.299 MB / 1.245 GB, free: 9.395 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001425/0.7793, allocations: 1.358 MB / 1.246 GB, free: 8.012 MB / 0.9669 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000555/0.7799, allocations: 461.1 kB / 1.246 GB, free: 7.566 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001324/0.78, allocations: 170 kB / 1.246 GB, free: 7.402 MB / 0.9669 GB Notification: Performance of Backend: time 4.71e-07/0.78, allocations: 0 / 1.246 GB, free: 7.402 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001562/0.7816, allocations: 0.7311 MB / 1.247 GB, free: 6.637 MB / 0.9669 GB Notification: Performance of SimCode: time 0.001358/0.783, allocations: 1.244 MB / 1.248 GB, free: 5.344 MB / 0.9669 GB Notification: Performance of Templates: time 0.0129/0.7959, allocations: 8.121 MB / 1.256 GB, free: 13.26 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TimerWithReset.makefile (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TimerWithReset.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TimerWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TimerWithReset.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TimerWithReset.sim & ./Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TimerWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TimerWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TimerWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_TimerWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TimerWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,noThr.u,res.y,noThr.t,noThr.y,noThrRes.y,noThr.passed,noThrRes.passed,thrTim.u,thrTim.t,thrTim.y,thrTimRes.y,thrTim.passed,thrTimRes.passed,thrTim1.u,thrTim1.t,thrTim1.y,thrTim1Res.y,thrTim1.passed,thrTim1Res.passed Variables in the result:$cse1,booPul.period,booPul.shift,booPul.t0,booPul.t1,booPul.width,booPul.y,booPul1.period,booPul1.shift,booPul1.t0,booPul1.t1,booPul1.width,booPul1.y,con.k,con.y,noThr.passed,noThr.reset,noThr.t,noThr.u,noThr.y,noThrRes.passed,noThrRes.t,noThrRes.y,res.falseHoldDuration,res.initialStep.nIn,res.initialStep.nOut,res.onDel1.delayOnInit,res.onDel1.delayTime,res.onDel1.t_past,res.onDel2.delayOnInit,res.onDel2.delayTime,res.onDel2.t_past,res.outputFalse.nIn,res.outputFalse.nOut,res.outputTrue.localActive,res.outputTrue.nIn,res.outputTrue.nOut,res.toFalse.enableTimer,res.toFalse.waitTime,res.toFalse1.enableTimer,res.toFalse1.waitTime,res.toTrue.enableTimer,res.toTrue.waitTime,res.toTrue1.enableTimer,res.toTrue1.waitTime,res.trueHoldDuration,res.y,samTri.period,samTri.shift,samTri.t0,thrTim.passed,thrTim.reset,thrTim.t,thrTim.u,thrTim.y,thrTim1.passed,thrTim1.reset,thrTim1.t,thrTim1.u,thrTim1.y,thrTim1Res.passed,thrTim1Res.t,thrTim1Res.y,thrTimRes.passed,thrTimRes.t,thrTimRes.y,time