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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0011/0.0011, allocations: 91.38 kB / 15.06 MB, free: 1.098 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.00101/0.00101, allocations: 172.7 kB / 15.95 MB, free: 208 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.396/1.396, allocations: 223.3 MB / 240 MB, free: 5.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.508/2.508, allocations: 390.9 MB / 0.666 GB, free: 2.418 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003852/0.0003855, allocations: 12 kB / 0.8153 GB, free: 13.58 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7936/0.794, allocations: 142.4 MB / 0.9544 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.0534/0.8475, allocations: 51.54 MB / 1.005 GB, free: 11.83 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.02474/0.8722, allocations: 16.83 MB / 1.021 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003918/0.8762, allocations: 67.56 kB / 1.021 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002688/0.8789, allocations: 0.6247 MB / 1.022 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.007997/0.8869, allocations: 1.986 MB / 1.024 GB, free: 8.266 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.004644/0.8916, allocations: 1.097 MB / 1.025 GB, free: 7.18 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.02707/0.9187, allocations: 23.6 MB / 1.048 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01138/0.9301, allocations: 7.146 MB / 1.055 GB, free: 8.297 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01284/0.943, allocations: 5.292 MB / 1.06 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01264/0.9557, allocations: 5.481 MB / 1.065 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.002863/0.9586, allocations: 344 kB / 1.066 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007118/0.9657, allocations: 0.7762 MB / 1.067 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.005348/0.9711, allocations: 1.529 MB / 1.068 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.006891/0.978, allocations: 1.611 MB / 1.07 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.01535/0.9934, allocations: 10.33 MB / 1.08 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.714e-06/0.9935, allocations: 0 / 1.08 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.364e-06/0.9935, allocations: 0 / 1.08 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0006147/0.9941, allocations: 0 / 1.08 GB, free: 14.86 MB / 0.8419 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.0208/1.015, allocations: 6.952 MB / 1.086 GB, free: 7.816 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.315e-05/1.015, allocations: 8.031 kB / 1.086 GB, free: 7.809 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005333/1.02, allocations: 0.8615 MB / 1.087 GB, free: 6.938 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01722/1.038, allocations: 6.464 MB / 1.094 GB, free: 424 kB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008008/1.038, allocations: 460.2 kB / 1.094 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003594/1.042, allocations: 0.6014 MB / 1.095 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02623/1.068, allocations: 8.97 MB / 1.103 GB, free: 6.066 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004033/1.069, allocations: 19.88 kB / 1.103 GB, free: 6.047 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002361/1.071, allocations: 264 kB / 1.104 GB, free: 5.789 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002696/1.071, allocations: 183.9 kB / 1.104 GB, free: 5.609 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02039/1.092, allocations: 7.418 MB / 1.111 GB, free: 14.18 MB / 0.8731 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.06554/1.157, allocations: 35.97 MB / 1.146 GB, free: 8.152 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008528/1.166, allocations: 4.274 MB / 1.15 GB, free: 3.879 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006133/1.172, allocations: 3.394 MB / 1.154 GB, free: 488 kB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001555/1.174, allocations: 0.9856 MB / 1.155 GB, free: 15.3 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005543/1.179, allocations: 2.386 MB / 1.157 GB, free: 12.88 MB / 0.92 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003918/1.183, allocations: 443.8 kB / 1.157 GB, free: 12.45 MB / 0.92 GB Notification: Performance of pre-optimization done (n=317): time 1.715e-05/1.183, allocations: 0 / 1.157 GB, free: 12.45 MB / 0.92 GB Notification: Performance of matching and sorting (n=317): time 0.01623/1.2, allocations: 7.09 MB / 1.164 GB, free: 5.266 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.257e-05/1.2, allocations: 89.91 kB / 1.164 GB, free: 5.164 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01267/1.212, allocations: 5.424 MB / 1.17 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.001071/1.214, allocations: 85.7 kB / 1.17 GB, free: 15.67 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.004759/1.218, allocations: 3.192 MB / 1.173 GB, free: 12.45 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.002346/1.221, allocations: 1.117 MB / 1.174 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008533/1.222, allocations: 88 kB / 1.174 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0005151/1.222, allocations: 491.6 kB / 1.175 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004962/1.227, allocations: 2.148 MB / 1.177 GB, free: 8.582 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006315/1.233, allocations: 3.673 MB / 1.18 GB, free: 4.207 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006368/1.24, allocations: 2.892 MB / 1.183 GB, free: 1.293 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.99e-05/1.24, allocations: 16 kB / 1.183 GB, free: 1.277 MB / 0.9356 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01674/1.257, allocations: 6.725 MB / 1.19 GB, free: 10.5 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001243/1.257, allocations: 57.7 kB / 1.19 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001069/1.257, allocations: 52.89 kB / 1.19 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001168/1.258, allocations: 437.3 kB / 1.19 GB, free: 9.949 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004429/1.263, allocations: 1.01 MB / 1.191 GB, free: 8.938 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006178/1.269, allocations: 5.268 MB / 1.196 GB, free: 3.406 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006299/1.275, allocations: 466.8 kB / 1.197 GB, free: 2.949 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001207/1.276, allocations: 220 kB / 1.197 GB, free: 2.734 MB / 0.9512 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.006614/1.283, allocations: 2.475 MB / 1.199 GB, free: 252 kB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002308/1.285, allocations: 0.5289 MB / 1.2 GB, free: 15.71 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01244/1.298, allocations: 5.235 MB / 1.205 GB, free: 10.42 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.512e-05/1.298, allocations: 32 kB / 1.205 GB, free: 10.39 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.544e-05/1.298, allocations: 7.953 kB / 1.205 GB, free: 10.38 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008438/1.306, allocations: 4.512 MB / 1.209 GB, free: 5.762 MB / 0.9669 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.03074/1.337, allocations: 11.96 MB / 1.221 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.601e-05/1.337, allocations: 0 / 1.221 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003089/1.34, allocations: 0.6594 MB / 1.222 GB, free: 8.945 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009336/1.341, allocations: 369.3 kB / 1.222 GB, free: 8.578 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005481/1.342, allocations: 83.95 kB / 1.222 GB, free: 8.496 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005662/1.348, allocations: 5.172 MB / 1.227 GB, free: 3.059 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/1.348, allocations: 4 kB / 1.227 GB, free: 3.055 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01418/1.362, allocations: 7.589 MB / 1.235 GB, free: 11.37 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004407/1.366, allocations: 1.221 MB / 1.236 GB, free: 10.12 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00203/1.368, allocations: 71.94 kB / 1.236 GB, free: 10.05 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005917/1.374, allocations: 465.9 kB / 1.236 GB, free: 9.602 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007031/1.375, allocations: 202.2 kB / 1.237 GB, free: 9.402 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006747/1.376, allocations: 139.9 kB / 1.237 GB, free: 9.266 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.008794/1.385, allocations: 3.76 MB / 1.24 GB, free: 5.527 MB / 0.9981 GB Notification: Performance of sort global known variables: time 6.71e-07/1.385, allocations: 0 / 1.24 GB, free: 5.527 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.009401/1.394, allocations: 1.991 MB / 1.242 GB, free: 3.531 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.00203/1.396, allocations: 473.4 kB / 1.243 GB, free: 3.07 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01165/1.408, allocations: 5.359 MB / 1.248 GB, free: 13.66 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 9.638e-06/1.408, allocations: 0 / 1.248 GB, free: 13.66 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.005653/1.413, allocations: 2.506 MB / 1.25 GB, free: 11.12 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02103/1.434, allocations: 3.228 MB / 1.254 GB, free: 7.961 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6063/2.041, allocations: 16.15 MB / 1.269 GB, free: 272.9 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005687/2.047, allocations: 4.628 MB / 1.274 GB, free: 272.1 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.006667/2.053, allocations: 1.986 MB / 1.276 GB, free: 272 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001438/2.055, allocations: 455.7 kB / 1.276 GB, free: 272 MB / 1.014 GB Notification: Performance of SimCode: time 8.21e-07/2.055, allocations: 2.375 kB / 1.276 GB, free: 272 MB / 1.014 GB Notification: Performance of Templates: time 0.1573/2.212, allocations: 112 MB / 1.386 GB, free: 178.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