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.007534/0.007534, allocations: 100.7 kB / 15.87 MB, free: 5.867 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.001617/0.001617, allocations: 192.2 kB / 16.79 MB, free: 5.809 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.422/1.422, allocations: 222.9 MB / 240.5 MB, free: 4.578 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.416/2.416, allocations: 390.2 MB / 0.6649 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 59.91 kB / 0.8125 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7815/0.783, allocations: 140.3 MB / 0.9496 GB, free: 9.184 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.0536/0.8367, allocations: 55.66 MB / 1.004 GB, free: 10.28 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.02419/0.8609, allocations: 17.93 MB / 1.021 GB, free: 8.297 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00408/0.865, allocations: 67.62 kB / 1.021 GB, free: 8.23 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.003204/0.8683, allocations: 0.7263 MB / 1.022 GB, free: 7.5 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.007619/0.8759, allocations: 2.321 MB / 1.024 GB, free: 5.168 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.003901/0.8798, allocations: 1.381 MB / 1.026 GB, free: 3.793 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.02449/0.9043, allocations: 27.81 MB / 1.053 GB, free: 7.922 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01403/0.9184, allocations: 8.697 MB / 1.061 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01247/0.9309, allocations: 5.521 MB / 1.067 GB, free: 9.559 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0116/0.9426, allocations: 6.185 MB / 1.073 GB, free: 3.348 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.00267/0.9453, allocations: 472 kB / 1.073 GB, free: 2.887 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006398/0.9517, allocations: 1.151 MB / 1.074 GB, free: 1.734 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.003268/0.955, allocations: 1.794 MB / 1.076 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.009438/0.9645, allocations: 4.11 MB / 1.08 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.01291/0.9774, allocations: 10.63 MB / 1.091 GB, free: 1.148 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.9775, allocations: 4 kB / 1.091 GB, free: 1.145 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.264e-06/0.9775, allocations: 0 / 1.091 GB, free: 1.145 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0005439/0.978, allocations: 0 / 1.091 GB, free: 1.145 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.02365/1.002, allocations: 8.499 MB / 1.099 GB, free: 8.551 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.089e-05/1.002, allocations: 8.031 kB / 1.099 GB, free: 8.543 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004603/1.006, allocations: 0.8548 MB / 1.1 GB, free: 7.68 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01337/1.02, allocations: 6.622 MB / 1.106 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004555/1.02, allocations: 464.3 kB / 1.107 GB, free: 0.5391 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00212/1.022, allocations: 0.5937 MB / 1.107 GB, free: 15.94 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02123/1.044, allocations: 9.024 MB / 1.116 GB, free: 6.598 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000254/1.044, allocations: 23.78 kB / 1.116 GB, free: 6.574 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001742/1.046, allocations: 259.9 kB / 1.116 GB, free: 6.32 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002089/1.046, allocations: 183.9 kB / 1.117 GB, free: 6.141 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01588/1.062, allocations: 7.449 MB / 1.124 GB, free: 14.68 MB / 0.8887 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.05456/1.116, allocations: 35.9 MB / 1.159 GB, free: 8.715 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006791/1.123, allocations: 4.294 MB / 1.163 GB, free: 4.418 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004926/1.128, allocations: 3.312 MB / 1.166 GB, free: 1.098 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001377/1.13, allocations: 0.9544 MB / 1.167 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004348/1.134, allocations: 2.394 MB / 1.17 GB, free: 13.53 MB / 0.9356 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00316/1.137, allocations: 443.8 kB / 1.17 GB, free: 13.09 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=317): time 1.379e-05/1.137, allocations: 0 / 1.17 GB, free: 13.09 MB / 0.9356 GB Notification: Performance of matching and sorting (n=317): time 0.01384/1.151, allocations: 7.101 MB / 1.177 GB, free: 5.898 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.572e-05/1.151, allocations: 85.91 kB / 1.177 GB, free: 5.801 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01046/1.162, allocations: 5.459 MB / 1.182 GB, free: 372 kB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0008024/1.162, allocations: 89.7 kB / 1.182 GB, free: 276 kB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.003549/1.166, allocations: 3.196 MB / 1.186 GB, free: 13.04 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.001812/1.168, allocations: 1.113 MB / 1.187 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002132/1.17, allocations: 0.8502 MB / 1.187 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001031/1.17, allocations: 313 kB / 1.188 GB, free: 10.74 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003659/1.174, allocations: 2.152 MB / 1.19 GB, free: 8.578 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004845/1.179, allocations: 3.685 MB / 1.193 GB, free: 4.188 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008991/1.188, allocations: 6.3 MB / 1.2 GB, free: 13.17 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-05/1.188, allocations: 12 kB / 1.2 GB, free: 13.16 MB / 0.9669 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01286/1.201, allocations: 6.752 MB / 1.206 GB, free: 6.355 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 8.551e-05/1.201, allocations: 61.69 kB / 1.206 GB, free: 6.289 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.714e-05/1.201, allocations: 48 kB / 1.206 GB, free: 6.242 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001025/1.202, allocations: 431.8 kB / 1.207 GB, free: 5.816 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003844/1.206, allocations: 1.006 MB / 1.208 GB, free: 4.809 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005716/1.211, allocations: 5.26 MB / 1.213 GB, free: 15.28 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005777/1.217, allocations: 470.8 kB / 1.213 GB, free: 14.82 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009195/1.218, allocations: 216.2 kB / 1.213 GB, free: 14.61 MB / 0.9825 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.00545/1.224, allocations: 2.49 MB / 1.216 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002087/1.226, allocations: 0.5249 MB / 1.216 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01007/1.236, allocations: 5.247 MB / 1.222 GB, free: 6.27 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.21e-05/1.236, allocations: 32 kB / 1.222 GB, free: 6.238 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.906e-05/1.236, allocations: 7.938 kB / 1.222 GB, free: 6.23 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006734/1.243, allocations: 4.531 MB / 1.226 GB, free: 1.594 MB / 0.9825 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.0264/1.269, allocations: 11.96 MB / 1.238 GB, free: 5.445 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.325e-05/1.269, allocations: 0 / 1.238 GB, free: 5.445 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002926/1.272, allocations: 0.6438 MB / 1.238 GB, free: 4.801 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009109/1.273, allocations: 369.3 kB / 1.239 GB, free: 4.434 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003986/1.273, allocations: 87.95 kB / 1.239 GB, free: 4.348 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00533/1.279, allocations: 5.184 MB / 1.244 GB, free: 14.9 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.574e-06/1.279, allocations: 0 / 1.244 GB, free: 14.9 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01296/1.292, allocations: 7.61 MB / 1.251 GB, free: 7.195 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003809/1.296, allocations: 1.135 MB / 1.252 GB, free: 6.035 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001713/1.297, allocations: 71.98 kB / 1.252 GB, free: 5.965 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00487/1.302, allocations: 467.3 kB / 1.253 GB, free: 5.508 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006267/1.303, allocations: 202.2 kB / 1.253 GB, free: 5.309 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005543/1.303, allocations: 139.9 kB / 1.253 GB, free: 5.172 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.00783/1.311, allocations: 3.807 MB / 1.257 GB, free: 1.387 MB / 1.014 GB Notification: Performance of sort global known variables: time 3.81e-07/1.311, allocations: 0 / 1.257 GB, free: 1.387 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.5763/1.888, allocations: 1.975 MB / 1.259 GB, free: 278.3 MB / 1.014 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.002483/1.89, allocations: 488.1 kB / 1.259 GB, free: 278.2 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.01293/1.903, allocations: 5.366 MB / 1.265 GB, free: 277.2 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.498e-05/1.903, allocations: 6.984 kB / 1.265 GB, free: 277.2 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.006002/1.909, allocations: 2.499 MB / 1.267 GB, free: 276.2 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0194/1.929, allocations: 3.23 MB / 1.27 GB, free: 275.6 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03326/1.962, allocations: 16.51 MB / 1.286 GB, free: 267.1 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00804/1.97, allocations: 4.556 MB / 1.291 GB, free: 265.5 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002465/1.972, allocations: 487.2 kB / 1.291 GB, free: 265.5 MB / 1.014 GB Notification: Performance of SimCode: time 1.002e-06/1.972, allocations: 3.656 kB / 1.291 GB, free: 265.5 MB / 1.014 GB Notification: Performance of Templates: time 0.1999/2.172, allocations: 185.8 MB / 1.473 GB, free: 88.51 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/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