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.001519/0.001519, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001668/0.001668, allocations: 216 kB / 22.25 MB, free: 5.125 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.355/1.355, allocations: 230.6 MB / 256 MB, free: 7.992 MB / 206.1 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 2.999/2.999, allocations: 0.505 GB / 0.8101 GB, free: 22.04 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.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: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze",fmuType="me",version="2.0",platforms={"static"}) [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.001841/0.001841, allocations: 75.95 kB / 1.177 GB, free: 17.06 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.281/0.2828, allocations: 180.2 MB / 1.353 GB, free: 8.43 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.00337/0.2862, allocations: 2.19 MB / 1.355 GB, free: 6.227 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.00111/0.2873, allocations: 0.6117 MB / 1.356 GB, free: 5.609 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001196/0.2874, allocations: 7.938 kB / 1.356 GB, free: 5.602 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.000134/0.2876, allocations: 23.67 kB / 1.356 GB, free: 5.578 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001049/0.2877, allocations: 47.59 kB / 1.356 GB, free: 5.531 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002651/0.2879, allocations: 95.88 kB / 1.356 GB, free: 5.438 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003455/0.2883, allocations: 291.3 kB / 1.356 GB, free: 5.152 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002166/0.2885, allocations: 95.53 kB / 1.356 GB, free: 5.059 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001667/0.2887, allocations: 115.6 kB / 1.356 GB, free: 4.945 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001729/0.2888, allocations: 143.4 kB / 1.356 GB, free: 4.805 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 4.718e-05/0.2889, allocations: 28 kB / 1.356 GB, free: 4.777 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 3.917e-05/0.2889, allocations: 28 kB / 1.356 GB, free: 4.75 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 6.554e-05/0.289, allocations: 63.75 kB / 1.357 GB, free: 4.688 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.000115/0.2891, allocations: 127.4 kB / 1.357 GB, free: 4.562 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003355/0.2894, allocations: 302.7 kB / 1.357 GB, free: 4.266 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.2894, allocations: 0 / 1.357 GB, free: 4.266 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.052e-06/0.2894, allocations: 0 / 1.357 GB, free: 4.266 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.871e-06/0.2894, allocations: 0 / 1.357 GB, free: 4.266 MB / 1.045 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.001121/0.2906, allocations: 0.5967 MB / 1.358 GB, free: 3.621 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.2906, allocations: 12.03 kB / 1.358 GB, free: 3.609 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.93e-05/0.2907, allocations: 59.17 kB / 1.358 GB, free: 3.543 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.347e-05/0.2908, allocations: 32.75 kB / 1.358 GB, free: 3.512 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003595/0.2911, allocations: 207.5 kB / 1.358 GB, free: 3.281 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.68e-05/0.2912, allocations: 24.75 kB / 1.358 GB, free: 3.258 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.938e-05/0.2912, allocations: 20.38 kB / 1.358 GB, free: 3.238 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006228/0.2918, allocations: 303.4 kB / 1.358 GB, free: 2.922 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.2918, allocations: 0 / 1.358 GB, free: 2.922 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.491e-05/0.2918, allocations: 7.984 kB / 1.358 GB, free: 2.914 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.275e-06/0.2919, allocations: 11.94 kB / 1.358 GB, free: 2.902 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006529/0.2925, allocations: 213.5 kB / 1.358 GB, free: 2.691 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001113/0.2936, allocations: 0.6273 MB / 1.359 GB, free: 2.023 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006137/0.2942, allocations: 190.4 kB / 1.359 GB, free: 1.828 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002925/0.2945, allocations: 93.05 kB / 1.359 GB, free: 1.734 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.208e-05/0.2945, allocations: 3.938 kB / 1.359 GB, free: 1.73 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000474/0.295, allocations: 205.3 kB / 1.359 GB, free: 1.52 MB / 1.045 GB Notification: Performance of pre-optimization done (n=20): time 1.312e-06/0.295, allocations: 0 / 1.359 GB, free: 1.52 MB / 1.045 GB Notification: Performance of matching and sorting (n=20): time 0.001/0.296, allocations: 349.2 kB / 1.36 GB, free: 1.172 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.274e-05/0.2961, allocations: 110.8 kB / 1.36 GB, free: 1.039 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001982/0.2963, allocations: 218.9 kB / 1.36 GB, free: 0.8164 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.841e-05/0.2963, allocations: 37.7 kB / 1.36 GB, free: 0.7734 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.2965, allocations: 164.6 kB / 1.36 GB, free: 0.6094 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 4.886e-05/0.2965, allocations: 51.62 kB / 1.36 GB, free: 0.5586 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/0.2966, allocations: 69.97 kB / 1.36 GB, free: 496 kB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001461/0.2968, allocations: 334.8 kB / 1.361 GB, free: 152 kB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003555/0.2971, allocations: 120.2 kB / 1.361 GB, free: 32 kB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004056/0.2975, allocations: 183.4 kB / 1.361 GB, free: 15.83 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006561/0.2982, allocations: 310.5 kB / 1.361 GB, free: 15.49 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2982, allocations: 4 kB / 1.361 GB, free: 15.48 MB / 1.061 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0008955/0.2991, allocations: 440 kB / 1.362 GB, free: 15.03 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 6.355e-05/0.2991, allocations: 91.3 kB / 1.362 GB, free: 14.93 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.2991, allocations: 8.156 kB / 1.362 GB, free: 14.92 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.211e-05/0.2992, allocations: 0 / 1.362 GB, free: 14.92 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002236/0.2994, allocations: 47.89 kB / 1.362 GB, free: 14.87 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.2994, allocations: 4 kB / 1.362 GB, free: 14.87 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002955/0.2997, allocations: 55.83 kB / 1.362 GB, free: 14.81 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.851e-05/0.2997, allocations: 12 kB / 1.362 GB, free: 14.8 MB / 1.061 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.0001532/0.2999, allocations: 163.8 kB / 1.362 GB, free: 14.63 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.837e-05/0.2999, allocations: 27.8 kB / 1.362 GB, free: 14.6 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007229/0.3006, allocations: 284.7 kB / 1.362 GB, free: 14.32 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.3006, allocations: 0 / 1.362 GB, free: 14.32 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.3006, allocations: 3.938 kB / 1.362 GB, free: 14.31 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.3006, allocations: 0 / 1.362 GB, free: 14.31 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/0.3017, allocations: 0.5871 MB / 1.363 GB, free: 13.68 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3017, allocations: 4 kB / 1.363 GB, free: 13.67 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000152/0.3018, allocations: 35.89 kB / 1.363 GB, free: 13.64 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.3018, allocations: 4 kB / 1.363 GB, free: 13.63 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.699e-05/0.3018, allocations: 3.984 kB / 1.363 GB, free: 13.63 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.3018, allocations: 0 / 1.363 GB, free: 13.63 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.3018, allocations: 7.984 kB / 1.363 GB, free: 13.62 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007187/0.3026, allocations: 352.5 kB / 1.363 GB, free: 13.26 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.217e-05/0.3026, allocations: 31.72 kB / 1.363 GB, free: 13.23 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.194e-05/0.3026, allocations: 8 kB / 1.363 GB, free: 13.22 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000283/0.3029, allocations: 47.94 kB / 1.363 GB, free: 13.18 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.303, allocations: 47.92 kB / 1.364 GB, free: 13.13 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.162e-05/0.303, allocations: 7.984 kB / 1.364 GB, free: 13.12 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001314/0.3032, allocations: 148.4 kB / 1.364 GB, free: 12.98 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3032, allocations: 0 / 1.364 GB, free: 12.98 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002937/0.3035, allocations: 59.89 kB / 1.364 GB, free: 12.92 MB / 1.061 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.001393/0.3049, allocations: 1.024 MB / 1.365 GB, free: 11.87 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0008489/0.3057, allocations: 419.5 kB / 1.365 GB, free: 11.42 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3057, allocations: 0 / 1.365 GB, free: 11.42 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0003464/0.3061, allocations: 124.1 kB / 1.365 GB, free: 11.3 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003336/0.3064, allocations: 31.97 kB / 1.365 GB, free: 11.27 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00398/0.3104, allocations: 2.685 MB / 1.368 GB, free: 8.461 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003567/0.3107, allocations: 0.7481 MB / 1.369 GB, free: 7.688 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001026/0.3108, allocations: 25.94 kB / 1.369 GB, free: 7.664 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001373/0.311, allocations: 75.39 kB / 1.369 GB, free: 7.59 MB / 1.061 GB Notification: Performance of SimCode: time 3.8e-07/0.311, allocations: 0 / 1.369 GB, free: 7.59 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03267/0.3436, allocations: 5.937 MB / 1.375 GB, free: 1.824 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.5/10.84, allocations: 12.83 kB / 1.375 GB, free: 1.816 MB / 1.061 GB " [Timeout remaining time 289] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze_fmu --startTime=0 --stopTime=100 --stepSize=1 --timeout=800 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.fmu > Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) [Timeout 840.0] 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/jenkins1/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: 17.519037491176277]