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.001974/0.001974, allocations: 84.39 kB / 20.23 MB, free: 4.176 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.002468/0.002468, allocations: 161.7 kB / 23.55 MB, free: 0.8633 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.543/1.543, allocations: 177.1 MB / 203.9 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.871/2.871, allocations: 377.8 MB / 0.6232 GB, free: 8.504 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0.875 kB / 0.8108 GB, free: 2.098 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.799e-05/2.962e-05, allocations: 2.312 kB / 0.8108 GB, free: 2.094 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004283/0.004313, allocations: 2.195 MB / 0.8129 GB, free: 15.9 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.003039/0.007352, allocations: 1.34 MB / 0.8143 GB, free: 14.55 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002359/0.007588, allocations: 7.938 kB / 0.8143 GB, free: 14.55 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.000573/0.008161, allocations: 177 kB / 0.8144 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0006901/0.008851, allocations: 232.6 kB / 0.8147 GB, free: 14.15 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.000506/0.009357, allocations: 179.4 kB / 0.8148 GB, free: 13.97 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0007012/0.01006, allocations: 446.7 kB / 0.8153 GB, free: 13.54 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002315/0.01029, allocations: 63.06 kB / 0.8153 GB, free: 13.47 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004727/0.01076, allocations: 235.4 kB / 0.8155 GB, free: 13.24 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003203/0.01108, allocations: 163.5 kB / 0.8157 GB, free: 13.08 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 6.036e-05/0.01114, allocations: 24 kB / 0.8157 GB, free: 13.06 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002143/0.01136, allocations: 85.44 kB / 0.8158 GB, free: 12.98 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 0.000174/0.01153, allocations: 119.6 kB / 0.8159 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.000159/0.01169, allocations: 95.62 kB / 0.816 GB, free: 12.77 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0007656/0.01246, allocations: 0.4983 MB / 0.8165 GB, free: 12.27 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.01246, allocations: 1.656 kB / 0.8165 GB, free: 12.27 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.122e-06/0.01246, allocations: 0 / 0.8165 GB, free: 12.27 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 1.361e-05/0.01248, allocations: 0 / 0.8165 GB, free: 12.27 MB / 0.7761 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.001499/0.01397, allocations: 0.6566 MB / 0.8171 GB, free: 11.58 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.01402, allocations: 12.03 kB / 0.8171 GB, free: 11.57 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001847/0.0142, allocations: 57.42 kB / 0.8172 GB, free: 11.51 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007257/0.01493, allocations: 361.2 kB / 0.8175 GB, free: 11.14 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.542e-05/0.01496, allocations: 8.375 kB / 0.8175 GB, free: 11.13 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.782e-05/0.01499, allocations: 16.38 kB / 0.8176 GB, free: 11.11 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004425/0.01544, allocations: 211.5 kB / 0.8178 GB, free: 10.89 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.01545, allocations: 0 / 0.8178 GB, free: 10.89 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.422e-05/0.01547, allocations: 4 kB / 0.8178 GB, free: 10.88 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.01548, allocations: 1.75 kB / 0.8178 GB, free: 10.88 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002775/0.01575, allocations: 103.8 kB / 0.8179 GB, free: 10.78 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001338/0.01709, allocations: 0.6775 MB / 0.8185 GB, free: 10.07 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003855/0.01748, allocations: 141.9 kB / 0.8187 GB, free: 9.91 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001457/0.01762, allocations: 51.64 kB / 0.8187 GB, free: 9.855 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.076e-05/0.01765, allocations: 4 kB / 0.8187 GB, free: 9.852 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000296/0.01794, allocations: 136.9 kB / 0.8189 GB, free: 9.699 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=12): time 1.342e-06/0.01794, allocations: 2.594 kB / 0.8189 GB, free: 9.699 MB / 0.7761 GB Notification: Performance of matching and sorting (n=12): time 0.0006868/0.01863, allocations: 233.3 kB / 0.8191 GB, free: 9.465 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.364e-05/0.01871, allocations: 106.8 kB / 0.8192 GB, free: 9.336 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008489/0.01956, allocations: 0.576 MB / 0.8197 GB, free: 8.754 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 4.212e-05/0.0196, allocations: 37.69 kB / 0.8198 GB, free: 8.711 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002131/0.01982, allocations: 204.5 kB / 0.82 GB, free: 8.508 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 5.425e-05/0.01987, allocations: 40.27 kB / 0.82 GB, free: 8.469 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000136/0.02001, allocations: 69.69 kB / 0.8201 GB, free: 8.395 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0003117/0.02032, allocations: 359.5 kB / 0.8204 GB, free: 8.035 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002475/0.02057, allocations: 108.5 kB / 0.8205 GB, free: 7.93 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003382/0.0209, allocations: 248.8 kB / 0.8208 GB, free: 7.648 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003846/0.02129, allocations: 195.6 kB / 0.8209 GB, free: 7.445 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.02129, allocations: 0 / 0.8209 GB, free: 7.445 MB / 0.7761 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007357/0.02203, allocations: 376.5 kB / 0.8213 GB, free: 7.074 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.02205, allocations: 10.22 kB / 0.8213 GB, free: 7.066 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.074e-06/0.02205, allocations: 0 / 0.8213 GB, free: 7.066 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.488e-05/0.02208, allocations: 4.5 kB / 0.8213 GB, free: 7.062 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000226/0.02231, allocations: 47.92 kB / 0.8214 GB, free: 7.016 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.02231, allocations: 112 / 0.8214 GB, free: 7.016 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002795/0.02259, allocations: 46.58 kB / 0.8214 GB, free: 6.973 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.273e-05/0.02264, allocations: 15.98 kB / 0.8214 GB, free: 6.957 MB / 0.7761 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.0002538/0.02289, allocations: 191.8 kB / 0.8216 GB, free: 6.762 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.561e-05/0.02299, allocations: 51.66 kB / 0.8217 GB, free: 6.711 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005114/0.0235, allocations: 214.4 kB / 0.8219 GB, free: 6.496 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.177e-06/0.0235, allocations: 0 / 0.8219 GB, free: 6.496 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.02351, allocations: 4 kB / 0.8219 GB, free: 6.492 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.02351, allocations: 0 / 0.8219 GB, free: 6.492 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003549/0.02387, allocations: 250.3 kB / 0.8221 GB, free: 6.219 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.02387, allocations: 0 / 0.8221 GB, free: 6.219 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.537e-05/0.02392, allocations: 11.98 kB / 0.8221 GB, free: 6.207 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.752e-06/0.02393, allocations: 5.031 kB / 0.8221 GB, free: 6.203 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.02395, allocations: 4 kB / 0.8221 GB, free: 6.199 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.02395, allocations: 0 / 0.8221 GB, free: 6.199 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.02395, allocations: 4.719 kB / 0.8221 GB, free: 6.195 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004885/0.02444, allocations: 239.5 kB / 0.8224 GB, free: 5.941 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 9.849e-05/0.02454, allocations: 47.66 kB / 0.8224 GB, free: 5.895 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.32e-05/0.0246, allocations: 15.92 kB / 0.8224 GB, free: 5.879 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001394/0.02474, allocations: 11.98 kB / 0.8224 GB, free: 5.867 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.479e-05/0.02484, allocations: 25.3 kB / 0.8225 GB, free: 5.844 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.783e-05/0.02486, allocations: 4 kB / 0.8225 GB, free: 5.84 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0004846/0.02534, allocations: 359.1 kB / 0.8228 GB, free: 5.492 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.02534, allocations: 0 / 0.8228 GB, free: 5.492 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0003848/0.02573, allocations: 76.91 kB / 0.8229 GB, free: 5.418 MB / 0.7761 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.002094/0.02782, allocations: 465.6 kB / 0.8233 GB, free: 5.152 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0005214/0.02834, allocations: 201.1 kB / 0.8235 GB, free: 4.957 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.02835, allocations: 0.9688 kB / 0.8235 GB, free: 4.957 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001704/0.02852, allocations: 59.91 kB / 0.8236 GB, free: 4.898 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005541/0.02907, allocations: 104.2 kB / 0.8237 GB, free: 4.809 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001302/0.03037, allocations: 0.6422 MB / 0.8243 GB, free: 4.133 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002594/0.03063, allocations: 208.5 kB / 0.8245 GB, free: 3.91 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.000185/0.03082, allocations: 59.25 kB / 0.8245 GB, free: 3.852 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/0.03093, allocations: 36.48 kB / 0.8246 GB, free: 3.816 MB / 0.7761 GB Notification: Performance of SimCode: time 5.21e-07/0.03093, allocations: 3.938 kB / 0.8246 GB, free: 3.812 MB / 0.7761 GB Notification: Performance of Templates: time 0.01169/0.04262, allocations: 5.096 MB / 0.8296 GB, free: 14.81 MB / 0.7917 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 -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/jenkins/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.012650271994062]