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.001594/0.001594, allocations: 111.1 kB / 16.46 MB, free: 6.453 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.00184/0.00184, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.412/1.412, allocations: 230.6 MB / 252.8 MB, free: 8.945 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.074/3.074, allocations: 0.49 GB / 0.7916 GB, free: 33.14 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,fileNamePrefix="Buildings_12_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_12_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.002029/0.002029, allocations: 68.48 kB / 1.149 GB, free: 26.33 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3382/0.3402, allocations: 176.1 MB / 1.321 GB, free: 3.254 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003955/0.3442, allocations: 2.177 MB / 1.323 GB, free: 1.062 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001079/0.3453, allocations: 0.6194 MB / 1.324 GB, free: 448 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/0.3454, allocations: 4 kB / 1.324 GB, free: 444 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001209/0.3455, allocations: 27.66 kB / 1.324 GB, free: 416 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001201/0.3456, allocations: 47.59 kB / 1.324 GB, free: 368 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002602/0.3459, allocations: 91.89 kB / 1.324 GB, free: 276 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0003541/0.3462, allocations: 295.3 kB / 1.324 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002342/0.3464, allocations: 107.3 kB / 1.324 GB, free: 15.87 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001573/0.3466, allocations: 123.6 kB / 1.324 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001716/0.3468, allocations: 139.4 kB / 1.324 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.243e-05/0.3468, allocations: 28 kB / 1.324 GB, free: 15.59 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 4.273e-05/0.3469, allocations: 35.94 kB / 1.324 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.836e-05/0.3469, allocations: 63.83 kB / 1.325 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.00013/0.3471, allocations: 131.3 kB / 1.325 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003714/0.3474, allocations: 322.7 kB / 1.325 GB, free: 15.04 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3474, allocations: 0 / 1.325 GB, free: 15.04 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.072e-06/0.3474, allocations: 0 / 1.325 GB, free: 15.04 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.014e-05/0.3475, allocations: 0 / 1.325 GB, free: 15.04 MB / 1.029 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.001282/0.3487, allocations: 0.6837 MB / 1.326 GB, free: 14.29 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.3488, allocations: 11.98 kB / 1.326 GB, free: 14.28 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.411e-05/0.3489, allocations: 59.16 kB / 1.326 GB, free: 14.21 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.359e-05/0.3489, allocations: 36.69 kB / 1.326 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000383/0.3493, allocations: 272.5 kB / 1.326 GB, free: 13.88 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.231e-05/0.3494, allocations: 16.81 kB / 1.326 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.315e-05/0.3494, allocations: 36.3 kB / 1.326 GB, free: 13.82 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007046/0.3501, allocations: 303.4 kB / 1.326 GB, free: 13.5 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.3501, allocations: 0 / 1.326 GB, free: 13.5 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.917e-05/0.3502, allocations: 4 kB / 1.326 GB, free: 13.5 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.3502, allocations: 8 kB / 1.326 GB, free: 13.49 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007636/0.3509, allocations: 213.6 kB / 1.327 GB, free: 13.29 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001262/0.3522, allocations: 0.6815 MB / 1.327 GB, free: 12.55 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000732/0.3529, allocations: 194.4 kB / 1.327 GB, free: 12.36 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003478/0.3533, allocations: 96.77 kB / 1.327 GB, free: 12.26 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.121e-05/0.3533, allocations: 0 / 1.327 GB, free: 12.26 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005442/0.3538, allocations: 201 kB / 1.328 GB, free: 12.05 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 1.452e-06/0.3538, allocations: 4 kB / 1.328 GB, free: 12.05 MB / 1.029 GB Notification: Performance of matching and sorting (n=20): time 0.001189/0.355, allocations: 346.8 kB / 1.328 GB, free: 11.7 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.928e-05/0.3551, allocations: 132.5 kB / 1.328 GB, free: 11.54 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002322/0.3554, allocations: 231 kB / 1.328 GB, free: 11.31 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.23e-05/0.3554, allocations: 37.7 kB / 1.328 GB, free: 11.27 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001294/0.3555, allocations: 169 kB / 1.329 GB, free: 11.1 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.643e-05/0.3556, allocations: 55.59 kB / 1.329 GB, free: 11.04 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001241/0.3557, allocations: 65.97 kB / 1.329 GB, free: 10.97 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001552/0.3559, allocations: 338.8 kB / 1.329 GB, free: 10.63 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004147/0.3563, allocations: 120.2 kB / 1.329 GB, free: 10.51 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004632/0.3567, allocations: 184.4 kB / 1.329 GB, free: 10.3 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000771/0.3575, allocations: 323 kB / 1.33 GB, free: 9.953 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.3575, allocations: 0 / 1.33 GB, free: 9.953 MB / 1.029 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001027/0.3585, allocations: 436.4 kB / 1.33 GB, free: 9.504 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 7.884e-05/0.3586, allocations: 97.25 kB / 1.33 GB, free: 9.391 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.3586, allocations: 0 / 1.33 GB, free: 9.391 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.3586, allocations: 8 kB / 1.33 GB, free: 9.383 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002546/0.3589, allocations: 47.83 kB / 1.33 GB, free: 9.336 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.3589, allocations: 4 kB / 1.33 GB, free: 9.332 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003607/0.3593, allocations: 71.72 kB / 1.33 GB, free: 9.262 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.854e-05/0.3593, allocations: 16 kB / 1.33 GB, free: 9.246 MB / 1.029 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.0001706/0.3595, allocations: 152 kB / 1.33 GB, free: 9.086 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.443e-05/0.3595, allocations: 27.83 kB / 1.33 GB, free: 9.059 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008612/0.3604, allocations: 283.2 kB / 1.331 GB, free: 8.773 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.3604, allocations: 4 kB / 1.331 GB, free: 8.77 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3604, allocations: 0 / 1.331 GB, free: 8.77 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.3604, allocations: 0 / 1.331 GB, free: 8.77 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001183/0.3616, allocations: 0.6291 MB / 1.331 GB, free: 8.086 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.3616, allocations: 0 / 1.331 GB, free: 8.086 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001827/0.3618, allocations: 35.89 kB / 1.331 GB, free: 8.051 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.3618, allocations: 0 / 1.331 GB, free: 8.051 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.15e-05/0.3618, allocations: 7.984 kB / 1.331 GB, free: 8.043 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.3618, allocations: 4 kB / 1.331 GB, free: 8.039 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3618, allocations: 0 / 1.331 GB, free: 8.039 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008351/0.3626, allocations: 361 kB / 1.332 GB, free: 7.672 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.492e-05/0.3627, allocations: 100.9 kB / 1.332 GB, free: 7.555 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.551e-05/0.3627, allocations: 8 kB / 1.332 GB, free: 7.547 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003369/0.3631, allocations: 51.94 kB / 1.332 GB, free: 7.496 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001255/0.3632, allocations: 47.92 kB / 1.332 GB, free: 7.449 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-05/0.3632, allocations: 8 kB / 1.332 GB, free: 7.441 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001482/0.3634, allocations: 156.6 kB / 1.332 GB, free: 7.289 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.3634, allocations: 0 / 1.332 GB, free: 7.289 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003317/0.3637, allocations: 67.88 kB / 1.332 GB, free: 7.223 MB / 1.029 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.001604/0.3653, allocations: 1.024 MB / 1.333 GB, free: 6.168 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0009596/0.3663, allocations: 419.8 kB / 1.334 GB, free: 5.723 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3663, allocations: 0 / 1.334 GB, free: 5.723 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0004009/0.3667, allocations: 120.1 kB / 1.334 GB, free: 5.605 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003759/0.367, allocations: 39.91 kB / 1.334 GB, free: 5.566 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004521/0.3716, allocations: 2.759 MB / 1.336 GB, free: 2.68 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003685/0.3719, allocations: 0.744 MB / 1.337 GB, free: 1.91 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001057/0.372, allocations: 21.95 kB / 1.337 GB, free: 1.891 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001589/0.3722, allocations: 83.39 kB / 1.337 GB, free: 1.812 MB / 1.029 GB Notification: Performance of SimCode: time 2.91e-07/0.3722, allocations: 0 / 1.337 GB, free: 1.812 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02992/0.4021, allocations: 5.965 MB / 1.343 GB, free: 12.01 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.011/8.414, allocations: 12 kB / 1.343 GB, free: 12 MB / 1.045 GB " [Timeout remaining time 292] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze_fmu --startTime=0 --stopTime=100 --stepSize=1 --timeout=400 --tolerance=1e-08 Buildings_12_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.fmu > Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) [Timeout 420.0] 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/jenkins1/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: 14.80518316407688]