Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.AntiFreeze,tolerance=1e-08,outputFormat="mat",numberOfIntervals=200,variableFilter="time|ySet|yOut|antFre.sigBus.TConInMea|antFre.sigBus.TEvaOutMea|antFre.TAntFre",fileNamePrefix="Buildings_latest_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_latest_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.001557/0.001557, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001607/0.001607, allocations: 194.2 kB / 16.25 MB, free: 6.625 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.368/1.368, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.877/2.877, allocations: 482.3 MB / 0.7543 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001893/0.001893, allocations: 69.2 kB / 0.9233 GB, free: 29.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2784/0.2803, allocations: 162.2 MB / 1.082 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.00343/0.2838, allocations: 2.133 MB / 1.084 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0009446/0.2848, allocations: 0.5534 MB / 1.084 GB, free: 10.9 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.589e-05/0.2849, allocations: 4 kB / 1.084 GB, free: 10.89 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001192/0.285, allocations: 15.8 kB / 1.084 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 8.52e-05/0.2851, allocations: 23.78 kB / 1.084 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002458/0.2854, allocations: 75.92 kB / 1.085 GB, free: 10.78 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003186/0.2857, allocations: 275.3 kB / 1.085 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000267/0.286, allocations: 114.9 kB / 1.085 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001494/0.2861, allocations: 111.6 kB / 1.085 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001546/0.2863, allocations: 123.4 kB / 1.085 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.434e-05/0.2864, allocations: 24 kB / 1.085 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 4.45e-05/0.2864, allocations: 28 kB / 1.085 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 6.371e-05/0.2865, allocations: 51.84 kB / 1.085 GB, free: 10.06 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001157/0.2866, allocations: 115.4 kB / 1.085 GB, free: 9.949 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003075/0.2869, allocations: 271.4 kB / 1.086 GB, free: 9.684 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.2869, allocations: 4 kB / 1.086 GB, free: 9.68 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.513e-06/0.2869, allocations: 0 / 1.086 GB, free: 9.68 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.703e-06/0.2869, allocations: 0 / 1.086 GB, free: 9.68 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.001215/0.2882, allocations: 0.637 MB / 1.086 GB, free: 8.973 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.232e-05/0.2882, allocations: 8.031 kB / 1.086 GB, free: 8.965 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.949e-05/0.2883, allocations: 24.66 kB / 1.086 GB, free: 8.941 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003401/0.2886, allocations: 260.9 kB / 1.086 GB, free: 8.648 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.34e-05/0.2887, allocations: 12.75 kB / 1.086 GB, free: 8.637 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.681e-05/0.2887, allocations: 24.38 kB / 1.087 GB, free: 8.613 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006331/0.2893, allocations: 270.3 kB / 1.087 GB, free: 8.336 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.517e-06/0.2894, allocations: 0 / 1.087 GB, free: 8.336 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.675e-05/0.2894, allocations: 12 kB / 1.087 GB, free: 8.324 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.199e-05/0.2894, allocations: 4 kB / 1.087 GB, free: 8.32 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000659/0.2901, allocations: 195.8 kB / 1.087 GB, free: 8.129 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001114/0.2912, allocations: 0.6324 MB / 1.088 GB, free: 7.445 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008168/0.292, allocations: 221.5 kB / 1.088 GB, free: 7.223 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003041/0.2924, allocations: 84.78 kB / 1.088 GB, free: 7.137 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.079e-05/0.2924, allocations: 7.984 kB / 1.088 GB, free: 7.129 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005594/0.293, allocations: 187.1 kB / 1.088 GB, free: 6.934 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=18): time 3.557e-06/0.293, allocations: 0 / 1.088 GB, free: 6.934 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18): time 0.00106/0.294, allocations: 338.8 kB / 1.088 GB, free: 6.598 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.437e-05/0.2941, allocations: 114.8 kB / 1.088 GB, free: 6.461 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001947/0.2943, allocations: 198.7 kB / 1.089 GB, free: 6.258 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.813e-05/0.2944, allocations: 33.7 kB / 1.089 GB, free: 6.219 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.2945, allocations: 152.2 kB / 1.089 GB, free: 6.066 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.097e-05/0.2946, allocations: 51.34 kB / 1.089 GB, free: 6.016 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001124/0.2947, allocations: 65.69 kB / 1.089 GB, free: 5.945 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001484/0.2948, allocations: 330.8 kB / 1.089 GB, free: 5.613 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003608/0.2952, allocations: 108.2 kB / 1.089 GB, free: 5.504 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004027/0.2956, allocations: 175.3 kB / 1.09 GB, free: 5.309 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006613/0.2963, allocations: 308.6 kB / 1.09 GB, free: 4.973 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.2963, allocations: 0 / 1.09 GB, free: 4.973 MB / 0.8419 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009312/0.2972, allocations: 424.6 kB / 1.09 GB, free: 4.535 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 7.183e-05/0.2973, allocations: 89.11 kB / 1.09 GB, free: 4.43 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.2973, allocations: 0 / 1.09 GB, free: 4.43 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.2973, allocations: 11.92 kB / 1.09 GB, free: 4.418 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002211/0.2976, allocations: 39.91 kB / 1.09 GB, free: 4.379 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.2976, allocations: 4 kB / 1.09 GB, free: 4.375 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003147/0.2979, allocations: 55.78 kB / 1.09 GB, free: 4.32 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.258e-05/0.2979, allocations: 16.06 kB / 1.09 GB, free: 4.305 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.0001488/0.2981, allocations: 144 kB / 1.091 GB, free: 4.156 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.708e-05/0.2981, allocations: 23.8 kB / 1.091 GB, free: 4.133 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007464/0.2989, allocations: 255.3 kB / 1.091 GB, free: 3.883 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.2989, allocations: 7.938 kB / 1.091 GB, free: 3.875 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.2989, allocations: 0 / 1.091 GB, free: 3.875 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.2989, allocations: 0 / 1.091 GB, free: 3.875 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001025/0.3, allocations: 0.5849 MB / 1.091 GB, free: 3.234 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.3, allocations: 0 / 1.091 GB, free: 3.234 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001587/0.3001, allocations: 27.91 kB / 1.091 GB, free: 3.207 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.153e-06/0.3002, allocations: 7.984 kB / 1.091 GB, free: 3.199 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.883e-05/0.3002, allocations: 4 kB / 1.091 GB, free: 3.195 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.3002, allocations: 0 / 1.091 GB, free: 3.195 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.3002, allocations: 3.938 kB / 1.091 GB, free: 3.191 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007525/0.3009, allocations: 349.2 kB / 1.092 GB, free: 2.836 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.136e-05/0.301, allocations: 96.8 kB / 1.092 GB, free: 2.723 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.62e-05/0.3011, allocations: 11.98 kB / 1.092 GB, free: 2.711 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003018/0.3014, allocations: 47.94 kB / 1.092 GB, free: 2.664 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/0.3015, allocations: 43.94 kB / 1.092 GB, free: 2.621 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.587e-05/0.3015, allocations: 11.98 kB / 1.092 GB, free: 2.609 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001221/0.3017, allocations: 142.4 kB / 1.092 GB, free: 2.473 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3017, allocations: 0 / 1.092 GB, free: 2.473 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000314/0.302, allocations: 59.84 kB / 1.092 GB, free: 2.414 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.000167/0.3022, allocations: 116.7 kB / 1.092 GB, free: 2.289 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009522/0.3031, allocations: 425.9 kB / 1.093 GB, free: 1.836 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3032, allocations: 0 / 1.093 GB, free: 1.836 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003817/0.3035, allocations: 118 kB / 1.093 GB, free: 1.723 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003744/0.3039, allocations: 35.69 kB / 1.093 GB, free: 1.688 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008905/0.3048, allocations: 440.3 kB / 1.093 GB, free: 1.23 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003375/0.3052, allocations: 0.7396 MB / 1.094 GB, free: 476 kB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001071/0.3053, allocations: 21.55 kB / 1.094 GB, free: 456 kB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.428e-05/0.3054, allocations: 19.42 kB / 1.094 GB, free: 436 kB / 0.8419 GB Notification: Performance of SimCode: time 4.81e-07/0.3054, allocations: 4 kB / 1.094 GB, free: 432 kB / 0.8419 GB Notification: Performance of Templates: time 0.006471/0.3118, allocations: 2.95 MB / 1.097 GB, free: 13.52 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches