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.001498/0.001498, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002785/0.002785, allocations: 213.6 kB / 22.24 MB, free: 5.262 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.556/1.556, allocations: 230.6 MB / 256 MB, free: 7.828 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.973/2.973, allocations: 475.9 MB / 0.7699 GB, free: 4.801 MB / 0.6231 GB " [Timeout remaining time 176] 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: 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_11_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_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze") [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.002113/0.002113, allocations: 68.19 kB / 1.117 GB, free: 41.11 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.345/0.3471, allocations: 170 MB / 1.283 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.004533/0.3516, allocations: 2.046 MB / 1.285 GB, free: 9.836 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00158/0.3532, allocations: 0.5689 MB / 1.286 GB, free: 9.262 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002424/0.3535, allocations: 4 kB / 1.286 GB, free: 9.258 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001901/0.3537, allocations: 27.66 kB / 1.286 GB, free: 9.23 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001602/0.3538, allocations: 39.66 kB / 1.286 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003911/0.3542, allocations: 87.89 kB / 1.286 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0004411/0.3546, allocations: 263.3 kB / 1.286 GB, free: 8.848 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002685/0.3549, allocations: 87.47 kB / 1.286 GB, free: 8.758 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000166/0.3551, allocations: 111.6 kB / 1.286 GB, free: 8.648 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001681/0.3552, allocations: 103.5 kB / 1.286 GB, free: 8.547 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.399e-05/0.3553, allocations: 28 kB / 1.286 GB, free: 8.52 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.807e-05/0.3553, allocations: 24 kB / 1.286 GB, free: 8.496 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.415e-05/0.3554, allocations: 63.75 kB / 1.286 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.000116/0.3555, allocations: 95.58 kB / 1.287 GB, free: 8.34 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004128/0.356, allocations: 282.9 kB / 1.287 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.356, allocations: 3.938 kB / 1.287 GB, free: 8.059 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.044e-06/0.356, allocations: 0 / 1.287 GB, free: 8.059 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.324e-06/0.356, allocations: 0 / 1.287 GB, free: 8.059 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.001281/0.3573, allocations: 0.5811 MB / 1.287 GB, free: 7.426 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.3573, allocations: 8.031 kB / 1.287 GB, free: 7.418 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.999e-05/0.3574, allocations: 24.8 kB / 1.287 GB, free: 7.395 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004046/0.3578, allocations: 194.7 kB / 1.288 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.35e-05/0.3578, allocations: 16.73 kB / 1.288 GB, free: 7.164 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.249e-05/0.3579, allocations: 32.3 kB / 1.288 GB, free: 7.133 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007298/0.3586, allocations: 325.6 kB / 1.288 GB, free: 6.789 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.3586, allocations: 0 / 1.288 GB, free: 6.789 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.141e-05/0.3586, allocations: 16 kB / 1.288 GB, free: 6.773 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.3587, allocations: 4 kB / 1.288 GB, free: 6.77 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006821/0.3593, allocations: 187.8 kB / 1.288 GB, free: 6.586 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001157/0.3605, allocations: 0.4997 MB / 1.289 GB, free: 6.055 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000884/0.3614, allocations: 210.5 kB / 1.289 GB, free: 5.84 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003236/0.3617, allocations: 88.78 kB / 1.289 GB, free: 5.75 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.957e-05/0.3617, allocations: 0 / 1.289 GB, free: 5.75 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005299/0.3623, allocations: 195 kB / 1.289 GB, free: 5.547 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=18): time 2.244e-06/0.3623, allocations: 4 kB / 1.289 GB, free: 5.543 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18): time 0.001175/0.3634, allocations: 320.2 kB / 1.289 GB, free: 5.227 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.609e-05/0.3635, allocations: 118.8 kB / 1.29 GB, free: 5.086 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002379/0.3638, allocations: 213 kB / 1.29 GB, free: 4.871 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.198e-05/0.3638, allocations: 37.64 kB / 1.29 GB, free: 4.828 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001502/0.364, allocations: 156.3 kB / 1.29 GB, free: 4.672 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.544e-05/0.364, allocations: 51.64 kB / 1.29 GB, free: 4.621 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/0.3641, allocations: 61.69 kB / 1.29 GB, free: 4.555 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001847/0.3643, allocations: 330.8 kB / 1.29 GB, free: 4.223 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004416/0.3648, allocations: 193.3 kB / 1.291 GB, free: 4.012 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005134/0.3653, allocations: 316.3 kB / 1.291 GB, free: 3.648 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000736/0.366, allocations: 311.6 kB / 1.291 GB, free: 3.309 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.366, allocations: 0 / 1.291 GB, free: 3.309 MB / 0.9825 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001024/0.367, allocations: 0.4937 MB / 1.292 GB, free: 2.773 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 8.851e-05/0.3671, allocations: 97.25 kB / 1.292 GB, free: 2.66 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.3671, allocations: 0 / 1.292 GB, free: 2.66 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.3672, allocations: 4 kB / 1.292 GB, free: 2.656 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002347/0.3674, allocations: 43.89 kB / 1.292 GB, free: 2.613 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.146e-05/0.3674, allocations: 7.938 kB / 1.292 GB, free: 2.605 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003116/0.3677, allocations: 59.77 kB / 1.292 GB, free: 2.547 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.853e-05/0.3677, allocations: 15.94 kB / 1.292 GB, free: 2.531 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.0001751/0.3679, allocations: 151.8 kB / 1.292 GB, free: 2.375 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.04e-05/0.368, allocations: 27.78 kB / 1.292 GB, free: 2.348 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007922/0.3687, allocations: 259.2 kB / 1.292 GB, free: 2.09 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.3688, allocations: 4 kB / 1.292 GB, free: 2.086 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.3688, allocations: 3.938 kB / 1.292 GB, free: 2.082 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.391e-06/0.3688, allocations: 3.984 kB / 1.292 GB, free: 2.078 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009891/0.3698, allocations: 497.9 kB / 1.293 GB, free: 1.555 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.3698, allocations: 0 / 1.293 GB, free: 1.555 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001793/0.3699, allocations: 39.89 kB / 1.293 GB, free: 1.516 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.3699, allocations: 0 / 1.293 GB, free: 1.516 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.255e-05/0.37, allocations: 7.938 kB / 1.293 GB, free: 1.508 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.37, allocations: 4 kB / 1.293 GB, free: 1.504 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.37, allocations: 0 / 1.293 GB, free: 1.504 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008175/0.3708, allocations: 353.3 kB / 1.293 GB, free: 1.145 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.319e-05/0.3708, allocations: 15.84 kB / 1.293 GB, free: 1.129 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.078e-05/0.3709, allocations: 11.94 kB / 1.293 GB, free: 1.117 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003143/0.3712, allocations: 47.94 kB / 1.293 GB, free: 1.07 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001439/0.3713, allocations: 43.92 kB / 1.293 GB, free: 1.027 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.315e-05/0.3713, allocations: 7.938 kB / 1.293 GB, free: 1.02 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001396/0.3715, allocations: 143.3 kB / 1.293 GB, free: 0.8789 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.3715, allocations: 0 / 1.293 GB, free: 0.8789 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003303/0.3718, allocations: 59.89 kB / 1.293 GB, free: 0.8203 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.0001658/0.372, allocations: 117.1 kB / 1.294 GB, free: 0.6953 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001018/0.373, allocations: 493 kB / 1.294 GB, free: 164 kB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.373, allocations: 0 / 1.294 GB, free: 164 kB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003811/0.3734, allocations: 107.8 kB / 1.294 GB, free: 56 kB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003791/0.3738, allocations: 36.39 kB / 1.294 GB, free: 20 kB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000902/0.3747, allocations: 358.3 kB / 1.294 GB, free: 15.64 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000132/0.3748, allocations: 125.2 kB / 1.295 GB, free: 15.5 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001035/0.3749, allocations: 17.64 kB / 1.295 GB, free: 15.48 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.751e-05/0.375, allocations: 27.42 kB / 1.295 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of SimCode: time 3.31e-07/0.375, allocations: 0 / 1.295 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of Templates: time 0.008197/0.3832, allocations: 3.57 MB / 1.298 GB, free: 11.96 MB / 0.9981 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.makefile [Timeout 300] (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 & ./Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) [Timeout 400] 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/jenkins/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: 9.390641290694475]