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.001512/0.001512, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00192/0.00192, allocations: 188.3 kB / 16.13 MB, free: 6.645 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.439/1.439, allocations: 222.9 MB / 239.8 MB, free: 4.566 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.409/2.409, allocations: 390.2 MB / 0.6642 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 59.91 kB / 0.8118 GB, free: 14.91 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8093/0.8106, allocations: 140.4 MB / 0.9489 GB, free: 9.168 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.05371/0.8643, allocations: 55.65 MB / 1.003 GB, free: 10.34 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.02611/0.8905, allocations: 17.93 MB / 1.021 GB, free: 8.359 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004651/0.8952, allocations: 67.62 kB / 1.021 GB, free: 8.293 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.003549/0.8988, allocations: 0.7302 MB / 1.022 GB, free: 7.559 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.009197/0.908, allocations: 2.325 MB / 1.024 GB, free: 5.223 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.005063/0.9131, allocations: 1.383 MB / 1.025 GB, free: 3.848 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.03009/0.9432, allocations: 27.81 MB / 1.052 GB, free: 7.977 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01319/0.9565, allocations: 8.693 MB / 1.061 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01239/0.9689, allocations: 5.525 MB / 1.066 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01156/0.9805, allocations: 6.17 MB / 1.072 GB, free: 3.418 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.002984/0.9835, allocations: 476 kB / 1.073 GB, free: 2.953 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007137/0.9907, allocations: 1.158 MB / 1.074 GB, free: 1.793 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.005093/0.9958, allocations: 1.798 MB / 1.076 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.01318/1.009, allocations: 4.11 MB / 1.08 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.02363/1.033, allocations: 12.64 MB / 1.092 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 1.027e-05/1.033, allocations: 3.938 kB / 1.092 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.695e-06/1.033, allocations: 0 / 1.092 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0006065/1.033, allocations: 0 / 1.092 GB, free: 15.18 MB / 0.8575 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.02835/1.062, allocations: 8.503 MB / 1.1 GB, free: 6.578 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.386e-05/1.062, allocations: 12.03 kB / 1.1 GB, free: 6.566 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005582/1.067, allocations: 0.8509 MB / 1.101 GB, free: 5.707 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01738/1.085, allocations: 6.612 MB / 1.108 GB, free: 15.03 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000618/1.085, allocations: 460.4 kB / 1.108 GB, free: 14.58 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002776/1.088, allocations: 0.6053 MB / 1.109 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02552/1.114, allocations: 9.021 MB / 1.117 GB, free: 4.633 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003255/1.114, allocations: 19.78 kB / 1.117 GB, free: 4.613 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002331/1.117, allocations: 264 kB / 1.118 GB, free: 4.355 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002617/1.117, allocations: 179.9 kB / 1.118 GB, free: 4.18 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02039/1.137, allocations: 7.449 MB / 1.125 GB, free: 12.72 MB / 0.8887 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.07269/1.21, allocations: 35.92 MB / 1.16 GB, free: 6.738 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007663/1.218, allocations: 4.286 MB / 1.164 GB, free: 2.449 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005681/1.223, allocations: 3.3 MB / 1.168 GB, free: 15.14 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001515/1.225, allocations: 0.9622 MB / 1.169 GB, free: 13.99 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00506/1.23, allocations: 2.394 MB / 1.171 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004173/1.234, allocations: 443.8 kB / 1.171 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=317): time 2.207e-05/1.234, allocations: 0 / 1.171 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of matching and sorting (n=317): time 0.01641/1.251, allocations: 7.101 MB / 1.178 GB, free: 3.934 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.029e-05/1.251, allocations: 85.91 kB / 1.178 GB, free: 3.836 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0118/1.263, allocations: 5.459 MB / 1.184 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0009717/1.264, allocations: 85.7 kB / 1.184 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.003425/1.267, allocations: 3.2 MB / 1.187 GB, free: 11.07 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.001967/1.269, allocations: 1.117 MB / 1.188 GB, free: 9.941 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001391/1.27, allocations: 0.858 MB / 1.189 GB, free: 9.07 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001181/1.271, allocations: 305.1 kB / 1.189 GB, free: 8.77 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003414/1.274, allocations: 2.148 MB / 1.191 GB, free: 6.613 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00448/1.278, allocations: 3.693 MB / 1.195 GB, free: 2.215 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008842/1.287, allocations: 6.3 MB / 1.201 GB, free: 11.2 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.086e-05/1.287, allocations: 15.98 kB / 1.201 GB, free: 11.18 MB / 0.9669 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01259/1.3, allocations: 6.753 MB / 1.208 GB, free: 4.379 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 7.322e-05/1.3, allocations: 53.69 kB / 1.208 GB, free: 4.32 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.942e-05/1.3, allocations: 48 kB / 1.208 GB, free: 4.273 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001009/1.301, allocations: 439.2 kB / 1.208 GB, free: 3.84 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003876/1.305, allocations: 0.9984 MB / 1.209 GB, free: 2.84 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005706/1.311, allocations: 5.267 MB / 1.214 GB, free: 13.3 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006281/1.317, allocations: 466.8 kB / 1.215 GB, free: 12.85 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001056/1.318, allocations: 216 kB / 1.215 GB, free: 12.64 MB / 0.9825 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.006579/1.325, allocations: 2.487 MB / 1.217 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002653/1.327, allocations: 0.5249 MB / 1.218 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01045/1.338, allocations: 5.239 MB / 1.223 GB, free: 4.309 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.349e-05/1.338, allocations: 32 kB / 1.223 GB, free: 4.277 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.411e-05/1.338, allocations: 7.938 kB / 1.223 GB, free: 4.27 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006621/1.345, allocations: 4.527 MB / 1.227 GB, free: 15.64 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.0234/1.368, allocations: 11.97 MB / 1.239 GB, free: 3.477 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.228e-05/1.368, allocations: 4.188 kB / 1.239 GB, free: 3.473 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002743/1.371, allocations: 0.6399 MB / 1.24 GB, free: 2.832 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008737/1.372, allocations: 369.3 kB / 1.24 GB, free: 2.465 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002317/1.372, allocations: 87.94 kB / 1.24 GB, free: 2.379 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005281/1.377, allocations: 5.176 MB / 1.245 GB, free: 12.93 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/1.377, allocations: 0 / 1.245 GB, free: 12.93 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01246/1.39, allocations: 7.618 MB / 1.253 GB, free: 5.227 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003865/1.394, allocations: 1.131 MB / 1.254 GB, free: 4.07 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001665/1.395, allocations: 63.98 kB / 1.254 GB, free: 4.008 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005102/1.4, allocations: 471.3 kB / 1.254 GB, free: 3.547 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004895/1.401, allocations: 198.2 kB / 1.254 GB, free: 3.352 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003726/1.401, allocations: 143.9 kB / 1.255 GB, free: 3.211 MB / 1.014 GB Notification: Performance of sorting global known variables: time 1.129/2.53, allocations: 3.803 MB / 1.258 GB, free: 276.8 MB / 1.014 GB Notification: Performance of sort global known variables: time 8.62e-07/2.53, allocations: 2.531 kB / 1.258 GB, free: 276.8 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.008906/2.539, allocations: 1.985 MB / 1.26 GB, free: 276.8 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.001907/2.541, allocations: 486 kB / 1.261 GB, free: 276.7 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.01104/2.552, allocations: 5.373 MB / 1.266 GB, free: 275.3 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.297e-05/2.552, allocations: 2.906 kB / 1.266 GB, free: 275.3 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.004211/2.556, allocations: 2.506 MB / 1.268 GB, free: 274.3 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01586/2.572, allocations: 3.233 MB / 1.271 GB, free: 273.7 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0234/2.596, allocations: 16.45 MB / 1.288 GB, free: 265.3 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004154/2.6, allocations: 4.628 MB / 1.292 GB, free: 263.6 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.006984/2.607, allocations: 1.989 MB / 1.294 GB, free: 262.8 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001534/2.608, allocations: 461.2 kB / 1.294 GB, free: 262.7 MB / 1.014 GB Notification: Performance of SimCode: time 7.62e-07/2.608, allocations: 0 / 1.294 GB, free: 262.7 MB / 1.014 GB Notification: Performance of Templates: time 0.1576/2.766, allocations: 116 MB / 1.408 GB, free: 154.8 MB / 1.014 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