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.0008177/0.0008177, allocations: 80.48 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0007867/0.0007867, allocations: 173.9 kB / 23.21 MB, free: 1.352 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 0.8649/0.8649, allocations: 177.1 MB / 203.5 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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 1.737/1.737, allocations: 389 MB / 0.6338 GB, free: 12.71 MB / 0.6042 GB " [Timeout remaining time 178] 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.643e-06/1.643e-06, allocations: 0 / 1.001 GB, free: 13.02 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.002e-05/3.166e-05, allocations: 2.281 kB / 1.001 GB, free: 13.02 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.002892/0.002924, allocations: 2.174 MB / 1.003 GB, free: 10.83 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001764/0.004688, allocations: 1.344 MB / 1.004 GB, free: 9.477 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001526/0.00484, allocations: 11.94 kB / 1.004 GB, free: 9.465 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0004598/0.0053, allocations: 171.2 kB / 1.004 GB, free: 9.297 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.000436/0.005736, allocations: 234.8 kB / 1.005 GB, free: 9.066 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002643/0.006001, allocations: 183.5 kB / 1.005 GB, free: 8.887 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0004761/0.006477, allocations: 438.7 kB / 1.005 GB, free: 8.457 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001859/0.006663, allocations: 65.47 kB / 1.005 GB, free: 8.391 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002191/0.006882, allocations: 239.4 kB / 1.006 GB, free: 8.156 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000189/0.007071, allocations: 163.6 kB / 1.006 GB, free: 7.996 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 3.622e-05/0.007107, allocations: 24 kB / 1.006 GB, free: 7.973 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001419/0.007249, allocations: 79.95 kB / 1.006 GB, free: 7.895 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 0.0001041/0.007353, allocations: 123.5 kB / 1.006 GB, free: 7.773 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 8.27e-05/0.007435, allocations: 91.64 kB / 1.006 GB, free: 7.684 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0004341/0.00787, allocations: 0.5022 MB / 1.007 GB, free: 7.18 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.434e-06/0.007872, allocations: 0 / 1.007 GB, free: 7.18 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.262e-06/0.007873, allocations: 0 / 1.007 GB, free: 7.18 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.007879, allocations: 0 / 1.007 GB, free: 7.18 MB / 0.9636 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.0008399/0.008719, allocations: 0.6673 MB / 1.007 GB, free: 6.48 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.00876, allocations: 8.75 kB / 1.007 GB, free: 6.473 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.212e-05/0.008832, allocations: 44.66 kB / 1.007 GB, free: 6.43 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004157/0.009248, allocations: 364 kB / 1.008 GB, free: 6.051 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.09e-05/0.009269, allocations: 12.31 kB / 1.008 GB, free: 6.039 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.02e-05/0.009289, allocations: 16.38 kB / 1.008 GB, free: 6.023 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002563/0.009546, allocations: 206.2 kB / 1.008 GB, free: 5.801 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.009555, allocations: 0 / 1.008 GB, free: 5.801 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.629e-05/0.009572, allocations: 8 kB / 1.008 GB, free: 5.793 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.01e-06/0.009577, allocations: 0 / 1.008 GB, free: 5.793 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001318/0.009708, allocations: 99.88 kB / 1.008 GB, free: 5.695 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007155/0.01042, allocations: 0.6721 MB / 1.009 GB, free: 4.984 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002068/0.01063, allocations: 141.4 kB / 1.009 GB, free: 4.828 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.388e-05/0.01069, allocations: 53.69 kB / 1.009 GB, free: 4.77 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.544e-05/0.01071, allocations: 4 kB / 1.009 GB, free: 4.766 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001748/0.01088, allocations: 129 kB / 1.009 GB, free: 4.621 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=12): time 1.182e-06/0.01089, allocations: 0 / 1.009 GB, free: 4.621 MB / 0.9636 GB Notification: Performance of matching and sorting (n=12): time 0.0003598/0.01125, allocations: 229.3 kB / 1.009 GB, free: 4.391 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.166e-05/0.0113, allocations: 106.8 kB / 1.009 GB, free: 4.262 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004377/0.01174, allocations: 0.5877 MB / 1.01 GB, free: 3.66 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 2.24e-05/0.01176, allocations: 33.7 kB / 1.01 GB, free: 3.621 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/0.01188, allocations: 212.5 kB / 1.01 GB, free: 3.41 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.841e-05/0.01191, allocations: 35.73 kB / 1.01 GB, free: 3.375 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.598e-05/0.01199, allocations: 73.69 kB / 1.01 GB, free: 3.297 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 9.599e-05/0.01208, allocations: 350.8 kB / 1.01 GB, free: 2.945 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001205/0.0122, allocations: 108 kB / 1.011 GB, free: 2.84 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001703/0.01238, allocations: 249.1 kB / 1.011 GB, free: 2.559 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001988/0.01257, allocations: 203.1 kB / 1.011 GB, free: 2.348 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.01258, allocations: 0 / 1.011 GB, free: 2.348 MB / 0.9636 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003429/0.01292, allocations: 355.6 kB / 1.011 GB, free: 1.996 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.01294, allocations: 4 kB / 1.011 GB, free: 1.992 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.01294, allocations: 0 / 1.011 GB, free: 1.992 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.01296, allocations: 4 kB / 1.011 GB, free: 1.988 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/0.01308, allocations: 51.91 kB / 1.011 GB, free: 1.938 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.01309, allocations: 12.08 kB / 1.011 GB, free: 1.926 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001077/0.0132, allocations: 35.86 kB / 1.011 GB, free: 1.891 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.487e-05/0.01322, allocations: 12.5 kB / 1.011 GB, free: 1.879 MB / 0.9636 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.0001372/0.01336, allocations: 195.7 kB / 1.012 GB, free: 1.68 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.539e-05/0.01339, allocations: 47.66 kB / 1.012 GB, free: 1.633 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002569/0.01365, allocations: 205 kB / 1.012 GB, free: 1.43 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.01365, allocations: 112 / 1.012 GB, free: 1.43 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.01366, allocations: 15.92 kB / 1.012 GB, free: 1.414 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.01367, allocations: 4 kB / 1.012 GB, free: 1.41 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001743/0.01384, allocations: 257.1 kB / 1.012 GB, free: 1.129 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.01384, allocations: 0 / 1.012 GB, free: 1.129 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.585e-05/0.01387, allocations: 8 kB / 1.012 GB, free: 1.121 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.01387, allocations: 3.938 kB / 1.012 GB, free: 1.117 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/0.01388, allocations: 7.984 kB / 1.012 GB, free: 1.109 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.01388, allocations: 0 / 1.012 GB, free: 1.109 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.01388, allocations: 0 / 1.012 GB, free: 1.109 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002126/0.0141, allocations: 228 kB / 1.012 GB, free: 0.8672 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 4.555e-05/0.01414, allocations: 51.7 kB / 1.012 GB, free: 0.8164 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.88e-05/0.01417, allocations: 7.938 kB / 1.012 GB, free: 0.8086 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.029e-05/0.01423, allocations: 15.98 kB / 1.012 GB, free: 0.793 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.554e-05/0.01429, allocations: 23.95 kB / 1.012 GB, free: 0.7695 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.05e-05/0.0143, allocations: 8 kB / 1.012 GB, free: 0.7617 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0002483/0.01455, allocations: 359.1 kB / 1.013 GB, free: 424 kB / 0.9636 GB Notification: Performance of sort global known variables: time 8e-08/0.01455, allocations: 0 / 1.013 GB, free: 424 kB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001968/0.01474, allocations: 67.89 kB / 1.013 GB, free: 356 kB / 0.9636 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.0007486/0.01549, allocations: 475.8 kB / 1.013 GB, free: 64 kB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0002826/0.01577, allocations: 191.9 kB / 1.014 GB, free: 15.88 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.01578, allocations: 0 / 1.014 GB, free: 15.88 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 8.202e-05/0.01586, allocations: 63.91 kB / 1.014 GB, free: 15.81 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002879/0.01615, allocations: 96.86 kB / 1.014 GB, free: 15.73 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006708/0.01682, allocations: 0.6854 MB / 1.014 GB, free: 15 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001284/0.01694, allocations: 212.4 kB / 1.015 GB, free: 14.77 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.897e-05/0.01701, allocations: 36.48 kB / 1.015 GB, free: 14.73 MB / 0.9792 GB Notification: Performance of SimCode: time 9.52e-07/0.01701, allocations: 0 / 1.015 GB, free: 14.73 MB / 0.9792 GB Notification: Performance of Templates: time 0.004722/0.02174, allocations: 5.33 MB / 1.02 GB, free: 9.41 MB / 0.9792 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: 7.179733927361667]