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.001606/0.001606, allocations: 79.73 kB / 19.76 MB, free: 1.871 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.001696/0.001696, allocations: 159.5 kB / 23.01 MB, free: 4.602 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.412/1.412, allocations: 177.2 MB / 203.4 MB, free: 8.953 MB / 190.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.777/2.777, allocations: 377.9 MB / 0.6228 GB, free: 12.57 MB / 0.5919 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.002169/0.002169, allocations: 63.91 kB / 0.9819 GB, free: 12.19 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7651/0.7673, allocations: 176.1 MB / 1.154 GB, free: 33.35 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.00288/0.7702, allocations: 2.177 MB / 1.156 GB, free: 31.88 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001742/0.7719, allocations: 1.365 MB / 1.157 GB, free: 30.97 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001226/0.772, allocations: 6.531 kB / 1.157 GB, free: 30.97 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0003616/0.7724, allocations: 172.3 kB / 1.158 GB, free: 30.92 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.0003777/0.7728, allocations: 223.8 kB / 1.158 GB, free: 30.8 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002656/0.773, allocations: 186.2 kB / 1.158 GB, free: 30.7 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0003255/0.7734, allocations: 436.8 kB / 1.158 GB, free: 30.49 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001464/0.7735, allocations: 58.09 kB / 1.158 GB, free: 30.46 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001606/0.7737, allocations: 176.9 kB / 1.159 GB, free: 30.38 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001932/0.7739, allocations: 190.3 kB / 1.159 GB, free: 30.31 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 4.375e-05/0.7739, allocations: 26.34 kB / 1.159 GB, free: 30.31 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001353/0.774, allocations: 76.83 kB / 1.159 GB, free: 30.29 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.0001026/0.7741, allocations: 122 kB / 1.159 GB, free: 30.23 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 9.862e-05/0.7742, allocations: 125.8 kB / 1.159 GB, free: 30.15 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.000376/0.7746, allocations: 0.5072 MB / 1.16 GB, free: 29.95 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.7746, allocations: 0 / 1.16 GB, free: 29.95 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.212e-06/0.7746, allocations: 0 / 1.16 GB, free: 29.95 MB / 1.076 GB Notification: Performance of Transformations before backend: time 6.021e-06/0.7746, allocations: 0 / 1.16 GB, free: 29.95 MB / 1.076 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.00087/0.7755, allocations: 0.6643 MB / 1.16 GB, free: 29.45 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 2.749e-05/0.7755, allocations: 9.062 kB / 1.16 GB, free: 29.45 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.757e-05/0.7756, allocations: 49.86 kB / 1.16 GB, free: 29.42 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004442/0.776, allocations: 362.1 kB / 1.161 GB, free: 29.16 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.84e-05/0.7761, allocations: 10 kB / 1.161 GB, free: 29.16 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.443e-05/0.7761, allocations: 22.22 kB / 1.161 GB, free: 29.15 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002906/0.7764, allocations: 208.4 kB / 1.161 GB, free: 29.02 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.7764, allocations: 6.906 kB / 1.161 GB, free: 29.02 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.714e-05/0.7764, allocations: 0 / 1.161 GB, free: 29.02 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.7764, allocations: 3.156 kB / 1.161 GB, free: 29.02 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001875/0.7766, allocations: 96.52 kB / 1.161 GB, free: 28.98 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008226/0.7774, allocations: 0.6778 MB / 1.162 GB, free: 28.49 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002772/0.7777, allocations: 136.6 kB / 1.162 GB, free: 28.4 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.518e-05/0.7778, allocations: 48.78 kB / 1.162 GB, free: 28.38 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.398e-05/0.7778, allocations: 6.875 kB / 1.162 GB, free: 28.37 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002015/0.778, allocations: 134.5 kB / 1.162 GB, free: 28.28 MB / 1.076 GB Notification: Performance of pre-optimization done (n=12): time 1.393e-06/0.778, allocations: 0 / 1.162 GB, free: 28.28 MB / 1.076 GB Notification: Performance of matching and sorting (n=12): time 0.0004689/0.7785, allocations: 230.9 kB / 1.162 GB, free: 28.18 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.184e-05/0.7785, allocations: 105.6 kB / 1.162 GB, free: 28.05 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004851/0.779, allocations: 0.5809 MB / 1.163 GB, free: 27.8 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.952e-05/0.779, allocations: 32.08 kB / 1.163 GB, free: 27.76 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 9.905e-05/0.7791, allocations: 201.3 kB / 1.163 GB, free: 27.6 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 2.717e-05/0.7791, allocations: 40.08 kB / 1.163 GB, free: 27.57 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.61e-05/0.7792, allocations: 73.84 kB / 1.163 GB, free: 27.53 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 6.707e-05/0.7793, allocations: 355.9 kB / 1.163 GB, free: 27.2 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001681/0.7795, allocations: 113.6 kB / 1.164 GB, free: 27.16 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001957/0.7797, allocations: 249.2 kB / 1.164 GB, free: 26.96 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002637/0.7799, allocations: 204.2 kB / 1.164 GB, free: 26.86 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.7799, allocations: 112 / 1.164 GB, free: 26.86 MB / 1.076 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004732/0.7804, allocations: 352.3 kB / 1.164 GB, free: 26.71 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.7804, allocations: 13.94 kB / 1.164 GB, free: 26.7 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.7804, allocations: 3.938 kB / 1.164 GB, free: 26.7 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.7804, allocations: 6.344 kB / 1.164 GB, free: 26.7 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001862/0.7806, allocations: 44.33 kB / 1.164 GB, free: 26.7 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.7806, allocations: 6.625 kB / 1.164 GB, free: 26.69 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002021/0.7808, allocations: 40.36 kB / 1.164 GB, free: 26.68 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.862e-05/0.7809, allocations: 12.44 kB / 1.164 GB, free: 26.68 MB / 1.076 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.0001415/0.781, allocations: 202 kB / 1.165 GB, free: 26.52 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.901e-05/0.781, allocations: 44.66 kB / 1.165 GB, free: 26.5 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003507/0.7814, allocations: 208.6 kB / 1.165 GB, free: 26.4 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.7814, allocations: 2.625 kB / 1.165 GB, free: 26.4 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.7814, allocations: 0 / 1.165 GB, free: 26.4 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.7814, allocations: 3.469 kB / 1.165 GB, free: 26.4 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001747/0.7816, allocations: 256.4 kB / 1.165 GB, free: 26.22 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.7816, allocations: 0 / 1.165 GB, free: 26.22 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.741e-05/0.7816, allocations: 11.77 kB / 1.165 GB, free: 26.22 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.7816, allocations: 2.906 kB / 1.165 GB, free: 26.22 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.7816, allocations: 10.62 kB / 1.165 GB, free: 26.21 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.7816, allocations: 0 / 1.165 GB, free: 26.21 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.7816, allocations: 0 / 1.165 GB, free: 26.21 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003026/0.7819, allocations: 231.4 kB / 1.165 GB, free: 26.07 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 6.569e-05/0.782, allocations: 45.61 kB / 1.165 GB, free: 26.05 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.666e-05/0.7821, allocations: 10.03 kB / 1.165 GB, free: 26.04 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001326/0.7822, allocations: 17.62 kB / 1.165 GB, free: 26.04 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.556e-05/0.7822, allocations: 23.11 kB / 1.165 GB, free: 26.04 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.409e-05/0.7823, allocations: 9.172 kB / 1.166 GB, free: 26.04 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0002891/0.7825, allocations: 358.4 kB / 1.166 GB, free: 25.88 MB / 1.076 GB Notification: Performance of sort global known variables: time 9e-08/0.7825, allocations: 0 / 1.166 GB, free: 25.88 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002967/0.7828, allocations: 73.66 kB / 1.166 GB, free: 25.86 MB / 1.076 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.001581/0.7844, allocations: 458.2 kB / 1.166 GB, free: 25.66 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0003644/0.7848, allocations: 205.7 kB / 1.167 GB, free: 25.6 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.7848, allocations: 0 / 1.167 GB, free: 25.6 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001274/0.7849, allocations: 64.81 kB / 1.167 GB, free: 25.57 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004582/0.7854, allocations: 104.1 kB / 1.167 GB, free: 25.54 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007114/0.7861, allocations: 0.6293 MB / 1.167 GB, free: 25.18 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001382/0.7862, allocations: 210.6 kB / 1.168 GB, free: 25.09 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0001131/0.7863, allocations: 58.52 kB / 1.168 GB, free: 25.08 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.986e-05/0.7864, allocations: 38.5 kB / 1.168 GB, free: 25.07 MB / 1.076 GB Notification: Performance of SimCode: time 3.3e-07/0.7864, allocations: 0 / 1.168 GB, free: 25.07 MB / 1.076 GB Notification: Performance of Templates: time 0.009096/0.7955, allocations: 5.074 MB / 1.173 GB, free: 24.45 MB / 1.076 GB " [Timeout remaining time 299] 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 ida -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.502812311984599]