Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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.AntiFreeze,tolerance=1e-08,outputFormat="mat",numberOfIntervals=200,variableFilter="time|ySet|yOut|antFre.sigBus.TConInMea|antFre.sigBus.TEvaOutMea|antFre.TAntFre",fileNamePrefix="Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze") translateModel(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,tolerance=1e-08,outputFormat="mat",numberOfIntervals=200,variableFilter="time|ySet|yOut|antFre.sigBus.TConInMea|antFre.sigBus.TEvaOutMea|antFre.TAntFre",fileNamePrefix="Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001796/0.001796, allocations: 107 kB / 15.99 MB, free: 6.359 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.001861/0.001861, allocations: 191.2 kB / 16.91 MB, free: 6.195 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.419/1.419, allocations: 222.9 MB / 240.6 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.681/2.681, allocations: 469.8 MB / 0.7427 GB, free: 3.637 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 67.17 kB / 0.9087 GB, free: 14.19 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3501/0.3521, allocations: 159.1 MB / 1.064 GB, free: 15.06 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003911/0.356, allocations: 2.133 MB / 1.066 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001118/0.3572, allocations: 0.5534 MB / 1.067 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001174/0.3573, allocations: 3.938 kB / 1.067 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001318/0.3574, allocations: 15.86 kB / 1.067 GB, free: 12.33 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 9.165e-05/0.3576, allocations: 27.72 kB / 1.067 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002781/0.3579, allocations: 79.92 kB / 1.067 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003526/0.3582, allocations: 271.4 kB / 1.067 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002688/0.3585, allocations: 110.9 kB / 1.067 GB, free: 11.85 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001632/0.3587, allocations: 107.6 kB / 1.067 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001575/0.3588, allocations: 127.4 kB / 1.067 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.594e-05/0.3589, allocations: 24 kB / 1.068 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 4.304e-05/0.3589, allocations: 28 kB / 1.068 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 7.739e-05/0.359, allocations: 59.81 kB / 1.068 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001195/0.3591, allocations: 111.4 kB / 1.068 GB, free: 11.4 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002622/0.3594, allocations: 203.8 kB / 1.068 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3594, allocations: 4 kB / 1.068 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3594, allocations: 0 / 1.068 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.793e-06/0.3594, allocations: 0 / 1.068 GB, free: 11.2 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001301/0.3607, allocations: 0.6371 MB / 1.069 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.3608, allocations: 8.031 kB / 1.069 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.01e-05/0.3609, allocations: 32.59 kB / 1.069 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003332/0.3612, allocations: 248.5 kB / 1.069 GB, free: 10.17 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.799e-05/0.3613, allocations: 16.75 kB / 1.069 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.461e-05/0.3613, allocations: 20.38 kB / 1.069 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006924/0.362, allocations: 274.3 kB / 1.069 GB, free: 9.855 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.362, allocations: 3.938 kB / 1.069 GB, free: 9.852 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.161e-05/0.3621, allocations: 12 kB / 1.069 GB, free: 9.84 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.226e-06/0.3621, allocations: 4 kB / 1.069 GB, free: 9.836 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006625/0.3628, allocations: 191.8 kB / 1.069 GB, free: 9.648 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001239/0.364, allocations: 0.6246 MB / 1.07 GB, free: 8.973 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008468/0.3649, allocations: 222.3 kB / 1.07 GB, free: 8.75 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003128/0.3652, allocations: 88.78 kB / 1.07 GB, free: 8.66 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.901e-05/0.3652, allocations: 0 / 1.07 GB, free: 8.66 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006171/0.3659, allocations: 197.6 kB / 1.07 GB, free: 8.457 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=18): time 1.623e-06/0.3659, allocations: 0 / 1.07 GB, free: 8.457 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18): time 0.00111/0.367, allocations: 329 kB / 1.071 GB, free: 8.129 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001092/0.3671, allocations: 114.8 kB / 1.071 GB, free: 7.992 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002273/0.3673, allocations: 200.3 kB / 1.071 GB, free: 7.789 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.186e-05/0.3674, allocations: 33.7 kB / 1.071 GB, free: 7.75 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/0.3675, allocations: 156.1 kB / 1.071 GB, free: 7.594 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.015e-05/0.3676, allocations: 51.44 kB / 1.071 GB, free: 7.543 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001166/0.3677, allocations: 65.59 kB / 1.071 GB, free: 7.473 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001665/0.3679, allocations: 330.8 kB / 1.072 GB, free: 7.141 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003741/0.3683, allocations: 116.2 kB / 1.072 GB, free: 7.023 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004217/0.3687, allocations: 179.2 kB / 1.072 GB, free: 6.824 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006914/0.3694, allocations: 307 kB / 1.072 GB, free: 6.488 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.3694, allocations: 0 / 1.072 GB, free: 6.488 MB / 0.8419 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009445/0.3704, allocations: 416.7 kB / 1.073 GB, free: 6.059 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 9.848e-05/0.3705, allocations: 89.11 kB / 1.073 GB, free: 5.953 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/0.3705, allocations: 4 kB / 1.073 GB, free: 5.949 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.3705, allocations: 3.938 kB / 1.073 GB, free: 5.945 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002313/0.3708, allocations: 47.89 kB / 1.073 GB, free: 5.898 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.3708, allocations: 0 / 1.073 GB, free: 5.898 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003345/0.3711, allocations: 63.69 kB / 1.073 GB, free: 5.836 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.137e-05/0.3712, allocations: 16.06 kB / 1.073 GB, free: 5.82 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 25 (antFre.disErr.y,$PRE.antFre.disErr.y,TEvaOutEmu.count,$PRE.TEvaOutEmu.count,TEvaOutEmu.T_start,$PRE.TEvaOutEmu.T_start,TConInEmu.count,$PRE.TConInEmu.count,TConInEmu.T_start,$PRE.TConInEmu.T_start,ySetPul.count,$PRE.ySetPul.count,ySetPul.T_start,$PRE.ySetPul.T_start,antFre.hys.y,$PRE.antFre.hys.y,hys.y,$PRE.hys.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,antFre.intConOne.y,antFre.disErr.local_set,antFre.disErr.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 3 * 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.0001985/0.3714, allocations: 152 kB / 1.073 GB, free: 5.664 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.981e-05/0.3714, allocations: 19.8 kB / 1.073 GB, free: 5.645 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007973/0.3722, allocations: 265.5 kB / 1.073 GB, free: 5.383 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/0.3722, allocations: 3.938 kB / 1.073 GB, free: 5.379 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.3722, allocations: 0 / 1.073 GB, free: 5.379 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.3722, allocations: 3.938 kB / 1.073 GB, free: 5.375 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001075/0.3733, allocations: 0.5763 MB / 1.074 GB, free: 4.742 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3733, allocations: 0 / 1.074 GB, free: 4.742 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001623/0.3735, allocations: 39.84 kB / 1.074 GB, free: 4.703 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.3735, allocations: 0 / 1.074 GB, free: 4.703 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.468e-05/0.3735, allocations: 7.984 kB / 1.074 GB, free: 4.695 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.3736, allocations: 0 / 1.074 GB, free: 4.695 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.3736, allocations: 0 / 1.074 GB, free: 4.695 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007503/0.3743, allocations: 341 kB / 1.074 GB, free: 4.348 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.439e-05/0.3744, allocations: 96.77 kB / 1.074 GB, free: 4.234 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.681e-05/0.3745, allocations: 11.98 kB / 1.074 GB, free: 4.223 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003005/0.3748, allocations: 43.95 kB / 1.074 GB, free: 4.18 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/0.3749, allocations: 43.94 kB / 1.074 GB, free: 4.137 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.512e-05/0.3749, allocations: 11.98 kB / 1.074 GB, free: 4.125 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001492/0.3751, allocations: 144 kB / 1.074 GB, free: 3.984 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3751, allocations: 3.938 kB / 1.075 GB, free: 3.98 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003247/0.3754, allocations: 59.83 kB / 1.075 GB, free: 3.922 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hys.y,antFre.disErr.y,antFre.hys.y,ySetPul.T_start,ySetPul.count,TConInEmu.T_start,TConInEmu.count,TEvaOutEmu.T_start,TEvaOutEmu.count) * Number of discrete states: 6 (TEvaOutEmu.count,TConInEmu.count,ySetPul.count,antFre.hys.y,hys.y,antFre.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002209/0.3757, allocations: 111.8 kB / 1.075 GB, free: 3.801 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009679/0.3766, allocations: 432.1 kB / 1.075 GB, free: 3.344 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3766, allocations: 0 / 1.075 GB, free: 3.344 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003529/0.377, allocations: 112.2 kB / 1.075 GB, free: 3.234 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003814/0.3774, allocations: 31.95 kB / 1.075 GB, free: 3.203 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001008/0.3784, allocations: 464.4 kB / 1.076 GB, free: 2.719 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004079/0.3788, allocations: 0.7435 MB / 1.076 GB, free: 1.949 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.329e-05/0.3789, allocations: 23.44 kB / 1.076 GB, free: 1.926 MB / 0.8419 GB Notification: Performance of SimCode: time 3.31e-07/0.3789, allocations: 0 / 1.076 GB, free: 1.926 MB / 0.8419 GB Notification: Performance of Templates: time 0.4967/0.8756, allocations: 2.858 MB / 1.079 GB, free: 22 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.makefile (rm -f Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; mkfifo Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe >> ../files/Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.sim & ./Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches