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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.0008726/0.0008726, allocations: 97.33 kB / 15.36 MB, free: 0.7344 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.00553/0.00553, allocations: 169.7 kB / 16.27 MB, free: 6.652 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.412/1.412, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.767/2.767, allocations: 437.8 MB / 0.7121 GB, free: 6.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003763/0.0003764, allocations: 8.281 kB / 0.8728 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.775/0.7754, allocations: 153.8 MB / 1.023 GB, free: 108 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.05198/0.8274, allocations: 54.56 MB / 1.076 GB, free: 9.363 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02628/0.8538, allocations: 17.73 MB / 1.094 GB, free: 7.578 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004263/0.8581, allocations: 63.62 kB / 1.094 GB, free: 7.516 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.003359/0.8615, allocations: 0.7146 MB / 1.094 GB, free: 6.797 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.009573/0.8711, allocations: 2.329 MB / 1.097 GB, free: 4.461 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.005189/0.8763, allocations: 1.392 MB / 1.098 GB, free: 3.074 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.02749/0.9038, allocations: 27.81 MB / 1.125 GB, free: 7.199 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01222/0.9161, allocations: 8.406 MB / 1.133 GB, free: 14.69 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0126/0.9287, allocations: 5.213 MB / 1.138 GB, free: 9.457 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01293/0.9417, allocations: 5.783 MB / 1.144 GB, free: 3.648 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.00319/0.9449, allocations: 344 kB / 1.144 GB, free: 3.312 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009129/0.9541, allocations: 1.033 MB / 1.145 GB, free: 2.277 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.004893/0.959, allocations: 1.591 MB / 1.147 GB, free: 0.6797 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0115/0.9705, allocations: 3.889 MB / 1.151 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0195/0.99, allocations: 12.3 MB / 1.163 GB, free: 440 kB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 8.446e-06/0.9901, allocations: 8 kB / 1.163 GB, free: 432 kB / 0.9044 GB Notification: Performance of FrontEnd: time 2.584e-06/0.9901, allocations: 0 / 1.163 GB, free: 432 kB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0005964/0.9907, allocations: 0 / 1.163 GB, free: 432 kB / 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.02117/1.012, allocations: 6.874 MB / 1.17 GB, free: 9.457 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/1.012, allocations: 15.97 kB / 1.17 GB, free: 9.441 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005241/1.017, allocations: 0.847 MB / 1.17 GB, free: 8.586 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01644/1.034, allocations: 6.616 MB / 1.177 GB, free: 1.91 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005724/1.034, allocations: 468.3 kB / 1.177 GB, free: 1.449 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002653/1.037, allocations: 0.5937 MB / 1.178 GB, free: 0.8555 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02491/1.062, allocations: 9.028 MB / 1.187 GB, free: 7.504 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003551/1.062, allocations: 31.7 kB / 1.187 GB, free: 7.473 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002154/1.064, allocations: 264 kB / 1.187 GB, free: 7.215 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002344/1.065, allocations: 180 kB / 1.187 GB, free: 7.039 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01834/1.083, allocations: 7.457 MB / 1.194 GB, free: 15.57 MB / 0.9512 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.06181/1.145, allocations: 35.98 MB / 1.23 GB, free: 9.527 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008206/1.153, allocations: 4.283 MB / 1.234 GB, free: 5.242 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005763/1.159, allocations: 3.339 MB / 1.237 GB, free: 1.895 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001492/1.16, allocations: 0.9778 MB / 1.238 GB, free: 0.7305 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005267/1.166, allocations: 2.394 MB / 1.24 GB, free: 14.3 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003792/1.17, allocations: 447.8 kB / 1.241 GB, free: 13.86 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=317): time 1.426e-05/1.17, allocations: 0 / 1.241 GB, free: 13.86 MB / 0.9981 GB Notification: Performance of matching and sorting (n=317): time 0.01625/1.186, allocations: 7.148 MB / 1.248 GB, free: 6.621 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.191e-05/1.186, allocations: 85.91 kB / 1.248 GB, free: 6.523 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01251/1.199, allocations: 5.463 MB / 1.253 GB, free: 1.082 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0009997/1.2, allocations: 85.7 kB / 1.253 GB, free: 0.9922 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.7204/1.92, allocations: 3.189 MB / 1.256 GB, free: 212 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002083/1.922, allocations: 1.118 MB / 1.257 GB, free: 211.3 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009638/1.923, allocations: 362.6 kB / 1.258 GB, free: 211.2 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.673e-05/1.923, allocations: 315.1 kB / 1.258 GB, free: 210.9 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00475/1.928, allocations: 2.157 MB / 1.26 GB, free: 210.2 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006056/1.934, allocations: 3.693 MB / 1.264 GB, free: 207.6 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01187/1.946, allocations: 6.307 MB / 1.27 GB, free: 203.7 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.704e-05/1.946, allocations: 14.03 kB / 1.27 GB, free: 203.7 MB / 0.9981 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01529/1.961, allocations: 6.767 MB / 1.277 GB, free: 201.1 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001161/1.962, allocations: 53.66 kB / 1.277 GB, free: 201.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001138/1.962, allocations: 49.22 kB / 1.277 GB, free: 201.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001304/1.963, allocations: 430.7 kB / 1.277 GB, free: 201 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004691/1.968, allocations: 1.016 MB / 1.278 GB, free: 200.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006562/1.974, allocations: 5.262 MB / 1.283 GB, free: 197.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007205/1.982, allocations: 475.1 kB / 1.284 GB, free: 197 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001226/1.983, allocations: 216.1 kB / 1.284 GB, free: 196.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.006399/1.989, allocations: 2.48 MB / 1.286 GB, free: 195.9 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002045/1.991, allocations: 0.5343 MB / 1.287 GB, free: 195.6 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01293/2.004, allocations: 5.247 MB / 1.292 GB, free: 193.6 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-05/2.004, allocations: 30.72 kB / 1.292 GB, free: 193.6 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.761e-05/2.004, allocations: 6.656 kB / 1.292 GB, free: 193.6 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006842/2.011, allocations: 4.536 MB / 1.296 GB, free: 191.7 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.02211/2.033, allocations: 11.99 MB / 1.308 GB, free: 182.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.22e-05/2.033, allocations: 4 kB / 1.308 GB, free: 182.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002447/2.036, allocations: 0.6477 MB / 1.309 GB, free: 181.5 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007999/2.037, allocations: 379.1 kB / 1.309 GB, free: 181.1 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001984/2.037, allocations: 87.34 kB / 1.309 GB, free: 181 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003991/2.041, allocations: 5.182 MB / 1.314 GB, free: 175.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/2.041, allocations: 0 / 1.314 GB, free: 175.6 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01028/2.051, allocations: 7.628 MB / 1.322 GB, free: 167.9 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003888/2.055, allocations: 1.221 MB / 1.323 GB, free: 166.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001612/2.057, allocations: 67.98 kB / 1.323 GB, free: 166.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00604/2.063, allocations: 467.8 kB / 1.323 GB, free: 166.1 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005752/2.063, allocations: 202.2 kB / 1.324 GB, free: 165.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005007/2.064, allocations: 139.9 kB / 1.324 GB, free: 165.8 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.007173/2.071, allocations: 3.807 MB / 1.327 GB, free: 162 MB / 0.9981 GB Notification: Performance of sort global known variables: time 3.9e-07/2.071, allocations: 0 / 1.327 GB, free: 162 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.007712/2.079, allocations: 1.99 MB / 1.329 GB, free: 160 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.001564/2.08, allocations: 491.1 kB / 1.33 GB, free: 159.6 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.008701/2.089, allocations: 5.385 MB / 1.335 GB, free: 154.1 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 8.727e-06/2.089, allocations: 3.844 kB / 1.335 GB, free: 154.1 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003522/2.093, allocations: 2.514 MB / 1.338 GB, free: 151.6 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01948/2.112, allocations: 3.216 MB / 1.341 GB, free: 148.5 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02806/2.14, allocations: 16.68 MB / 1.357 GB, free: 131.7 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005919/2.146, allocations: 4.63 MB / 1.361 GB, free: 127.1 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.007799/2.154, allocations: 1.994 MB / 1.363 GB, free: 125.1 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002064/2.156, allocations: 463.2 kB / 1.364 GB, free: 124.6 MB / 0.9981 GB Notification: Performance of SimCode: time 7.62e-07/2.156, allocations: 0 / 1.364 GB, free: 124.6 MB / 0.9981 GB Notification: Performance of Templates: time 0.1592/2.315, allocations: 114.9 MB / 1.476 GB, free: 10.79 MB / 0.9981 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches