Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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_10_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_10_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.001418/0.001418, allocations: 99.58 kB / 16.02 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001719/0.001719, allocations: 180.8 kB / 16.92 MB, free: 6.918 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.438/1.438, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.646/2.646, allocations: 437.8 MB / 0.7128 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003733/0.0003736, allocations: 8 kB / 0.8735 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7344/0.7348, allocations: 153.8 MB / 1.024 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.05567/0.7905, allocations: 54.56 MB / 1.077 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02377/0.8143, allocations: 17.73 MB / 1.094 GB, free: 7.383 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003581/0.8179, allocations: 71.5 kB / 1.094 GB, free: 7.312 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.002854/0.8208, allocations: 0.7185 MB / 1.095 GB, free: 6.59 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.008005/0.8288, allocations: 2.329 MB / 1.097 GB, free: 4.25 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.004088/0.833, allocations: 1.381 MB / 1.099 GB, free: 2.875 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.02705/0.86, allocations: 27.81 MB / 1.126 GB, free: 7.004 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01211/0.8722, allocations: 8.417 MB / 1.134 GB, free: 14.48 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01182/0.884, allocations: 5.205 MB / 1.139 GB, free: 9.258 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01158/0.8957, allocations: 5.783 MB / 1.145 GB, free: 3.449 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.002076/0.8978, allocations: 352 kB / 1.145 GB, free: 3.105 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006054/0.9039, allocations: 1.033 MB / 1.146 GB, free: 2.07 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.003106/0.907, allocations: 1.587 MB / 1.148 GB, free: 488 kB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.008828/0.9158, allocations: 3.893 MB / 1.151 GB, free: 12.55 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0124/0.9283, allocations: 10.38 MB / 1.162 GB, free: 2.156 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.9283, allocations: 0 / 1.162 GB, free: 2.156 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.865e-06/0.9283, allocations: 0 / 1.162 GB, free: 2.156 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0004255/0.9288, allocations: 0 / 1.162 GB, free: 2.156 MB / 0.9044 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.01623/0.945, allocations: 6.878 MB / 1.168 GB, free: 11.19 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.816e-05/0.9451, allocations: 12.03 kB / 1.168 GB, free: 11.18 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004236/0.9493, allocations: 0.8586 MB / 1.169 GB, free: 10.31 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01224/0.9616, allocations: 6.606 MB / 1.176 GB, free: 3.641 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003994/0.962, allocations: 460.4 kB / 1.176 GB, free: 3.188 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001698/0.9637, allocations: 0.6014 MB / 1.177 GB, free: 2.586 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01759/0.9813, allocations: 9.032 MB / 1.185 GB, free: 9.23 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001411/0.9815, allocations: 23.78 kB / 1.185 GB, free: 9.207 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007256/0.9822, allocations: 264 kB / 1.186 GB, free: 8.949 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001763/0.9824, allocations: 176 kB / 1.186 GB, free: 8.777 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01452/0.997, allocations: 7.461 MB / 1.193 GB, free: 1.309 MB / 0.9356 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.04833/1.045, allocations: 35.98 MB / 1.228 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006622/1.052, allocations: 4.291 MB / 1.233 GB, free: 6.969 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004961/1.057, allocations: 3.332 MB / 1.236 GB, free: 3.629 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001322/1.058, allocations: 0.9778 MB / 1.237 GB, free: 2.465 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004011/1.062, allocations: 2.398 MB / 1.239 GB, free: 32 kB / 0.9825 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002917/1.065, allocations: 443.8 kB / 1.239 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=317): time 7.985e-06/1.065, allocations: 0 / 1.239 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of matching and sorting (n=317): time 0.0134/1.079, allocations: 7.136 MB / 1.246 GB, free: 8.367 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.427e-05/1.079, allocations: 93.84 kB / 1.247 GB, free: 8.262 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009043/1.088, allocations: 5.467 MB / 1.252 GB, free: 2.816 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.001001/1.089, allocations: 85.7 kB / 1.252 GB, free: 2.727 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.6403/1.729, allocations: 3.188 MB / 1.255 GB, free: 211.9 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002688/1.732, allocations: 1.12 MB / 1.256 GB, free: 211.7 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00091/1.733, allocations: 363 kB / 1.257 GB, free: 211.7 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 7.413e-05/1.733, allocations: 306.1 kB / 1.257 GB, free: 211.4 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00485/1.738, allocations: 2.158 MB / 1.259 GB, free: 211.4 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00554/1.743, allocations: 3.69 MB / 1.263 GB, free: 208.8 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01094/1.754, allocations: 6.311 MB / 1.269 GB, free: 204.9 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001186/1.755, allocations: 14.5 kB / 1.269 GB, free: 204.9 MB / 0.9981 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.0146/1.769, allocations: 6.765 MB / 1.275 GB, free: 202.4 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 9.759e-05/1.769, allocations: 56.17 kB / 1.275 GB, free: 202.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.246e-05/1.769, allocations: 49.61 kB / 1.275 GB, free: 202.3 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001118/1.771, allocations: 435.9 kB / 1.276 GB, free: 202.2 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004451/1.775, allocations: 1.012 MB / 1.277 GB, free: 202.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00563/1.781, allocations: 5.263 MB / 1.282 GB, free: 198.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006217/1.787, allocations: 476.4 kB / 1.282 GB, free: 198.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009289/1.788, allocations: 222 kB / 1.283 GB, free: 198.2 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.004889/1.793, allocations: 2.479 MB / 1.285 GB, free: 197.1 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001466/1.794, allocations: 0.5256 MB / 1.286 GB, free: 196.8 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007978/1.802, allocations: 5.266 MB / 1.291 GB, free: 194.8 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.874e-05/1.802, allocations: 29.25 kB / 1.291 GB, free: 194.8 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.138e-05/1.802, allocations: 7.344 kB / 1.291 GB, free: 194.8 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005596/1.808, allocations: 4.522 MB / 1.295 GB, free: 192.9 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 postOpt removeSimpleEquations (simulation): time 0.02035/1.828, allocations: 11.99 MB / 1.307 GB, free: 183.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.254e-05/1.828, allocations: 0 / 1.307 GB, free: 183.7 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0025/1.831, allocations: 0.6516 MB / 1.307 GB, free: 183.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007824/1.832, allocations: 372.6 kB / 1.308 GB, free: 182.7 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002351/1.832, allocations: 91.94 kB / 1.308 GB, free: 182.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004172/1.836, allocations: 5.178 MB / 1.313 GB, free: 177.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/1.836, allocations: 4 kB / 1.313 GB, free: 177.2 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01019/1.846, allocations: 7.627 MB / 1.32 GB, free: 169.5 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003172/1.85, allocations: 1.213 MB / 1.322 GB, free: 168.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00124/1.851, allocations: 67.83 kB / 1.322 GB, free: 168.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004232/1.855, allocations: 475.5 kB / 1.322 GB, free: 167.7 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003889/1.855, allocations: 206.8 kB / 1.322 GB, free: 167.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003251/1.856, allocations: 143.9 kB / 1.322 GB, free: 167.4 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.005997/1.862, allocations: 3.803 MB / 1.326 GB, free: 163.6 MB / 0.9981 GB Notification: Performance of sort global known variables: time 5.11e-07/1.862, allocations: 0 / 1.326 GB, free: 163.6 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.009199/1.871, allocations: 1.99 MB / 1.328 GB, free: 161.6 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.001712/1.873, allocations: 487.4 kB / 1.329 GB, free: 161.2 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.00795/1.881, allocations: 5.386 MB / 1.334 GB, free: 155.7 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.095e-05/1.881, allocations: 4.125 kB / 1.334 GB, free: 155.7 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003183/1.884, allocations: 2.505 MB / 1.336 GB, free: 153.2 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01824/1.902, allocations: 3.226 MB / 1.339 GB, free: 150.1 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02704/1.929, allocations: 16.73 MB / 1.356 GB, free: 133.3 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00378/1.933, allocations: 4.549 MB / 1.36 GB, free: 128.7 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0021/1.935, allocations: 483.2 kB / 1.361 GB, free: 128.2 MB / 0.9981 GB Notification: Performance of SimCode: time 9.92e-07/1.935, allocations: 5.094 kB / 1.361 GB, free: 128.2 MB / 0.9981 GB Notification: Performance of Templates: time 0.2332/2.169, allocations: 184.8 MB / 1.541 GB, free: 7.824 MB / 1.061 GB make -j1 -f Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.makefile (rm -f Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.sim & ./Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches