Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.009018/0.009017, allocations: 99.95 kB / 15.73 MB, free: 6.473 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.002004/0.002004, allocations: 194.8 kB / 16.67 MB, free: 6.379 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.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.462/2.462, allocations: 390.2 MB / 0.6648 GB, free: 228 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 66.78 kB / 0.9508 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3229/0.3242, allocations: 140.4 MB / 1.088 GB, free: 1.512 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.05611/0.3804, allocations: 56.01 MB / 1.143 GB, free: 9.293 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.02893/0.4093, allocations: 17.94 MB / 1.16 GB, free: 7.305 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00413/0.4135, allocations: 75.62 kB / 1.16 GB, free: 7.23 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.003462/0.417, allocations: 0.8924 MB / 1.161 GB, free: 6.332 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.009343/0.4264, allocations: 2.503 MB / 1.164 GB, free: 3.816 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.00499/0.4314, allocations: 1.53 MB / 1.165 GB, free: 2.293 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.02261/0.454, allocations: 21.26 MB / 1.186 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.015/0.4691, allocations: 10.68 MB / 1.196 GB, free: 2.18 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01707/0.4862, allocations: 7.154 MB / 1.203 GB, free: 11.04 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01258/0.4988, allocations: 6.366 MB / 1.209 GB, free: 4.652 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.00393/0.5028, allocations: 0.9375 MB / 1.21 GB, free: 3.715 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008619/0.5114, allocations: 1.702 MB / 1.212 GB, free: 2.012 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.005361/0.5168, allocations: 2.333 MB / 1.214 GB, free: 15.67 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.01334/0.5302, allocations: 4.703 MB / 1.219 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.02136/0.5516, allocations: 13.19 MB / 1.232 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 7.555e-06/0.5517, allocations: 0 / 1.232 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.034e-06/0.5517, allocations: 4 kB / 1.232 GB, free: 13.72 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0006011/0.5523, allocations: 0 / 1.232 GB, free: 13.72 MB / 0.9981 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.02821/0.5805, allocations: 8.506 MB / 1.24 GB, free: 5.121 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/0.5806, allocations: 12.03 kB / 1.24 GB, free: 5.109 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00561/0.5862, allocations: 0.8508 MB / 1.241 GB, free: 4.25 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01619/0.6024, allocations: 6.708 MB / 1.247 GB, free: 13.48 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005492/0.603, allocations: 468.3 kB / 1.248 GB, free: 13.02 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002781/0.6058, allocations: 0.5898 MB / 1.248 GB, free: 12.43 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0251/0.6309, allocations: 9.032 MB / 1.257 GB, free: 3.074 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001777/0.6311, allocations: 15.88 kB / 1.257 GB, free: 3.059 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001409/0.6326, allocations: 260 kB / 1.258 GB, free: 2.805 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001825/0.6327, allocations: 179.9 kB / 1.258 GB, free: 2.629 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.7752/1.408, allocations: 7.448 MB / 1.265 GB, free: 155 MB / 1.014 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.0628/1.471, allocations: 36.01 MB / 1.3 GB, free: 131.2 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007071/1.478, allocations: 4.279 MB / 1.304 GB, free: 129.3 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00609/1.484, allocations: 3.297 MB / 1.308 GB, free: 127.7 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001425/1.485, allocations: 0.9587 MB / 1.308 GB, free: 126.7 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004753/1.49, allocations: 2.381 MB / 1.311 GB, free: 125.3 MB / 1.014 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003293/1.494, allocations: 371.4 kB / 1.311 GB, free: 125.1 MB / 1.014 GB Notification: Performance of pre-optimization done (n=317): time 1.457e-05/1.494, allocations: 0 / 1.311 GB, free: 125.1 MB / 1.014 GB Notification: Performance of matching and sorting (n=317): time 0.01422/1.508, allocations: 7.14 MB / 1.318 GB, free: 121.3 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.036e-05/1.508, allocations: 85.56 kB / 1.318 GB, free: 121.3 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009653/1.518, allocations: 5.663 MB / 1.324 GB, free: 118.4 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.001214/1.519, allocations: 87.36 kB / 1.324 GB, free: 118.3 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.003393/1.522, allocations: 3.202 MB / 1.327 GB, free: 115.6 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.001688/1.524, allocations: 1.112 MB / 1.328 GB, free: 114.6 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001214/1.525, allocations: 0.8578 MB / 1.329 GB, free: 114.1 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 5.161e-05/1.525, allocations: 301.1 kB / 1.329 GB, free: 113.8 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002864/1.528, allocations: 2.163 MB / 1.331 GB, free: 112.7 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00346/1.532, allocations: 3.7 MB / 1.335 GB, free: 109.6 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006197/1.538, allocations: 6.314 MB / 1.341 GB, free: 102.7 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.322e-05/1.538, allocations: 16 kB / 1.341 GB, free: 102.7 MB / 1.014 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.009497/1.547, allocations: 6.787 MB / 1.348 GB, free: 95.86 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 6.265e-05/1.547, allocations: 55.25 kB / 1.348 GB, free: 95.8 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.366e-05/1.547, allocations: 48 kB / 1.348 GB, free: 95.75 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000899/1.548, allocations: 438.6 kB / 1.348 GB, free: 95.32 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00327/1.552, allocations: 1.01 MB / 1.349 GB, free: 94.31 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004559/1.556, allocations: 5.696 MB / 1.355 GB, free: 88.35 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005633/1.562, allocations: 287.4 kB / 1.355 GB, free: 88.07 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005357/1.562, allocations: 216 kB / 1.355 GB, free: 87.86 MB / 1.014 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.004495/1.567, allocations: 2.481 MB / 1.358 GB, free: 85.36 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001975/1.569, allocations: 0.5249 MB / 1.358 GB, free: 84.83 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007577/1.577, allocations: 5.273 MB / 1.363 GB, free: 79.51 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.327e-05/1.577, allocations: 35.92 kB / 1.363 GB, free: 79.48 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/1.577, allocations: 4 kB / 1.363 GB, free: 79.47 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005094/1.582, allocations: 4.532 MB / 1.368 GB, free: 74.84 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02366/1.605, allocations: 11.97 MB / 1.379 GB, free: 62.8 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.209e-05/1.605, allocations: 3.938 kB / 1.379 GB, free: 62.8 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002505/1.608, allocations: 0.6437 MB / 1.38 GB, free: 62.16 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007586/1.609, allocations: 372.4 kB / 1.38 GB, free: 61.79 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001926/1.609, allocations: 87.95 kB / 1.381 GB, free: 61.7 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004524/1.613, allocations: 5.614 MB / 1.386 GB, free: 55.82 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/1.613, allocations: 0 / 1.386 GB, free: 55.82 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01047/1.624, allocations: 7.768 MB / 1.394 GB, free: 47.96 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003968/1.628, allocations: 1.159 MB / 1.395 GB, free: 46.78 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001294/1.629, allocations: 63.98 kB / 1.395 GB, free: 46.71 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003131/1.632, allocations: 202.2 kB / 1.395 GB, free: 46.52 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000408/1.633, allocations: 206.1 kB / 1.395 GB, free: 46.32 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00026/1.633, allocations: 143.9 kB / 1.395 GB, free: 46.18 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.005229/1.638, allocations: 3.955 MB / 1.399 GB, free: 42.25 MB / 1.014 GB Notification: Performance of sort global known variables: time 4.61e-07/1.638, allocations: 0 / 1.399 GB, free: 42.25 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.00746/1.646, allocations: 2.012 MB / 1.401 GB, free: 40.25 MB / 1.014 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.001371/1.647, allocations: 491.8 kB / 1.402 GB, free: 39.8 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.008043/1.655, allocations: 5.448 MB / 1.407 GB, free: 34.3 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/1.655, allocations: 0 / 1.407 GB, free: 34.3 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.003705/1.659, allocations: 2.545 MB / 1.409 GB, free: 31.73 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02356/1.683, allocations: 3.39 MB / 1.413 GB, free: 28.45 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03087/1.713, allocations: 13.88 MB / 1.426 GB, free: 14.54 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006804/1.72, allocations: 4.632 MB / 1.431 GB, free: 9.871 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.008034/1.728, allocations: 2.076 MB / 1.433 GB, free: 7.801 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002446/1.731, allocations: 463.2 kB / 1.433 GB, free: 7.352 MB / 1.014 GB Notification: Performance of SimCode: time 2.094e-06/1.731, allocations: 0 / 1.433 GB, free: 7.352 MB / 1.014 GB Notification: Performance of Templates: time 0.1939/1.925, allocations: 116.6 MB / 1.547 GB, free: 3.695 MB / 1.123 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.sim & ./Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches