Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.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.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff,tolerance=1e-08,outputFormat="mat",numberOfIntervals=14400,variableFilter="time|ySet|yOut",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff") translateModel(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff,tolerance=1e-08,outputFormat="mat",numberOfIntervals=14400,variableFilter="time|ySet|yOut",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001278/0.001278, allocations: 108.5 kB / 16.41 MB, free: 6.473 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.001276/0.001276, allocations: 192.3 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.401/1.401, allocations: 222.9 MB / 241.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.721/2.721, allocations: 472.7 MB / 0.746 GB, free: 496 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 63.91 kB / 1.07 GB, free: 9.508 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6917/0.6936, allocations: 159.9 MB / 1.226 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff): time 0.003771/0.6974, allocations: 2.387 MB / 1.229 GB, free: 11.11 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001187/0.6986, allocations: 0.7247 MB / 1.229 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001287/0.6988, allocations: 4 kB / 1.229 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001643/0.6989, allocations: 51.45 kB / 1.229 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001083/0.699, allocations: 39.59 kB / 1.23 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003982/0.6995, allocations: 159.8 kB / 1.23 GB, free: 10.13 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0004038/0.6999, allocations: 388.2 kB / 1.23 GB, free: 9.75 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003801/0.7003, allocations: 237.2 kB / 1.23 GB, free: 9.512 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001904/0.7005, allocations: 155.4 kB / 1.23 GB, free: 9.359 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001802/0.7006, allocations: 155.3 kB / 1.231 GB, free: 9.207 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 6.426e-05/0.7007, allocations: 44 kB / 1.231 GB, free: 9.164 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 5.79e-05/0.7008, allocations: 48 kB / 1.231 GB, free: 9.117 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 8.826e-05/0.7009, allocations: 99.69 kB / 1.231 GB, free: 9.02 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001707/0.7011, allocations: 179.1 kB / 1.231 GB, free: 8.844 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0005258/0.7016, allocations: 0.5181 MB / 1.231 GB, free: 8.328 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.7016, allocations: 0 / 1.231 GB, free: 8.328 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.453e-06/0.7016, allocations: 0 / 1.231 GB, free: 8.328 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.056e-05/0.7016, allocations: 0 / 1.231 GB, free: 8.328 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001077/0.7027, allocations: 0.6786 MB / 1.232 GB, free: 7.59 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.7027, allocations: 8.031 kB / 1.232 GB, free: 7.582 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.294e-05/0.7028, allocations: 48.7 kB / 1.232 GB, free: 7.535 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004431/0.7033, allocations: 316.3 kB / 1.232 GB, free: 7.188 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.344e-05/0.7033, allocations: 29.03 kB / 1.232 GB, free: 7.16 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.71e-05/0.7034, allocations: 40.36 kB / 1.233 GB, free: 7.121 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006548/0.7041, allocations: 374.2 kB / 1.233 GB, free: 6.738 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.7041, allocations: 0 / 1.233 GB, free: 6.738 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.546e-05/0.7041, allocations: 15.98 kB / 1.233 GB, free: 6.723 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/0.7041, allocations: 12 kB / 1.233 GB, free: 6.711 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004786/0.7046, allocations: 238.5 kB / 1.233 GB, free: 6.48 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001447/0.7061, allocations: 0.9092 MB / 1.234 GB, free: 5.52 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006485/0.7067, allocations: 330.7 kB / 1.234 GB, free: 5.188 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002701/0.707, allocations: 178.3 kB / 1.235 GB, free: 5.012 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.655e-05/0.7071, allocations: 0 / 1.235 GB, free: 5.012 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004267/0.7075, allocations: 245.8 kB / 1.235 GB, free: 4.758 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=33): time 1.943e-06/0.7075, allocations: 0 / 1.235 GB, free: 4.758 MB / 0.9512 GB Notification: Performance of matching and sorting (n=33): time 0.0008902/0.7084, allocations: 467 kB / 1.235 GB, free: 4.297 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.998e-05/0.7085, allocations: 110.8 kB / 1.235 GB, free: 4.164 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002507/0.7088, allocations: 231.5 kB / 1.236 GB, free: 3.926 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.529e-05/0.7088, allocations: 45.69 kB / 1.236 GB, free: 3.875 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/0.7089, allocations: 172.7 kB / 1.236 GB, free: 3.703 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 8.231e-05/0.709, allocations: 79.42 kB / 1.236 GB, free: 3.625 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001387/0.7092, allocations: 86.08 kB / 1.236 GB, free: 3.531 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001609/0.7093, allocations: 342.8 kB / 1.236 GB, free: 3.188 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002059/0.7096, allocations: 96.78 kB / 1.236 GB, free: 3.094 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002577/0.7098, allocations: 166.3 kB / 1.236 GB, free: 2.914 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003548/0.7102, allocations: 203.9 kB / 1.237 GB, free: 2.699 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.7102, allocations: 0 / 1.237 GB, free: 2.699 MB / 0.9512 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0005412/0.7107, allocations: 316.9 kB / 1.237 GB, free: 2.383 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.7108, allocations: 4 kB / 1.237 GB, free: 2.379 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.7108, allocations: 0 / 1.237 GB, free: 2.379 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.7108, allocations: 4 kB / 1.237 GB, free: 2.375 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001649/0.711, allocations: 35.92 kB / 1.237 GB, free: 2.34 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.223e-05/0.711, allocations: 7.938 kB / 1.237 GB, free: 2.332 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000168/0.7112, allocations: 39.81 kB / 1.237 GB, free: 2.293 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.701e-05/0.7112, allocations: 12.12 kB / 1.237 GB, free: 2.281 MB / 0.9512 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.0002015/0.7114, allocations: 187.5 kB / 1.237 GB, free: 2.09 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.95e-05/0.7115, allocations: 31.86 kB / 1.237 GB, free: 2.059 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.549e-05/0.7116, allocations: 34.58 kB / 1.237 GB, free: 2.023 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.7116, allocations: 3.938 kB / 1.237 GB, free: 2.02 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.7116, allocations: 0 / 1.237 GB, free: 2.02 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 7.27e-05/0.7117, allocations: 104.9 kB / 1.237 GB, free: 1.898 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.933e-05/0.7117, allocations: 15.92 kB / 1.237 GB, free: 1.883 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001523/0.7119, allocations: 27.97 kB / 1.237 GB, free: 1.855 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.712, allocations: 43.94 kB / 1.237 GB, free: 1.812 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007157/0.7127, allocations: 449.8 kB / 1.238 GB, free: 1.367 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006878/0.7134, allocations: 0.5338 MB / 1.238 GB, free: 0.8164 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003014/0.7137, allocations: 223.9 kB / 1.239 GB, free: 0.5977 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001337/0.7139, allocations: 149.5 kB / 1.239 GB, free: 464 kB / 0.9512 GB Notification: Performance of Backend: time 3.4e-07/0.7139, allocations: 0 / 1.239 GB, free: 464 kB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0006593/0.7146, allocations: 263.8 kB / 1.239 GB, free: 192 kB / 0.9512 GB Notification: Performance of SimCode: time 0.0009977/0.7156, allocations: 0.8909 MB / 1.24 GB, free: 15.25 MB / 0.9669 GB Notification: Performance of Templates: time 0.007363/0.723, allocations: 3.303 MB / 1.243 GB, free: 11.96 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_OnOff.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OnOff.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" 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.f,ySetSin.offset,ySetSin.phase,ySetSin.startTime