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.00711/0.00711, allocations: 101.6 kB / 15.88 MB, free: 5.867 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.001559/0.001559, allocations: 193.1 kB / 16.79 MB, free: 5.809 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.425/1.425, allocations: 222.9 MB / 240.5 MB, free: 4.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.771/2.771, allocations: 461.9 MB / 0.7348 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 64.48 kB / 0.899 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3574/0.3588, allocations: 157.4 MB / 1.053 GB, free: 8.289 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.05313/0.4119, allocations: 55.66 MB / 1.107 GB, free: 444 kB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.02397/0.436, allocations: 17.93 MB / 1.125 GB, free: 14.45 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003499/0.4395, allocations: 63.62 kB / 1.125 GB, free: 14.39 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.002931/0.4425, allocations: 0.7341 MB / 1.125 GB, free: 13.65 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.007983/0.4505, allocations: 2.325 MB / 1.128 GB, free: 11.32 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.004016/0.4545, allocations: 1.381 MB / 1.129 GB, free: 9.945 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0266/0.4812, allocations: 27.82 MB / 1.156 GB, free: 14.06 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01461/0.4958, allocations: 8.689 MB / 1.165 GB, free: 5.25 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01564/0.5115, allocations: 5.513 MB / 1.17 GB, free: 15.71 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01448/0.5261, allocations: 6.181 MB / 1.176 GB, free: 9.508 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.002761/0.5289, allocations: 472 kB / 1.177 GB, free: 9.047 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006653/0.5355, allocations: 1.155 MB / 1.178 GB, free: 7.891 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.004052/0.5396, allocations: 1.798 MB / 1.179 GB, free: 6.086 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.01092/0.5506, allocations: 4.121 MB / 1.183 GB, free: 1.945 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.01284/0.5634, allocations: 10.62 MB / 1.194 GB, free: 7.301 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.5635, allocations: 3.938 kB / 1.194 GB, free: 7.297 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.064e-06/0.5635, allocations: 0 / 1.194 GB, free: 7.297 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 0.0004964/0.564, allocations: 0 / 1.194 GB, free: 7.297 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.02646/0.5905, allocations: 8.499 MB / 1.202 GB, free: 14.7 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/0.5905, allocations: 15.97 kB / 1.202 GB, free: 14.69 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004962/0.5955, allocations: 0.8625 MB / 1.203 GB, free: 13.82 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01475/0.6103, allocations: 6.609 MB / 1.209 GB, free: 7.148 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004842/0.6108, allocations: 460.4 kB / 1.21 GB, free: 6.695 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002571/0.6134, allocations: 0.6014 MB / 1.21 GB, free: 6.094 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02638/0.6398, allocations: 9.021 MB / 1.219 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003391/0.6402, allocations: 27.77 kB / 1.219 GB, free: 12.72 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002352/0.6425, allocations: 260 kB / 1.22 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002314/0.6428, allocations: 175.9 kB / 1.22 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01864/0.6614, allocations: 7.453 MB / 1.227 GB, free: 4.832 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.314/1.976, allocations: 35.9 MB / 1.262 GB, free: 160.4 MB / 0.9982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008501/1.984, allocations: 4.28 MB / 1.266 GB, free: 160.4 MB / 0.9982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006642/1.991, allocations: 3.305 MB / 1.269 GB, free: 160.3 MB / 0.9982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001402/1.993, allocations: 0.9552 MB / 1.27 GB, free: 159.4 MB / 0.9982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005806/1.998, allocations: 2.388 MB / 1.273 GB, free: 159.3 MB / 0.9982 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003691/2.002, allocations: 447.4 kB / 1.273 GB, free: 159.3 MB / 0.9982 GB Notification: Performance of pre-optimization done (n=317): time 1.564e-05/2.002, allocations: 0 / 1.273 GB, free: 159.3 MB / 0.9982 GB Notification: Performance of matching and sorting (n=317): time 0.01578/2.018, allocations: 7.106 MB / 1.28 GB, free: 158.3 MB / 0.9982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.637e-05/2.018, allocations: 85.78 kB / 1.28 GB, free: 158.3 MB / 0.9982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01075/2.029, allocations: 5.47 MB / 1.285 GB, free: 156.5 MB / 0.9982 GB Notification: Performance of collectPreVariables (initialization): time 0.001082/2.03, allocations: 85.95 kB / 1.286 GB, free: 156.4 MB / 0.9982 GB Notification: Performance of collectInitialEqns (initialization): time 0.003125/2.033, allocations: 3.193 MB / 1.289 GB, free: 154 MB / 0.9982 GB Notification: Performance of collectInitialBindings (initialization): time 0.001894/2.035, allocations: 1.116 MB / 1.29 GB, free: 153.2 MB / 0.9982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001448/2.036, allocations: 0.8539 MB / 1.291 GB, free: 152.8 MB / 0.9982 GB Notification: Performance of setup shared object (initialization): time 6.724e-05/2.037, allocations: 303 kB / 1.291 GB, free: 152.5 MB / 0.9982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00367/2.04, allocations: 2.151 MB / 1.293 GB, free: 151.7 MB / 0.9982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003821/2.044, allocations: 3.688 MB / 1.297 GB, free: 148.9 MB / 0.9982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006747/2.051, allocations: 6.303 MB / 1.303 GB, free: 144.4 MB / 0.9982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.964e-05/2.051, allocations: 13.88 kB / 1.303 GB, free: 144.4 MB / 0.9982 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01007/2.061, allocations: 6.754 MB / 1.309 GB, free: 140.9 MB / 0.9982 GB Notification: Performance of prepare postOptimizeDAE: time 6.774e-05/2.061, allocations: 51.67 kB / 1.309 GB, free: 140.8 MB / 0.9982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.616e-05/2.061, allocations: 53.75 kB / 1.309 GB, free: 140.8 MB / 0.9982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009018/2.062, allocations: 439.3 kB / 1.31 GB, free: 140.6 MB / 0.9982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003069/2.065, allocations: 0.9985 MB / 1.311 GB, free: 140.4 MB / 0.9982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004533/2.07, allocations: 5.267 MB / 1.316 GB, free: 136 MB / 0.9982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005929/2.076, allocations: 463.7 kB / 1.316 GB, free: 135.8 MB / 0.9982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006125/2.076, allocations: 217.3 kB / 1.317 GB, free: 135.8 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.004551/2.081, allocations: 2.485 MB / 1.319 GB, free: 134.2 MB / 0.9982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001794/2.083, allocations: 0.5279 MB / 1.32 GB, free: 134 MB / 0.9982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008239/2.091, allocations: 5.251 MB / 1.325 GB, free: 128.9 MB / 0.9982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-05/2.091, allocations: 32 kB / 1.325 GB, free: 128.9 MB / 0.9982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/2.091, allocations: 4 kB / 1.325 GB, free: 128.9 MB / 0.9982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005037/2.096, allocations: 4.526 MB / 1.329 GB, free: 124.2 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.02009/2.116, allocations: 11.96 MB / 1.341 GB, free: 112.2 MB / 0.9982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.164e-05/2.116, allocations: 3.938 kB / 1.341 GB, free: 112.2 MB / 0.9982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002433/2.119, allocations: 0.6438 MB / 1.341 GB, free: 111.5 MB / 0.9982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009135/2.119, allocations: 370.7 kB / 1.342 GB, free: 111.2 MB / 0.9982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002268/2.12, allocations: 79.95 kB / 1.342 GB, free: 111.1 MB / 0.9982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005199/2.125, allocations: 5.178 MB / 1.347 GB, free: 105.6 MB / 0.9982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/2.125, allocations: 7.875 kB / 1.347 GB, free: 105.6 MB / 0.9982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01059/2.136, allocations: 7.62 MB / 1.354 GB, free: 97.93 MB / 0.9982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003685/2.139, allocations: 1.128 MB / 1.356 GB, free: 96.78 MB / 0.9982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001145/2.14, allocations: 71.98 kB / 1.356 GB, free: 96.71 MB / 0.9982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003918/2.144, allocations: 464 kB / 1.356 GB, free: 96.25 MB / 0.9982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000446/2.145, allocations: 196.9 kB / 1.356 GB, free: 96.06 MB / 0.9982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002983/2.145, allocations: 139.9 kB / 1.356 GB, free: 95.93 MB / 0.9982 GB Notification: Performance of sorting global known variables: time 0.005374/2.15, allocations: 3.807 MB / 1.36 GB, free: 92.14 MB / 0.9982 GB Notification: Performance of sort global known variables: time 1.7e-07/2.15, allocations: 0 / 1.36 GB, free: 92.14 MB / 0.9982 GB Notification: Performance of remove unused functions: time 0.007265/2.158, allocations: 1.982 MB / 1.362 GB, free: 90.17 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.001438/2.159, allocations: 498.8 kB / 1.362 GB, free: 89.74 MB / 0.9982 GB Notification: Performance of simCode: created initialization part: time 0.007143/2.166, allocations: 5.371 MB / 1.368 GB, free: 84.32 MB / 0.9982 GB Notification: Performance of simCode: created event and clocks part: time 8.857e-06/2.166, allocations: 4 kB / 1.368 GB, free: 84.31 MB / 0.9982 GB Notification: Performance of simCode: created simulation system equations: time 0.002981/2.169, allocations: 2.506 MB / 1.37 GB, free: 81.78 MB / 0.9982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01541/2.185, allocations: 3.224 MB / 1.373 GB, free: 78.68 MB / 0.9982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02384/2.209, allocations: 16.5 MB / 1.389 GB, free: 62.13 MB / 0.9982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003671/2.212, allocations: 4.549 MB / 1.394 GB, free: 57.55 MB / 0.9982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002247/2.215, allocations: 487.2 kB / 1.394 GB, free: 57.07 MB / 0.9982 GB Notification: Performance of SimCode: time 1.172e-06/2.215, allocations: 0 / 1.394 GB, free: 57.07 MB / 0.9982 GB Notification: Performance of Templates: time 0.2556/2.47, allocations: 185.9 MB / 1.576 GB, free: 15.63 MB / 1.139 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches