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.001882/0.001882, allocations: 85.48 kB / 19.44 MB, free: 336 kB / 13.93 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.002078/0.002078, allocations: 169.2 kB / 22.76 MB, free: 1.66 MB / 18.57 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.548/1.548, allocations: 177.1 MB / 203.1 MB, free: 5.609 MB / 186.7 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 3.386/3.386, allocations: 429.5 MB / 0.6729 GB, free: 4.012 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.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.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.553e-06/1.553e-06, allocations: 0.875 kB / 0.8774 GB, free: 6.641 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.513e-05/3.668e-05, allocations: 6.312 kB / 0.8774 GB, free: 6.633 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004426/0.004463, allocations: 2.235 MB / 0.8796 GB, free: 4.41 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.002799/0.007262, allocations: 1.374 MB / 0.881 GB, free: 3.035 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001788/0.007441, allocations: 7.938 kB / 0.881 GB, free: 3.027 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0005109/0.007952, allocations: 179.1 kB / 0.8811 GB, free: 2.852 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0005566/0.008508, allocations: 223.5 kB / 0.8814 GB, free: 2.633 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004314/0.00894, allocations: 187.4 kB / 0.8815 GB, free: 2.449 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0005952/0.009535, allocations: 444.2 kB / 0.882 GB, free: 2.016 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001972/0.009732, allocations: 61.48 kB / 0.882 GB, free: 1.953 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003603/0.01009, allocations: 235.4 kB / 0.8822 GB, free: 1.723 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002659/0.01036, allocations: 160.9 kB / 0.8824 GB, free: 1.566 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 5.528e-05/0.01041, allocations: 24 kB / 0.8824 GB, free: 1.543 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001871/0.0106, allocations: 79.95 kB / 0.8825 GB, free: 1.465 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 0.0001655/0.01077, allocations: 120.5 kB / 0.8826 GB, free: 1.348 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.0001482/0.01091, allocations: 91.64 kB / 0.8827 GB, free: 1.258 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0006908/0.01161, allocations: 0.5022 MB / 0.8832 GB, free: 0.7539 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.01161, allocations: 9.531 kB / 0.8832 GB, free: 0.7461 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.363e-06/0.01161, allocations: 0 / 0.8832 GB, free: 0.7461 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.703e-06/0.01162, allocations: 0 / 0.8832 GB, free: 0.7461 MB / 0.8386 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.001373/0.01299, allocations: 0.7839 MB / 0.884 GB, free: 15.93 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.01303, allocations: 8.031 kB / 0.884 GB, free: 15.92 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001361/0.01317, allocations: 64.59 kB / 0.884 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006487/0.01382, allocations: 339.9 kB / 0.8844 GB, free: 15.5 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.859e-05/0.01386, allocations: 12.38 kB / 0.8844 GB, free: 15.49 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.32e-05/0.01389, allocations: 20.38 kB / 0.8844 GB, free: 15.47 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003889/0.01428, allocations: 207.9 kB / 0.8846 GB, free: 15.24 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.01429, allocations: 0 / 0.8846 GB, free: 15.24 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.969e-05/0.01431, allocations: 11.94 kB / 0.8846 GB, free: 15.23 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.01432, allocations: 4 kB / 0.8846 GB, free: 15.23 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000445/0.01476, allocations: 71.91 kB / 0.8847 GB, free: 15.16 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001409/0.01617, allocations: 0.872 MB / 0.8855 GB, free: 14.24 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003499/0.01652, allocations: 146.4 kB / 0.8857 GB, free: 14.07 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.01664, allocations: 47.36 kB / 0.8857 GB, free: 14.02 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.303e-05/0.01666, allocations: 0 / 0.8857 GB, free: 14.02 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003029/0.01696, allocations: 152.2 kB / 0.8858 GB, free: 13.84 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=12): time 1.042e-06/0.01696, allocations: 0 / 0.8858 GB, free: 13.84 MB / 0.8542 GB Notification: Performance of matching and sorting (n=12): time 0.0005812/0.01754, allocations: 209.7 kB / 0.886 GB, free: 13.63 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.571e-05/0.01764, allocations: 110.8 kB / 0.8862 GB, free: 13.5 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007753/0.01841, allocations: 0.5885 MB / 0.8867 GB, free: 12.89 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.748e-05/0.01845, allocations: 33.7 kB / 0.8868 GB, free: 12.86 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002901/0.01874, allocations: 287.3 kB / 0.887 GB, free: 12.57 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 5.019e-05/0.01879, allocations: 39.73 kB / 0.8871 GB, free: 12.53 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001597/0.01895, allocations: 99.3 kB / 0.8872 GB, free: 12.43 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0003492/0.0193, allocations: 0.5548 MB / 0.8877 GB, free: 11.86 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000182/0.01948, allocations: 79.95 kB / 0.8878 GB, free: 11.78 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003235/0.01981, allocations: 240.2 kB / 0.888 GB, free: 11.5 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000333/0.02014, allocations: 189.7 kB / 0.8882 GB, free: 11.3 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.02014, allocations: 3.938 kB / 0.8882 GB, free: 11.29 MB / 0.8542 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000598/0.02074, allocations: 301.1 kB / 0.8885 GB, free: 10.99 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/0.02076, allocations: 11.98 kB / 0.8885 GB, free: 10.98 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.02077, allocations: 0 / 0.8885 GB, free: 10.98 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.02079, allocations: 4 kB / 0.8885 GB, free: 10.98 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002081/0.02099, allocations: 43.92 kB / 0.8885 GB, free: 10.93 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.021, allocations: 0 / 0.8885 GB, free: 10.93 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000206/0.02121, allocations: 35.86 kB / 0.8886 GB, free: 10.9 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.701e-05/0.02124, allocations: 12 kB / 0.8886 GB, free: 10.89 MB / 0.8542 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.0002187/0.02146, allocations: 194.7 kB / 0.8888 GB, free: 10.69 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.649e-05/0.02155, allocations: 59.67 kB / 0.8888 GB, free: 10.63 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004338/0.02198, allocations: 185 kB / 0.889 GB, free: 10.45 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.02199, allocations: 4 kB / 0.889 GB, free: 10.44 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.02199, allocations: 0 / 0.889 GB, free: 10.44 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.022, allocations: 0 / 0.889 GB, free: 10.44 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004287/0.02242, allocations: 336.4 kB / 0.8893 GB, free: 10.08 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.02243, allocations: 0 / 0.8893 GB, free: 10.08 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.266e-05/0.02248, allocations: 11.94 kB / 0.8893 GB, free: 10.07 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.02248, allocations: 3.938 kB / 0.8893 GB, free: 10.06 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.787e-05/0.0225, allocations: 12 kB / 0.8894 GB, free: 10.05 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.02251, allocations: 3.984 kB / 0.8894 GB, free: 10.05 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.02251, allocations: 0 / 0.8894 GB, free: 10.05 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004277/0.02293, allocations: 234.4 kB / 0.8896 GB, free: 9.793 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001044/0.02304, allocations: 43.75 kB / 0.8896 GB, free: 9.75 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.184e-05/0.02309, allocations: 11.94 kB / 0.8896 GB, free: 9.738 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/0.02321, allocations: 11.98 kB / 0.8896 GB, free: 9.727 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.231e-05/0.02329, allocations: 23.95 kB / 0.8897 GB, free: 9.703 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.059e-05/0.02331, allocations: 8 kB / 0.8897 GB, free: 9.695 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0004444/0.02376, allocations: 355 kB / 0.89 GB, free: 9.348 MB / 0.8542 GB Notification: Performance of sort global known variables: time 8e-08/0.02376, allocations: 4 kB / 0.89 GB, free: 9.344 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.000333/0.02409, allocations: 75.88 kB / 0.8901 GB, free: 9.27 MB / 0.8542 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.002873/0.02696, allocations: 455.5 kB / 0.8905 GB, free: 9.004 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0004804/0.02744, allocations: 180.1 kB / 0.8907 GB, free: 8.824 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.02744, allocations: 0 / 0.8907 GB, free: 8.824 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001717/0.02762, allocations: 63.59 kB / 0.8908 GB, free: 8.758 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005523/0.02817, allocations: 103 kB / 0.8909 GB, free: 8.664 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00109/0.02926, allocations: 0.5724 MB / 0.8914 GB, free: 8.055 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002351/0.02949, allocations: 200.5 kB / 0.8916 GB, free: 7.836 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0003691/0.02986, allocations: 55.23 kB / 0.8917 GB, free: 7.785 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001039/0.02997, allocations: 40.48 kB / 0.8917 GB, free: 7.746 MB / 0.8542 GB Notification: Performance of SimCode: time 8.01e-07/0.02997, allocations: 0 / 0.8917 GB, free: 7.746 MB / 0.8542 GB Notification: Performance of Templates: time 0.01141/0.04137, allocations: 5.079 MB / 0.8967 GB, free: 2.746 MB / 0.8542 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) [Timeout 240] 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.68933066597674]