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.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.0014/0.0014, allocations: 92.7 kB / 19.44 MB, free: 324 kB / 13.93 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.001515/0.001515, allocations: 161.3 kB / 22.75 MB, free: 1.656 MB / 18.57 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.535/1.535, allocations: 177.2 MB / 203.1 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.259/3.259, allocations: 429.6 MB / 0.673 GB, free: 3.859 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.873e-06/1.873e-06, allocations: 0 / 0.8777 GB, free: 6.43 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.965e-05/3.152e-05, allocations: 4.531 kB / 0.8777 GB, free: 6.426 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.005499/0.00553, allocations: 2.125 MB / 0.8797 GB, free: 4.312 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001798/0.007328, allocations: 0.5822 MB / 0.8803 GB, free: 3.727 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001519/0.00748, allocations: 3.938 kB / 0.8803 GB, free: 3.723 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001713/0.007651, allocations: 23.73 kB / 0.8803 GB, free: 3.699 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001879/0.007839, allocations: 44.59 kB / 0.8804 GB, free: 3.656 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004167/0.008256, allocations: 103.8 kB / 0.8805 GB, free: 3.555 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0005627/0.008819, allocations: 284.3 kB / 0.8807 GB, free: 3.277 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003327/0.009151, allocations: 91.64 kB / 0.8808 GB, free: 3.188 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003619/0.009513, allocations: 171.7 kB / 0.881 GB, free: 3.02 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002494/0.009763, allocations: 100.8 kB / 0.8811 GB, free: 2.922 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 9.021e-05/0.009853, allocations: 32 kB / 0.8811 GB, free: 2.891 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 7.153e-05/0.009925, allocations: 29.12 kB / 0.8811 GB, free: 2.863 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 0.0001052/0.01003, allocations: 59.81 kB / 0.8812 GB, free: 2.805 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.0001771/0.01021, allocations: 87.73 kB / 0.8813 GB, free: 2.719 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.000658/0.01086, allocations: 323.9 kB / 0.8816 GB, free: 2.402 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.01087, allocations: 0 / 0.8816 GB, free: 2.402 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.203e-06/0.01087, allocations: 0 / 0.8816 GB, free: 2.402 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.602e-06/0.01088, allocations: 1.656 kB / 0.8816 GB, free: 2.402 MB / 0.8386 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.002128/0.01301, allocations: 0.599 MB / 0.8822 GB, free: 1.758 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.01305, allocations: 12.03 kB / 0.8822 GB, free: 1.746 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001702/0.01322, allocations: 44.73 kB / 0.8822 GB, free: 1.703 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006537/0.01388, allocations: 216.2 kB / 0.8824 GB, free: 1.465 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.845e-05/0.01392, allocations: 16.88 kB / 0.8825 GB, free: 1.449 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.388e-05/0.01399, allocations: 24.38 kB / 0.8825 GB, free: 1.426 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001133/0.01512, allocations: 375 kB / 0.8828 GB, free: 1.023 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.01514, allocations: 1.781 kB / 0.8828 GB, free: 1.023 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.817e-05/0.01518, allocations: 12.12 kB / 0.8829 GB, free: 1.012 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.01519, allocations: 4 kB / 0.8829 GB, free: 1.008 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001116/0.01631, allocations: 212.3 kB / 0.8831 GB, free: 0.8047 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001805/0.01812, allocations: 0.5239 MB / 0.8836 GB, free: 256 kB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/0.01918, allocations: 199.5 kB / 0.8838 GB, free: 52 kB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005479/0.01973, allocations: 92.84 kB / 0.8839 GB, free: 15.95 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 3.628e-05/0.01977, allocations: 4 kB / 0.8839 GB, free: 15.95 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008181/0.02059, allocations: 191.7 kB / 0.884 GB, free: 15.75 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=20): time 2.715e-06/0.02059, allocations: 0 / 0.884 GB, free: 15.75 MB / 0.8542 GB Notification: Performance of matching and sorting (n=20): time 0.001941/0.02253, allocations: 359.2 kB / 0.8844 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001322/0.02266, allocations: 106.8 kB / 0.8845 GB, free: 15.27 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003872/0.02305, allocations: 226.9 kB / 0.8847 GB, free: 15.04 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 7.639e-05/0.02313, allocations: 41.7 kB / 0.8847 GB, free: 14.99 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002284/0.02336, allocations: 160.5 kB / 0.8849 GB, free: 14.83 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001057/0.02346, allocations: 51.62 kB / 0.8849 GB, free: 14.78 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002024/0.02366, allocations: 73.92 kB / 0.885 GB, free: 14.7 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0002891/0.02395, allocations: 330.8 kB / 0.8853 GB, free: 14.37 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007424/0.02469, allocations: 201.3 kB / 0.8855 GB, free: 14.16 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008851/0.02558, allocations: 312.1 kB / 0.8858 GB, free: 13.79 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001187/0.02677, allocations: 323.8 kB / 0.8861 GB, free: 13.44 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.02677, allocations: 4 kB / 0.8861 GB, free: 13.44 MB / 0.8542 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001757/0.02853, allocations: 0.5162 MB / 0.8866 GB, free: 12.88 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001247/0.02865, allocations: 93.25 kB / 0.8867 GB, free: 12.77 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.02866, allocations: 4 kB / 0.8867 GB, free: 12.77 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.33e-05/0.02869, allocations: 11.92 kB / 0.8867 GB, free: 12.75 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003835/0.02908, allocations: 51.89 kB / 0.8868 GB, free: 12.7 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.788e-05/0.0291, allocations: 7.938 kB / 0.8868 GB, free: 12.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005556/0.02965, allocations: 67.72 kB / 0.8869 GB, free: 12.63 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.36e-05/0.0297, allocations: 8 kB / 0.8869 GB, free: 12.62 MB / 0.8542 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,ySetOn.y,$PRE.ySetOn.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,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.0002638/0.02996, allocations: 151.9 kB / 0.887 GB, free: 12.46 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.307e-05/0.03005, allocations: 27.91 kB / 0.887 GB, free: 12.44 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001224/0.03128, allocations: 276.7 kB / 0.8873 GB, free: 12.16 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/0.03128, allocations: 8 kB / 0.8873 GB, free: 12.16 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.327e-06/0.03129, allocations: 3.938 kB / 0.8873 GB, free: 12.15 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-06/0.0313, allocations: 3.984 kB / 0.8873 GB, free: 12.15 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00175/0.03305, allocations: 0.5213 MB / 0.8878 GB, free: 11.59 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.03306, allocations: 0 / 0.8878 GB, free: 11.59 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002672/0.03332, allocations: 39.89 kB / 0.8879 GB, free: 11.55 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.03333, allocations: 0 / 0.8879 GB, free: 11.55 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.075e-05/0.03337, allocations: 15.92 kB / 0.8879 GB, free: 11.54 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.03337, allocations: 0 / 0.8879 GB, free: 11.54 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.03337, allocations: 0 / 0.8879 GB, free: 11.54 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001281/0.03465, allocations: 361.5 kB / 0.8882 GB, free: 11.17 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 5.87e-05/0.03471, allocations: 23.84 kB / 0.8882 GB, free: 11.14 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.623e-05/0.03479, allocations: 11.94 kB / 0.8883 GB, free: 11.13 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005207/0.03531, allocations: 39.94 kB / 0.8883 GB, free: 11.09 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002074/0.03551, allocations: 47.92 kB / 0.8883 GB, free: 11.05 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-05/0.03556, allocations: 11.98 kB / 0.8884 GB, free: 11.04 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.000228/0.03579, allocations: 140.6 kB / 0.8885 GB, free: 10.9 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.4e-07/0.03579, allocations: 3.938 kB / 0.8885 GB, free: 10.89 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0006155/0.03641, allocations: 67.89 kB / 0.8886 GB, free: 10.83 MB / 0.8542 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.hys.y,ySetPul.T_start,ySetPul.count,TConInEmu.T_start,TConInEmu.count,TEvaOutEmu.T_start,TEvaOutEmu.count,ySetOn.y) * Number of discrete states: 7 (TEvaOutEmu.count,TConInEmu.count,ySetPul.count,antFre.hys.y,hys.y,ySetOn.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.00023/0.03664, allocations: 112 kB / 0.8887 GB, free: 10.71 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0017/0.03834, allocations: 0.4969 MB / 0.8891 GB, free: 10.16 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.03834, allocations: 0 / 0.8891 GB, free: 10.16 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0006104/0.03895, allocations: 115.8 kB / 0.8893 GB, free: 10.05 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000661/0.03961, allocations: 43.16 kB / 0.8893 GB, free: 10.01 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001349/0.04096, allocations: 392.5 kB / 0.8897 GB, free: 9.598 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002273/0.04119, allocations: 134.2 kB / 0.8898 GB, free: 9.441 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.000166/0.04135, allocations: 25.94 kB / 0.8898 GB, free: 9.418 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001434/0.0415, allocations: 28.48 kB / 0.8899 GB, free: 9.391 MB / 0.8542 GB Notification: Performance of SimCode: time 1.032e-06/0.0415, allocations: 3.938 kB / 0.8899 GB, free: 9.387 MB / 0.8542 GB Notification: Performance of Templates: time 0.01219/0.05369, allocations: 3.695 MB / 0.8935 GB, free: 5.773 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.635653225937858]