Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001806/0.001806, allocations: 96.42 kB / 19.7 MB, free: 2.133 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.002249/0.002249, allocations: 212.5 kB / 22.99 MB, free: 4.957 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.483/1.483, allocations: 230.6 MB / 256.8 MB, free: 7.812 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 3.173/3.173, allocations: 0.49 GB / 0.7959 GB, free: 35.6 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.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_12_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_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus") [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.002094/0.002094, allocations: 65.92 kB / 1.155 GB, free: 25.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3318/0.3339, allocations: 176.1 MB / 1.327 GB, free: 0.8555 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003818/0.3377, allocations: 2.171 MB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002446/0.3401, allocations: 1.353 MB / 1.331 GB, free: 13.32 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001433/0.3403, allocations: 7.938 kB / 1.331 GB, free: 13.31 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0004372/0.3407, allocations: 175.3 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0005005/0.3412, allocations: 227.1 kB / 1.331 GB, free: 12.91 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003643/0.3416, allocations: 191.5 kB / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005128/0.3421, allocations: 430.8 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001841/0.3423, allocations: 65.48 kB / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000213/0.3425, allocations: 179.3 kB / 1.332 GB, free: 12.06 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002515/0.3428, allocations: 199.2 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.982e-05/0.3428, allocations: 24 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001625/0.343, allocations: 75.97 kB / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001416/0.3431, allocations: 127.5 kB / 1.332 GB, free: 11.64 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001392/0.3432, allocations: 123.2 kB / 1.332 GB, free: 11.52 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005887/0.3438, allocations: 0.5057 MB / 1.333 GB, free: 11.01 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3438, allocations: 3.938 kB / 1.333 GB, free: 11.01 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.172e-06/0.3438, allocations: 0 / 1.333 GB, free: 11.01 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.073e-06/0.3438, allocations: 0 / 1.333 GB, free: 11.01 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001188/0.345, allocations: 0.6633 MB / 1.333 GB, free: 10.31 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.3451, allocations: 8.031 kB / 1.333 GB, free: 10.3 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.528e-05/0.3452, allocations: 48.61 kB / 1.333 GB, free: 10.26 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006166/0.3458, allocations: 360.7 kB / 1.334 GB, free: 9.883 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.825e-05/0.3458, allocations: 16.38 kB / 1.334 GB, free: 9.867 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.272e-05/0.3458, allocations: 19.92 kB / 1.334 GB, free: 9.848 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003785/0.3462, allocations: 193.9 kB / 1.334 GB, free: 9.637 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.3462, allocations: 3.984 kB / 1.334 GB, free: 9.633 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.433e-05/0.3463, allocations: 11.98 kB / 1.334 GB, free: 9.621 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.3463, allocations: 3.938 kB / 1.334 GB, free: 9.617 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002156/0.3465, allocations: 87.95 kB / 1.334 GB, free: 9.531 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001138/0.3476, allocations: 0.6916 MB / 1.335 GB, free: 8.801 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003439/0.348, allocations: 137.3 kB / 1.335 GB, free: 8.648 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000116/0.3481, allocations: 49.7 kB / 1.335 GB, free: 8.594 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.493e-05/0.3481, allocations: 4 kB / 1.335 GB, free: 8.59 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002694/0.3484, allocations: 132.9 kB / 1.335 GB, free: 8.441 MB / 1.029 GB Notification: Performance of pre-optimization done (n=12): time 1.343e-06/0.3484, allocations: 4 kB / 1.335 GB, free: 8.438 MB / 1.029 GB Notification: Performance of matching and sorting (n=12): time 0.0005637/0.3489, allocations: 233.7 kB / 1.335 GB, free: 8.203 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.195e-05/0.349, allocations: 102.8 kB / 1.335 GB, free: 8.078 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007028/0.3497, allocations: 0.576 MB / 1.336 GB, free: 7.492 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.63e-05/0.3497, allocations: 37.69 kB / 1.336 GB, free: 7.449 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001718/0.3499, allocations: 204.6 kB / 1.336 GB, free: 7.246 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.68e-05/0.35, allocations: 39.67 kB / 1.336 GB, free: 7.207 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001217/0.3501, allocations: 77.64 kB / 1.336 GB, free: 7.125 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001769/0.3503, allocations: 354.8 kB / 1.337 GB, free: 6.77 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002091/0.3505, allocations: 112 kB / 1.337 GB, free: 6.66 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002989/0.3508, allocations: 254.9 kB / 1.337 GB, free: 6.371 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003399/0.3511, allocations: 196.6 kB / 1.337 GB, free: 6.168 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.3511, allocations: 4.062 kB / 1.337 GB, free: 6.164 MB / 1.029 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006071/0.3517, allocations: 357.1 kB / 1.338 GB, free: 5.809 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.3517, allocations: 8.094 kB / 1.338 GB, free: 5.801 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.3517, allocations: 4 kB / 1.338 GB, free: 5.797 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.3518, allocations: 0 / 1.338 GB, free: 5.797 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002097/0.352, allocations: 47.92 kB / 1.338 GB, free: 5.75 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.463e-05/0.352, allocations: 7.984 kB / 1.338 GB, free: 5.742 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002149/0.3522, allocations: 35.86 kB / 1.338 GB, free: 5.707 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.574e-05/0.3522, allocations: 16 kB / 1.338 GB, free: 5.691 MB / 1.029 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.000214/0.3524, allocations: 203.9 kB / 1.338 GB, free: 5.48 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.898e-05/0.3525, allocations: 35.77 kB / 1.338 GB, free: 5.445 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004442/0.353, allocations: 204.9 kB / 1.338 GB, free: 5.234 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.353, allocations: 0 / 1.338 GB, free: 5.234 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.353, allocations: 4 kB / 1.338 GB, free: 5.23 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.353, allocations: 0 / 1.338 GB, free: 5.23 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002816/0.3532, allocations: 257.1 kB / 1.338 GB, free: 4.949 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.3532, allocations: 0 / 1.338 GB, free: 4.949 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.287e-05/0.3533, allocations: 15.92 kB / 1.338 GB, free: 4.934 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.3533, allocations: 4 kB / 1.338 GB, free: 4.93 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/0.3533, allocations: 4 kB / 1.338 GB, free: 4.926 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.3533, allocations: 0 / 1.338 GB, free: 4.926 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.3533, allocations: 4 kB / 1.338 GB, free: 4.922 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004405/0.3538, allocations: 235 kB / 1.339 GB, free: 4.672 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001075/0.3539, allocations: 47.73 kB / 1.339 GB, free: 4.625 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.888e-05/0.3539, allocations: 11.98 kB / 1.339 GB, free: 4.613 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/0.3541, allocations: 11.98 kB / 1.339 GB, free: 4.602 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.244e-05/0.3541, allocations: 23.91 kB / 1.339 GB, free: 4.578 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.091e-05/0.3542, allocations: 11.98 kB / 1.339 GB, free: 4.566 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004161/0.3546, allocations: 359.1 kB / 1.339 GB, free: 4.219 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3546, allocations: 4 kB / 1.339 GB, free: 4.215 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000318/0.3549, allocations: 75.81 kB / 1.339 GB, free: 4.141 MB / 1.029 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.001689/0.3566, allocations: 451 kB / 1.34 GB, free: 3.879 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004542/0.357, allocations: 196.6 kB / 1.34 GB, free: 3.688 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.357, allocations: 0 / 1.34 GB, free: 3.688 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001607/0.3572, allocations: 64.09 kB / 1.34 GB, free: 3.625 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005221/0.3577, allocations: 108.8 kB / 1.34 GB, free: 3.531 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001017/0.3587, allocations: 0.6305 MB / 1.341 GB, free: 2.863 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002129/0.359, allocations: 204.5 kB / 1.341 GB, free: 2.641 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001396/0.3591, allocations: 54.94 kB / 1.341 GB, free: 2.586 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.931e-05/0.3592, allocations: 39.42 kB / 1.341 GB, free: 2.551 MB / 1.029 GB Notification: Performance of SimCode: time 4.91e-07/0.3592, allocations: 0 / 1.341 GB, free: 2.551 MB / 1.029 GB Notification: Performance of Templates: time 0.0106/0.3698, allocations: 5.413 MB / 1.346 GB, free: 13.21 MB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.makefile [Timeout 300] (rm -f Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & ./Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus -abortSlowSimulation -alarm=400 -s gbode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.771270195007673]