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.00136/0.001359, allocations: 105 kB / 16.41 MB, free: 6.457 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.001625/0.001625, allocations: 189.2 kB / 17.34 MB, free: 5.734 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.508/1.508, allocations: 222.9 MB / 241 MB, free: 15.16 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.664/2.664, allocations: 437.1 MB / 0.7112 GB, free: 4.453 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001961/0.001961, allocations: 67.89 kB / 1.019 GB, free: 9.445 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.099/1.1, allocations: 151.6 MB / 1.167 GB, free: 3.883 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.06569/1.166, allocations: 56.01 MB / 1.222 GB, free: 11.67 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.02832/1.195, allocations: 17.96 MB / 1.24 GB, free: 9.66 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003841/1.199, allocations: 79.56 kB / 1.24 GB, free: 9.582 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.003627/1.202, allocations: 0.9314 MB / 1.241 GB, free: 8.645 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.009491/1.212, allocations: 2.62 MB / 1.243 GB, free: 6.012 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.004962/1.217, allocations: 1.532 MB / 1.245 GB, free: 4.488 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.02778/1.245, allocations: 21.26 MB / 1.265 GB, free: 15.17 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01698/1.262, allocations: 10.67 MB / 1.276 GB, free: 4.387 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01781/1.279, allocations: 7.226 MB / 1.283 GB, free: 13.18 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01339/1.293, allocations: 6.354 MB / 1.289 GB, free: 6.801 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.003846/1.297, allocations: 0.9375 MB / 1.29 GB, free: 5.863 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008808/1.306, allocations: 1.709 MB / 1.292 GB, free: 4.152 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.005683/1.311, allocations: 2.333 MB / 1.294 GB, free: 1.812 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.01521/1.327, allocations: 4.715 MB / 1.298 GB, free: 13.08 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.03063/1.357, allocations: 13.21 MB / 1.311 GB, free: 15.83 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 1.199e-05/1.357, allocations: 4 kB / 1.311 GB, free: 15.82 MB / 1.045 GB Notification: Performance of FrontEnd: time 3.126e-06/1.357, allocations: 0 / 1.311 GB, free: 15.82 MB / 1.045 GB Notification: Performance of Transformations before backend: time 0.0005327/1.358, allocations: 0 / 1.311 GB, free: 15.82 MB / 1.045 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.02862/1.387, allocations: 8.721 MB / 1.32 GB, free: 7 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 6.266e-05/1.387, allocations: 12.92 kB / 1.32 GB, free: 6.988 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005862/1.392, allocations: 0.8942 MB / 1.321 GB, free: 6.09 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01747/1.41, allocations: 6.735 MB / 1.327 GB, free: 15.29 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005331/1.411, allocations: 460.4 kB / 1.328 GB, free: 14.84 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003031/1.414, allocations: 0.5975 MB / 1.328 GB, free: 14.25 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02992/1.444, allocations: 9.032 MB / 1.337 GB, free: 4.891 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002387/1.444, allocations: 19.83 kB / 1.337 GB, free: 4.871 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002345/1.446, allocations: 260 kB / 1.337 GB, free: 4.617 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002526/1.446, allocations: 180 kB / 1.338 GB, free: 4.441 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02027/1.467, allocations: 7.453 MB / 1.345 GB, free: 12.98 MB / 1.076 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.07541/1.542, allocations: 36.08 MB / 1.38 GB, free: 6.844 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009144/1.551, allocations: 4.282 MB / 1.384 GB, free: 2.555 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006742/1.558, allocations: 3.292 MB / 1.388 GB, free: 15.26 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001752/1.56, allocations: 0.9583 MB / 1.388 GB, free: 14.11 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005941/1.566, allocations: 2.39 MB / 1.391 GB, free: 11.69 MB / 1.123 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003589/1.57, allocations: 385 kB / 1.391 GB, free: 11.31 MB / 1.123 GB Notification: Performance of pre-optimization done (n=317): time 1.778e-05/1.57, allocations: 3.938 kB / 1.391 GB, free: 11.3 MB / 1.123 GB Notification: Performance of matching and sorting (n=317): time 0.01904/1.589, allocations: 7.151 MB / 1.398 GB, free: 4.066 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.504e-05/1.589, allocations: 85.89 kB / 1.398 GB, free: 3.969 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01395/1.603, allocations: 5.667 MB / 1.404 GB, free: 14.32 MB / 1.139 GB Notification: Performance of collectPreVariables (initialization): time 0.001079/1.604, allocations: 89.64 kB / 1.404 GB, free: 14.23 MB / 1.139 GB Notification: Performance of collectInitialEqns (initialization): time 0.005302/1.609, allocations: 3.283 MB / 1.407 GB, free: 10.92 MB / 1.139 GB Notification: Performance of collectInitialBindings (initialization): time 0.002407/1.612, allocations: 1.162 MB / 1.408 GB, free: 9.75 MB / 1.139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003389/1.615, allocations: 0.8624 MB / 1.409 GB, free: 8.875 MB / 1.139 GB Notification: Performance of setup shared object (initialization): time 0.000166/1.615, allocations: 309.1 kB / 1.409 GB, free: 8.57 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00542/1.621, allocations: 2.16 MB / 1.411 GB, free: 6.402 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007859/1.629, allocations: 3.697 MB / 1.415 GB, free: 2.008 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01299/1.642, allocations: 6.323 MB / 1.421 GB, free: 10.97 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001044/1.642, allocations: 16 kB / 1.421 GB, free: 10.95 MB / 1.154 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01929/1.661, allocations: 6.794 MB / 1.428 GB, free: 4.109 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001416/1.661, allocations: 54.7 kB / 1.428 GB, free: 4.051 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001331/1.662, allocations: 48 kB / 1.428 GB, free: 4.004 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001282/1.663, allocations: 431.6 kB / 1.428 GB, free: 3.578 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004769/1.668, allocations: 1.01 MB / 1.429 GB, free: 2.566 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007681/1.675, allocations: 5.722 MB / 1.435 GB, free: 12.57 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006231/1.682, allocations: 283.7 kB / 1.435 GB, free: 12.29 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001241/1.683, allocations: 220 kB / 1.435 GB, free: 12.08 MB / 1.17 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.007282/1.69, allocations: 2.485 MB / 1.438 GB, free: 9.582 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002854/1.693, allocations: 0.5551 MB / 1.438 GB, free: 9.023 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01402/1.707, allocations: 5.266 MB / 1.444 GB, free: 3.699 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.878e-05/1.707, allocations: 32 kB / 1.444 GB, free: 3.668 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.461e-05/1.707, allocations: 8 kB / 1.444 GB, free: 3.66 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009485/1.717, allocations: 4.524 MB / 1.448 GB, free: 15.03 MB / 1.186 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03608/1.753, allocations: 11.99 MB / 1.46 GB, free: 2.895 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-05/1.753, allocations: 0 / 1.46 GB, free: 2.895 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003467/1.757, allocations: 0.6438 MB / 1.46 GB, free: 2.25 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001158/1.758, allocations: 369.3 kB / 1.461 GB, free: 1.883 MB / 1.186 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006952/1.758, allocations: 83.95 kB / 1.461 GB, free: 1.801 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007329/1.766, allocations: 5.63 MB / 1.466 GB, free: 11.89 MB / 1.201 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/1.766, allocations: 4 kB / 1.466 GB, free: 11.89 MB / 1.201 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01761/1.783, allocations: 7.787 MB / 1.474 GB, free: 4.008 MB / 1.201 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00468/1.788, allocations: 1.185 MB / 1.475 GB, free: 2.801 MB / 1.201 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00236/1.791, allocations: 79.86 kB / 1.475 GB, free: 2.723 MB / 1.201 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00486/1.795, allocations: 191.7 kB / 1.475 GB, free: 2.535 MB / 1.201 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009094/1.796, allocations: 202.3 kB / 1.476 GB, free: 2.336 MB / 1.201 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007756/1.797, allocations: 135.8 kB / 1.476 GB, free: 2.203 MB / 1.201 GB Notification: Performance of sorting global known variables: time 0.01009/1.807, allocations: 3.963 MB / 1.48 GB, free: 14.26 MB / 1.217 GB Notification: Performance of sort global known variables: time 1.112e-06/1.807, allocations: 0 / 1.48 GB, free: 14.26 MB / 1.217 GB Notification: Performance of remove unused functions: time 0.01039/1.818, allocations: 2.02 MB / 1.481 GB, free: 12.24 MB / 1.217 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.002499/1.82, allocations: 0.4962 MB / 1.482 GB, free: 11.74 MB / 1.217 GB Notification: Performance of simCode: created initialization part: time 0.01243/1.833, allocations: 5.444 MB / 1.487 GB, free: 6.246 MB / 1.217 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-05/1.833, allocations: 4 kB / 1.487 GB, free: 6.242 MB / 1.217 GB Notification: Performance of simCode: created simulation system equations: time 0.005894/1.839, allocations: 2.545 MB / 1.49 GB, free: 3.668 MB / 1.217 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02234/1.861, allocations: 3.391 MB / 1.493 GB, free: 380 kB / 1.217 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03669/1.898, allocations: 14.09 MB / 1.507 GB, free: 2.215 MB / 1.232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01042/1.908, allocations: 4.632 MB / 1.511 GB, free: 13.55 MB / 1.248 GB Notification: Performance of simCode: alias equations: time 0.00942/1.918, allocations: 2.081 MB / 1.513 GB, free: 11.47 MB / 1.248 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002839/1.921, allocations: 463.3 kB / 1.514 GB, free: 11.02 MB / 1.248 GB Notification: Performance of SimCode: time 1.412e-06/1.921, allocations: 0 / 1.514 GB, free: 11.02 MB / 1.248 GB Notification: Performance of Templates: time 0.9908/2.912, allocations: 117.1 MB / 1.628 GB, free: 307.7 MB / 1.279 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 -s cvode -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