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.001493/0.001493, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001673/0.001673, allocations: 219.9 kB / 23.01 MB, free: 4.605 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.347/1.347, allocations: 230.6 MB / 256.8 MB, free: 7.996 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.925/2.925, allocations: 0.505 GB / 0.8108 GB, free: 22.08 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: 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_latest_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_latest_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.001965/0.001965, allocations: 67.22 kB / 1.178 GB, free: 16.84 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.3117, allocations: 180.2 MB / 1.354 GB, free: 7.953 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003451/0.3152, allocations: 2.19 MB / 1.356 GB, free: 5.75 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001101/0.3163, allocations: 0.6194 MB / 1.357 GB, free: 5.125 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001/0.3164, allocations: 4 kB / 1.357 GB, free: 5.121 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001193/0.3165, allocations: 23.67 kB / 1.357 GB, free: 5.098 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 9.533e-05/0.3166, allocations: 43.59 kB / 1.357 GB, free: 5.055 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002672/0.3168, allocations: 95.88 kB / 1.357 GB, free: 4.961 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003309/0.3172, allocations: 287.3 kB / 1.357 GB, free: 4.68 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002237/0.3174, allocations: 103.5 kB / 1.357 GB, free: 4.578 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001529/0.3175, allocations: 119.6 kB / 1.358 GB, free: 4.461 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001691/0.3177, allocations: 135.4 kB / 1.358 GB, free: 4.328 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.037e-05/0.3178, allocations: 28 kB / 1.358 GB, free: 4.301 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 4.764e-05/0.3178, allocations: 32 kB / 1.358 GB, free: 4.27 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 6.848e-05/0.3179, allocations: 63.77 kB / 1.358 GB, free: 4.207 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001226/0.318, allocations: 127.4 kB / 1.358 GB, free: 4.082 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003512/0.3184, allocations: 302.7 kB / 1.358 GB, free: 3.785 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.3184, allocations: 0 / 1.358 GB, free: 3.785 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.272e-06/0.3184, allocations: 0 / 1.358 GB, free: 3.785 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.247e-05/0.3184, allocations: 4 kB / 1.358 GB, free: 3.781 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.001166/0.3195, allocations: 0.5967 MB / 1.359 GB, free: 3.137 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.133e-05/0.3196, allocations: 8.031 kB / 1.359 GB, free: 3.129 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.724e-05/0.3196, allocations: 28.8 kB / 1.359 GB, free: 3.102 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003855/0.32, allocations: 211.4 kB / 1.359 GB, free: 2.867 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.764e-05/0.3201, allocations: 20.81 kB / 1.359 GB, free: 2.848 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.43e-05/0.3201, allocations: 24.36 kB / 1.359 GB, free: 2.824 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006316/0.3207, allocations: 295.6 kB / 1.359 GB, free: 2.516 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.3207, allocations: 0 / 1.359 GB, free: 2.516 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.054e-05/0.3208, allocations: 12 kB / 1.359 GB, free: 2.504 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.3208, allocations: 4 kB / 1.359 GB, free: 2.5 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006533/0.3214, allocations: 217.5 kB / 1.36 GB, free: 2.285 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001148/0.3226, allocations: 0.6146 MB / 1.36 GB, free: 1.629 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006357/0.3232, allocations: 192.2 kB / 1.36 GB, free: 1.434 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002974/0.3235, allocations: 96.77 kB / 1.36 GB, free: 1.336 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.558e-05/0.3235, allocations: 0 / 1.36 GB, free: 1.336 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004603/0.324, allocations: 185.1 kB / 1.361 GB, free: 1.145 MB / 1.045 GB Notification: Performance of pre-optimization done (n=20): time 1.483e-06/0.324, allocations: 8 kB / 1.361 GB, free: 1.137 MB / 1.045 GB Notification: Performance of matching and sorting (n=20): time 0.001045/0.325, allocations: 351.2 kB / 1.361 GB, free: 0.7891 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.9e-05/0.3251, allocations: 122.8 kB / 1.361 GB, free: 0.6445 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00021/0.3253, allocations: 219.1 kB / 1.361 GB, free: 432 kB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.326e-05/0.3254, allocations: 41.69 kB / 1.361 GB, free: 384 kB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001174/0.3255, allocations: 152.4 kB / 1.361 GB, free: 228 kB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 5.125e-05/0.3255, allocations: 51.62 kB / 1.362 GB, free: 176 kB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001146/0.3257, allocations: 73.95 kB / 1.362 GB, free: 96 kB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001577/0.3258, allocations: 326.8 kB / 1.362 GB, free: 15.77 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003575/0.3262, allocations: 120.2 kB / 1.362 GB, free: 15.65 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003938/0.3266, allocations: 179.5 kB / 1.362 GB, free: 15.45 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006712/0.3272, allocations: 322.4 kB / 1.362 GB, free: 15.1 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3272, allocations: 0 / 1.362 GB, free: 15.1 MB / 1.061 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009101/0.3282, allocations: 424 kB / 1.363 GB, free: 14.66 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 6.882e-05/0.3282, allocations: 101.2 kB / 1.363 GB, free: 14.54 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.106e-06/0.3282, allocations: 4 kB / 1.363 GB, free: 14.54 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.3282, allocations: 0 / 1.363 GB, free: 14.54 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002344/0.3285, allocations: 51.89 kB / 1.363 GB, free: 14.49 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.113e-05/0.3285, allocations: 4 kB / 1.363 GB, free: 14.48 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003033/0.3288, allocations: 59.77 kB / 1.363 GB, free: 14.43 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.577e-05/0.3288, allocations: 16 kB / 1.363 GB, free: 14.41 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.0001657/0.329, allocations: 155.9 kB / 1.363 GB, free: 14.25 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.001e-05/0.329, allocations: 31.78 kB / 1.363 GB, free: 14.21 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007463/0.3298, allocations: 275.2 kB / 1.364 GB, free: 13.94 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.3298, allocations: 3.938 kB / 1.364 GB, free: 13.93 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.3298, allocations: 0 / 1.364 GB, free: 13.93 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.3298, allocations: 0 / 1.364 GB, free: 13.93 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.3309, allocations: 0.5961 MB / 1.364 GB, free: 13.29 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.3309, allocations: 0 / 1.364 GB, free: 13.29 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001557/0.331, allocations: 35.91 kB / 1.364 GB, free: 13.25 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.331, allocations: 0 / 1.364 GB, free: 13.25 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.93e-05/0.331, allocations: 7.984 kB / 1.364 GB, free: 13.25 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.103e-06/0.331, allocations: 0 / 1.364 GB, free: 13.25 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.331, allocations: 0 / 1.364 GB, free: 13.25 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007319/0.3318, allocations: 360.9 kB / 1.365 GB, free: 12.88 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.139e-05/0.3318, allocations: 23.84 kB / 1.365 GB, free: 12.86 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.054e-05/0.3318, allocations: 4 kB / 1.365 GB, free: 12.85 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002881/0.3321, allocations: 51.94 kB / 1.365 GB, free: 12.8 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/0.3323, allocations: 51.91 kB / 1.365 GB, free: 12.75 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.479e-05/0.3323, allocations: 7.984 kB / 1.365 GB, free: 12.74 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001315/0.3324, allocations: 148.4 kB / 1.365 GB, free: 12.6 MB / 1.061 GB Notification: Performance of sort global known variables: time 1e-07/0.3324, allocations: 0 / 1.365 GB, free: 12.6 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003053/0.3327, allocations: 59.89 kB / 1.365 GB, free: 12.54 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.0001518/0.3329, allocations: 115.2 kB / 1.365 GB, free: 12.41 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0008859/0.3338, allocations: 427.5 kB / 1.365 GB, free: 11.96 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3338, allocations: 3.938 kB / 1.365 GB, free: 11.96 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0003498/0.3341, allocations: 112.2 kB / 1.365 GB, free: 11.85 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003484/0.3345, allocations: 37.62 kB / 1.366 GB, free: 11.81 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00084/0.3353, allocations: 412.5 kB / 1.366 GB, free: 11.38 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003691/0.3357, allocations: 0.7439 MB / 1.367 GB, free: 10.61 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.613e-05/0.3358, allocations: 31.42 kB / 1.367 GB, free: 10.58 MB / 1.061 GB Notification: Performance of SimCode: time 2.91e-07/0.3358, allocations: 0 / 1.367 GB, free: 10.58 MB / 1.061 GB Notification: Performance of Templates: time 0.005224/0.341, allocations: 3.106 MB / 1.37 GB, free: 7.484 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) [Timeout 800] 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: 10.273688164976193]