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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.005847/0.005847, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001145/0.001145, allocations: 196.9 kB / 16.67 MB, free: 5.977 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.408/1.408, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.831/2.831, allocations: 461.9 MB / 0.7347 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 63.89 kB / 1.054 GB, free: 7.203 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3892/0.3905, allocations: 157.4 MB / 1.208 GB, free: 9.699 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.9652/1.356, allocations: 56 MB / 1.262 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.03119/1.387, allocations: 17.95 MB / 1.28 GB, free: 1.852 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005917/1.393, allocations: 77.44 kB / 1.28 GB, free: 1.824 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.004283/1.397, allocations: 0.898 MB / 1.281 GB, free: 1.441 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01151/1.409, allocations: 2.502 MB / 1.283 GB, free: 348 kB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.006168/1.415, allocations: 1.535 MB / 1.285 GB, free: 128 kB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.03099/1.446, allocations: 21.25 MB / 1.306 GB, free: 7.918 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02438/1.471, allocations: 10.68 MB / 1.316 GB, free: 3.48 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02309/1.494, allocations: 7.239 MB / 1.323 GB, free: 296 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01847/1.512, allocations: 6.358 MB / 1.329 GB, free: 13.43 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.005804/1.518, allocations: 0.9373 MB / 1.33 GB, free: 13.43 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01443/1.533, allocations: 1.694 MB / 1.332 GB, free: 13.12 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.008405/1.541, allocations: 2.35 MB / 1.334 GB, free: 11.7 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.01975/1.561, allocations: 4.707 MB / 1.339 GB, free: 8.84 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.02927/1.59, allocations: 13.18 MB / 1.352 GB, free: 1.16 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 7.914e-06/1.59, allocations: 0 / 1.352 GB, free: 1.16 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.684e-06/1.59, allocations: 4 kB / 1.352 GB, free: 1.156 MB / 1.029 GB Notification: Performance of Transformations before backend: time 0.0006949/1.591, allocations: 0 / 1.352 GB, free: 1.156 MB / 1.029 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.03456/1.626, allocations: 8.511 MB / 1.36 GB, free: 11.25 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.833e-05/1.626, allocations: 12.61 kB / 1.36 GB, free: 11.24 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007273/1.633, allocations: 0.8547 MB / 1.361 GB, free: 10.38 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01983/1.653, allocations: 6.7 MB / 1.367 GB, free: 3.617 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006096/1.653, allocations: 460.6 kB / 1.368 GB, free: 3.164 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003552/1.657, allocations: 0.6092 MB / 1.368 GB, free: 2.555 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02859/1.686, allocations: 9.02 MB / 1.377 GB, free: 9.211 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000377/1.686, allocations: 23.78 kB / 1.377 GB, free: 9.188 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002953/1.689, allocations: 264 kB / 1.377 GB, free: 8.93 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002421/1.689, allocations: 179.9 kB / 1.378 GB, free: 8.754 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01983/1.709, allocations: 7.449 MB / 1.385 GB, free: 1.297 MB / 1.061 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.06793/1.777, allocations: 35.98 MB / 1.42 GB, free: 11.25 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008544/1.786, allocations: 4.293 MB / 1.424 GB, free: 6.965 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005546/1.791, allocations: 3.301 MB / 1.427 GB, free: 3.656 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001373/1.793, allocations: 0.9544 MB / 1.428 GB, free: 2.516 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004569/1.797, allocations: 2.382 MB / 1.431 GB, free: 100 kB / 1.107 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003361/1.801, allocations: 375.8 kB / 1.431 GB, free: 15.73 MB / 1.123 GB Notification: Performance of pre-optimization done (n=317): time 1.511e-05/1.801, allocations: 0 / 1.431 GB, free: 15.73 MB / 1.123 GB Notification: Performance of matching and sorting (n=317): time 0.01431/1.815, allocations: 7.136 MB / 1.438 GB, free: 8.5 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.5e-05/1.815, allocations: 85.91 kB / 1.438 GB, free: 8.402 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01059/1.826, allocations: 5.662 MB / 1.444 GB, free: 2.762 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 0.001064/1.827, allocations: 93.7 kB / 1.444 GB, free: 2.664 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.003512/1.83, allocations: 3.2 MB / 1.447 GB, free: 15.43 MB / 1.139 GB Notification: Performance of collectInitialBindings (initialization): time 0.002067/1.832, allocations: 1.113 MB / 1.448 GB, free: 14.3 MB / 1.139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001502/1.834, allocations: 0.8619 MB / 1.449 GB, free: 13.43 MB / 1.139 GB Notification: Performance of setup shared object (initialization): time 0.0001015/1.834, allocations: 305.1 kB / 1.449 GB, free: 13.12 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003543/1.837, allocations: 2.163 MB / 1.451 GB, free: 10.95 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004763/1.842, allocations: 3.685 MB / 1.455 GB, free: 6.566 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00945/1.852, allocations: 6.323 MB / 1.461 GB, free: 15.52 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.432e-05/1.852, allocations: 16 kB / 1.461 GB, free: 15.51 MB / 1.154 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01396/1.866, allocations: 6.771 MB / 1.468 GB, free: 8.684 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 7.69e-05/1.866, allocations: 59.89 kB / 1.468 GB, free: 8.621 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.408e-05/1.866, allocations: 48 kB / 1.468 GB, free: 8.574 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00107/1.867, allocations: 440.3 kB / 1.468 GB, free: 8.141 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003989/1.871, allocations: 1.002 MB / 1.469 GB, free: 7.137 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005859/1.877, allocations: 5.698 MB / 1.475 GB, free: 1.168 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006291/1.883, allocations: 287.5 kB / 1.475 GB, free: 0.8867 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009666/1.884, allocations: 216 kB / 1.475 GB, free: 0.6758 MB / 1.154 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.006124/1.89, allocations: 2.48 MB / 1.478 GB, free: 14.18 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002248/1.893, allocations: 0.5287 MB / 1.478 GB, free: 13.64 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008954/1.902, allocations: 5.274 MB / 1.483 GB, free: 8.312 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.274e-05/1.902, allocations: 36 kB / 1.483 GB, free: 8.277 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/1.902, allocations: 4 kB / 1.483 GB, free: 8.273 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006368/1.908, allocations: 4.532 MB / 1.488 GB, free: 3.637 MB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02747/1.936, allocations: 11.98 MB / 1.499 GB, free: 7.516 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.126e-05/1.936, allocations: 0 / 1.499 GB, free: 7.516 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002681/1.938, allocations: 0.6477 MB / 1.5 GB, free: 6.867 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008758/1.939, allocations: 371 kB / 1.5 GB, free: 6.5 MB / 1.186 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002316/1.939, allocations: 83.95 kB / 1.5 GB, free: 6.418 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00563/1.945, allocations: 5.625 MB / 1.506 GB, free: 0.5117 MB / 1.186 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/1.945, allocations: 0 / 1.506 GB, free: 0.5117 MB / 1.186 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01273/1.958, allocations: 7.769 MB / 1.514 GB, free: 8.645 MB / 1.201 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004983/1.963, allocations: 1.159 MB / 1.515 GB, free: 7.461 MB / 1.201 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002216/1.965, allocations: 63.94 kB / 1.515 GB, free: 7.398 MB / 1.201 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004642/1.97, allocations: 191.7 kB / 1.515 GB, free: 7.211 MB / 1.201 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005038/1.97, allocations: 202.3 kB / 1.515 GB, free: 7.012 MB / 1.201 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000463/1.971, allocations: 143.8 kB / 1.515 GB, free: 6.871 MB / 1.201 GB Notification: Performance of sorting global known variables: time 0.007695/1.978, allocations: 3.963 MB / 1.519 GB, free: 2.93 MB / 1.201 GB Notification: Performance of sort global known variables: time 3.61e-07/1.978, allocations: 0 / 1.519 GB, free: 2.93 MB / 1.201 GB Notification: Performance of remove unused functions: time 0.009051/1.987, allocations: 2.011 MB / 1.521 GB, free: 0.9141 MB / 1.201 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.001639/1.989, allocations: 0.4892 MB / 1.522 GB, free: 432 kB / 1.201 GB Notification: Performance of simCode: created initialization part: time 0.008773/1.998, allocations: 5.437 MB / 1.527 GB, free: 10.93 MB / 1.217 GB Notification: Performance of simCode: created event and clocks part: time 1.236e-05/1.998, allocations: 4 kB / 1.527 GB, free: 10.93 MB / 1.217 GB Notification: Performance of simCode: created simulation system equations: time 0.003942/2.002, allocations: 2.549 MB / 1.529 GB, free: 8.348 MB / 1.217 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01783/2.02, allocations: 3.376 MB / 1.533 GB, free: 5.062 MB / 1.217 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02504/2.045, allocations: 13.89 MB / 1.546 GB, free: 7.125 MB / 1.232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004526/2.049, allocations: 4.632 MB / 1.551 GB, free: 2.457 MB / 1.232 GB Notification: Performance of simCode: alias equations: time 0.0067/2.056, allocations: 2.079 MB / 1.553 GB, free: 392 kB / 1.232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00178/2.058, allocations: 471.3 kB / 1.553 GB, free: 15.92 MB / 1.248 GB Notification: Performance of SimCode: time 1.824e-06/2.058, allocations: 0 / 1.553 GB, free: 15.92 MB / 1.248 GB Notification: Performance of Templates: time 0.1866/2.245, allocations: 118 MB / 1.668 GB, free: 10.83 MB / 1.357 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