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.001449/0.001449, allocations: 101.1 kB / 16.27 MB, free: 5.969 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.001598/0.001598, allocations: 191.6 kB / 17.2 MB, free: 5.594 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.374/1.374, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.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.5/2.5, allocations: 437 MB / 0.711 GB, free: 4.52 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.00141, allocations: 64.86 kB / 0.8699 GB, free: 2.188 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3385/0.3399, allocations: 151.6 MB / 1.018 GB, free: 10.63 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.06379/0.4038, allocations: 56.01 MB / 1.073 GB, free: 2.422 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.5938/0.9976, allocations: 17.93 MB / 1.09 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003701/1.001, allocations: 78 kB / 1.09 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.003178/1.005, allocations: 0.8922 MB / 1.091 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.009823/1.014, allocations: 2.509 MB / 1.094 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.005002/1.019, allocations: 1.513 MB / 1.095 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.02628/1.046, allocations: 21.25 MB / 1.116 GB, free: 3.801 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01926/1.065, allocations: 10.69 MB / 1.126 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01778/1.083, allocations: 7.14 MB / 1.133 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0133/1.096, allocations: 6.364 MB / 1.139 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.003903/1.1, allocations: 0.9376 MB / 1.14 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009534/1.11, allocations: 1.69 MB / 1.142 GB, free: 10.05 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.005222/1.115, allocations: 2.347 MB / 1.144 GB, free: 8.68 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.01263/1.128, allocations: 4.704 MB / 1.149 GB, free: 5.859 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.02128/1.149, allocations: 13.03 MB / 1.162 GB, free: 13.22 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 7.805e-06/1.149, allocations: 4 kB / 1.162 GB, free: 13.21 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.944e-06/1.149, allocations: 0 / 1.162 GB, free: 13.21 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0005769/1.15, allocations: 0 / 1.162 GB, free: 13.21 MB / 0.8731 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.02725/1.177, allocations: 8.509 MB / 1.17 GB, free: 4.672 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/1.177, allocations: 12.92 kB / 1.17 GB, free: 4.66 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005034/1.182, allocations: 0.8509 MB / 1.171 GB, free: 3.801 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0141/1.196, allocations: 6.421 MB / 1.177 GB, free: 13.45 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005033/1.197, allocations: 464.2 kB / 1.177 GB, free: 13 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002413/1.199, allocations: 0.6113 MB / 1.178 GB, free: 12.39 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02405/1.223, allocations: 9.026 MB / 1.187 GB, free: 3.055 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000308/1.224, allocations: 23.78 kB / 1.187 GB, free: 3.031 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002218/1.226, allocations: 256 kB / 1.187 GB, free: 2.781 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002367/1.226, allocations: 179.9 kB / 1.187 GB, free: 2.605 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01769/1.244, allocations: 7.45 MB / 1.195 GB, free: 11.15 MB / 0.9044 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.06019/1.304, allocations: 36.26 MB / 1.23 GB, free: 5.129 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007502/1.312, allocations: 4.277 MB / 1.234 GB, free: 0.8555 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005444/1.317, allocations: 3.311 MB / 1.237 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001441/1.318, allocations: 0.9544 MB / 1.238 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004747/1.323, allocations: 2.39 MB / 1.241 GB, free: 10 MB / 0.9512 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003063/1.326, allocations: 365.3 kB / 1.241 GB, free: 9.641 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=317): time 1.554e-05/1.326, allocations: 0 / 1.241 GB, free: 9.641 MB / 0.9512 GB Notification: Performance of matching and sorting (n=317): time 0.01596/1.342, allocations: 7.139 MB / 1.248 GB, free: 2.414 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.874e-05/1.342, allocations: 81.91 kB / 1.248 GB, free: 2.32 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0123/1.355, allocations: 5.663 MB / 1.254 GB, free: 12.68 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0009356/1.356, allocations: 93.69 kB / 1.254 GB, free: 12.58 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.004276/1.36, allocations: 3.199 MB / 1.257 GB, free: 9.367 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.002067/1.362, allocations: 1.116 MB / 1.258 GB, free: 8.262 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00292/1.365, allocations: 0.8541 MB / 1.259 GB, free: 7.395 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001006/1.365, allocations: 305.1 kB / 1.259 GB, free: 7.094 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004052/1.369, allocations: 2.16 MB / 1.261 GB, free: 4.926 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005131/1.374, allocations: 3.706 MB / 1.265 GB, free: 0.5195 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009649/1.384, allocations: 6.327 MB / 1.271 GB, free: 9.477 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.074e-05/1.384, allocations: 12 kB / 1.271 GB, free: 9.465 MB / 0.9825 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01477/1.399, allocations: 6.772 MB / 1.278 GB, free: 2.641 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001012/1.399, allocations: 61.94 kB / 1.278 GB, free: 2.574 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.015e-05/1.399, allocations: 48 kB / 1.278 GB, free: 2.527 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001097/1.4, allocations: 437.3 kB / 1.278 GB, free: 2.094 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004122/1.404, allocations: 1.002 MB / 1.279 GB, free: 1.09 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006202/1.411, allocations: 5.705 MB / 1.285 GB, free: 11.12 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006492/1.417, allocations: 287.4 kB / 1.285 GB, free: 10.84 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00119/1.418, allocations: 219.9 kB / 1.285 GB, free: 10.62 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.006185/1.425, allocations: 2.487 MB / 1.288 GB, free: 8.125 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002518/1.427, allocations: 0.5249 MB / 1.288 GB, free: 7.594 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01198/1.439, allocations: 5.27 MB / 1.293 GB, free: 2.266 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.858e-05/1.439, allocations: 35.98 kB / 1.293 GB, free: 2.23 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.464e-05/1.439, allocations: 4 kB / 1.293 GB, free: 2.227 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007345/1.447, allocations: 4.533 MB / 1.298 GB, free: 13.59 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02966/1.476, allocations: 12.04 MB / 1.309 GB, free: 1.449 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.919e-05/1.476, allocations: 8.125 kB / 1.309 GB, free: 1.441 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003183/1.48, allocations: 0.6358 MB / 1.31 GB, free: 0.8047 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009614/1.481, allocations: 380.7 kB / 1.31 GB, free: 440 kB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005494/1.481, allocations: 87.94 kB / 1.31 GB, free: 352 kB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006052/1.487, allocations: 5.611 MB / 1.316 GB, free: 10.46 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/1.487, allocations: 4 kB / 1.316 GB, free: 10.46 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01575/1.503, allocations: 7.769 MB / 1.324 GB, free: 2.602 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004455/1.507, allocations: 1.159 MB / 1.325 GB, free: 1.418 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002413/1.51, allocations: 67.98 kB / 1.325 GB, free: 1.352 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005069/1.515, allocations: 203.7 kB / 1.325 GB, free: 1.152 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008546/1.516, allocations: 198.2 kB / 1.325 GB, free: 0.957 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007811/1.517, allocations: 139.9 kB / 1.325 GB, free: 0.8203 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.009616/1.526, allocations: 3.959 MB / 1.329 GB, free: 12.88 MB / 1.045 GB Notification: Performance of sort global known variables: time 7.21e-07/1.526, allocations: 0 / 1.329 GB, free: 12.88 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.01038/1.537, allocations: 2.011 MB / 1.331 GB, free: 10.87 MB / 1.045 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.002704/1.54, allocations: 0.4928 MB / 1.332 GB, free: 10.39 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.02455/1.564, allocations: 11.62 MB / 1.343 GB, free: 14.73 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.283e-05/1.564, allocations: 4 kB / 1.343 GB, free: 14.72 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.004895/1.569, allocations: 2.542 MB / 1.345 GB, free: 12.15 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02098/1.59, allocations: 3.405 MB / 1.349 GB, free: 8.871 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03301/1.623, allocations: 14.08 MB / 1.362 GB, free: 10.75 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007619/1.631, allocations: 4.553 MB / 1.367 GB, free: 6.168 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002673/1.634, allocations: 495.2 kB / 1.367 GB, free: 5.684 MB / 1.076 GB Notification: Performance of SimCode: time 1.302e-06/1.634, allocations: 0 / 1.367 GB, free: 5.684 MB / 1.076 GB Notification: Performance of Templates: time 0.8184/2.452, allocations: 187.3 MB / 1.55 GB, free: 429.7 MB / 1.248 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