Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.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.001346/0.001346, allocations: 78.72 kB / 19.76 MB, free: 1.875 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.001461/0.001461, allocations: 159.4 kB / 23.01 MB, free: 4.598 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.424/1.424, allocations: 177.2 MB / 203.4 MB, free: 8.891 MB / 190.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 2.797/2.797, allocations: 377.9 MB / 0.6228 GB, free: 12.6 MB / 0.5919 GB " [Timeout remaining time 177] 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.AntiFreeze,tolerance=1e-08,outputFormat="mat",numberOfIntervals=100,variableFilter="time|ySet|yOut|antFre.sigBus.TConInMea|antFre.sigBus.TEvaOutMea|antFre.TAntFre",fileNamePrefix="Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze") translateModel(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,tolerance=1e-08,outputFormat="mat",numberOfIntervals=100,variableFilter="time|ySet|yOut|antFre.sigBus.TConInMea|antFre.sigBus.TEvaOutMea|antFre.TAntFre",fileNamePrefix="Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze") [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.002305/0.002305, allocations: 67.89 kB / 0.982 GB, free: 12.18 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8309/0.8332, allocations: 176.1 MB / 1.154 GB, free: 33.3 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003424/0.8366, allocations: 2.118 MB / 1.156 GB, free: 31.89 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.0009593/0.8376, allocations: 0.5941 MB / 1.157 GB, free: 31.48 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001155/0.8377, allocations: 6.781 kB / 1.157 GB, free: 31.47 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0001288/0.8378, allocations: 25.7 kB / 1.157 GB, free: 31.45 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 9.617e-05/0.8379, allocations: 45.03 kB / 1.157 GB, free: 31.42 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.000239/0.8382, allocations: 103.9 kB / 1.157 GB, free: 31.36 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0002576/0.8384, allocations: 291.6 kB / 1.157 GB, free: 31.22 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002125/0.8386, allocations: 90.59 kB / 1.157 GB, free: 31.17 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001156/0.8387, allocations: 125.7 kB / 1.157 GB, free: 31.11 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001256/0.8389, allocations: 124.6 kB / 1.157 GB, free: 31.05 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 4.581e-05/0.8389, allocations: 30.94 kB / 1.157 GB, free: 31.05 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 3.825e-05/0.839, allocations: 34.31 kB / 1.157 GB, free: 31.04 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 5.272e-05/0.839, allocations: 66.14 kB / 1.158 GB, free: 31 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 8.917e-05/0.8391, allocations: 108 kB / 1.158 GB, free: 30.93 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0002708/0.8394, allocations: 322.2 kB / 1.158 GB, free: 30.8 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.8394, allocations: 0 / 1.158 GB, free: 30.8 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.182e-06/0.8394, allocations: 0 / 1.158 GB, free: 30.8 MB / 1.076 GB Notification: Performance of Transformations before backend: time 6.532e-06/0.8394, allocations: 0 / 1.158 GB, free: 30.8 MB / 1.076 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001055/0.8404, allocations: 0.611 MB / 1.159 GB, free: 30.31 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.8405, allocations: 12.09 kB / 1.159 GB, free: 30.31 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.743e-05/0.8405, allocations: 32.41 kB / 1.159 GB, free: 30.29 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000314/0.8409, allocations: 207.1 kB / 1.159 GB, free: 30.11 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.567e-05/0.8409, allocations: 15.81 kB / 1.159 GB, free: 30.11 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.972e-05/0.8409, allocations: 27.69 kB / 1.159 GB, free: 30.1 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006246/0.8415, allocations: 383 kB / 1.159 GB, free: 29.86 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.8416, allocations: 0 / 1.159 GB, free: 29.86 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.723e-05/0.8416, allocations: 6.594 kB / 1.159 GB, free: 29.86 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.8416, allocations: 5.531 kB / 1.159 GB, free: 29.86 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006499/0.8422, allocations: 212.8 kB / 1.159 GB, free: 29.81 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000994/0.8432, allocations: 0.5395 MB / 1.16 GB, free: 29.46 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006329/0.8439, allocations: 198.9 kB / 1.16 GB, free: 29.39 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002925/0.8442, allocations: 87.67 kB / 1.16 GB, free: 29.37 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.421e-05/0.8442, allocations: 2.719 kB / 1.16 GB, free: 29.37 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004684/0.8447, allocations: 200.3 kB / 1.16 GB, free: 29.29 MB / 1.076 GB Notification: Performance of pre-optimization done (n=20): time 1.603e-06/0.8447, allocations: 4 kB / 1.16 GB, free: 29.29 MB / 1.076 GB Notification: Performance of matching and sorting (n=20): time 0.001028/0.8457, allocations: 346.8 kB / 1.161 GB, free: 29.18 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.279e-05/0.8457, allocations: 141.7 kB / 1.161 GB, free: 29.02 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001612/0.8459, allocations: 228.1 kB / 1.161 GB, free: 28.87 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 3.055e-05/0.8459, allocations: 38.86 kB / 1.161 GB, free: 28.84 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 7.926e-05/0.846, allocations: 160.6 kB / 1.161 GB, free: 28.7 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 3.556e-05/0.846, allocations: 66.14 kB / 1.161 GB, free: 28.64 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.964e-05/0.8461, allocations: 70.56 kB / 1.161 GB, free: 28.61 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 5.435e-05/0.8462, allocations: 332.1 kB / 1.162 GB, free: 28.29 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000361/0.8465, allocations: 204.9 kB / 1.162 GB, free: 28.16 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004016/0.8469, allocations: 353.5 kB / 1.162 GB, free: 27.86 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006065/0.8476, allocations: 314.3 kB / 1.163 GB, free: 27.66 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.8476, allocations: 0 / 1.163 GB, free: 27.66 MB / 1.076 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0008243/0.8484, allocations: 0.5137 MB / 1.163 GB, free: 27.34 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 3.528e-05/0.8484, allocations: 93.19 kB / 1.163 GB, free: 27.24 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.8484, allocations: 0 / 1.163 GB, free: 27.24 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.164e-05/0.8485, allocations: 6.938 kB / 1.163 GB, free: 27.24 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002321/0.8487, allocations: 47.28 kB / 1.163 GB, free: 27.23 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.8487, allocations: 2.969 kB / 1.163 GB, free: 27.23 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003288/0.849, allocations: 67.45 kB / 1.163 GB, free: 27.21 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.59e-05/0.849, allocations: 19.84 kB / 1.163 GB, free: 27.21 MB / 1.076 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 28 (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,antFre.errAndSetOn.y,antFre.ySetOn.y,$PRE.antFre.ySetOn.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 (34): * Single equations (assignments): 31 * 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.0001145/0.8492, allocations: 152.4 kB / 1.163 GB, free: 27.07 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.262e-05/0.8492, allocations: 22.98 kB / 1.163 GB, free: 27.05 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007105/0.8499, allocations: 283.7 kB / 1.164 GB, free: 26.95 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-06/0.8499, allocations: 2.781 kB / 1.164 GB, free: 26.95 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.8499, allocations: 0 / 1.164 GB, free: 26.95 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.8499, allocations: 3.234 kB / 1.164 GB, free: 26.95 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009138/0.8508, allocations: 0.5347 MB / 1.164 GB, free: 26.62 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.8508, allocations: 7.938 kB / 1.164 GB, free: 26.62 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001592/0.851, allocations: 31.89 kB / 1.164 GB, free: 26.61 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.851, allocations: 2.656 kB / 1.164 GB, free: 26.61 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.708e-05/0.851, allocations: 3.188 kB / 1.164 GB, free: 26.61 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.851, allocations: 2.969 kB / 1.164 GB, free: 26.61 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.851, allocations: 0 / 1.164 GB, free: 26.61 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006794/0.8517, allocations: 360.4 kB / 1.165 GB, free: 26.43 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 2.722e-05/0.8517, allocations: 25.7 kB / 1.165 GB, free: 26.41 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.353e-05/0.8518, allocations: 13.38 kB / 1.165 GB, free: 26.4 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003096/0.8521, allocations: 42.38 kB / 1.165 GB, free: 26.4 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.8522, allocations: 48.41 kB / 1.165 GB, free: 26.39 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.376e-05/0.8522, allocations: 17.5 kB / 1.165 GB, free: 26.38 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0001067/0.8523, allocations: 155.7 kB / 1.165 GB, free: 26.28 MB / 1.076 GB Notification: Performance of sort global known variables: time 8e-08/0.8523, allocations: 0 / 1.165 GB, free: 26.28 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0003131/0.8526, allocations: 69.33 kB / 1.165 GB, free: 26.26 MB / 1.076 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 (antFre.errAndSetOn.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hys.y,antFre.disErr.y,antFre.ySetOn.y,antFre.hys.y,ySetPul.T_start,ySetPul.count,TConInEmu.T_start,TConInEmu.count,TEvaOutEmu.T_start,TEvaOutEmu.count) * Number of discrete states: 7 (TEvaOutEmu.count,TConInEmu.count,ySetPul.count,antFre.hys.y,antFre.ySetOn.y,hys.y,antFre.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 13 * 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.0001113/0.8527, allocations: 111 kB / 1.165 GB, free: 26.17 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0008429/0.8536, allocations: 0.5055 MB / 1.166 GB, free: 25.81 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.8536, allocations: 0 / 1.166 GB, free: 25.81 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0003535/0.8539, allocations: 109.5 kB / 1.166 GB, free: 25.79 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003704/0.8543, allocations: 43.7 kB / 1.166 GB, free: 25.77 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007634/0.8551, allocations: 400 kB / 1.166 GB, free: 25.52 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.331e-05/0.8552, allocations: 139.3 kB / 1.166 GB, free: 25.44 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 9.214e-05/0.8553, allocations: 20.94 kB / 1.166 GB, free: 25.43 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.192e-05/0.8553, allocations: 33.45 kB / 1.166 GB, free: 25.41 MB / 1.076 GB Notification: Performance of SimCode: time 6.01e-07/0.8553, allocations: 4 kB / 1.166 GB, free: 25.41 MB / 1.076 GB Notification: Performance of Templates: time 0.006827/0.8622, allocations: 3.908 MB / 1.17 GB, free: 25 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; mkfifo Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe >> ../files/Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.sim & ./Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.82110217702575]