Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.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.001885/0.001885, allocations: 80.83 kB / 19.18 MB, free: 2.527 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.002331/0.002331, allocations: 165.3 kB / 22.46 MB, free: 5.355 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.482/1.482, allocations: 177.1 MB / 202.8 MB, free: 9.184 MB / 190.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.92/2.92, allocations: 389 MB / 0.633 GB, free: 1.008 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/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.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|tanSta.TTan.1.|tanSta.TTan.2.|tanSta.THig|tanSta.TLow|tanSta.y.1.|tanSta.y.2.",fileNamePrefix="Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus") translateModel(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|tanSta.TTan.1.|tanSta.TTan.2.|tanSta.THig|tanSta.TLow|tanSta.y.1.|tanSta.y.2.",fileNamePrefix="Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.624e-06/1.624e-06, allocations: 0 / 1 GB, free: 7.336 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.185e-05/3.347e-05, allocations: 2.281 kB / 1 GB, free: 7.332 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004228/0.004261, allocations: 2.175 MB / 1.002 GB, free: 5.145 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002884/0.007145, allocations: 1.359 MB / 1.004 GB, free: 3.781 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002872/0.007433, allocations: 7.938 kB / 1.004 GB, free: 3.773 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0005412/0.007974, allocations: 179.1 kB / 1.004 GB, free: 3.598 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0006553/0.008629, allocations: 230.9 kB / 1.004 GB, free: 3.371 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.000528/0.009157, allocations: 175.5 kB / 1.004 GB, free: 3.199 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0006807/0.009838, allocations: 442.7 kB / 1.005 GB, free: 2.766 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002366/0.01007, allocations: 77.45 kB / 1.005 GB, free: 2.691 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003722/0.01045, allocations: 231.4 kB / 1.005 GB, free: 2.465 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002604/0.01071, allocations: 163.6 kB / 1.005 GB, free: 2.305 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 6.003e-05/0.01077, allocations: 28 kB / 1.005 GB, free: 2.277 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002043/0.01097, allocations: 83.89 kB / 1.005 GB, free: 2.195 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001564/0.01113, allocations: 115.6 kB / 1.005 GB, free: 2.082 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001551/0.01128, allocations: 95.64 kB / 1.005 GB, free: 1.988 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0006531/0.01194, allocations: 0.4906 MB / 1.006 GB, free: 1.496 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.01194, allocations: 0 / 1.006 GB, free: 1.496 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.402e-06/0.01194, allocations: 3.938 kB / 1.006 GB, free: 1.492 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.202e-05/0.01195, allocations: 0 / 1.006 GB, free: 1.492 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001226/0.01318, allocations: 0.6634 MB / 1.006 GB, free: 0.7969 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.01322, allocations: 12.03 kB / 1.006 GB, free: 0.7852 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.654e-05/0.01331, allocations: 44.66 kB / 1.007 GB, free: 0.7422 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006191/0.01393, allocations: 355.9 kB / 1.007 GB, free: 376 kB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.013e-05/0.01396, allocations: 12.38 kB / 1.007 GB, free: 364 kB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.157e-05/0.014, allocations: 16.36 kB / 1.007 GB, free: 348 kB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003828/0.01439, allocations: 214.1 kB / 1.007 GB, free: 112 kB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.0144, allocations: 11.86 kB / 1.007 GB, free: 100 kB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.787e-05/0.01442, allocations: 4 kB / 1.007 GB, free: 96 kB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.01442, allocations: 4 kB / 1.007 GB, free: 92 kB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002626/0.01469, allocations: 95.94 kB / 1.007 GB, free: 15.99 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001157/0.01584, allocations: 0.6683 MB / 1.008 GB, free: 15.29 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003593/0.0162, allocations: 137.3 kB / 1.008 GB, free: 15.14 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001237/0.01633, allocations: 57.64 kB / 1.008 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.911e-05/0.01635, allocations: 0 / 1.008 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000282/0.01663, allocations: 129 kB / 1.008 GB, free: 14.93 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=12): time 1.283e-06/0.01663, allocations: 0 / 1.008 GB, free: 14.93 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12): time 0.0006053/0.01723, allocations: 233.3 kB / 1.008 GB, free: 14.7 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.016e-05/0.0173, allocations: 106.8 kB / 1.008 GB, free: 14.57 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007561/0.01806, allocations: 0.5838 MB / 1.009 GB, free: 13.97 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.801e-05/0.0181, allocations: 37.7 kB / 1.009 GB, free: 13.93 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.000189/0.01829, allocations: 204.5 kB / 1.009 GB, free: 13.72 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.534e-05/0.01833, allocations: 35.73 kB / 1.009 GB, free: 13.69 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001197/0.01845, allocations: 69.69 kB / 1.009 GB, free: 13.61 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000199/0.01865, allocations: 358.8 kB / 1.01 GB, free: 13.25 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002181/0.01887, allocations: 108 kB / 1.01 GB, free: 13.15 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003228/0.01919, allocations: 248.2 kB / 1.01 GB, free: 12.87 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003739/0.01957, allocations: 202.9 kB / 1.01 GB, free: 12.66 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.01957, allocations: 112 / 1.01 GB, free: 12.66 MB / 0.9669 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000672/0.02024, allocations: 361 kB / 1.011 GB, free: 12.3 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.02026, allocations: 8 kB / 1.011 GB, free: 12.29 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.73e-06/0.02027, allocations: 0 / 1.011 GB, free: 12.29 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.02028, allocations: 4 kB / 1.011 GB, free: 12.29 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002098/0.02049, allocations: 43.92 kB / 1.011 GB, free: 12.24 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.796e-06/0.0205, allocations: 3.984 kB / 1.011 GB, free: 12.24 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002358/0.02074, allocations: 43.95 kB / 1.011 GB, free: 12.2 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.759e-05/0.02078, allocations: 12 kB / 1.011 GB, free: 12.18 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.TTanBot.tab.nextTimeEvent,$whenCondition2,$PRE.TTanTop.tab.nextTimeEvent,$whenCondition1,TTanTop.tab.nextTimeEventScaled,$PRE.TTanTop.tab.nextTimeEventScaled,TTanTop.tab.nextTimeEvent,tanSta.hysCha.y,$PRE.tanSta.hysCha.y,TTanBot.tab.nextTimeEventScaled,$PRE.TTanBot.tab.nextTimeEventScaled,TTanBot.tab.nextTimeEvent,tanSta.hysEmp.y,$PRE.tanSta.hysEmp.y,tanSta.gre.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * 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.0002205/0.021, allocations: 192.3 kB / 1.011 GB, free: 11.99 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.2e-05/0.02107, allocations: 43.66 kB / 1.011 GB, free: 11.95 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004658/0.02153, allocations: 209 kB / 1.011 GB, free: 11.74 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.418e-06/0.02154, allocations: 4 kB / 1.011 GB, free: 11.73 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.02155, allocations: 0 / 1.011 GB, free: 11.73 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.02155, allocations: 0 / 1.011 GB, free: 11.73 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003087/0.02186, allocations: 261.1 kB / 1.011 GB, free: 11.45 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.02186, allocations: 0 / 1.011 GB, free: 11.45 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.529e-05/0.02193, allocations: 15.98 kB / 1.011 GB, free: 11.43 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.02193, allocations: 3.938 kB / 1.011 GB, free: 11.43 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.02195, allocations: 3.938 kB / 1.011 GB, free: 11.43 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.02195, allocations: 4.078 kB / 1.011 GB, free: 11.42 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.02195, allocations: 3.984 kB / 1.011 GB, free: 11.42 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004434/0.02239, allocations: 228.2 kB / 1.012 GB, free: 11.18 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 8.943e-05/0.02248, allocations: 52.2 kB / 1.012 GB, free: 11.12 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.379e-05/0.02254, allocations: 7.922 kB / 1.012 GB, free: 11.12 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001449/0.02268, allocations: 23.98 kB / 1.012 GB, free: 11.09 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.015e-05/0.02276, allocations: 19.97 kB / 1.012 GB, free: 11.07 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.449e-05/0.02279, allocations: 11.98 kB / 1.012 GB, free: 11.06 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0004441/0.02323, allocations: 359.1 kB / 1.012 GB, free: 10.71 MB / 0.9669 GB Notification: Performance of sort global known variables: time 9.1e-08/0.02323, allocations: 0 / 1.012 GB, free: 10.71 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003369/0.02357, allocations: 75.88 kB / 1.012 GB, free: 10.64 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled,$whenCondition1,tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanTop.tab.nextTimeEventScaled) * Number of discrete states: 6 (tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanTop.tab.nextTimeEventScaled,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001737/0.0253, allocations: 448.9 kB / 1.013 GB, free: 10.38 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0004958/0.0258, allocations: 198.6 kB / 1.013 GB, free: 10.19 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.0258, allocations: 4 kB / 1.013 GB, free: 10.18 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001775/0.02598, allocations: 59.91 kB / 1.013 GB, free: 10.12 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005507/0.02653, allocations: 95.23 kB / 1.013 GB, free: 10.04 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001151/0.02768, allocations: 0.6407 MB / 1.014 GB, free: 9.363 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002379/0.02792, allocations: 208.7 kB / 1.014 GB, free: 9.137 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001435/0.02806, allocations: 59.25 kB / 1.014 GB, free: 9.082 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.02817, allocations: 40.47 kB / 1.014 GB, free: 9.039 MB / 0.9669 GB Notification: Performance of SimCode: time 3.31e-07/0.02817, allocations: 0 / 1.014 GB, free: 9.039 MB / 0.9669 GB Notification: Performance of Templates: time 0.01149/0.03967, allocations: 5.043 MB / 1.019 GB, free: 4.059 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & ./Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.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: 8.50560151413083]