Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tanEnh.vol.1..T|tanEnh.vol.2..T|tanEnh.vol.3..T|tanEnh.vol.4..T|tanEnh.vol.5..T|tanEnh.vol.6..T|tanEnh.vol.7..T|dHTan.y|dHTanEnh.y|tan.vol.1..T|tan.vol.2..T|tan.vol.3..T|tan.vol.4..T|tan.vol.5..T|tan.vol.6..T|tan.vol.7..T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading") translateModel(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tanEnh.vol.1..T|tanEnh.vol.2..T|tanEnh.vol.3..T|tanEnh.vol.4..T|tanEnh.vol.5..T|tanEnh.vol.6..T|tanEnh.vol.7..T|dHTan.y|dHTanEnh.y|tan.vol.1..T|tan.vol.2..T|tan.vol.3..T|tan.vol.4..T|tan.vol.5..T|tan.vol.6..T|tan.vol.7..T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001532/0.001532, allocations: 107.3 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001797/0.001797, allocations: 189 kB / 16.25 MB, free: 6.152 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.473/1.473, allocations: 222.9 MB / 239.9 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.95/2.95, allocations: 472.6 MB / 0.7448 GB, free: 4.844 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 63.06 kB / 0.9115 GB, free: 33.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3959/0.3972, allocations: 159.9 MB / 1.068 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.05356/0.4508, allocations: 55.55 MB / 1.122 GB, free: 3.012 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.02393/0.4748, allocations: 17.79 MB / 1.139 GB, free: 1.176 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003611/0.4784, allocations: 75.56 kB / 1.139 GB, free: 1.102 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.002896/0.4814, allocations: 0.7614 MB / 1.14 GB, free: 344 kB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.008281/0.4897, allocations: 2.321 MB / 1.142 GB, free: 14 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.004466/0.4942, allocations: 1.4 MB / 1.144 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.02134/0.5155, allocations: 21.35 MB / 1.165 GB, free: 7.199 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0145/0.5301, allocations: 10.57 MB / 1.175 GB, free: 12.51 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01662/0.5467, allocations: 7.22 MB / 1.182 GB, free: 5.309 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01158/0.5583, allocations: 6.549 MB / 1.188 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.00443/0.5628, allocations: 0.9297 MB / 1.189 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009619/0.5725, allocations: 1.698 MB / 1.191 GB, free: 12.11 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.00419/0.5767, allocations: 2.322 MB / 1.193 GB, free: 9.777 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.01107/0.5878, allocations: 4.696 MB / 1.198 GB, free: 5.062 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.01863/0.6064, allocations: 13.01 MB / 1.211 GB, free: 8.02 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 8.937e-06/0.6065, allocations: 0 / 1.211 GB, free: 8.02 MB / 0.9669 GB Notification: Performance of FrontEnd: time 3.066e-06/0.6065, allocations: 0 / 1.211 GB, free: 8.02 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 0.0005615/0.6071, allocations: 0 / 1.211 GB, free: 8.02 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1564 * Number of variables: 1564 Notification: Performance of Generate backend data structure: time 0.02242/0.6295, allocations: 8.499 MB / 1.219 GB, free: 15.42 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.297e-05/0.6295, allocations: 15.97 kB / 1.219 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002964/0.6325, allocations: 0.8586 MB / 1.22 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01326/0.6458, allocations: 6.602 MB / 1.226 GB, free: 7.879 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003834/0.6462, allocations: 468.3 kB / 1.227 GB, free: 7.418 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002151/0.6484, allocations: 0.5936 MB / 1.227 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01996/0.6683, allocations: 9.032 MB / 1.236 GB, free: 13.47 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001538/0.6685, allocations: 19.86 kB / 1.236 GB, free: 13.45 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009052/0.6695, allocations: 260 kB / 1.236 GB, free: 13.2 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002313/0.6697, allocations: 176 kB / 1.236 GB, free: 13.02 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01835/0.6881, allocations: 7.453 MB / 1.244 GB, free: 5.562 MB / 0.9981 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8391/1.527, allocations: 35.9 MB / 1.279 GB, free: 146.9 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01061/1.538, allocations: 4.277 MB / 1.283 GB, free: 145.4 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00593/1.544, allocations: 3.316 MB / 1.286 GB, free: 144.3 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001321/1.545, allocations: 0.952 MB / 1.287 GB, free: 143.3 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005025/1.55, allocations: 2.385 MB / 1.289 GB, free: 142.5 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003689/1.554, allocations: 409.7 kB / 1.29 GB, free: 142.3 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=317): time 1.435e-05/1.554, allocations: 0 / 1.29 GB, free: 142.3 MB / 0.9981 GB Notification: Performance of matching and sorting (n=317): time 0.0146/1.569, allocations: 7.138 MB / 1.297 GB, free: 139.7 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.557e-05/1.569, allocations: 88.06 kB / 1.297 GB, free: 139.7 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01018/1.579, allocations: 5.464 MB / 1.302 GB, free: 137.1 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.001022/1.58, allocations: 87.17 kB / 1.302 GB, free: 137 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003285/1.583, allocations: 3.188 MB / 1.305 GB, free: 134.2 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002154/1.585, allocations: 1.121 MB / 1.306 GB, free: 133.3 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001478/1.587, allocations: 0.8582 MB / 1.307 GB, free: 132.8 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 6.455e-05/1.587, allocations: 301.1 kB / 1.308 GB, free: 132.5 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003154/1.59, allocations: 2.173 MB / 1.31 GB, free: 131.4 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003395/1.593, allocations: 3.695 MB / 1.313 GB, free: 128.2 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006874/1.6, allocations: 6.323 MB / 1.32 GB, free: 123.6 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.034e-05/1.6, allocations: 13.94 kB / 1.32 GB, free: 123.6 MB / 0.9981 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01006/1.61, allocations: 6.787 MB / 1.326 GB, free: 120.1 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 7.081e-05/1.611, allocations: 54.95 kB / 1.326 GB, free: 120 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.948e-05/1.611, allocations: 47.69 kB / 1.326 GB, free: 120 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000933/1.612, allocations: 432.5 kB / 1.327 GB, free: 119.8 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003363/1.615, allocations: 1.007 MB / 1.328 GB, free: 119.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004492/1.619, allocations: 5.698 MB / 1.333 GB, free: 113.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006701/1.626, allocations: 466.8 kB / 1.334 GB, free: 113.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006945/1.627, allocations: 220 kB / 1.334 GB, free: 112.9 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 222 * Number of states: 0 () * Number of discrete variables: 7 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,dHTan.local_reset,dHTanEnh.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (540): * Single equations (assignments): 537 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,14,100.0%), (1,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004354/1.631, allocations: 2.485 MB / 1.336 GB, free: 110.4 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001784/1.633, allocations: 0.5287 MB / 1.337 GB, free: 109.9 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007502/1.641, allocations: 5.272 MB / 1.342 GB, free: 104.5 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.331e-05/1.641, allocations: 32 kB / 1.342 GB, free: 104.5 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/1.641, allocations: 11.3 kB / 1.342 GB, free: 104.5 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005094/1.646, allocations: 4.533 MB / 1.346 GB, free: 99.86 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01989/1.666, allocations: 11.94 MB / 1.358 GB, free: 87.81 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.247e-05/1.666, allocations: 7.828 kB / 1.358 GB, free: 87.81 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002535/1.668, allocations: 0.6477 MB / 1.359 GB, free: 87.16 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007634/1.669, allocations: 387.5 kB / 1.359 GB, free: 86.78 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002157/1.669, allocations: 79.95 kB / 1.359 GB, free: 86.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004171/1.673, allocations: 5.61 MB / 1.365 GB, free: 80.82 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/1.673, allocations: 0 / 1.365 GB, free: 80.82 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01059/1.684, allocations: 7.761 MB / 1.372 GB, free: 72.97 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003908/1.688, allocations: 1.143 MB / 1.373 GB, free: 71.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001864/1.69, allocations: 67.98 kB / 1.373 GB, free: 71.73 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005006/1.695, allocations: 461.9 kB / 1.374 GB, free: 71.29 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004277/1.695, allocations: 198.2 kB / 1.374 GB, free: 71.09 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003268/1.696, allocations: 143.8 kB / 1.374 GB, free: 70.95 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.005534/1.701, allocations: 3.81 MB / 1.378 GB, free: 67.16 MB / 0.9981 GB Notification: Performance of sort global known variables: time 4.7e-07/1.701, allocations: 4 kB / 1.378 GB, free: 67.16 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.007414/1.709, allocations: 1.988 MB / 1.38 GB, free: 65.18 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 16 (tanEnh.vol[1].dynBal.U,tanEnh.vol[2].dynBal.U,tanEnh.vol[3].dynBal.U,tanEnh.vol[4].dynBal.U,tanEnh.vol[5].dynBal.U,tanEnh.vol[6].dynBal.U,tanEnh.vol[7].dynBal.U,tan.vol[1].dynBal.U,tan.vol[2].dynBal.U,tan.vol[3].dynBal.U,tan.vol[4].dynBal.U,tan.vol[5].dynBal.U,tan.vol[6].dynBal.U,tan.vol[7].dynBal.U,dHTanEnh.y,dHTan.y) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (296): * Single equations (assignments): 289 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,14,100.0%), (1,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00141/1.71, allocations: 482.4 kB / 1.38 GB, free: 64.73 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01926/1.729, allocations: 11.63 MB / 1.392 GB, free: 53.05 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.088e-05/1.729, allocations: 4.062 kB / 1.392 GB, free: 53.04 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003256/1.733, allocations: 2.545 MB / 1.394 GB, free: 50.47 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01506/1.748, allocations: 3.392 MB / 1.397 GB, free: 47.2 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02245/1.77, allocations: 16.58 MB / 1.414 GB, free: 30.59 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003272/1.774, allocations: 4.631 MB / 1.418 GB, free: 25.92 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.006904/1.78, allocations: 2.03 MB / 1.42 GB, free: 23.89 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001878/1.782, allocations: 459.2 kB / 1.421 GB, free: 23.44 MB / 0.9981 GB Notification: Performance of SimCode: time 1.413e-06/1.782, allocations: 4 kB / 1.421 GB, free: 23.44 MB / 0.9981 GB Notification: Performance of Templates: time 0.2477/2.03, allocations: 119.7 MB / 1.537 GB, free: 0.875 MB / 1.092 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.makefile (rm -f Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.sim & ./Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches