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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001039/0.001039, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.001322/0.001322, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.552/2.552, allocations: 437.7 MB / 0.7117 GB, free: 7.113 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003194/0.0003195, allocations: 8 kB / 0.8722 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.629/0.6293, allocations: 153.8 MB / 1.022 GB, free: 80 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.04779/0.6771, allocations: 51.55 MB / 1.073 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02105/0.6982, allocations: 16.83 MB / 1.089 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002269/0.7005, allocations: 67.56 kB / 1.089 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001951/0.7025, allocations: 0.6287 MB / 1.09 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.005395/0.7079, allocations: 1.982 MB / 1.092 GB, free: 8.824 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.00303/0.7109, allocations: 1.095 MB / 1.093 GB, free: 7.738 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.02095/0.7319, allocations: 23.61 MB / 1.116 GB, free: 68 kB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009578/0.7415, allocations: 7.146 MB / 1.123 GB, free: 8.848 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009794/0.7513, allocations: 5.296 MB / 1.128 GB, free: 3.531 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009261/0.7606, allocations: 5.466 MB / 1.133 GB, free: 14.04 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.001367/0.762, allocations: 348 kB / 1.134 GB, free: 13.7 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004291/0.7663, allocations: 0.7879 MB / 1.134 GB, free: 12.91 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.00193/0.7683, allocations: 1.525 MB / 1.136 GB, free: 11.38 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.002975/0.7713, allocations: 1.615 MB / 1.138 GB, free: 9.754 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.01121/0.7825, allocations: 10.32 MB / 1.148 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.7825, allocations: 0 / 1.148 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.974e-06/0.7825, allocations: 0 / 1.148 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0003929/0.7829, allocations: 0 / 1.148 GB, free: 15.41 MB / 0.9044 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.01454/0.7975, allocations: 6.956 MB / 1.154 GB, free: 8.367 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/0.7975, allocations: 12.03 kB / 1.154 GB, free: 8.355 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003366/0.8009, allocations: 0.85 MB / 1.155 GB, free: 7.496 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01109/0.812, allocations: 6.46 MB / 1.162 GB, free: 0.9766 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003282/0.8124, allocations: 464.2 kB / 1.162 GB, free: 0.5195 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001173/0.8136, allocations: 0.5937 MB / 1.163 GB, free: 15.92 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01574/0.8293, allocations: 8.985 MB / 1.171 GB, free: 6.617 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001251/0.8295, allocations: 23.81 kB / 1.171 GB, free: 6.594 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006817/0.8302, allocations: 263.9 kB / 1.172 GB, free: 6.336 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001584/0.8303, allocations: 183.9 kB / 1.172 GB, free: 6.156 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01262/0.843, allocations: 7.41 MB / 1.179 GB, free: 14.74 MB / 0.9356 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.04185/0.8848, allocations: 35.97 MB / 1.214 GB, free: 8.707 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005896/0.8908, allocations: 4.276 MB / 1.218 GB, free: 4.43 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004464/0.8952, allocations: 3.378 MB / 1.222 GB, free: 1.043 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0012/0.8965, allocations: 0.9856 MB / 1.223 GB, free: 15.87 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003603/0.9001, allocations: 2.386 MB / 1.225 GB, free: 13.45 MB / 0.9825 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002484/0.9026, allocations: 443.8 kB / 1.225 GB, free: 13.01 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=317): time 6.692e-06/0.9026, allocations: 0 / 1.225 GB, free: 13.01 MB / 0.9825 GB Notification: Performance of matching and sorting (n=317): time 0.01267/0.9153, allocations: 7.089 MB / 1.232 GB, free: 5.832 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.139e-05/0.9154, allocations: 89.89 kB / 1.232 GB, free: 5.73 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007475/0.9228, allocations: 5.42 MB / 1.238 GB, free: 340 kB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0004982/0.9234, allocations: 93.7 kB / 1.238 GB, free: 240 kB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.002835/0.9262, allocations: 3.184 MB / 1.241 GB, free: 13.02 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001217/0.9274, allocations: 1.121 MB / 1.242 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000233/0.9277, allocations: 84 kB / 1.242 GB, free: 11.8 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0002543/0.9279, allocations: 491.6 kB / 1.243 GB, free: 11.31 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003206/0.9312, allocations: 2.144 MB / 1.245 GB, free: 9.156 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003983/0.9352, allocations: 3.674 MB / 1.248 GB, free: 4.785 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003973/0.9391, allocations: 2.9 MB / 1.251 GB, free: 1.863 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.148e-05/0.9392, allocations: 12 kB / 1.251 GB, free: 1.852 MB / 0.9981 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.5072/1.446, allocations: 6.73 MB / 1.258 GB, free: 209.3 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001191/1.447, allocations: 53 kB / 1.258 GB, free: 209.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001069/1.447, allocations: 51.16 kB / 1.258 GB, free: 209.2 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001171/1.448, allocations: 440 kB / 1.258 GB, free: 209.2 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004403/1.452, allocations: 1.013 MB / 1.259 GB, free: 209.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005945/1.458, allocations: 5.246 MB / 1.264 GB, free: 205.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005663/1.464, allocations: 476.4 kB / 1.265 GB, free: 205.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000878/1.465, allocations: 216.1 kB / 1.265 GB, free: 205.4 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00504/1.47, allocations: 2.476 MB / 1.267 GB, free: 204.4 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001425/1.471, allocations: 0.5257 MB / 1.268 GB, free: 204.3 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009683/1.481, allocations: 5.242 MB / 1.273 GB, free: 202.3 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.786e-05/1.481, allocations: 36.73 kB / 1.273 GB, free: 202.2 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.696e-05/1.481, allocations: 10.8 kB / 1.273 GB, free: 202.2 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006602/1.488, allocations: 4.51 MB / 1.277 GB, free: 200.4 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.01899/1.507, allocations: 11.97 MB / 1.289 GB, free: 195.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.226e-05/1.507, allocations: 2.594 kB / 1.289 GB, free: 195.8 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002651/1.509, allocations: 0.6508 MB / 1.29 GB, free: 195.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007875/1.51, allocations: 373.6 kB / 1.29 GB, free: 195.6 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002966/1.511, allocations: 82.27 kB / 1.29 GB, free: 195.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004165/1.515, allocations: 5.174 MB / 1.295 GB, free: 191.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/1.515, allocations: 0 / 1.295 GB, free: 191.3 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009837/1.525, allocations: 7.593 MB / 1.303 GB, free: 186.4 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002775/1.527, allocations: 1.223 MB / 1.304 GB, free: 185.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001194/1.529, allocations: 71.94 kB / 1.304 GB, free: 185.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004129/1.533, allocations: 473.5 kB / 1.304 GB, free: 184.7 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004482/1.533, allocations: 202.1 kB / 1.305 GB, free: 184.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004182/1.534, allocations: 143.9 kB / 1.305 GB, free: 184.3 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.005585/1.539, allocations: 3.76 MB / 1.308 GB, free: 180.6 MB / 0.9981 GB Notification: Performance of sort global known variables: time 3.01e-07/1.539, allocations: 0 / 1.308 GB, free: 180.6 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.005864/1.545, allocations: 1.991 MB / 1.31 GB, free: 178.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001129/1.546, allocations: 466.7 kB / 1.311 GB, free: 178.3 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.007269/1.554, allocations: 5.354 MB / 1.316 GB, free: 172.9 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/1.554, allocations: 0 / 1.316 GB, free: 172.9 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003086/1.557, allocations: 2.502 MB / 1.318 GB, free: 170.4 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01304/1.57, allocations: 3.229 MB / 1.322 GB, free: 167.3 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0221/1.592, allocations: 16.14 MB / 1.337 GB, free: 151.1 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004654/1.597, allocations: 4.635 MB / 1.342 GB, free: 146.4 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.007494/1.604, allocations: 1.99 MB / 1.344 GB, free: 144.4 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002092/1.606, allocations: 455.2 kB / 1.344 GB, free: 144 MB / 0.9981 GB Notification: Performance of SimCode: time 1.062e-06/1.606, allocations: 8.312 kB / 1.344 GB, free: 144 MB / 0.9981 GB Notification: Performance of Templates: time 0.1414/1.748, allocations: 112 MB / 1.454 GB, free: 33.08 MB / 0.9981 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches