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.00171/0.00171, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002088/0.002088, allocations: 192.8 kB / 16.14 MB, free: 6.711 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.443/1.443, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.91/2.91, allocations: 472.6 MB / 0.7447 GB, free: 5.055 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 67.58 kB / 0.9114 GB, free: 33.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4049/0.4062, allocations: 159.9 MB / 1.068 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.0558/0.462, allocations: 55.66 MB / 1.122 GB, free: 3.117 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.02489/0.487, allocations: 17.94 MB / 1.139 GB, free: 1.141 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004249/0.4913, allocations: 67.62 kB / 1.139 GB, free: 1.074 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.003416/0.4948, allocations: 0.734 MB / 1.14 GB, free: 344 kB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.00868/0.5035, allocations: 2.329 MB / 1.142 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.004571/0.5081, allocations: 1.378 MB / 1.144 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.02645/0.5345, allocations: 27.81 MB / 1.171 GB, free: 0.7383 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0123/0.5469, allocations: 8.701 MB / 1.179 GB, free: 7.918 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01306/0.56, allocations: 5.521 MB / 1.185 GB, free: 2.375 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01261/0.5726, allocations: 6.178 MB / 1.191 GB, free: 12.17 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.00297/0.5757, allocations: 472 kB / 1.191 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007402/0.5831, allocations: 1.162 MB / 1.192 GB, free: 10.55 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.003659/0.5868, allocations: 1.79 MB / 1.194 GB, free: 8.75 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.01094/0.5977, allocations: 4.114 MB / 1.198 GB, free: 4.617 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.01968/0.6175, allocations: 12.64 MB / 1.211 GB, free: 7.945 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 9.898e-06/0.6175, allocations: 0 / 1.211 GB, free: 7.945 MB / 0.9669 GB Notification: Performance of FrontEnd: time 4.859e-06/0.6175, allocations: 0 / 1.211 GB, free: 7.945 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 0.0005183/0.6181, allocations: 3.938 kB / 1.211 GB, free: 7.941 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.02606/0.6441, allocations: 8.499 MB / 1.219 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 6.26e-05/0.6442, allocations: 12.03 kB / 1.219 GB, free: 15.33 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005227/0.6495, allocations: 0.8547 MB / 1.22 GB, free: 14.47 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01642/0.6659, allocations: 6.614 MB / 1.226 GB, free: 7.793 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008363/0.6668, allocations: 460.4 kB / 1.227 GB, free: 7.34 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003618/0.6705, allocations: 0.5975 MB / 1.227 GB, free: 6.742 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02887/0.6994, allocations: 9.028 MB / 1.236 GB, free: 13.39 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003753/0.6998, allocations: 23.86 kB / 1.236 GB, free: 13.37 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002584/0.7024, allocations: 260 kB / 1.236 GB, free: 13.11 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002473/0.7027, allocations: 175.9 kB / 1.236 GB, free: 12.94 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01901/0.7217, allocations: 7.449 MB / 1.244 GB, free: 5.484 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 1.414/2.136, allocations: 35.91 MB / 1.279 GB, free: 145.9 MB / 0.9982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008396/2.144, allocations: 4.276 MB / 1.283 GB, free: 144.4 MB / 0.9982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005557/2.15, allocations: 3.315 MB / 1.286 GB, free: 143.3 MB / 0.9982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001258/2.151, allocations: 0.9513 MB / 1.287 GB, free: 142.3 MB / 0.9982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005308/2.157, allocations: 2.383 MB / 1.289 GB, free: 141.5 MB / 0.9982 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003711/2.16, allocations: 444.8 kB / 1.29 GB, free: 141.3 MB / 0.9982 GB Notification: Performance of pre-optimization done (n=317): time 1.874e-05/2.16, allocations: 0 / 1.29 GB, free: 141.3 MB / 0.9982 GB Notification: Performance of matching and sorting (n=317): time 0.01455/2.175, allocations: 7.109 MB / 1.297 GB, free: 138.7 MB / 0.9982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.396e-05/2.175, allocations: 83.91 kB / 1.297 GB, free: 138.7 MB / 0.9982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01027/2.185, allocations: 5.463 MB / 1.302 GB, free: 136 MB / 0.9982 GB Notification: Performance of collectPreVariables (initialization): time 0.001151/2.186, allocations: 86.67 kB / 1.302 GB, free: 135.9 MB / 0.9982 GB Notification: Performance of collectInitialEqns (initialization): time 0.003756/2.19, allocations: 3.201 MB / 1.305 GB, free: 133.2 MB / 0.9982 GB Notification: Performance of collectInitialBindings (initialization): time 0.002462/2.193, allocations: 1.115 MB / 1.307 GB, free: 132.2 MB / 0.9982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001983/2.195, allocations: 0.8528 MB / 1.307 GB, free: 131.7 MB / 0.9982 GB Notification: Performance of setup shared object (initialization): time 8.815e-05/2.195, allocations: 301.1 kB / 1.308 GB, free: 131.4 MB / 0.9982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00413/2.199, allocations: 2.16 MB / 1.31 GB, free: 130.3 MB / 0.9982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00406/2.203, allocations: 3.685 MB / 1.313 GB, free: 127.2 MB / 0.9982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007368/2.21, allocations: 6.305 MB / 1.32 GB, free: 122.5 MB / 0.9982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-05/2.21, allocations: 15.69 kB / 1.32 GB, free: 122.5 MB / 0.9982 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01154/2.222, allocations: 6.753 MB / 1.326 GB, free: 119 MB / 0.9982 GB Notification: Performance of prepare postOptimizeDAE: time 7.942e-05/2.222, allocations: 57.61 kB / 1.326 GB, free: 119 MB / 0.9982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.11e-05/2.222, allocations: 52.66 kB / 1.326 GB, free: 119 MB / 0.9982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001005/2.223, allocations: 437.1 kB / 1.327 GB, free: 118.8 MB / 0.9982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003494/2.227, allocations: 0.9999 MB / 1.328 GB, free: 118 MB / 0.9982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004861/2.232, allocations: 5.267 MB / 1.333 GB, free: 112.5 MB / 0.9982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006314/2.238, allocations: 466.8 kB / 1.333 GB, free: 112 MB / 0.9982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008262/2.239, allocations: 220 kB / 1.333 GB, free: 111.8 MB / 0.9982 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.005336/2.244, allocations: 2.476 MB / 1.336 GB, free: 109.3 MB / 0.9982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002308/2.246, allocations: 0.5249 MB / 1.336 GB, free: 108.8 MB / 0.9982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01035/2.257, allocations: 5.253 MB / 1.342 GB, free: 103.5 MB / 0.9982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.94e-05/2.257, allocations: 32 kB / 1.342 GB, free: 103.4 MB / 0.9982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.013e-05/2.257, allocations: 4 kB / 1.342 GB, free: 103.4 MB / 0.9982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00636/2.263, allocations: 4.521 MB / 1.346 GB, free: 98.8 MB / 0.9982 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.02605/2.289, allocations: 11.97 MB / 1.358 GB, free: 86.74 MB / 0.9982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.225e-05/2.289, allocations: 0 / 1.358 GB, free: 86.74 MB / 0.9982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002839/2.292, allocations: 0.6438 MB / 1.358 GB, free: 86.09 MB / 0.9982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00083/2.293, allocations: 371.6 kB / 1.359 GB, free: 85.73 MB / 0.9982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005023/2.294, allocations: 87.8 kB / 1.359 GB, free: 85.64 MB / 0.9982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004258/2.298, allocations: 5.179 MB / 1.364 GB, free: 80.21 MB / 0.9982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/2.298, allocations: 4 kB / 1.364 GB, free: 80.2 MB / 0.9982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0123/2.31, allocations: 7.617 MB / 1.371 GB, free: 72.49 MB / 0.9982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003841/2.314, allocations: 1.127 MB / 1.372 GB, free: 71.34 MB / 0.9982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001931/2.316, allocations: 68 kB / 1.372 GB, free: 71.27 MB / 0.9982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005239/2.321, allocations: 473.1 kB / 1.373 GB, free: 70.82 MB / 0.9982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005707/2.322, allocations: 202.2 kB / 1.373 GB, free: 70.62 MB / 0.9982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00058/2.322, allocations: 131.9 kB / 1.373 GB, free: 70.49 MB / 0.9982 GB Notification: Performance of sorting global known variables: time 0.007632/2.33, allocations: 3.814 MB / 1.377 GB, free: 66.7 MB / 0.9982 GB Notification: Performance of sort global known variables: time 4.31e-07/2.33, allocations: 0 / 1.377 GB, free: 66.7 MB / 0.9982 GB Notification: Performance of remove unused functions: time 0.009313/2.339, allocations: 1.982 MB / 1.379 GB, free: 64.73 MB / 0.9982 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.001846/2.341, allocations: 486.7 kB / 1.379 GB, free: 64.28 MB / 0.9982 GB Notification: Performance of simCode: created initialization part: time 0.008751/2.35, allocations: 5.378 MB / 1.385 GB, free: 58.85 MB / 0.9982 GB Notification: Performance of simCode: created event and clocks part: time 1.115e-05/2.35, allocations: 4 kB / 1.385 GB, free: 58.85 MB / 0.9982 GB Notification: Performance of simCode: created simulation system equations: time 0.00393/2.354, allocations: 2.506 MB / 1.387 GB, free: 56.31 MB / 0.9982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01855/2.373, allocations: 3.225 MB / 1.39 GB, free: 53.16 MB / 0.9982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02774/2.4, allocations: 16.45 MB / 1.406 GB, free: 36.67 MB / 0.9982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006428/2.407, allocations: 4.628 MB / 1.411 GB, free: 32.01 MB / 0.9982 GB Notification: Performance of simCode: alias equations: time 0.0084/2.415, allocations: 1.995 MB / 1.413 GB, free: 30.02 MB / 0.9982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002366/2.418, allocations: 455.2 kB / 1.413 GB, free: 29.57 MB / 0.9982 GB Notification: Performance of SimCode: time 1.153e-06/2.418, allocations: 0 / 1.413 GB, free: 29.57 MB / 0.9982 GB Notification: Performance of Templates: time 0.1909/2.609, allocations: 115.9 MB / 1.526 GB, free: 10.61 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