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.0009432/0.0009432, allocations: 97.78 kB / 16.02 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00126/0.00126, allocations: 182 kB / 16.92 MB, free: 6.918 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.398/1.398, allocations: 223.3 MB / 241 MB, free: 5.363 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.503/2.503, allocations: 390.9 MB / 0.667 GB, free: 2.398 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003747/0.0003748, allocations: 11.98 kB / 0.8166 GB, free: 13.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.775/0.7754, allocations: 142.4 MB / 0.9557 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.05722/0.8327, allocations: 54.55 MB / 1.009 GB, free: 8.816 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0244/0.8571, allocations: 17.73 MB / 1.026 GB, free: 7.039 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003843/0.861, allocations: 67.56 kB / 1.026 GB, free: 6.973 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002947/0.864, allocations: 0.7263 MB / 1.027 GB, free: 6.242 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.008997/0.873, allocations: 2.325 MB / 1.029 GB, free: 3.906 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.004504/0.8775, allocations: 1.38 MB / 1.031 GB, free: 2.535 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.03153/0.909, allocations: 27.8 MB / 1.058 GB, free: 6.672 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01301/0.9221, allocations: 8.418 MB / 1.066 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01137/0.9335, allocations: 5.205 MB / 1.071 GB, free: 8.922 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01213/0.9457, allocations: 5.783 MB / 1.077 GB, free: 3.113 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.003367/0.9491, allocations: 344 kB / 1.077 GB, free: 2.777 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007541/0.9567, allocations: 1.037 MB / 1.078 GB, free: 1.738 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.003782/0.9605, allocations: 1.591 MB / 1.08 GB, free: 144 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.009758/0.9703, allocations: 3.893 MB / 1.083 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.01375/0.984, allocations: 10.37 MB / 1.094 GB, free: 1.824 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.9841, allocations: 0 / 1.094 GB, free: 1.824 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.575e-06/0.9841, allocations: 0 / 1.094 GB, free: 1.824 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0005112/0.9846, allocations: 0 / 1.094 GB, free: 1.824 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.01854/1.003, allocations: 6.882 MB / 1.1 GB, free: 10.85 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/1.003, allocations: 12.02 kB / 1.1 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004563/1.008, allocations: 0.8586 MB / 1.101 GB, free: 9.973 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01502/1.023, allocations: 6.618 MB / 1.108 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000586/1.023, allocations: 460.4 kB / 1.108 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003404/1.027, allocations: 0.5936 MB / 1.109 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02759/1.055, allocations: 9.025 MB / 1.117 GB, free: 8.898 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003498/1.055, allocations: 27.88 kB / 1.117 GB, free: 8.871 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002131/1.057, allocations: 260 kB / 1.118 GB, free: 8.617 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002331/1.057, allocations: 179.9 kB / 1.118 GB, free: 8.441 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01841/1.076, allocations: 7.461 MB / 1.125 GB, free: 0.9727 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.06145/1.137, allocations: 35.99 MB / 1.16 GB, free: 10.92 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008315/1.146, allocations: 4.298 MB / 1.165 GB, free: 6.617 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006138/1.152, allocations: 3.332 MB / 1.168 GB, free: 3.277 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001708/1.154, allocations: 0.9818 MB / 1.169 GB, free: 2.109 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005593/1.159, allocations: 2.398 MB / 1.171 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004018/1.163, allocations: 447.8 kB / 1.172 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=317): time 1.617e-05/1.163, allocations: 4 kB / 1.172 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of matching and sorting (n=317): time 0.01666/1.18, allocations: 7.132 MB / 1.178 GB, free: 8.008 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.361e-05/1.18, allocations: 81.91 kB / 1.179 GB, free: 7.914 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01285/1.193, allocations: 5.467 MB / 1.184 GB, free: 2.469 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0009803/1.194, allocations: 89.7 kB / 1.184 GB, free: 2.375 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.004419/1.198, allocations: 3.196 MB / 1.187 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.002119/1.201, allocations: 1.117 MB / 1.188 GB, free: 14.01 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001252/1.202, allocations: 363.3 kB / 1.189 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001283/1.202, allocations: 305.1 kB / 1.189 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004751/1.207, allocations: 2.156 MB / 1.191 GB, free: 11.18 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006207/1.213, allocations: 3.693 MB / 1.195 GB, free: 6.789 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01092/1.224, allocations: 6.311 MB / 1.201 GB, free: 15.76 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.602e-05/1.224, allocations: 16 kB / 1.201 GB, free: 15.75 MB / 0.9669 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01507/1.239, allocations: 6.76 MB / 1.207 GB, free: 8.934 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001022/1.239, allocations: 55.11 kB / 1.207 GB, free: 8.875 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.383e-05/1.239, allocations: 56.09 kB / 1.207 GB, free: 8.82 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001154/1.241, allocations: 430.6 kB / 1.208 GB, free: 8.395 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004261/1.245, allocations: 1.014 MB / 1.209 GB, free: 7.379 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006593/1.251, allocations: 5.262 MB / 1.214 GB, free: 1.844 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006564/1.258, allocations: 474.8 kB / 1.214 GB, free: 1.379 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009881/1.259, allocations: 212 kB / 1.215 GB, free: 1.172 MB / 0.9669 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.006509/1.266, allocations: 2.485 MB / 1.217 GB, free: 14.68 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002359/1.268, allocations: 0.5249 MB / 1.218 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01173/1.28, allocations: 5.263 MB / 1.223 GB, free: 8.824 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.793e-05/1.28, allocations: 32 kB / 1.223 GB, free: 8.793 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.382e-05/1.28, allocations: 7.938 kB / 1.223 GB, free: 8.785 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00747/1.287, allocations: 4.535 MB / 1.227 GB, free: 4.145 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.02851/1.316, allocations: 12 MB / 1.239 GB, free: 7.953 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.315e-05/1.316, allocations: 0 / 1.239 GB, free: 7.953 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003049/1.319, allocations: 0.6477 MB / 1.24 GB, free: 7.305 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009737/1.32, allocations: 373.3 kB / 1.24 GB, free: 6.934 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004412/1.32, allocations: 87.95 kB / 1.24 GB, free: 6.848 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005798/1.326, allocations: 5.18 MB / 1.245 GB, free: 1.41 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.418e-06/1.326, allocations: 7.938 kB / 1.245 GB, free: 1.402 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01936/1.346, allocations: 7.624 MB / 1.252 GB, free: 9.68 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005303/1.351, allocations: 1.221 MB / 1.254 GB, free: 8.434 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002102/1.353, allocations: 64.36 kB / 1.254 GB, free: 8.371 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007125/1.36, allocations: 474.4 kB / 1.254 GB, free: 7.91 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009539/1.361, allocations: 198.2 kB / 1.254 GB, free: 7.715 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008119/1.362, allocations: 143.9 kB / 1.255 GB, free: 7.574 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.01144/1.374, allocations: 3.807 MB / 1.258 GB, free: 3.789 MB / 1.014 GB Notification: Performance of sort global known variables: time 4.11e-07/1.374, allocations: 0 / 1.258 GB, free: 3.789 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0105/1.384, allocations: 1.979 MB / 1.26 GB, free: 1.805 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.002367/1.386, allocations: 493.2 kB / 1.261 GB, free: 1.328 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.5275/1.914, allocations: 5.378 MB / 1.266 GB, free: 280.2 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.167e-05/1.914, allocations: 3.75 kB / 1.266 GB, free: 280.2 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.005024/1.919, allocations: 2.511 MB / 1.268 GB, free: 279.2 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01963/1.939, allocations: 3.231 MB / 1.271 GB, free: 278.6 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02925/1.968, allocations: 16.73 MB / 1.288 GB, free: 270 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005755/1.974, allocations: 4.555 MB / 1.292 GB, free: 268 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00218/1.976, allocations: 484.4 kB / 1.293 GB, free: 267.9 MB / 1.014 GB Notification: Performance of SimCode: time 1.423e-06/1.976, allocations: 0.875 kB / 1.293 GB, free: 267.9 MB / 1.014 GB Notification: Performance of Templates: time 0.1993/2.175, allocations: 184.9 MB / 1.473 GB, free: 91.89 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