Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.002282/0.002282, allocations: 106.6 kB / 18.94 MB, free: 2.957 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.001861/0.001861, allocations: 223.9 kB / 22.26 MB, free: 5.129 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.473/1.473, allocations: 230.6 MB / 256 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.755/2.755, allocations: 476.7 MB / 0.7707 GB, free: 4.266 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,fileNamePrefix="Buildings_11_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_11_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.001999/0.001999, allocations: 67.53 kB / 1.117 GB, free: 40.43 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3077/0.3097, allocations: 170 MB / 1.283 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.004155/0.3139, allocations: 2.149 MB / 1.286 GB, free: 9.531 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00132/0.3152, allocations: 0.6 MB / 1.286 GB, free: 8.926 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001484/0.3154, allocations: 0 / 1.286 GB, free: 8.926 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001701/0.3155, allocations: 27.67 kB / 1.286 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.000107/0.3156, allocations: 39.66 kB / 1.286 GB, free: 8.859 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000348/0.316, allocations: 91.75 kB / 1.286 GB, free: 8.77 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003957/0.3164, allocations: 263.4 kB / 1.287 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002881/0.3167, allocations: 84.3 kB / 1.287 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000179/0.3169, allocations: 119.6 kB / 1.287 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001859/0.317, allocations: 119.5 kB / 1.287 GB, free: 8.191 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.088e-05/0.3171, allocations: 24 kB / 1.287 GB, free: 8.168 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.168e-05/0.3171, allocations: 28 kB / 1.287 GB, free: 8.141 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 7.428e-05/0.3172, allocations: 59.83 kB / 1.287 GB, free: 8.082 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001487/0.3174, allocations: 115.4 kB / 1.287 GB, free: 7.969 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003744/0.3177, allocations: 278.8 kB / 1.287 GB, free: 7.695 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.3177, allocations: 0 / 1.287 GB, free: 7.695 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.082e-06/0.3177, allocations: 0 / 1.287 GB, free: 7.695 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.092e-06/0.3177, allocations: 0 / 1.287 GB, free: 7.695 MB / 0.9825 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.001203/0.3189, allocations: 0.5772 MB / 1.288 GB, free: 7.066 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.319, allocations: 12.03 kB / 1.288 GB, free: 7.055 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001073/0.3191, allocations: 63.09 kB / 1.288 GB, free: 6.984 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.275e-05/0.3192, allocations: 24.8 kB / 1.288 GB, free: 6.961 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003398/0.3195, allocations: 195.2 kB / 1.288 GB, free: 6.746 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.802e-05/0.3195, allocations: 20.81 kB / 1.288 GB, free: 6.727 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.142e-05/0.3196, allocations: 20.38 kB / 1.288 GB, free: 6.707 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006085/0.3202, allocations: 274.5 kB / 1.288 GB, free: 6.426 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.3202, allocations: 3.938 kB / 1.288 GB, free: 6.422 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.92e-05/0.3202, allocations: 16 kB / 1.288 GB, free: 6.406 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.944e-06/0.3202, allocations: 4 kB / 1.288 GB, free: 6.402 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000642/0.3209, allocations: 193.6 kB / 1.289 GB, free: 6.215 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001137/0.322, allocations: 0.599 MB / 1.289 GB, free: 5.566 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007883/0.3228, allocations: 214.5 kB / 1.289 GB, free: 5.348 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002922/0.3231, allocations: 88.78 kB / 1.29 GB, free: 5.258 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.28e-05/0.3231, allocations: 0 / 1.29 GB, free: 5.258 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005033/0.3236, allocations: 201.6 kB / 1.29 GB, free: 5.051 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=18): time 1.573e-06/0.3236, allocations: 0 / 1.29 GB, free: 5.051 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18): time 0.001034/0.3247, allocations: 325.2 kB / 1.29 GB, free: 4.727 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.931e-05/0.3247, allocations: 114.7 kB / 1.29 GB, free: 4.59 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001996/0.3249, allocations: 205 kB / 1.29 GB, free: 4.383 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.756e-05/0.325, allocations: 37.7 kB / 1.29 GB, free: 4.34 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001297/0.3251, allocations: 156.4 kB / 1.291 GB, free: 4.184 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.105e-05/0.3252, allocations: 55.61 kB / 1.291 GB, free: 4.129 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/0.3253, allocations: 69.62 kB / 1.291 GB, free: 4.055 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001558/0.3254, allocations: 326.8 kB / 1.291 GB, free: 3.727 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003512/0.3258, allocations: 112.2 kB / 1.291 GB, free: 3.617 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003903/0.3262, allocations: 175.8 kB / 1.291 GB, free: 3.422 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006747/0.3268, allocations: 311.6 kB / 1.292 GB, free: 3.082 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.3268, allocations: 0 / 1.292 GB, free: 3.082 MB / 0.9825 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008997/0.3277, allocations: 416.5 kB / 1.292 GB, free: 2.652 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 8.226e-05/0.3278, allocations: 97.03 kB / 1.292 GB, free: 2.539 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.3278, allocations: 0 / 1.292 GB, free: 2.539 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.929e-05/0.3278, allocations: 4 kB / 1.292 GB, free: 2.535 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002209/0.3281, allocations: 43.89 kB / 1.292 GB, free: 2.492 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.3281, allocations: 4.156 kB / 1.292 GB, free: 2.488 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003038/0.3284, allocations: 67.78 kB / 1.292 GB, free: 2.422 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.483e-05/0.3284, allocations: 12 kB / 1.292 GB, free: 2.41 MB / 0.9825 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.0001625/0.3286, allocations: 152 kB / 1.292 GB, free: 2.254 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.706e-05/0.3286, allocations: 27.77 kB / 1.292 GB, free: 2.227 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007488/0.3294, allocations: 262.3 kB / 1.293 GB, free: 1.969 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.3294, allocations: 0 / 1.293 GB, free: 1.969 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.3294, allocations: 0 / 1.293 GB, free: 1.969 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.3294, allocations: 4 kB / 1.293 GB, free: 1.965 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009781/0.3303, allocations: 0.5597 MB / 1.293 GB, free: 1.355 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3303, allocations: 0 / 1.293 GB, free: 1.355 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001538/0.3305, allocations: 27.97 kB / 1.293 GB, free: 1.328 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.3305, allocations: 0 / 1.293 GB, free: 1.328 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.14e-05/0.3305, allocations: 7.984 kB / 1.293 GB, free: 1.32 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.3305, allocations: 4 kB / 1.293 GB, free: 1.316 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3305, allocations: 0 / 1.293 GB, free: 1.316 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007306/0.3313, allocations: 347.1 kB / 1.293 GB, free: 0.9609 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.449e-05/0.3313, allocations: 27.78 kB / 1.294 GB, free: 0.9336 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.282e-05/0.3313, allocations: 12 kB / 1.294 GB, free: 0.9219 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002741/0.3316, allocations: 39.94 kB / 1.294 GB, free: 0.8828 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001064/0.3317, allocations: 39.94 kB / 1.294 GB, free: 0.8438 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.33e-05/0.3317, allocations: 7.984 kB / 1.294 GB, free: 0.8359 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001321/0.3319, allocations: 143.3 kB / 1.294 GB, free: 0.6953 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3319, allocations: 0 / 1.294 GB, free: 0.6953 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003033/0.3322, allocations: 55.89 kB / 1.294 GB, free: 0.6406 MB / 0.9825 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.001449/0.3336, allocations: 1.002 MB / 1.295 GB, free: 15.61 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0008521/0.3345, allocations: 411.8 kB / 1.295 GB, free: 15.17 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3345, allocations: 0 / 1.295 GB, free: 15.17 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003496/0.3348, allocations: 103.9 kB / 1.295 GB, free: 15.07 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003645/0.3352, allocations: 38.66 kB / 1.295 GB, free: 15.04 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004061/0.3393, allocations: 2.581 MB / 1.298 GB, free: 12.33 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004014/0.3397, allocations: 0.7398 MB / 1.299 GB, free: 11.57 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 9.825e-05/0.3398, allocations: 17.64 kB / 1.299 GB, free: 11.54 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000142/0.3399, allocations: 71.41 kB / 1.299 GB, free: 11.47 MB / 0.9981 GB Notification: Performance of SimCode: time 6.01e-07/0.3399, allocations: 0 / 1.299 GB, free: 11.47 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03343/0.3733, allocations: 5.536 MB / 1.304 GB, free: 6.098 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.44, allocations: 8 kB / 1.304 GB, free: 6.09 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; mkfifo Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe >> ../files/Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze_fmu --startTime=0 --stopTime=100 --stepSize=1 --timeout=400 --tolerance=1e-08 Buildings_11_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.fmu > Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.906535184010863]