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.001462/0.001462, allocations: 108 kB / 15.6 MB, free: 132 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.001914/0.001914, allocations: 193 kB / 16.53 MB, free: 6.391 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.399/1.399, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.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.429/2.429, allocations: 390.2 MB / 0.6647 GB, free: 300 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002311/0.002311, allocations: 64.09 kB / 0.8125 GB, free: 14.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8485/0.8508, allocations: 140.4 MB / 0.9496 GB, free: 9.074 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.05662/0.9075, allocations: 55.99 MB / 1.004 GB, free: 9.68 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.02519/0.9327, allocations: 17.95 MB / 1.022 GB, free: 7.676 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004349/0.9371, allocations: 75.56 kB / 1.022 GB, free: 7.602 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.003233/0.9404, allocations: 0.908 MB / 1.023 GB, free: 6.688 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.008646/0.9491, allocations: 2.502 MB / 1.025 GB, free: 4.176 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.004584/0.9537, allocations: 1.528 MB / 1.027 GB, free: 2.656 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.02123/0.9749, allocations: 21.23 MB / 1.047 GB, free: 13.38 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01412/0.9891, allocations: 10.68 MB / 1.058 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01705/1.006, allocations: 7.136 MB / 1.065 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01309/1.019, allocations: 6.354 MB / 1.071 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.003575/1.023, allocations: 0.9375 MB / 1.072 GB, free: 4.141 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008223/1.031, allocations: 1.702 MB / 1.074 GB, free: 2.438 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.005095/1.036, allocations: 2.337 MB / 1.076 GB, free: 96 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.01287/1.049, allocations: 4.707 MB / 1.08 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.02369/1.073, allocations: 13.02 MB / 1.093 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 1.286e-05/1.073, allocations: 3.984 kB / 1.093 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.715e-06/1.073, allocations: 3.938 kB / 1.093 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0005781/1.074, allocations: 4 kB / 1.093 GB, free: 14.3 MB / 0.8575 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.02853/1.102, allocations: 8.51 MB / 1.102 GB, free: 5.691 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/1.102, allocations: 12.03 kB / 1.102 GB, free: 5.68 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005297/1.108, allocations: 0.8509 MB / 1.102 GB, free: 4.82 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01556/1.123, allocations: 6.434 MB / 1.109 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004916/1.124, allocations: 460.4 kB / 1.109 GB, free: 13.87 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002819/1.126, allocations: 0.5974 MB / 1.11 GB, free: 13.28 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02698/1.153, allocations: 9.025 MB / 1.118 GB, free: 3.93 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003668/1.154, allocations: 19.78 kB / 1.118 GB, free: 3.91 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00272/1.157, allocations: 264 kB / 1.119 GB, free: 3.652 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002531/1.157, allocations: 183.9 kB / 1.119 GB, free: 3.473 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01937/1.176, allocations: 7.449 MB / 1.126 GB, free: 12.02 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.06739/1.244, allocations: 36.26 MB / 1.162 GB, free: 5.688 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008581/1.252, allocations: 4.282 MB / 1.166 GB, free: 1.41 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006859/1.259, allocations: 3.308 MB / 1.169 GB, free: 14.09 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001864/1.261, allocations: 0.9621 MB / 1.17 GB, free: 12.94 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006054/1.267, allocations: 2.386 MB / 1.172 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003669/1.271, allocations: 379.8 kB / 1.173 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=317): time 2.591e-05/1.271, allocations: 0 / 1.173 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of matching and sorting (n=317): time 0.01825/1.289, allocations: 7.125 MB / 1.18 GB, free: 2.93 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.708e-05/1.289, allocations: 85.91 kB / 1.18 GB, free: 2.832 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01333/1.303, allocations: 5.662 MB / 1.185 GB, free: 13.19 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.001052/1.304, allocations: 93.7 kB / 1.185 GB, free: 13.09 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.004693/1.309, allocations: 3.196 MB / 1.188 GB, free: 9.863 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.002445/1.311, allocations: 1.113 MB / 1.19 GB, free: 8.734 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003162/1.314, allocations: 0.858 MB / 1.19 GB, free: 7.863 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001671/1.314, allocations: 305.1 kB / 1.191 GB, free: 7.562 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004827/1.319, allocations: 2.167 MB / 1.193 GB, free: 5.387 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006087/1.325, allocations: 3.697 MB / 1.196 GB, free: 0.9844 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01034/1.336, allocations: 6.323 MB / 1.203 GB, free: 9.941 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.979e-05/1.336, allocations: 15.94 kB / 1.203 GB, free: 9.926 MB / 0.9669 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.0155/1.351, allocations: 6.772 MB / 1.209 GB, free: 3.102 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001046/1.352, allocations: 61.62 kB / 1.209 GB, free: 3.035 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.396e-05/1.352, allocations: 52 kB / 1.209 GB, free: 2.984 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001158/1.353, allocations: 430.8 kB / 1.21 GB, free: 2.559 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004083/1.357, allocations: 1.006 MB / 1.211 GB, free: 1.551 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006798/1.364, allocations: 5.682 MB / 1.216 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006014/1.37, allocations: 291.4 kB / 1.217 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001189/1.371, allocations: 216 kB / 1.217 GB, free: 11.1 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.006417/1.377, allocations: 2.489 MB / 1.219 GB, free: 8.598 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002611/1.38, allocations: 0.5249 MB / 1.22 GB, free: 8.066 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01235/1.392, allocations: 5.266 MB / 1.225 GB, free: 2.742 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-05/1.392, allocations: 31.98 kB / 1.225 GB, free: 2.711 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.276e-05/1.393, allocations: 11.94 kB / 1.225 GB, free: 2.699 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008191/1.401, allocations: 4.531 MB / 1.229 GB, free: 14.06 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0323/1.433, allocations: 12.05 MB / 1.241 GB, free: 1.828 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.941e-05/1.433, allocations: 0 / 1.241 GB, free: 1.828 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003234/1.436, allocations: 0.6477 MB / 1.242 GB, free: 1.18 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009605/1.437, allocations: 371.4 kB / 1.242 GB, free: 0.8125 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005744/1.438, allocations: 83.95 kB / 1.242 GB, free: 0.7305 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006294/1.444, allocations: 5.627 MB / 1.248 GB, free: 10.83 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.638e-06/1.444, allocations: 4 kB / 1.248 GB, free: 10.82 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01531/1.46, allocations: 7.754 MB / 1.255 GB, free: 2.977 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004071/1.464, allocations: 1.159 MB / 1.256 GB, free: 1.793 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002122/1.466, allocations: 71.92 kB / 1.256 GB, free: 1.723 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004314/1.47, allocations: 199.8 kB / 1.257 GB, free: 1.527 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006405/1.471, allocations: 202.2 kB / 1.257 GB, free: 1.328 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005558/1.471, allocations: 139.9 kB / 1.257 GB, free: 1.191 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.6516/2.123, allocations: 3.955 MB / 1.261 GB, free: 277.8 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.042e-06/2.123, allocations: 0.8125 kB / 1.261 GB, free: 277.8 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.008083/2.131, allocations: 2.005 MB / 1.263 GB, free: 277.8 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.00153/2.133, allocations: 494.6 kB / 1.263 GB, free: 277.7 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.02546/2.158, allocations: 11.63 MB / 1.275 GB, free: 275.7 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.313e-05/2.158, allocations: 3.344 kB / 1.275 GB, free: 275.7 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.004775/2.163, allocations: 2.542 MB / 1.277 GB, free: 274.7 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01823/2.181, allocations: 3.408 MB / 1.28 GB, free: 273.9 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02552/2.207, allocations: 14.04 MB / 1.294 GB, free: 268 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006226/2.213, allocations: 4.629 MB / 1.299 GB, free: 266 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.008427/2.222, allocations: 2.072 MB / 1.301 GB, free: 264.1 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002335/2.224, allocations: 463.2 kB / 1.301 GB, free: 263.7 MB / 1.014 GB Notification: Performance of SimCode: time 1.353e-06/2.224, allocations: 4 kB / 1.301 GB, free: 263.6 MB / 1.014 GB Notification: Performance of Templates: time 0.1679/2.392, allocations: 122 MB / 1.42 GB, free: 142.7 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