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.001182/0.001182, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001188/0.001188, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.376/1.376, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.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.248/2.248, allocations: 390.3 MB / 0.6655 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 63.91 kB / 0.9515 GB, free: 7.664 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9149/0.9163, allocations: 140.4 MB / 1.089 GB, free: 5.785 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.05729/0.9736, allocations: 56 MB / 1.143 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.02626/0.9999, allocations: 17.94 MB / 1.161 GB, free: 0.7656 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004089/1.004, allocations: 86.25 kB / 1.161 GB, free: 0.7305 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.003523/1.008, allocations: 0.899 MB / 1.162 GB, free: 160 kB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.009534/1.017, allocations: 2.5 MB / 1.164 GB, free: 14.65 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.005254/1.022, allocations: 1.536 MB / 1.166 GB, free: 13.79 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.02483/1.047, allocations: 21.25 MB / 1.186 GB, free: 2.383 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01545/1.063, allocations: 10.69 MB / 1.197 GB, free: 12.48 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01768/1.081, allocations: 7.226 MB / 1.204 GB, free: 7.992 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01318/1.094, allocations: 6.366 MB / 1.21 GB, free: 1.602 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.003159/1.097, allocations: 0.9375 MB / 1.211 GB, free: 0.6641 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007753/1.105, allocations: 1.698 MB / 1.213 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.003929/1.109, allocations: 2.337 MB / 1.215 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.01038/1.119, allocations: 4.707 MB / 1.22 GB, free: 7.895 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.01861/1.138, allocations: 13.18 MB / 1.233 GB, free: 10.68 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/1.138, allocations: 0 / 1.233 GB, free: 10.68 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.843e-06/1.138, allocations: 4 kB / 1.233 GB, free: 10.68 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 0.0004634/1.138, allocations: 0 / 1.233 GB, free: 10.68 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.02518/1.163, allocations: 8.516 MB / 1.241 GB, free: 2.066 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.882e-05/1.164, allocations: 8.031 kB / 1.241 GB, free: 2.059 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004859/1.168, allocations: 0.8508 MB / 1.242 GB, free: 1.199 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01406/1.182, allocations: 6.695 MB / 1.248 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005112/1.183, allocations: 472.3 kB / 1.249 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00258/1.186, allocations: 0.5937 MB / 1.249 GB, free: 9.387 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02427/1.21, allocations: 9.025 MB / 1.258 GB, free: 40 kB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003382/1.21, allocations: 23.81 kB / 1.258 GB, free: 16 kB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002267/1.213, allocations: 260 kB / 1.258 GB, free: 15.76 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000224/1.213, allocations: 175.9 kB / 1.258 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01762/1.23, allocations: 7.449 MB / 1.266 GB, free: 8.133 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 0.06129/1.292, allocations: 36.01 MB / 1.301 GB, free: 2.059 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007815/1.3, allocations: 4.273 MB / 1.305 GB, free: 13.78 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005699/1.305, allocations: 3.301 MB / 1.308 GB, free: 10.47 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001481/1.307, allocations: 0.9583 MB / 1.309 GB, free: 9.328 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005058/1.312, allocations: 2.39 MB / 1.312 GB, free: 6.902 MB / 1.045 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003035/1.315, allocations: 371.8 kB / 1.312 GB, free: 6.535 MB / 1.045 GB Notification: Performance of pre-optimization done (n=317): time 1.452e-05/1.315, allocations: 0 / 1.312 GB, free: 6.535 MB / 1.045 GB Notification: Performance of matching and sorting (n=317): time 0.01607/1.331, allocations: 7.136 MB / 1.319 GB, free: 15.31 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.369e-05/1.331, allocations: 85.91 kB / 1.319 GB, free: 15.21 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01235/1.344, allocations: 5.658 MB / 1.325 GB, free: 9.574 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 0.0009606/1.345, allocations: 85.7 kB / 1.325 GB, free: 9.484 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.004289/1.349, allocations: 3.196 MB / 1.328 GB, free: 6.254 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.002178/1.351, allocations: 1.121 MB / 1.329 GB, free: 5.117 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003091/1.354, allocations: 0.8619 MB / 1.33 GB, free: 4.242 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001099/1.354, allocations: 309 kB / 1.33 GB, free: 3.938 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004202/1.359, allocations: 2.16 MB / 1.332 GB, free: 1.77 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005496/1.364, allocations: 3.697 MB / 1.336 GB, free: 13.36 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01024/1.374, allocations: 6.319 MB / 1.342 GB, free: 6.328 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.096e-05/1.375, allocations: 16 kB / 1.342 GB, free: 6.312 MB / 1.076 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01553/1.39, allocations: 6.766 MB / 1.348 GB, free: 15.5 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001104/1.39, allocations: 57.69 kB / 1.349 GB, free: 15.43 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.755e-05/1.39, allocations: 48 kB / 1.349 GB, free: 15.39 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001144/1.392, allocations: 438 kB / 1.349 GB, free: 14.95 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00424/1.396, allocations: 1.002 MB / 1.35 GB, free: 13.95 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006495/1.402, allocations: 5.707 MB / 1.356 GB, free: 7.969 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00588/1.408, allocations: 283.5 kB / 1.356 GB, free: 7.691 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001093/1.409, allocations: 220 kB / 1.356 GB, free: 7.477 MB / 1.092 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.005808/1.415, allocations: 2.477 MB / 1.358 GB, free: 4.988 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002363/1.418, allocations: 0.5287 MB / 1.359 GB, free: 4.453 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01131/1.429, allocations: 5.27 MB / 1.364 GB, free: 15.12 MB / 1.107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-05/1.429, allocations: 35.98 kB / 1.364 GB, free: 15.09 MB / 1.107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.475e-05/1.429, allocations: 4 kB / 1.364 GB, free: 15.09 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007461/1.436, allocations: 4.536 MB / 1.369 GB, free: 10.45 MB / 1.107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02776/1.464, allocations: 11.97 MB / 1.38 GB, free: 14.32 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.661e-05/1.464, allocations: 4 kB / 1.38 GB, free: 14.32 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003083/1.467, allocations: 0.6438 MB / 1.381 GB, free: 13.67 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009363/1.468, allocations: 370.7 kB / 1.381 GB, free: 13.3 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005149/1.469, allocations: 83.95 kB / 1.381 GB, free: 13.22 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006517/1.475, allocations: 5.633 MB / 1.387 GB, free: 7.324 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/1.475, allocations: 0 / 1.387 GB, free: 7.324 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01532/1.491, allocations: 7.753 MB / 1.394 GB, free: 15.47 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00381/1.495, allocations: 1.162 MB / 1.396 GB, free: 14.29 MB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002135/1.497, allocations: 67.92 kB / 1.396 GB, free: 14.22 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004498/1.501, allocations: 187.8 kB / 1.396 GB, free: 14.04 MB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007208/1.502, allocations: 210.2 kB / 1.396 GB, free: 13.83 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006312/1.503, allocations: 135.9 kB / 1.396 GB, free: 13.7 MB / 1.139 GB Notification: Performance of sorting global known variables: time 0.009024/1.512, allocations: 3.963 MB / 1.4 GB, free: 9.754 MB / 1.139 GB Notification: Performance of sort global known variables: time 3.21e-07/1.512, allocations: 0 / 1.4 GB, free: 9.754 MB / 1.139 GB Notification: Performance of remove unused functions: time 0.008745/1.521, allocations: 2.011 MB / 1.402 GB, free: 7.738 MB / 1.139 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.002115/1.523, allocations: 0.4925 MB / 1.402 GB, free: 7.242 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.01063/1.533, allocations: 5.437 MB / 1.408 GB, free: 1.754 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 1.245e-05/1.533, allocations: 7.781 kB / 1.408 GB, free: 1.746 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.004664/1.538, allocations: 2.537 MB / 1.41 GB, free: 15.18 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01826/1.556, allocations: 3.399 MB / 1.414 GB, free: 11.88 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03104/1.587, allocations: 13.93 MB / 1.427 GB, free: 13.89 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007145/1.595, allocations: 4.557 MB / 1.432 GB, free: 9.305 MB / 1.17 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002719/1.597, allocations: 491.2 kB / 1.432 GB, free: 8.824 MB / 1.17 GB Notification: Performance of SimCode: time 1.042e-06/1.597, allocations: 0 / 1.432 GB, free: 8.824 MB / 1.17 GB Notification: Performance of Templates: time 1.497/3.094, allocations: 188 MB / 1.616 GB, free: 421.6 MB / 1.311 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches