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.001613/0.001613, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.002103/0.002103, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.443/1.443, allocations: 222.9 MB / 241 MB, free: 15.18 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.193/2.193, allocations: 390.2 MB / 0.6655 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 67.83 kB / 0.9515 GB, free: 7.676 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8846/0.8861, allocations: 140.4 MB / 1.089 GB, free: 5.539 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.06507/0.9512, allocations: 55.99 MB / 1.143 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.03245/0.9837, allocations: 17.94 MB / 1.161 GB, free: 0.5234 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004261/0.988, allocations: 77.06 kB / 1.161 GB, free: 0.4961 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.003601/0.9917, allocations: 0.8999 MB / 1.162 GB, free: 15.92 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.009958/1.002, allocations: 2.502 MB / 1.164 GB, free: 14.41 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.005465/1.007, allocations: 1.53 MB / 1.166 GB, free: 13.55 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0327/1.04, allocations: 21.26 MB / 1.186 GB, free: 2.223 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02214/1.062, allocations: 10.68 MB / 1.197 GB, free: 12.32 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02038/1.082, allocations: 7.226 MB / 1.204 GB, free: 7.891 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01468/1.097, allocations: 6.37 MB / 1.21 GB, free: 1.496 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.004177/1.101, allocations: 0.9375 MB / 1.211 GB, free: 0.5586 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009042/1.11, allocations: 1.694 MB / 1.213 GB, free: 14.86 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.005125/1.116, allocations: 2.345 MB / 1.215 GB, free: 12.51 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0133/1.129, allocations: 4.707 MB / 1.22 GB, free: 7.785 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.02189/1.151, allocations: 13.18 MB / 1.232 GB, free: 10.57 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 8.677e-06/1.151, allocations: 0 / 1.232 GB, free: 10.57 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.803e-06/1.151, allocations: 0 / 1.232 GB, free: 10.57 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 0.0005477/1.152, allocations: 0 / 1.232 GB, free: 10.57 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.02948/1.181, allocations: 8.516 MB / 1.241 GB, free: 1.965 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.664e-05/1.181, allocations: 8.031 kB / 1.241 GB, free: 1.957 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005494/1.187, allocations: 0.8625 MB / 1.242 GB, free: 1.086 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01612/1.203, allocations: 6.695 MB / 1.248 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006162/1.203, allocations: 464.3 kB / 1.249 GB, free: 9.875 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002927/1.206, allocations: 0.5975 MB / 1.249 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02579/1.232, allocations: 9.025 MB / 1.258 GB, free: 15.93 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003384/1.233, allocations: 19.81 kB / 1.258 GB, free: 15.91 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00225/1.235, allocations: 264 kB / 1.258 GB, free: 15.65 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002364/1.235, allocations: 183.9 kB / 1.258 GB, free: 15.47 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01919/1.254, allocations: 7.449 MB / 1.266 GB, free: 8.016 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.06369/1.318, allocations: 36 MB / 1.301 GB, free: 1.949 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007668/1.326, allocations: 4.277 MB / 1.305 GB, free: 13.67 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005618/1.331, allocations: 3.309 MB / 1.308 GB, free: 10.35 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001496/1.333, allocations: 0.9505 MB / 1.309 GB, free: 9.215 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005067/1.338, allocations: 2.39 MB / 1.312 GB, free: 6.789 MB / 1.045 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003024/1.341, allocations: 379.7 kB / 1.312 GB, free: 6.414 MB / 1.045 GB Notification: Performance of pre-optimization done (n=317): time 1.428e-05/1.341, allocations: 0 / 1.312 GB, free: 6.414 MB / 1.045 GB Notification: Performance of matching and sorting (n=317): time 0.01734/1.359, allocations: 7.125 MB / 1.319 GB, free: 15.2 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.595e-05/1.359, allocations: 89.89 kB / 1.319 GB, free: 15.1 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01238/1.371, allocations: 5.658 MB / 1.325 GB, free: 9.461 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 0.0009681/1.372, allocations: 93.7 kB / 1.325 GB, free: 9.363 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.004275/1.376, allocations: 3.2 MB / 1.328 GB, free: 6.129 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.002254/1.379, allocations: 1.117 MB / 1.329 GB, free: 4.996 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002783/1.381, allocations: 0.858 MB / 1.33 GB, free: 4.125 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001096/1.382, allocations: 305.1 kB / 1.33 GB, free: 3.824 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004084/1.386, allocations: 2.16 MB / 1.332 GB, free: 1.656 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005052/1.391, allocations: 3.693 MB / 1.336 GB, free: 13.26 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009233/1.4, allocations: 6.327 MB / 1.342 GB, free: 6.215 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.198e-05/1.4, allocations: 16 kB / 1.342 GB, free: 6.199 MB / 1.076 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01399/1.414, allocations: 6.76 MB / 1.348 GB, free: 15.39 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001109/1.414, allocations: 64.11 kB / 1.349 GB, free: 15.32 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001585/1.414, allocations: 48 kB / 1.349 GB, free: 15.27 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001134/1.416, allocations: 442.9 kB / 1.349 GB, free: 14.84 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004009/1.42, allocations: 0.9944 MB / 1.35 GB, free: 13.84 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006683/1.426, allocations: 5.702 MB / 1.356 GB, free: 7.863 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004922/1.431, allocations: 287.5 kB / 1.356 GB, free: 7.582 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008284/1.432, allocations: 220 kB / 1.356 GB, free: 7.367 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.005399/1.437, allocations: 2.475 MB / 1.358 GB, free: 4.879 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00203/1.44, allocations: 0.5326 MB / 1.359 GB, free: 4.34 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01072/1.45, allocations: 5.274 MB / 1.364 GB, free: 15.01 MB / 1.107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.49e-05/1.45, allocations: 32 kB / 1.364 GB, free: 14.98 MB / 1.107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.133e-05/1.45, allocations: 4.047 kB / 1.364 GB, free: 14.97 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007637/1.458, allocations: 4.536 MB / 1.369 GB, free: 10.33 MB / 1.107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02527/1.483, allocations: 11.97 MB / 1.38 GB, free: 14.21 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.474e-05/1.483, allocations: 4 kB / 1.38 GB, free: 14.21 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002995/1.486, allocations: 0.6438 MB / 1.381 GB, free: 13.56 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009853/1.487, allocations: 370.7 kB / 1.381 GB, free: 13.2 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003855/1.488, allocations: 83.95 kB / 1.381 GB, free: 13.11 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006192/1.494, allocations: 5.625 MB / 1.387 GB, free: 7.219 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/1.494, allocations: 3.938 kB / 1.387 GB, free: 7.215 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01403/1.508, allocations: 7.757 MB / 1.394 GB, free: 15.36 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003628/1.512, allocations: 1.162 MB / 1.396 GB, free: 14.17 MB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001569/1.513, allocations: 67.92 kB / 1.396 GB, free: 14.11 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003896/1.517, allocations: 191.7 kB / 1.396 GB, free: 13.92 MB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005857/1.518, allocations: 198.2 kB / 1.396 GB, free: 13.72 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005466/1.518, allocations: 135.9 kB / 1.396 GB, free: 13.59 MB / 1.139 GB Notification: Performance of sorting global known variables: time 0.008154/1.527, allocations: 3.971 MB / 1.4 GB, free: 9.641 MB / 1.139 GB Notification: Performance of sort global known variables: time 3.5e-07/1.527, allocations: 4 kB / 1.4 GB, free: 9.637 MB / 1.139 GB Notification: Performance of remove unused functions: time 0.007798/1.534, allocations: 2.011 MB / 1.402 GB, free: 7.621 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.001797/1.536, allocations: 0.4942 MB / 1.402 GB, free: 7.121 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.009904/1.546, allocations: 5.432 MB / 1.408 GB, free: 1.637 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 1.149e-05/1.546, allocations: 7.781 kB / 1.408 GB, free: 1.629 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.004283/1.55, allocations: 2.534 MB / 1.41 GB, free: 15.07 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01605/1.566, allocations: 3.403 MB / 1.414 GB, free: 11.76 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02868/1.595, allocations: 13.92 MB / 1.427 GB, free: 13.79 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006293/1.602, allocations: 4.557 MB / 1.432 GB, free: 9.195 MB / 1.17 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002496/1.604, allocations: 487.2 kB / 1.432 GB, free: 8.719 MB / 1.17 GB Notification: Performance of SimCode: time 1.703e-06/1.604, allocations: 0 / 1.432 GB, free: 8.719 MB / 1.17 GB Notification: Performance of Templates: time 0.8886/2.493, allocations: 188 MB / 1.616 GB, free: 416.5 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