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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001578/0.001578, 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.001934/0.001934, allocations: 193.5 kB / 16.14 MB, free: 6.719 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.399/1.399, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.807/2.807, allocations: 461.9 MB / 0.7342 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 65.02 kB / 0.8984 GB, free: 37.28 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3782/0.3797, allocations: 157.4 MB / 1.052 GB, free: 8.887 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.05594/0.4357, allocations: 55.65 MB / 1.106 GB, free: 1.039 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.02608/0.4618, allocations: 17.93 MB / 1.124 GB, free: 15.07 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003862/0.4657, allocations: 71.56 kB / 1.124 GB, free: 15 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.003935/0.4697, allocations: 0.7225 MB / 1.125 GB, free: 14.27 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.009421/0.4792, allocations: 2.333 MB / 1.127 GB, free: 11.93 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.005163/0.4844, allocations: 1.378 MB / 1.128 GB, free: 10.55 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.03288/0.5173, allocations: 27.81 MB / 1.156 GB, free: 14.67 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01717/0.5345, allocations: 8.693 MB / 1.164 GB, free: 5.859 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01457/0.5491, allocations: 5.521 MB / 1.169 GB, free: 324 kB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01305/0.5623, allocations: 6.185 MB / 1.175 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.003259/0.5656, allocations: 472 kB / 1.176 GB, free: 9.645 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007677/0.5733, allocations: 1.155 MB / 1.177 GB, free: 8.488 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.004772/0.5781, allocations: 1.794 MB / 1.179 GB, free: 6.688 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.01242/0.5905, allocations: 4.121 MB / 1.183 GB, free: 2.547 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.02116/0.6117, allocations: 12.64 MB / 1.195 GB, free: 5.875 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 8.276e-06/0.6118, allocations: 0 / 1.195 GB, free: 5.875 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.895e-06/0.6118, allocations: 0 / 1.195 GB, free: 5.875 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 0.0005628/0.6124, allocations: 0 / 1.195 GB, free: 5.875 MB / 0.9512 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.02772/0.6401, allocations: 8.506 MB / 1.203 GB, free: 13.27 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.541e-05/0.6402, allocations: 8.031 kB / 1.203 GB, free: 13.27 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00583/0.646, allocations: 0.8586 MB / 1.204 GB, free: 12.4 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01688/0.663, allocations: 6.608 MB / 1.211 GB, free: 5.73 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006196/0.6636, allocations: 460.4 kB / 1.211 GB, free: 5.277 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003055/0.6667, allocations: 0.6053 MB / 1.212 GB, free: 4.672 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02752/0.6943, allocations: 9.021 MB / 1.221 GB, free: 11.33 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004711/0.6948, allocations: 23.78 kB / 1.221 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003134/0.698, allocations: 260 kB / 1.221 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002616/0.6982, allocations: 179.9 kB / 1.221 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01965/0.7179, allocations: 7.449 MB / 1.228 GB, free: 3.418 MB / 0.9825 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.7979/1.516, allocations: 35.9 MB / 1.263 GB, free: 162.1 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008743/1.525, allocations: 4.279 MB / 1.268 GB, free: 162 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007538/1.532, allocations: 3.315 MB / 1.271 GB, free: 162 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001701/1.534, allocations: 0.9541 MB / 1.272 GB, free: 161.1 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006144/1.54, allocations: 2.384 MB / 1.274 GB, free: 161 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004089/1.544, allocations: 445.7 kB / 1.274 GB, free: 161 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=317): time 3.128e-05/1.544, allocations: 0 / 1.274 GB, free: 161 MB / 0.9981 GB Notification: Performance of matching and sorting (n=317): time 0.0161/1.56, allocations: 7.105 MB / 1.281 GB, free: 159.6 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.56e-05/1.561, allocations: 86.12 kB / 1.281 GB, free: 159.6 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01086/1.571, allocations: 5.469 MB / 1.287 GB, free: 157.8 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.001009/1.573, allocations: 86.2 kB / 1.287 GB, free: 157.7 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003247/1.576, allocations: 3.195 MB / 1.29 GB, free: 155.3 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001915/1.578, allocations: 1.115 MB / 1.291 GB, free: 154.4 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001543/1.579, allocations: 0.8562 MB / 1.292 GB, free: 154 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 6.346e-05/1.579, allocations: 305 kB / 1.292 GB, free: 153.7 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003576/1.583, allocations: 2.149 MB / 1.294 GB, free: 152.9 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003864/1.587, allocations: 3.692 MB / 1.298 GB, free: 149.8 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007665/1.594, allocations: 6.298 MB / 1.304 GB, free: 145.3 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.584e-05/1.595, allocations: 17.81 kB / 1.304 GB, free: 145.3 MB / 0.9981 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01193/1.607, allocations: 6.758 MB / 1.311 GB, free: 141.8 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001072/1.607, allocations: 57.67 kB / 1.311 GB, free: 141.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.659e-05/1.607, allocations: 53.5 kB / 1.311 GB, free: 141.8 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001001/1.608, allocations: 432.9 kB / 1.311 GB, free: 141.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003742/1.612, allocations: 1.001 MB / 1.312 GB, free: 141.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004717/1.616, allocations: 5.258 MB / 1.317 GB, free: 137 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006894/1.623, allocations: 475 kB / 1.318 GB, free: 136.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001175/1.624, allocations: 216.1 kB / 1.318 GB, free: 136.7 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.006097/1.631, allocations: 2.482 MB / 1.32 GB, free: 135.2 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00263/1.633, allocations: 0.5266 MB / 1.321 GB, free: 134.9 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01159/1.645, allocations: 5.245 MB / 1.326 GB, free: 129.6 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-05/1.645, allocations: 35.98 kB / 1.326 GB, free: 129.6 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.404e-05/1.645, allocations: 4 kB / 1.326 GB, free: 129.6 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007375/1.652, allocations: 4.529 MB / 1.331 GB, free: 125 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.02958/1.682, allocations: 11.96 MB / 1.342 GB, free: 112.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.33e-05/1.682, allocations: 4.125 kB / 1.342 GB, free: 112.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003313/1.685, allocations: 0.6397 MB / 1.343 GB, free: 112.3 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00115/1.687, allocations: 380.1 kB / 1.343 GB, free: 111.9 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009542/1.688, allocations: 87.95 kB / 1.343 GB, free: 111.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005396/1.693, allocations: 5.174 MB / 1.348 GB, free: 106.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/1.693, allocations: 7.875 kB / 1.348 GB, free: 106.4 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01462/1.708, allocations: 7.609 MB / 1.356 GB, free: 98.66 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0041/1.712, allocations: 1.131 MB / 1.357 GB, free: 97.51 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002271/1.714, allocations: 67.98 kB / 1.357 GB, free: 97.44 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005761/1.72, allocations: 474.7 kB / 1.357 GB, free: 96.98 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000877/1.721, allocations: 198.2 kB / 1.358 GB, free: 96.79 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007689/1.722, allocations: 143.9 kB / 1.358 GB, free: 96.65 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.009245/1.731, allocations: 3.803 MB / 1.361 GB, free: 92.87 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7.71e-07/1.731, allocations: 0 / 1.361 GB, free: 92.87 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.01012/1.741, allocations: 1.98 MB / 1.363 GB, free: 90.9 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.002204/1.743, allocations: 0.494 MB / 1.364 GB, free: 90.45 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01015/1.753, allocations: 5.369 MB / 1.369 GB, free: 85.03 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.192e-05/1.753, allocations: 4 kB / 1.369 GB, free: 85.02 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.004502/1.758, allocations: 2.511 MB / 1.372 GB, free: 82.48 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01967/1.778, allocations: 3.223 MB / 1.375 GB, free: 79.38 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03145/1.809, allocations: 16.44 MB / 1.391 GB, free: 62.89 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009455/1.819, allocations: 4.631 MB / 1.395 GB, free: 58.22 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.00807/1.827, allocations: 1.99 MB / 1.397 GB, free: 56.23 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00221/1.829, allocations: 455.3 kB / 1.398 GB, free: 55.79 MB / 0.9981 GB Notification: Performance of SimCode: time 1.443e-06/1.829, allocations: 0 / 1.398 GB, free: 55.79 MB / 0.9981 GB Notification: Performance of Templates: time 0.1831/2.012, allocations: 116 MB / 1.511 GB, free: 4.871 MB / 1.061 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