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.001271/0.001271, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.00135/0.00135, allocations: 210.5 kB / 22.24 MB, free: 4.859 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.323/1.323, allocations: 230.6 MB / 256 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 179] 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.972/2.972, allocations: 0.5107 GB / 0.8158 GB, free: 17.81 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.001923/0.001923, allocations: 80.69 kB / 1.186 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3059/0.3078, allocations: 181.9 MB / 1.363 GB, free: 14.04 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003454/0.3113, allocations: 2.111 MB / 1.366 GB, free: 11.91 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001065/0.3124, allocations: 0.5883 MB / 1.366 GB, free: 11.32 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.777e-05/0.3125, allocations: 4 kB / 1.366 GB, free: 11.32 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001127/0.3126, allocations: 27.61 kB / 1.366 GB, free: 11.29 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 9.493e-05/0.3127, allocations: 39.59 kB / 1.366 GB, free: 11.25 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002609/0.3129, allocations: 99.88 kB / 1.366 GB, free: 11.15 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.000323/0.3132, allocations: 291.3 kB / 1.367 GB, free: 10.87 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002173/0.3135, allocations: 87.58 kB / 1.367 GB, free: 10.78 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001499/0.3136, allocations: 119.6 kB / 1.367 GB, free: 10.66 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001527/0.3138, allocations: 123.4 kB / 1.367 GB, free: 10.54 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 5.012e-05/0.3138, allocations: 28 kB / 1.367 GB, free: 10.51 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 5.157e-05/0.3139, allocations: 28 kB / 1.367 GB, free: 10.48 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 6.648e-05/0.3139, allocations: 59.81 kB / 1.367 GB, free: 10.43 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001106/0.314, allocations: 107.5 kB / 1.367 GB, free: 10.32 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003568/0.3144, allocations: 302.7 kB / 1.367 GB, free: 10.02 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.3144, allocations: 0 / 1.367 GB, free: 10.02 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.273e-06/0.3144, allocations: 4 kB / 1.367 GB, free: 10.02 MB / 1.061 GB Notification: Performance of Transformations before backend: time 8.726e-06/0.3144, allocations: 0 / 1.367 GB, free: 10.02 MB / 1.061 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.001127/0.3155, allocations: 0.5967 MB / 1.368 GB, free: 9.375 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.3156, allocations: 8.031 kB / 1.368 GB, free: 9.367 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.044e-05/0.3157, allocations: 59.16 kB / 1.368 GB, free: 9.301 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.524e-05/0.3157, allocations: 36.75 kB / 1.368 GB, free: 9.266 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003922/0.3161, allocations: 219.4 kB / 1.368 GB, free: 9.023 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.291e-05/0.3161, allocations: 12.81 kB / 1.368 GB, free: 9.012 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.586e-05/0.3162, allocations: 28.38 kB / 1.368 GB, free: 8.984 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007089/0.3169, allocations: 384.4 kB / 1.369 GB, free: 8.574 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.3169, allocations: 0 / 1.369 GB, free: 8.574 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.352e-05/0.3169, allocations: 4 kB / 1.369 GB, free: 8.57 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.3169, allocations: 8 kB / 1.369 GB, free: 8.562 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006823/0.3176, allocations: 213.6 kB / 1.369 GB, free: 8.348 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00116/0.3188, allocations: 0.5611 MB / 1.369 GB, free: 7.746 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006568/0.3194, allocations: 194.4 kB / 1.37 GB, free: 7.547 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003092/0.3198, allocations: 89.06 kB / 1.37 GB, free: 7.457 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.51e-05/0.3198, allocations: 7.938 kB / 1.37 GB, free: 7.449 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004875/0.3203, allocations: 204.6 kB / 1.37 GB, free: 7.238 MB / 1.061 GB Notification: Performance of pre-optimization done (n=20): time 1.483e-06/0.3203, allocations: 0 / 1.37 GB, free: 7.238 MB / 1.061 GB Notification: Performance of matching and sorting (n=20): time 0.001051/0.3213, allocations: 347 kB / 1.37 GB, free: 6.895 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.58e-05/0.3214, allocations: 118.7 kB / 1.37 GB, free: 6.754 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002045/0.3216, allocations: 210.9 kB / 1.371 GB, free: 6.535 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.95e-05/0.3216, allocations: 37.7 kB / 1.371 GB, free: 6.492 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.3218, allocations: 164.6 kB / 1.371 GB, free: 6.328 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.366e-05/0.3218, allocations: 59.56 kB / 1.371 GB, free: 6.27 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001149/0.3219, allocations: 73.97 kB / 1.371 GB, free: 6.191 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001676/0.3221, allocations: 330.8 kB / 1.371 GB, free: 5.859 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004148/0.3225, allocations: 197.3 kB / 1.371 GB, free: 5.648 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004799/0.323, allocations: 315.8 kB / 1.372 GB, free: 5.281 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006859/0.3237, allocations: 314.5 kB / 1.372 GB, free: 4.938 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3237, allocations: 0 / 1.372 GB, free: 4.938 MB / 1.061 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009838/0.3247, allocations: 0.5205 MB / 1.372 GB, free: 4.375 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 6.875e-05/0.3247, allocations: 93.09 kB / 1.373 GB, free: 4.266 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.3247, allocations: 4 kB / 1.373 GB, free: 4.262 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.3248, allocations: 0 / 1.373 GB, free: 4.262 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002385/0.325, allocations: 56.05 kB / 1.373 GB, free: 4.207 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.325, allocations: 4 kB / 1.373 GB, free: 4.203 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003098/0.3253, allocations: 59.73 kB / 1.373 GB, free: 4.145 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.741e-05/0.3253, allocations: 15.98 kB / 1.373 GB, free: 4.129 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.0001513/0.3255, allocations: 155.9 kB / 1.373 GB, free: 3.969 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.822e-05/0.3255, allocations: 27.8 kB / 1.373 GB, free: 3.941 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000753/0.3263, allocations: 271.2 kB / 1.373 GB, free: 3.668 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.3263, allocations: 0 / 1.373 GB, free: 3.668 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.3263, allocations: 0 / 1.373 GB, free: 3.668 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.3263, allocations: 3.984 kB / 1.373 GB, free: 3.664 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001057/0.3273, allocations: 0.5732 MB / 1.374 GB, free: 3.043 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.3274, allocations: 4 kB / 1.374 GB, free: 3.039 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001537/0.3275, allocations: 27.97 kB / 1.374 GB, free: 3.012 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.3275, allocations: 0 / 1.374 GB, free: 3.012 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.899e-05/0.3275, allocations: 11.98 kB / 1.374 GB, free: 3 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.3275, allocations: 0 / 1.374 GB, free: 3 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.3275, allocations: 0 / 1.374 GB, free: 3 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007395/0.3283, allocations: 370 kB / 1.374 GB, free: 2.625 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.489e-05/0.3283, allocations: 19.84 kB / 1.374 GB, free: 2.605 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.323e-05/0.3283, allocations: 8 kB / 1.374 GB, free: 2.598 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002913/0.3286, allocations: 43.94 kB / 1.374 GB, free: 2.555 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001169/0.3288, allocations: 51.91 kB / 1.374 GB, free: 2.504 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.403e-05/0.3288, allocations: 12 kB / 1.374 GB, free: 2.492 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001292/0.3289, allocations: 148.2 kB / 1.374 GB, free: 2.348 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3289, allocations: 0 / 1.374 GB, free: 2.348 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002953/0.3292, allocations: 67.84 kB / 1.374 GB, free: 2.281 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.001447/0.3307, allocations: 1.017 MB / 1.375 GB, free: 1.234 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0009575/0.3316, allocations: 0.5074 MB / 1.376 GB, free: 0.6719 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3316, allocations: 0 / 1.376 GB, free: 0.6719 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0003553/0.332, allocations: 110.4 kB / 1.376 GB, free: 0.5664 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003483/0.3323, allocations: 39.97 kB / 1.376 GB, free: 0.5273 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004371/0.3367, allocations: 3.023 MB / 1.379 GB, free: 13.3 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001327/0.3368, allocations: 138.2 kB / 1.379 GB, free: 13.16 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0001107/0.3369, allocations: 25.94 kB / 1.379 GB, free: 13.13 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001463/0.3371, allocations: 79.39 kB / 1.379 GB, free: 13.05 MB / 1.076 GB Notification: Performance of SimCode: time 6.11e-07/0.3371, allocations: 0 / 1.379 GB, free: 13.05 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03452/0.3716, allocations: 6.503 MB / 1.386 GB, free: 6.758 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.42/10.79, allocations: 10.7 kB / 1.386 GB, free: 6.75 MB / 1.076 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: 16.78998448839411]