Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.007785/0.007785, allocations: 99.59 kB / 15.73 MB, free: 6.484 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.001504/0.001505, allocations: 192.2 kB / 16.68 MB, free: 6.367 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.439/1.439, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.775/2.775, allocations: 437 MB / 0.7105 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001625/0.001625, allocations: 71.83 kB / 1.019 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3981/0.3998, allocations: 151.6 MB / 1.167 GB, free: 6.82 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.06034/0.4602, allocations: 56.01 MB / 1.221 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.02571/0.4859, allocations: 17.95 MB / 1.239 GB, free: 12.6 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003875/0.4899, allocations: 71.62 kB / 1.239 GB, free: 12.53 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.003328/0.4932, allocations: 0.9158 MB / 1.24 GB, free: 11.61 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.009098/0.5024, allocations: 2.62 MB / 1.242 GB, free: 8.977 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004579/0.507, allocations: 1.536 MB / 1.244 GB, free: 7.449 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.8889/1.396, allocations: 21.27 MB / 1.265 GB, free: 7.898 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0177/1.414, allocations: 10.68 MB / 1.275 GB, free: 6.352 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02096/1.435, allocations: 7.235 MB / 1.282 GB, free: 5.66 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01738/1.452, allocations: 6.363 MB / 1.288 GB, free: 4.66 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.005564/1.458, allocations: 0.9376 MB / 1.289 GB, free: 4.66 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01368/1.471, allocations: 1.7 MB / 1.291 GB, free: 4.66 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.007575/1.479, allocations: 2.337 MB / 1.293 GB, free: 4.383 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.02484/1.504, allocations: 4.711 MB / 1.298 GB, free: 2.258 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.03028/1.534, allocations: 13.23 MB / 1.311 GB, free: 13.85 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 8.195e-06/1.534, allocations: 1.125 kB / 1.311 GB, free: 13.85 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.214e-06/1.534, allocations: 0 / 1.311 GB, free: 13.85 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0007693/1.535, allocations: 0 / 1.311 GB, free: 13.85 MB / 1.014 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.04127/1.576, allocations: 8.72 MB / 1.319 GB, free: 9.309 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.187e-05/1.576, allocations: 10.5 kB / 1.319 GB, free: 9.309 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007282/1.584, allocations: 0.8952 MB / 1.32 GB, free: 8.871 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02353/1.607, allocations: 6.744 MB / 1.327 GB, free: 5.977 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000739/1.608, allocations: 459.8 kB / 1.327 GB, free: 5.77 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004024/1.612, allocations: 0.6017 MB / 1.328 GB, free: 5.566 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03514/1.647, allocations: 9.028 MB / 1.337 GB, free: 0.8164 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005171/1.648, allocations: 19.55 kB / 1.337 GB, free: 0.8125 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003823/1.652, allocations: 261.5 kB / 1.337 GB, free: 0.6211 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002853/1.652, allocations: 183.1 kB / 1.337 GB, free: 0.6055 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02201/1.674, allocations: 7.458 MB / 1.344 GB, free: 12.8 MB / 1.029 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.08341/1.757, allocations: 36.07 MB / 1.379 GB, free: 7.309 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008329/1.766, allocations: 4.279 MB / 1.384 GB, free: 3.059 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005819/1.772, allocations: 3.293 MB / 1.387 GB, free: 15.77 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001546/1.773, allocations: 0.9588 MB / 1.388 GB, free: 14.64 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005431/1.779, allocations: 2.387 MB / 1.39 GB, free: 12.22 MB / 1.076 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004194/1.783, allocations: 385 kB / 1.391 GB, free: 11.84 MB / 1.076 GB Notification: Performance of pre-optimization done (n=317): time 1.588e-05/1.783, allocations: 0 / 1.391 GB, free: 11.84 MB / 1.076 GB Notification: Performance of matching and sorting (n=317): time 0.01956/1.802, allocations: 7.158 MB / 1.397 GB, free: 4.617 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/1.803, allocations: 81.91 kB / 1.398 GB, free: 4.523 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0177/1.82, allocations: 5.678 MB / 1.403 GB, free: 14.87 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 0.001397/1.822, allocations: 91.95 kB / 1.403 GB, free: 14.77 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 0.004892/1.827, allocations: 3.268 MB / 1.406 GB, free: 11.5 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 0.00255/1.829, allocations: 1.172 MB / 1.408 GB, free: 10.34 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001793/1.831, allocations: 0.8585 MB / 1.408 GB, free: 9.469 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0002094/1.831, allocations: 305.1 kB / 1.409 GB, free: 9.168 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003682/1.835, allocations: 2.164 MB / 1.411 GB, free: 6.996 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004721/1.84, allocations: 3.695 MB / 1.414 GB, free: 2.629 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009541/1.849, allocations: 6.327 MB / 1.421 GB, free: 11.79 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.085e-05/1.849, allocations: 12 kB / 1.421 GB, free: 11.78 MB / 1.107 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01378/1.863, allocations: 6.801 MB / 1.427 GB, free: 5.227 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 8.77e-05/1.863, allocations: 58.64 kB / 1.427 GB, free: 5.164 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-05/1.863, allocations: 48 kB / 1.427 GB, free: 5.117 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00114/1.865, allocations: 434.6 kB / 1.428 GB, free: 4.691 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004095/1.869, allocations: 1.006 MB / 1.429 GB, free: 3.754 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006339/1.875, allocations: 5.711 MB / 1.434 GB, free: 13.83 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006518/1.882, allocations: 287.5 kB / 1.435 GB, free: 13.55 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001149/1.883, allocations: 216 kB / 1.435 GB, free: 13.34 MB / 1.123 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.006287/1.889, allocations: 2.483 MB / 1.437 GB, free: 10.84 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002159/1.891, allocations: 0.5513 MB / 1.438 GB, free: 10.29 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009713/1.901, allocations: 5.272 MB / 1.443 GB, free: 4.957 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-05/1.901, allocations: 32 kB / 1.443 GB, free: 4.926 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.319e-05/1.901, allocations: 8 kB / 1.443 GB, free: 4.918 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006945/1.908, allocations: 4.528 MB / 1.447 GB, free: 292 kB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02931/1.937, allocations: 11.98 MB / 1.459 GB, free: 4.238 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-05/1.937, allocations: 0 / 1.459 GB, free: 4.238 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002998/1.94, allocations: 0.6438 MB / 1.46 GB, free: 3.594 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009799/1.941, allocations: 377.3 kB / 1.46 GB, free: 3.219 MB / 1.139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004183/1.942, allocations: 87.95 kB / 1.46 GB, free: 3.133 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006012/1.948, allocations: 5.616 MB / 1.466 GB, free: 13.26 MB / 1.154 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/1.948, allocations: 4 kB / 1.466 GB, free: 13.25 MB / 1.154 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01604/1.964, allocations: 7.796 MB / 1.473 GB, free: 5.367 MB / 1.154 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006151/1.97, allocations: 1.177 MB / 1.474 GB, free: 4.168 MB / 1.154 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002497/1.973, allocations: 67.98 kB / 1.474 GB, free: 4.102 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005484/1.978, allocations: 203 kB / 1.475 GB, free: 3.906 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006663/1.979, allocations: 194.2 kB / 1.475 GB, free: 3.715 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005316/1.979, allocations: 143.9 kB / 1.475 GB, free: 3.574 MB / 1.154 GB Notification: Performance of sorting global known variables: time 0.009718/1.989, allocations: 3.959 MB / 1.479 GB, free: 15.64 MB / 1.17 GB Notification: Performance of sort global known variables: time 3.91e-07/1.989, allocations: 3.938 kB / 1.479 GB, free: 15.63 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.01307/2.002, allocations: 2.023 MB / 1.481 GB, free: 13.61 MB / 1.17 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.002565/2.005, allocations: 497.8 kB / 1.481 GB, free: 13.13 MB / 1.17 GB Notification: Performance of simCode: created initialization part: time 0.01194/2.017, allocations: 5.446 MB / 1.487 GB, free: 7.656 MB / 1.17 GB Notification: Performance of simCode: created event and clocks part: time 1.26e-05/2.017, allocations: 8.062 kB / 1.487 GB, free: 7.648 MB / 1.17 GB Notification: Performance of simCode: created simulation system equations: time 0.005044/2.022, allocations: 2.541 MB / 1.489 GB, free: 5.082 MB / 1.17 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02289/2.045, allocations: 3.388 MB / 1.492 GB, free: 1.785 MB / 1.17 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03841/2.083, allocations: 14.09 MB / 1.506 GB, free: 3.648 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006975/2.09, allocations: 4.628 MB / 1.511 GB, free: 14.99 MB / 1.201 GB Notification: Performance of simCode: alias equations: time 0.008112/2.098, allocations: 2.081 MB / 1.513 GB, free: 12.91 MB / 1.201 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002174/2.101, allocations: 467.2 kB / 1.513 GB, free: 12.45 MB / 1.201 GB Notification: Performance of SimCode: time 9.82e-07/2.101, allocations: 0 / 1.513 GB, free: 12.45 MB / 1.201 GB Notification: Performance of Templates: time 0.2147/2.315, allocations: 116.6 MB / 1.627 GB, free: 9.078 MB / 1.311 GB make -j1 -f Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.makefile (rm -f Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.sim & ./Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches