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.001426/0.001426, allocations: 110.2 kB / 19.69 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.001596/0.001596, allocations: 212.2 kB / 23.01 MB, free: 4.566 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.333/1.333, allocations: 230.6 MB / 256.8 MB, free: 8.012 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 2.924/2.924, allocations: 0.49 GB / 0.7958 GB, free: 33.19 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: 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_12_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_12_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.001912/0.001912, allocations: 61.09 kB / 1.155 GB, free: 25.4 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.2989, allocations: 176.1 MB / 1.327 GB, free: 1.379 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003579/0.3025, allocations: 2.2 MB / 1.329 GB, free: 15.17 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001161/0.3036, allocations: 0.6234 MB / 1.33 GB, free: 14.54 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000119/0.3037, allocations: 3.938 kB / 1.33 GB, free: 14.54 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001316/0.3039, allocations: 27.66 kB / 1.33 GB, free: 14.51 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001037/0.304, allocations: 47.59 kB / 1.33 GB, free: 14.46 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.000297/0.3043, allocations: 99.88 kB / 1.33 GB, free: 14.36 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003744/0.3046, allocations: 291.3 kB / 1.33 GB, free: 14.08 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002469/0.3049, allocations: 107.5 kB / 1.33 GB, free: 13.97 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001746/0.3051, allocations: 127.5 kB / 1.331 GB, free: 13.84 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001757/0.3052, allocations: 131.4 kB / 1.331 GB, free: 13.71 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.035e-05/0.3053, allocations: 32 kB / 1.331 GB, free: 13.68 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 4.596e-05/0.3053, allocations: 32 kB / 1.331 GB, free: 13.65 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.886e-05/0.3054, allocations: 67.77 kB / 1.331 GB, free: 13.59 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001397/0.3056, allocations: 131.3 kB / 1.331 GB, free: 13.46 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003678/0.3059, allocations: 322.7 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3059, allocations: 4 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3059, allocations: 0 / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.593e-06/0.3059, allocations: 0 / 1.331 GB, free: 13.14 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.001169/0.3071, allocations: 0.6044 MB / 1.332 GB, free: 12.48 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.16e-05/0.3071, allocations: 8.031 kB / 1.332 GB, free: 12.48 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.54e-05/0.3072, allocations: 40.73 kB / 1.332 GB, free: 12.44 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003453/0.3076, allocations: 214.6 kB / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.45e-05/0.3076, allocations: 20.8 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.269e-05/0.3076, allocations: 20.38 kB / 1.332 GB, free: 12.16 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006406/0.3083, allocations: 303.5 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.3083, allocations: 0 / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.158e-05/0.3083, allocations: 8 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.3083, allocations: 8 kB / 1.332 GB, free: 11.83 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006641/0.309, allocations: 209.6 kB / 1.333 GB, free: 11.62 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001199/0.3102, allocations: 0.638 MB / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006254/0.3108, allocations: 198.4 kB / 1.333 GB, free: 10.74 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002923/0.3111, allocations: 86.89 kB / 1.334 GB, free: 10.65 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.483e-05/0.3111, allocations: 7.922 kB / 1.334 GB, free: 10.64 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004491/0.3116, allocations: 195.2 kB / 1.334 GB, free: 10.44 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 1.483e-06/0.3116, allocations: 0 / 1.334 GB, free: 10.44 MB / 1.029 GB Notification: Performance of matching and sorting (n=20): time 0.001019/0.3126, allocations: 358.5 kB / 1.334 GB, free: 10.09 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.198e-05/0.3127, allocations: 136.5 kB / 1.334 GB, free: 9.922 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002089/0.3129, allocations: 227.7 kB / 1.334 GB, free: 9.688 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.712e-05/0.3129, allocations: 33.7 kB / 1.334 GB, free: 9.648 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001154/0.313, allocations: 168.6 kB / 1.335 GB, free: 9.48 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.213e-05/0.3131, allocations: 59.56 kB / 1.335 GB, free: 9.422 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/0.3132, allocations: 69.97 kB / 1.335 GB, free: 9.348 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.00014/0.3133, allocations: 334.8 kB / 1.335 GB, free: 9.012 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003501/0.3137, allocations: 116.2 kB / 1.335 GB, free: 8.898 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004068/0.3141, allocations: 192.8 kB / 1.335 GB, free: 8.684 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006501/0.3147, allocations: 311 kB / 1.336 GB, free: 8.344 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3147, allocations: 0 / 1.336 GB, free: 8.344 MB / 1.029 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0008904/0.3156, allocations: 444.5 kB / 1.336 GB, free: 7.887 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.992e-05/0.3157, allocations: 89.05 kB / 1.336 GB, free: 7.781 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.3157, allocations: 3.938 kB / 1.336 GB, free: 7.777 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.3157, allocations: 4 kB / 1.336 GB, free: 7.773 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002185/0.3159, allocations: 47.95 kB / 1.336 GB, free: 7.727 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.3159, allocations: 7.875 kB / 1.336 GB, free: 7.719 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003299/0.3163, allocations: 75.89 kB / 1.336 GB, free: 7.645 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.556e-05/0.3163, allocations: 12 kB / 1.336 GB, free: 7.633 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.0001463/0.3164, allocations: 152.3 kB / 1.336 GB, free: 7.473 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.219e-05/0.3165, allocations: 23.8 kB / 1.337 GB, free: 7.449 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007138/0.3172, allocations: 276.6 kB / 1.337 GB, free: 7.176 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.289e-06/0.3172, allocations: 7.938 kB / 1.337 GB, free: 7.168 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.3172, allocations: 0 / 1.337 GB, free: 7.168 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.3172, allocations: 0 / 1.337 GB, free: 7.168 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001021/0.3182, allocations: 0.604 MB / 1.337 GB, free: 6.516 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.3182, allocations: 0 / 1.337 GB, free: 6.516 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001476/0.3184, allocations: 23.97 kB / 1.337 GB, free: 6.492 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.3184, allocations: 4 kB / 1.337 GB, free: 6.488 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.878e-05/0.3184, allocations: 7.984 kB / 1.337 GB, free: 6.48 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.3184, allocations: 8 kB / 1.337 GB, free: 6.473 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.3184, allocations: 4 kB / 1.337 GB, free: 6.469 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007171/0.3191, allocations: 364.8 kB / 1.338 GB, free: 6.098 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.469e-05/0.3192, allocations: 23.83 kB / 1.338 GB, free: 6.074 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.227e-05/0.3192, allocations: 12 kB / 1.338 GB, free: 6.062 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002904/0.3195, allocations: 47.94 kB / 1.338 GB, free: 6.016 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/0.3196, allocations: 51.91 kB / 1.338 GB, free: 5.965 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.233e-05/0.3196, allocations: 7.984 kB / 1.338 GB, free: 5.957 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001299/0.3197, allocations: 156.6 kB / 1.338 GB, free: 5.805 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3197, allocations: 0 / 1.338 GB, free: 5.805 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002941/0.32, allocations: 63.89 kB / 1.338 GB, free: 5.742 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.0001362/0.3202, allocations: 123.2 kB / 1.338 GB, free: 5.609 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0008324/0.321, allocations: 418.7 kB / 1.339 GB, free: 5.164 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.321, allocations: 0 / 1.339 GB, free: 5.164 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0003306/0.3213, allocations: 107.9 kB / 1.339 GB, free: 5.059 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003373/0.3217, allocations: 41.45 kB / 1.339 GB, free: 5.02 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008079/0.3225, allocations: 432 kB / 1.339 GB, free: 4.57 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003415/0.3228, allocations: 0.7477 MB / 1.34 GB, free: 3.797 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.396e-05/0.3229, allocations: 31.42 kB / 1.34 GB, free: 3.766 MB / 1.029 GB Notification: Performance of SimCode: time 2.9e-07/0.3229, allocations: 0 / 1.34 GB, free: 3.766 MB / 1.029 GB Notification: Performance of Templates: time 0.004943/0.3279, allocations: 3.202 MB / 1.343 GB, free: 0.5703 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.makefile [Timeout 300] (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 & ./Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) [Timeout 400] 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: 10.214314473007107]