Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001037/0.001037, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.008588/0.008588, allocations: 170.8 kB / 16.27 MB, free: 6.648 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.406/1.406, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.768/2.768, allocations: 462.6 MB / 0.7363 GB, free: 15.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0006118/0.0006118, allocations: 8.906 kB / 0.9027 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.403/0.4036, allocations: 159.6 MB / 1.059 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.05561/0.4593, allocations: 54.55 MB / 1.112 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.0252/0.4846, allocations: 17.73 MB / 1.129 GB, free: 12.52 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003557/0.4882, allocations: 71.56 kB / 1.129 GB, free: 12.45 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.002734/0.4909, allocations: 0.7186 MB / 1.13 GB, free: 11.72 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.008455/0.4994, allocations: 2.321 MB / 1.132 GB, free: 9.391 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.004865/0.5043, allocations: 1.38 MB / 1.134 GB, free: 8.02 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.02792/0.5322, allocations: 27.81 MB / 1.161 GB, free: 12.14 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01341/0.5457, allocations: 8.421 MB / 1.169 GB, free: 3.613 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01266/0.5584, allocations: 5.205 MB / 1.174 GB, free: 14.39 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01184/0.5703, allocations: 5.783 MB / 1.18 GB, free: 8.578 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.002513/0.5728, allocations: 348 kB / 1.18 GB, free: 8.238 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007552/0.5804, allocations: 1.03 MB / 1.181 GB, free: 7.207 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.004246/0.5847, allocations: 1.587 MB / 1.183 GB, free: 5.613 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.01088/0.5956, allocations: 3.893 MB / 1.186 GB, free: 1.695 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.01908/0.6147, allocations: 12.29 MB / 1.198 GB, free: 5.363 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.6148, allocations: 0 / 1.198 GB, free: 5.363 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.344e-06/0.6148, allocations: 0 / 1.198 GB, free: 5.363 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 0.0005567/0.6154, allocations: 0 / 1.198 GB, free: 5.363 MB / 0.9512 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.02108/0.6365, allocations: 6.895 MB / 1.205 GB, free: 14.38 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.536e-05/0.6365, allocations: 11.97 kB / 1.205 GB, free: 14.37 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005024/0.6416, allocations: 0.8548 MB / 1.206 GB, free: 13.5 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01558/0.6572, allocations: 6.622 MB / 1.212 GB, free: 6.82 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005512/0.6578, allocations: 464.3 kB / 1.213 GB, free: 6.363 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002736/0.6605, allocations: 0.5936 MB / 1.213 GB, free: 5.77 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02713/0.6877, allocations: 9.028 MB / 1.222 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003974/0.6881, allocations: 23.72 kB / 1.222 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002326/0.6905, allocations: 267.9 kB / 1.223 GB, free: 12.13 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002472/0.6907, allocations: 180 kB / 1.223 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01968/0.7104, allocations: 7.461 MB / 1.23 GB, free: 4.484 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 preOpt removeSimpleEquations (simulation): time 1.309/2.02, allocations: 35.97 MB / 1.265 GB, free: 157.9 MB / 0.9982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007369/2.027, allocations: 4.285 MB / 1.269 GB, free: 157.8 MB / 0.9982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006795/2.034, allocations: 3.331 MB / 1.273 GB, free: 157.8 MB / 0.9982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0014/2.035, allocations: 0.9841 MB / 1.274 GB, free: 156.8 MB / 0.9982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005577/2.041, allocations: 2.384 MB / 1.276 GB, free: 156.7 MB / 0.9982 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003253/2.044, allocations: 451.4 kB / 1.276 GB, free: 156.7 MB / 0.9982 GB Notification: Performance of pre-optimization done (n=317): time 1.247e-05/2.044, allocations: 1.438 kB / 1.276 GB, free: 156.7 MB / 0.9982 GB Notification: Performance of matching and sorting (n=317): time 0.01469/2.059, allocations: 7.14 MB / 1.283 GB, free: 155.5 MB / 0.9982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.446e-05/2.059, allocations: 85.08 kB / 1.283 GB, free: 155.4 MB / 0.9982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009432/2.068, allocations: 5.462 MB / 1.289 GB, free: 153.6 MB / 0.9982 GB Notification: Performance of collectPreVariables (initialization): time 0.0008819/2.069, allocations: 90.86 kB / 1.289 GB, free: 153.5 MB / 0.9982 GB Notification: Performance of collectInitialEqns (initialization): time 0.002725/2.072, allocations: 3.201 MB / 1.292 GB, free: 151.1 MB / 0.9982 GB Notification: Performance of collectInitialBindings (initialization): time 0.001957/2.074, allocations: 1.114 MB / 1.293 GB, free: 150.2 MB / 0.9982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005412/2.075, allocations: 361.3 kB / 1.293 GB, free: 150.1 MB / 0.9982 GB Notification: Performance of setup shared object (initialization): time 5.501e-05/2.075, allocations: 301.1 kB / 1.294 GB, free: 149.8 MB / 0.9982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003517/2.078, allocations: 2.155 MB / 1.296 GB, free: 149 MB / 0.9982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004235/2.082, allocations: 3.697 MB / 1.299 GB, free: 146.1 MB / 0.9982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007686/2.09, allocations: 6.312 MB / 1.305 GB, free: 141.6 MB / 0.9982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.296e-05/2.09, allocations: 13.09 kB / 1.305 GB, free: 141.6 MB / 0.9982 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01057/2.101, allocations: 6.775 MB / 1.312 GB, free: 138.1 MB / 0.9982 GB Notification: Performance of prepare postOptimizeDAE: time 6.724e-05/2.101, allocations: 58.59 kB / 1.312 GB, free: 138 MB / 0.9982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.098e-05/2.101, allocations: 48 kB / 1.312 GB, free: 138 MB / 0.9982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009106/2.102, allocations: 428.1 kB / 1.313 GB, free: 137.8 MB / 0.9982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003344/2.105, allocations: 1.017 MB / 1.314 GB, free: 137.6 MB / 0.9982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00448/2.11, allocations: 5.261 MB / 1.319 GB, free: 133.3 MB / 0.9982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005809/2.116, allocations: 467.5 kB / 1.319 GB, free: 133 MB / 0.9982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006938/2.116, allocations: 216.8 kB / 1.319 GB, free: 133 MB / 0.9982 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.004186/2.121, allocations: 2.483 MB / 1.322 GB, free: 131.5 MB / 0.9982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001529/2.122, allocations: 0.5248 MB / 1.322 GB, free: 131.2 MB / 0.9982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008441/2.131, allocations: 5.26 MB / 1.327 GB, free: 126 MB / 0.9982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.165e-05/2.131, allocations: 32 kB / 1.328 GB, free: 126 MB / 0.9982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.136e-05/2.131, allocations: 10.25 kB / 1.328 GB, free: 126 MB / 0.9982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005629/2.136, allocations: 4.535 MB / 1.332 GB, free: 121.4 MB / 0.9982 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.02111/2.157, allocations: 11.99 MB / 1.344 GB, free: 109.3 MB / 0.9982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.018e-05/2.157, allocations: 0 / 1.344 GB, free: 109.3 MB / 0.9982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002441/2.16, allocations: 0.6516 MB / 1.344 GB, free: 108.6 MB / 0.9982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007437/2.161, allocations: 380.2 kB / 1.345 GB, free: 108.2 MB / 0.9982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001919/2.161, allocations: 83.95 kB / 1.345 GB, free: 108.2 MB / 0.9982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003993/2.165, allocations: 5.18 MB / 1.35 GB, free: 102.7 MB / 0.9982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/2.165, allocations: 4 kB / 1.35 GB, free: 102.7 MB / 0.9982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009592/2.174, allocations: 7.637 MB / 1.357 GB, free: 94.99 MB / 0.9982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003241/2.178, allocations: 1.209 MB / 1.358 GB, free: 93.76 MB / 0.9982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009593/2.179, allocations: 67.92 kB / 1.359 GB, free: 93.69 MB / 0.9982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003685/2.182, allocations: 477.6 kB / 1.359 GB, free: 93.23 MB / 0.9982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003823/2.183, allocations: 194.2 kB / 1.359 GB, free: 93.04 MB / 0.9982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002499/2.183, allocations: 147.9 kB / 1.359 GB, free: 92.89 MB / 0.9982 GB Notification: Performance of sorting global known variables: time 0.004909/2.188, allocations: 3.803 MB / 1.363 GB, free: 89.11 MB / 0.9982 GB Notification: Performance of sort global known variables: time 1.1e-07/2.188, allocations: 0 / 1.363 GB, free: 89.11 MB / 0.9982 GB Notification: Performance of remove unused functions: time 0.006479/2.194, allocations: 1.986 MB / 1.365 GB, free: 87.14 MB / 0.9982 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.001219/2.196, allocations: 494.1 kB / 1.365 GB, free: 86.7 MB / 0.9982 GB Notification: Performance of simCode: created initialization part: time 0.007381/2.203, allocations: 5.374 MB / 1.371 GB, free: 81.27 MB / 0.9982 GB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/2.203, allocations: 4 kB / 1.371 GB, free: 81.27 MB / 0.9982 GB Notification: Performance of simCode: created simulation system equations: time 0.003113/2.206, allocations: 2.518 MB / 1.373 GB, free: 78.72 MB / 0.9982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01916/2.225, allocations: 3.228 MB / 1.376 GB, free: 75.59 MB / 0.9982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02497/2.25, allocations: 16.69 MB / 1.393 GB, free: 58.86 MB / 0.9982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004366/2.255, allocations: 4.628 MB / 1.397 GB, free: 54.19 MB / 0.9982 GB Notification: Performance of simCode: alias equations: time 0.006729/2.262, allocations: 1.987 MB / 1.399 GB, free: 52.21 MB / 0.9982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001529/2.263, allocations: 463.2 kB / 1.399 GB, free: 51.75 MB / 0.9982 GB Notification: Performance of SimCode: time 1.253e-06/2.263, allocations: 0 / 1.399 GB, free: 51.75 MB / 0.9982 GB Notification: Performance of Templates: time 0.1945/2.458, allocations: 114.9 MB / 1.512 GB, free: 1.926 MB / 1.061 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.makefile (rm -f Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.sim & ./Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches