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.001537/0.001537, allocations: 79.83 kB / 19.18 MB, free: 2.516 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.001635/0.001635, allocations: 165 kB / 22.46 MB, free: 5.375 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.56/1.56, allocations: 177.1 MB / 202.8 MB, free: 9.164 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.926/2.926, allocations: 377.8 MB / 0.6221 GB, free: 12.61 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 3.938 kB / 0.9815 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.738e-05/2.891e-05, allocations: 4.531 kB / 0.9815 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003748/0.003777, allocations: 2.127 MB / 0.9836 GB, free: 9.773 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001308/0.005084, allocations: 0.5921 MB / 0.9841 GB, free: 9.176 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001412/0.005225, allocations: 0 / 0.9841 GB, free: 9.176 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.000141/0.005366, allocations: 23.67 kB / 0.9842 GB, free: 9.152 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001286/0.005495, allocations: 51.58 kB / 0.9842 GB, free: 9.102 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003062/0.005801, allocations: 103.8 kB / 0.9843 GB, free: 9 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004148/0.006216, allocations: 307.2 kB / 0.9846 GB, free: 8.699 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002873/0.006503, allocations: 91.58 kB / 0.9847 GB, free: 8.609 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002635/0.006767, allocations: 167.7 kB / 0.9849 GB, free: 8.445 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001712/0.006938, allocations: 99.72 kB / 0.985 GB, free: 8.348 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 7.197e-05/0.00701, allocations: 32 kB / 0.985 GB, free: 8.316 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 5.296e-05/0.007063, allocations: 31.94 kB / 0.985 GB, free: 8.285 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 9.17e-05/0.007155, allocations: 67.81 kB / 0.9851 GB, free: 8.219 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001325/0.007287, allocations: 91.72 kB / 0.9852 GB, free: 8.129 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000493/0.00778, allocations: 342.9 kB / 0.9855 GB, free: 7.793 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.007784, allocations: 4 kB / 0.9855 GB, free: 7.789 MB / 0.9356 GB Notification: Performance of FrontEnd: time 8.22e-07/0.007785, allocations: 4 kB / 0.9855 GB, free: 7.785 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.583e-06/0.007792, allocations: 0 / 0.9855 GB, free: 7.785 MB / 0.9356 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.001433/0.009225, allocations: 0.5928 MB / 0.9861 GB, free: 7.145 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.009271, allocations: 12.03 kB / 0.9861 GB, free: 7.133 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.221e-05/0.009363, allocations: 36.75 kB / 0.9861 GB, free: 7.098 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004144/0.009778, allocations: 217.8 kB / 0.9863 GB, free: 6.859 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.261e-05/0.00982, allocations: 20.88 kB / 0.9864 GB, free: 6.84 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.957e-05/0.00987, allocations: 20.38 kB / 0.9864 GB, free: 6.82 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008045/0.01067, allocations: 374 kB / 0.9867 GB, free: 6.422 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.01069, allocations: 192 / 0.9867 GB, free: 6.422 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.22e-05/0.01072, allocations: 12.12 kB / 0.9867 GB, free: 6.41 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.01073, allocations: 4 kB / 0.9867 GB, free: 6.406 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007889/0.01152, allocations: 225.7 kB / 0.987 GB, free: 6.184 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001372/0.01289, allocations: 0.5414 MB / 0.9875 GB, free: 5.609 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007975/0.01369, allocations: 190.4 kB / 0.9877 GB, free: 5.414 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003577/0.01405, allocations: 88.78 kB / 0.9878 GB, free: 5.324 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.043e-05/0.01408, allocations: 4 kB / 0.9878 GB, free: 5.32 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006129/0.01469, allocations: 195.5 kB / 0.9879 GB, free: 5.117 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=20): time 1.683e-06/0.01469, allocations: 0 / 0.9879 GB, free: 5.117 MB / 0.9356 GB Notification: Performance of matching and sorting (n=20): time 0.00129/0.01598, allocations: 360.1 kB / 0.9883 GB, free: 4.762 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/0.01609, allocations: 136.5 kB / 0.9884 GB, free: 4.598 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000257/0.01635, allocations: 231 kB / 0.9886 GB, free: 4.363 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.772e-05/0.0164, allocations: 37.7 kB / 0.9887 GB, free: 4.32 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001497/0.01655, allocations: 164.3 kB / 0.9888 GB, free: 4.156 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 7.555e-05/0.01662, allocations: 51.62 kB / 0.9889 GB, free: 4.105 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001449/0.01677, allocations: 81.91 kB / 0.989 GB, free: 4.02 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001665/0.01693, allocations: 326.8 kB / 0.9893 GB, free: 3.691 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004926/0.01743, allocations: 201.3 kB / 0.9895 GB, free: 3.477 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005901/0.01802, allocations: 352.1 kB / 0.9898 GB, free: 3.07 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008022/0.01882, allocations: 323 kB / 0.9901 GB, free: 2.719 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.01882, allocations: 0 / 0.9901 GB, free: 2.719 MB / 0.9356 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001121/0.01994, allocations: 0.5084 MB / 0.9906 GB, free: 2.168 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 9.155e-05/0.02003, allocations: 97.03 kB / 0.9907 GB, free: 2.055 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.02004, allocations: 4 kB / 0.9907 GB, free: 2.051 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.133e-05/0.02006, allocations: 4 kB / 0.9907 GB, free: 2.047 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002711/0.02033, allocations: 48.05 kB / 0.9907 GB, free: 2 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.311e-05/0.02035, allocations: 7.938 kB / 0.9908 GB, free: 1.992 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000398/0.02075, allocations: 63.78 kB / 0.9908 GB, free: 1.93 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.705e-05/0.02078, allocations: 15.98 kB / 0.9908 GB, free: 1.914 MB / 0.9356 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.00021/0.02099, allocations: 156.3 kB / 0.991 GB, free: 1.75 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.737e-05/0.02104, allocations: 19.91 kB / 0.991 GB, free: 1.73 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008956/0.02194, allocations: 279.2 kB / 0.9913 GB, free: 1.453 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.02194, allocations: 4 kB / 0.9913 GB, free: 1.449 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.02195, allocations: 3.938 kB / 0.9913 GB, free: 1.445 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.02195, allocations: 3.984 kB / 0.9913 GB, free: 1.441 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001151/0.02311, allocations: 0.525 MB / 0.9918 GB, free: 0.8789 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.02311, allocations: 4 kB / 0.9918 GB, free: 0.875 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000183/0.02329, allocations: 31.91 kB / 0.9918 GB, free: 0.8438 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.747e-06/0.0233, allocations: 7.984 kB / 0.9918 GB, free: 0.8359 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.159e-05/0.02332, allocations: 7.938 kB / 0.9918 GB, free: 0.8281 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.02332, allocations: 0 / 0.9918 GB, free: 0.8281 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.02332, allocations: 0 / 0.9918 GB, free: 0.8281 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000901/0.02422, allocations: 361.5 kB / 0.9922 GB, free: 472 kB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.077e-05/0.02426, allocations: 27.83 kB / 0.9922 GB, free: 444 kB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.598e-05/0.02432, allocations: 15.92 kB / 0.9922 GB, free: 428 kB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003578/0.02468, allocations: 47.94 kB / 0.9923 GB, free: 380 kB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001584/0.02484, allocations: 47.92 kB / 0.9923 GB, free: 332 kB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.644e-05/0.02487, allocations: 15.98 kB / 0.9923 GB, free: 316 kB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001546/0.02503, allocations: 152.6 kB / 0.9925 GB, free: 164 kB / 0.9356 GB Notification: Performance of sort global known variables: time 9e-08/0.02503, allocations: 0 / 0.9925 GB, free: 164 kB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003482/0.02538, allocations: 71.78 kB / 0.9925 GB, free: 92 kB / 0.9356 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.0002081/0.02558, allocations: 117.6 kB / 0.9927 GB, free: 15.97 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001132/0.02672, allocations: 0.4958 MB / 0.9931 GB, free: 15.42 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.02672, allocations: 320 / 0.9931 GB, free: 15.42 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0004488/0.02717, allocations: 129.3 kB / 0.9933 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004305/0.0276, allocations: 35.16 kB / 0.9933 GB, free: 15.26 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001015/0.02861, allocations: 387.4 kB / 0.9937 GB, free: 14.86 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001553/0.02877, allocations: 134.2 kB / 0.9938 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001074/0.02888, allocations: 29.88 kB / 0.9938 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001051/0.02898, allocations: 28.48 kB / 0.9939 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of SimCode: time 3.81e-07/0.02898, allocations: 0 / 0.9939 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of Templates: time 0.009398/0.03838, allocations: 3.888 MB / 0.9976 GB, free: 10.82 MB / 0.9512 GB " [Timeout remaining time 300] 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 -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/jenkins/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.747660011053085]