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.007284/0.007284, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001348/0.001349, allocations: 195.4 kB / 16.67 MB, free: 5.52 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.476/1.476, allocations: 222.9 MB / 240.4 MB, free: 15.17 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.271/2.271, allocations: 390.2 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 59.91 kB / 0.9508 GB, free: 7.648 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.982/0.9834, allocations: 140.4 MB / 1.088 GB, free: 5.531 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.0637/1.047, allocations: 56 MB / 1.143 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.02778/1.075, allocations: 17.95 MB / 1.16 GB, free: 0.5078 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005704/1.081, allocations: 78.28 kB / 1.16 GB, free: 492 kB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.005036/1.086, allocations: 0.9166 MB / 1.161 GB, free: 15.89 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.01129/1.097, allocations: 2.617 MB / 1.164 GB, free: 14.32 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.005682/1.103, allocations: 1.532 MB / 1.165 GB, free: 13.46 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.02979/1.133, allocations: 21.29 MB / 1.186 GB, free: 2.105 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01646/1.149, allocations: 10.69 MB / 1.196 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01932/1.169, allocations: 7.24 MB / 1.203 GB, free: 7.621 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01483/1.183, allocations: 6.362 MB / 1.21 GB, free: 1.234 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.003744/1.187, allocations: 0.9375 MB / 1.211 GB, free: 304 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009188/1.196, allocations: 1.702 MB / 1.212 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.00514/1.202, allocations: 2.333 MB / 1.215 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.01323/1.215, allocations: 4.703 MB / 1.219 GB, free: 7.531 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.02212/1.237, allocations: 13.18 MB / 1.232 GB, free: 10.31 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 7.915e-06/1.237, allocations: 0 / 1.232 GB, free: 10.31 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.054e-06/1.237, allocations: 0 / 1.232 GB, free: 10.31 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 0.0006048/1.238, allocations: 4 kB / 1.232 GB, free: 10.31 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.02803/1.266, allocations: 8.51 MB / 1.24 GB, free: 1.703 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/1.266, allocations: 11.97 kB / 1.24 GB, free: 1.691 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005196/1.271, allocations: 0.8586 MB / 1.241 GB, free: 0.8242 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01558/1.287, allocations: 6.692 MB / 1.248 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003924/1.287, allocations: 464.3 kB / 1.248 GB, free: 9.613 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001723/1.289, allocations: 0.5898 MB / 1.249 GB, free: 9.023 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01665/1.305, allocations: 9.025 MB / 1.258 GB, free: 15.67 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001275/1.306, allocations: 23.81 kB / 1.258 GB, free: 15.65 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006528/1.306, allocations: 263.9 kB / 1.258 GB, free: 15.39 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001634/1.306, allocations: 183.9 kB / 1.258 GB, free: 15.21 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01303/1.319, allocations: 7.449 MB / 1.265 GB, free: 7.758 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.05356/1.373, allocations: 36.01 MB / 1.3 GB, free: 1.684 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0062/1.379, allocations: 4.273 MB / 1.305 GB, free: 13.41 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004379/1.384, allocations: 3.305 MB / 1.308 GB, free: 10.09 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001203/1.385, allocations: 0.9505 MB / 1.309 GB, free: 8.957 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003708/1.389, allocations: 2.39 MB / 1.311 GB, free: 6.531 MB / 1.045 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002516/1.391, allocations: 371.8 kB / 1.311 GB, free: 6.164 MB / 1.045 GB Notification: Performance of pre-optimization done (n=317): time 1.024e-05/1.391, allocations: 0 / 1.311 GB, free: 6.164 MB / 1.045 GB Notification: Performance of matching and sorting (n=317): time 0.01252/1.404, allocations: 7.129 MB / 1.318 GB, free: 14.94 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.425e-05/1.404, allocations: 85.81 kB / 1.318 GB, free: 14.85 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008616/1.412, allocations: 5.666 MB / 1.324 GB, free: 9.203 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 0.000778/1.413, allocations: 93.7 kB / 1.324 GB, free: 9.105 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.003138/1.416, allocations: 3.192 MB / 1.327 GB, free: 5.879 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.001663/1.418, allocations: 1.113 MB / 1.328 GB, free: 4.75 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001236/1.419, allocations: 0.858 MB / 1.329 GB, free: 3.879 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 9.655e-05/1.419, allocations: 305.1 kB / 1.329 GB, free: 3.578 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00316/1.423, allocations: 2.163 MB / 1.332 GB, free: 1.406 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004177/1.427, allocations: 3.701 MB / 1.335 GB, free: 13 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009893/1.437, allocations: 6.319 MB / 1.341 GB, free: 5.965 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.614e-05/1.437, allocations: 12 kB / 1.341 GB, free: 5.953 MB / 1.076 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01461/1.451, allocations: 6.768 MB / 1.348 GB, free: 15.13 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 8.637e-05/1.452, allocations: 65.72 kB / 1.348 GB, free: 15.06 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.48e-05/1.452, allocations: 48 kB / 1.348 GB, free: 15.01 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001063/1.453, allocations: 429.3 kB / 1.348 GB, free: 14.59 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00389/1.457, allocations: 1.006 MB / 1.349 GB, free: 13.58 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005942/1.463, allocations: 5.702 MB / 1.355 GB, free: 7.605 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005677/1.468, allocations: 283.5 kB / 1.355 GB, free: 7.328 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008986/1.469, allocations: 216 kB / 1.355 GB, free: 7.117 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.005508/1.475, allocations: 2.487 MB / 1.358 GB, free: 4.617 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002362/1.477, allocations: 0.5287 MB / 1.358 GB, free: 4.082 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01498/1.492, allocations: 5.278 MB / 1.364 GB, free: 14.75 MB / 1.107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.909e-05/1.492, allocations: 32 kB / 1.364 GB, free: 14.71 MB / 1.107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.345e-05/1.492, allocations: 4 kB / 1.364 GB, free: 14.71 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0075/1.5, allocations: 4.532 MB / 1.368 GB, free: 10.07 MB / 1.107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02479/1.524, allocations: 11.97 MB / 1.38 GB, free: 13.96 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.428e-05/1.525, allocations: 0 / 1.38 GB, free: 13.96 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00281/1.527, allocations: 0.6515 MB / 1.38 GB, free: 13.3 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008793/1.528, allocations: 374.9 kB / 1.381 GB, free: 12.93 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003115/1.529, allocations: 87.94 kB / 1.381 GB, free: 12.85 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005642/1.534, allocations: 5.616 MB / 1.386 GB, free: 6.961 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/1.534, allocations: 4 kB / 1.386 GB, free: 6.957 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01265/1.547, allocations: 7.751 MB / 1.394 GB, free: 15.11 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004121/1.551, allocations: 1.159 MB / 1.395 GB, free: 13.93 MB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001747/1.553, allocations: 71.92 kB / 1.395 GB, free: 13.86 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004124/1.557, allocations: 199.7 kB / 1.395 GB, free: 13.66 MB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005094/1.558, allocations: 198.2 kB / 1.395 GB, free: 13.46 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004562/1.558, allocations: 143.8 kB / 1.396 GB, free: 13.32 MB / 1.139 GB Notification: Performance of sorting global known variables: time 0.008678/1.567, allocations: 3.959 MB / 1.399 GB, free: 9.387 MB / 1.139 GB Notification: Performance of sort global known variables: time 1.8e-07/1.567, allocations: 4 kB / 1.399 GB, free: 9.383 MB / 1.139 GB Notification: Performance of remove unused functions: time 0.008941/1.576, allocations: 2.014 MB / 1.401 GB, free: 7.363 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.001849/1.578, allocations: 0.4966 MB / 1.402 GB, free: 6.863 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.01015/1.588, allocations: 5.436 MB / 1.407 GB, free: 1.375 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 1.16e-05/1.588, allocations: 7.781 kB / 1.407 GB, free: 1.367 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.004363/1.592, allocations: 2.538 MB / 1.41 GB, free: 14.8 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01717/1.609, allocations: 3.388 MB / 1.413 GB, free: 11.5 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03417/1.643, allocations: 13.88 MB / 1.427 GB, free: 13.57 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007609/1.651, allocations: 4.628 MB / 1.431 GB, free: 8.91 MB / 1.17 GB Notification: Performance of simCode: alias equations: time 0.008304/1.659, allocations: 2.081 MB / 1.433 GB, free: 6.836 MB / 1.17 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002408/1.662, allocations: 471.2 kB / 1.434 GB, free: 6.375 MB / 1.17 GB Notification: Performance of SimCode: time 9.62e-07/1.662, allocations: 0 / 1.434 GB, free: 6.375 MB / 1.17 GB Notification: Performance of Templates: time 0.1885/1.85, allocations: 116.6 MB / 1.547 GB, free: 2.812 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