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.00658/0.00658, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001108/0.001108, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.368/1.368, allocations: 222.9 MB / 240.4 MB, free: 15.13 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.246/2.246, allocations: 390.2 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 67.89 kB / 0.9508 GB, free: 7.652 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.05/1.052, allocations: 140.4 MB / 1.088 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.06603/1.118, allocations: 56 MB / 1.143 GB, free: 13.37 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.02908/1.147, allocations: 17.94 MB / 1.16 GB, free: 0.5 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005127/1.152, allocations: 78 kB / 1.16 GB, free: 484 kB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.003869/1.156, allocations: 0.8991 MB / 1.161 GB, free: 15.9 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.01045/1.166, allocations: 2.507 MB / 1.164 GB, free: 14.39 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.005521/1.172, allocations: 1.534 MB / 1.165 GB, free: 13.53 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.029/1.201, allocations: 21.26 MB / 1.186 GB, free: 2.16 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0172/1.218, allocations: 10.69 MB / 1.196 GB, free: 12.25 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01895/1.237, allocations: 7.228 MB / 1.203 GB, free: 7.848 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01456/1.252, allocations: 6.362 MB / 1.209 GB, free: 1.461 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.003738/1.256, allocations: 0.9375 MB / 1.21 GB, free: 0.5234 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009531/1.265, allocations: 1.698 MB / 1.212 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.004433/1.27, allocations: 2.337 MB / 1.214 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.01167/1.281, allocations: 4.707 MB / 1.219 GB, free: 7.754 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.02324/1.305, allocations: 13.18 MB / 1.232 GB, free: 10.54 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 1.549e-05/1.305, allocations: 0 / 1.232 GB, free: 10.54 MB / 0.9669 GB Notification: Performance of FrontEnd: time 3.627e-06/1.305, allocations: 4 kB / 1.232 GB, free: 10.54 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 0.000863/1.306, allocations: 0 / 1.232 GB, free: 10.54 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.03071/1.336, allocations: 8.51 MB / 1.24 GB, free: 1.93 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.811e-05/1.336, allocations: 11.97 kB / 1.24 GB, free: 1.918 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005275/1.342, allocations: 0.8586 MB / 1.241 GB, free: 1.051 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01564/1.357, allocations: 6.696 MB / 1.248 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005123/1.358, allocations: 464.4 kB / 1.248 GB, free: 9.836 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003313/1.361, allocations: 0.5975 MB / 1.249 GB, free: 9.238 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02248/1.384, allocations: 9.025 MB / 1.257 GB, free: 15.89 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001839/1.384, allocations: 19.88 kB / 1.257 GB, free: 15.87 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009953/1.385, allocations: 264 kB / 1.258 GB, free: 15.61 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001717/1.385, allocations: 179.9 kB / 1.258 GB, free: 15.44 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01671/1.402, allocations: 7.449 MB / 1.265 GB, free: 7.98 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.06817/1.47, allocations: 36 MB / 1.3 GB, free: 1.91 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008463/1.479, allocations: 4.277 MB / 1.304 GB, free: 13.63 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006153/1.485, allocations: 3.301 MB / 1.308 GB, free: 10.32 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001672/1.487, allocations: 0.9583 MB / 1.309 GB, free: 9.176 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005829/1.492, allocations: 2.382 MB / 1.311 GB, free: 6.758 MB / 1.045 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00422/1.497, allocations: 371.8 kB / 1.311 GB, free: 6.391 MB / 1.045 GB Notification: Performance of pre-optimization done (n=317): time 2.798e-05/1.497, allocations: 0 / 1.311 GB, free: 6.391 MB / 1.045 GB Notification: Performance of matching and sorting (n=317): time 0.01966/1.516, allocations: 7.132 MB / 1.318 GB, free: 15.16 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/1.517, allocations: 89.91 kB / 1.318 GB, free: 15.06 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01574/1.532, allocations: 5.662 MB / 1.324 GB, free: 9.422 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 0.001105/1.533, allocations: 89.7 kB / 1.324 GB, free: 9.328 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.005256/1.539, allocations: 3.192 MB / 1.327 GB, free: 6.105 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.002537/1.541, allocations: 1.121 MB / 1.328 GB, free: 4.969 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003435/1.545, allocations: 0.858 MB / 1.329 GB, free: 4.098 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001241/1.545, allocations: 309 kB / 1.329 GB, free: 3.793 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004427/1.549, allocations: 2.163 MB / 1.331 GB, free: 1.621 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006091/1.556, allocations: 3.693 MB / 1.335 GB, free: 13.22 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01115/1.567, allocations: 6.315 MB / 1.341 GB, free: 6.191 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.875e-05/1.567, allocations: 20 kB / 1.341 GB, free: 6.172 MB / 1.076 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01775/1.585, allocations: 6.775 MB / 1.348 GB, free: 15.34 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001182/1.585, allocations: 53.7 kB / 1.348 GB, free: 15.29 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001175/1.585, allocations: 48 kB / 1.348 GB, free: 15.24 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001205/1.586, allocations: 434 kB / 1.348 GB, free: 14.81 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004386/1.591, allocations: 1.006 MB / 1.349 GB, free: 13.8 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006683/1.597, allocations: 5.698 MB / 1.355 GB, free: 7.828 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005736/1.603, allocations: 287.5 kB / 1.355 GB, free: 7.547 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001134/1.604, allocations: 216 kB / 1.355 GB, free: 7.336 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.005965/1.61, allocations: 2.476 MB / 1.358 GB, free: 4.848 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002361/1.612, allocations: 0.5287 MB / 1.358 GB, free: 4.312 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01163/1.624, allocations: 5.278 MB / 1.363 GB, free: 14.98 MB / 1.107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.769e-05/1.624, allocations: 32 kB / 1.363 GB, free: 14.95 MB / 1.107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.15e-05/1.624, allocations: 4 kB / 1.363 GB, free: 14.94 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007621/1.632, allocations: 4.532 MB / 1.368 GB, free: 10.3 MB / 1.107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02745/1.659, allocations: 11.97 MB / 1.38 GB, free: 14.18 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.617e-05/1.659, allocations: 4 kB / 1.38 GB, free: 14.18 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003099/1.663, allocations: 0.6515 MB / 1.38 GB, free: 13.52 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009562/1.664, allocations: 370.9 kB / 1.381 GB, free: 13.16 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004999/1.664, allocations: 83.95 kB / 1.381 GB, free: 13.07 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006104/1.67, allocations: 5.62 MB / 1.386 GB, free: 7.184 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/1.67, allocations: 0 / 1.386 GB, free: 7.184 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01436/1.685, allocations: 7.761 MB / 1.394 GB, free: 15.32 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004155/1.689, allocations: 1.159 MB / 1.395 GB, free: 14.14 MB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002384/1.691, allocations: 67.94 kB / 1.395 GB, free: 14.07 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004408/1.696, allocations: 195.7 kB / 1.395 GB, free: 13.88 MB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006467/1.696, allocations: 198.2 kB / 1.395 GB, free: 13.68 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005718/1.697, allocations: 135.9 kB / 1.395 GB, free: 13.55 MB / 1.139 GB Notification: Performance of sorting global known variables: time 0.008299/1.705, allocations: 3.967 MB / 1.399 GB, free: 9.605 MB / 1.139 GB Notification: Performance of sort global known variables: time 1.4e-07/1.705, allocations: 0 / 1.399 GB, free: 9.605 MB / 1.139 GB Notification: Performance of remove unused functions: time 0.008676/1.714, allocations: 2.014 MB / 1.401 GB, free: 7.586 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.001919/1.716, allocations: 0.4945 MB / 1.402 GB, free: 7.09 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.01022/1.726, allocations: 5.437 MB / 1.407 GB, free: 1.602 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 1.1e-05/1.726, allocations: 7.781 kB / 1.407 GB, free: 1.594 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.00448/1.731, allocations: 2.541 MB / 1.41 GB, free: 15.02 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01836/1.749, allocations: 3.385 MB / 1.413 GB, free: 11.73 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03277/1.782, allocations: 13.9 MB / 1.426 GB, free: 13.79 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00922/1.791, allocations: 4.636 MB / 1.431 GB, free: 9.121 MB / 1.17 GB Notification: Performance of simCode: alias equations: time 0.008966/1.8, allocations: 2.073 MB / 1.433 GB, free: 7.051 MB / 1.17 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002477/1.803, allocations: 467.2 kB / 1.433 GB, free: 6.594 MB / 1.17 GB Notification: Performance of SimCode: time 1.383e-06/1.803, allocations: 0 / 1.433 GB, free: 6.594 MB / 1.17 GB Notification: Performance of Templates: time 0.1881/1.991, allocations: 118 MB / 1.549 GB, free: 1.559 MB / 1.279 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