Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001563/0.001563, allocations: 95.92 kB / 19.7 MB, free: 2.129 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001957/0.001957, allocations: 209.6 kB / 23 MB, free: 4.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.557/1.557, allocations: 230.6 MB / 256.8 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.427/3.427, allocations: 0.49 GB / 0.7959 GB, free: 35.38 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff,tolerance=1e-08,outputFormat="mat",numberOfIntervals=7200,variableFilter="time|ySet|yOut",fileNamePrefix="Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff") translateModel(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff,tolerance=1e-08,outputFormat="mat",numberOfIntervals=7200,variableFilter="time|ySet|yOut",fileNamePrefix="Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002074/0.002074, allocations: 62.66 kB / 1.155 GB, free: 25.24 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4368/0.4389, allocations: 176.1 MB / 1.327 GB, free: 0.9375 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff): time 0.004745/0.4436, allocations: 2.359 MB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001601/0.4452, allocations: 0.7519 MB / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000194/0.4454, allocations: 8 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001985/0.4456, allocations: 43.47 kB / 1.33 GB, free: 13.76 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001258/0.4457, allocations: 39.59 kB / 1.33 GB, free: 13.72 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005754/0.4463, allocations: 171.7 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004495/0.4468, allocations: 396.2 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003595/0.4471, allocations: 165.6 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000252/0.4474, allocations: 163.4 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002048/0.4476, allocations: 159.2 kB / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.54e-05/0.4476, allocations: 48 kB / 1.331 GB, free: 12.64 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.356e-05/0.4477, allocations: 55.98 kB / 1.331 GB, free: 12.58 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 9.378e-05/0.4478, allocations: 95.7 kB / 1.331 GB, free: 12.49 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001646/0.448, allocations: 147.4 kB / 1.332 GB, free: 12.34 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0006275/0.4486, allocations: 0.5176 MB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.4486, allocations: 3.938 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.754e-06/0.4486, allocations: 0 / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.225e-05/0.4486, allocations: 0 / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001161/0.4498, allocations: 0.615 MB / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.4498, allocations: 12.03 kB / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002468/0.4501, allocations: 52.69 kB / 1.333 GB, free: 11.1 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005077/0.4506, allocations: 247 kB / 1.333 GB, free: 10.83 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.286e-05/0.4506, allocations: 29.03 kB / 1.333 GB, free: 10.8 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.683e-05/0.4507, allocations: 44.3 kB / 1.333 GB, free: 10.76 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007976/0.4515, allocations: 429.6 kB / 1.333 GB, free: 10.31 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.502e-05/0.4515, allocations: 0 / 1.333 GB, free: 10.31 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.722e-05/0.4516, allocations: 19.98 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.554e-05/0.4516, allocations: 8 kB / 1.334 GB, free: 10.29 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005161/0.4521, allocations: 238.5 kB / 1.334 GB, free: 10.05 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001553/0.4537, allocations: 0.7345 MB / 1.334 GB, free: 9.289 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006927/0.4543, allocations: 254.7 kB / 1.335 GB, free: 9.031 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002307/0.4546, allocations: 112.8 kB / 1.335 GB, free: 8.918 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.693e-05/0.4546, allocations: 4 kB / 1.335 GB, free: 8.914 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000477/0.4551, allocations: 237.4 kB / 1.335 GB, free: 8.668 MB / 1.029 GB Notification: Performance of pre-optimization done (n=33): time 2.585e-06/0.4551, allocations: 0 / 1.335 GB, free: 8.668 MB / 1.029 GB Notification: Performance of matching and sorting (n=33): time 0.001132/0.4562, allocations: 474.9 kB / 1.335 GB, free: 8.199 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/0.4563, allocations: 114.8 kB / 1.336 GB, free: 8.062 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002748/0.4566, allocations: 223.7 kB / 1.336 GB, free: 7.832 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.355e-05/0.4567, allocations: 45.7 kB / 1.336 GB, free: 7.781 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.4568, allocations: 164.7 kB / 1.336 GB, free: 7.617 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 9.589e-05/0.4569, allocations: 91.31 kB / 1.336 GB, free: 7.527 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001423/0.457, allocations: 86.11 kB / 1.336 GB, free: 7.434 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001768/0.4572, allocations: 338.8 kB / 1.336 GB, free: 7.094 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002097/0.4574, allocations: 100.8 kB / 1.337 GB, free: 6.996 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003008/0.4577, allocations: 217.7 kB / 1.337 GB, free: 6.75 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003651/0.4581, allocations: 211.7 kB / 1.337 GB, free: 6.527 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.4581, allocations: 3.938 kB / 1.337 GB, free: 6.523 MB / 1.029 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0005661/0.4587, allocations: 305 kB / 1.337 GB, free: 6.219 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.4587, allocations: 4 kB / 1.337 GB, free: 6.215 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.4587, allocations: 4 kB / 1.337 GB, free: 6.211 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.295e-05/0.4587, allocations: 7.922 kB / 1.337 GB, free: 6.203 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001885/0.4589, allocations: 44.03 kB / 1.337 GB, free: 6.16 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.4589, allocations: 4 kB / 1.337 GB, free: 6.156 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001895/0.4591, allocations: 43.77 kB / 1.337 GB, free: 6.113 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.9e-05/0.4591, allocations: 12 kB / 1.337 GB, free: 6.102 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 40 (onOffCtr.onOffFuzLog.devTurOff,$PRE.onOffCtr.onOffFuzLog.devTurOff,onOffCtr.onOffFuzLog.devNorOpe,$PRE.onOffCtr.onOffFuzLog.devNorOpe,onOffCtr.onOffFuzLog.devRunMin,$PRE.onOffCtr.onOffFuzLog.devRunMin,onOffCtr.onOffFuzLog.staOn,onOffCtr.onOffFuzLog.staOff,onOffCtr.onOffFuzLog.turOff,$PRE.onOffCtr.onOffFuzLog.turOff,onOffCtr.onOffFuzLog.turOn,$PRE.onOffCtr.onOffFuzLog.turOn,onOffCtr.andIsAblToTurOn.y,onOffCtr.runTimCtr.runTim.entryTime,$PRE.onOffCtr.runTimCtr.runTim.entryTime,onOffCtr.notIsOn.y,onOffCtr.locTimCtr.runTim.entryTime,$PRE.onOffCtr.locTimCtr.runTim.entryTime,onOffCtr.locTimCtr.y,onOffCtr.cycRatBou.triAdd.y,$PRE.onOffCtr.cycRatBou.triAdd.y,onOffCtr.cycRatBou.y,onOffCtr.preOnOff.u,$PRE.onOffCtr.preOnOff.u,onOffCtr.isAblToTurOff.y,onOffCtr.ySetOn.y,$PRE.onOffCtr.ySetOn.y,hys.y,$PRE.hys.y,$whenCondition1,$whenCondition2,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,onOffCtr.cycRatBou.intConPluOne.y,onOffCtr.cycRatBou.triAdd.local_set,onOffCtr.cycRatBou.triAdd.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * 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.0002322/0.4594, allocations: 179.5 kB / 1.338 GB, free: 5.914 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.642e-05/0.4594, allocations: 23.86 kB / 1.338 GB, free: 5.891 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.567e-05/0.4595, allocations: 34.64 kB / 1.338 GB, free: 5.855 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.335e-06/0.4595, allocations: 7.984 kB / 1.338 GB, free: 5.848 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.4595, allocations: 4 kB / 1.338 GB, free: 5.844 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.828e-05/0.4596, allocations: 27.73 kB / 1.338 GB, free: 5.816 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.257e-05/0.4596, allocations: 16 kB / 1.338 GB, free: 5.801 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001613/0.4598, allocations: 27.95 kB / 1.338 GB, free: 5.773 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/0.4599, allocations: 43.92 kB / 1.338 GB, free: 5.73 MB / 1.029 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007625/0.4607, allocations: 457.8 kB / 1.338 GB, free: 5.277 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007447/0.4614, allocations: 0.5494 MB / 1.339 GB, free: 4.711 MB / 1.029 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002688/0.4617, allocations: 139.9 kB / 1.339 GB, free: 4.574 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001652/0.4619, allocations: 149.5 kB / 1.339 GB, free: 4.43 MB / 1.029 GB Notification: Performance of Backend: time 4.91e-07/0.4619, allocations: 0 / 1.339 GB, free: 4.43 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0007691/0.4626, allocations: 245 kB / 1.339 GB, free: 4.184 MB / 1.029 GB Notification: Performance of SimCode: time 0.001114/0.4637, allocations: 0.8871 MB / 1.34 GB, free: 3.246 MB / 1.029 GB Notification: Performance of Templates: time 0.008959/0.4727, allocations: 3.842 MB / 1.344 GB, free: 15.45 MB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.pipe ; mkfifo Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.pipe >> ../files/Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.sim & ./Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_OnOff.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" Variables in the reference:time,ySet,yOut Variables in the result:hys.pre_y_start,hys.uHigh,hys.uLow,onOffCtr.cycRatBou.delTim,onOffCtr.cycRatBou.fixDel.delayTime,onOffCtr.cycRatBou.intConPluOne.k,onOffCtr.cycRatBou.maxCycRat,onOffCtr.cycRatBou.runCouLesMax.threshold,onOffCtr.cycRatBou.sub.k1,onOffCtr.cycRatBou.sub.k2,onOffCtr.cycRatBou.triAdd.y_start,onOffCtr.locTimCtr.minOnTime,onOffCtr.locTimCtr.runTimGreMin.threshold,onOffCtr.maxCycRat,onOffCtr.minOffTime,onOffCtr.minOnTime,onOffCtr.onOffFuzLog.ySetRed,onOffCtr.onOffMea_start,onOffCtr.preOnOff.pre_u_start,onOffCtr.runTimCtr.minOnTime,onOffCtr.runTimCtr.runTimGreMin.threshold,onOffCtr.use_maxCycRat,onOffCtr.use_minOffTime,onOffCtr.use_minOnTime,onOffCtr.ySetOn.pre_y_start,onOffCtr.ySetOn.uHigh,onOffCtr.ySetOn.uLow,onOffCtr.ySetRed,onOffCtr.ySet_small,time,yOut,ySet,ySetSin.amplitude,ySetSin.continuous,ySetSin.f,ySetSin.offset,ySetSin.phase,ySetSin.startTime [Calling sys.exit(0), Time elapsed: 9.95001040599891]