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.0009277/0.0009277, allocations: 91.38 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 180.8 kB / 16.92 MB, free: 6.652 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.444/1.444, allocations: 223.3 MB / 241 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.876/2.876, allocations: 462.7 MB / 0.7371 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004728/0.0004723, allocations: 12.12 kB / 0.9034 GB, free: 36.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3879/0.3884, allocations: 159.6 MB / 1.059 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.05577/0.4442, allocations: 54.56 MB / 1.113 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.02501/0.4693, allocations: 17.74 MB / 1.13 GB, free: 12.46 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003352/0.4727, allocations: 67.56 kB / 1.13 GB, free: 12.39 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.002881/0.4756, allocations: 0.7186 MB / 1.131 GB, free: 11.67 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.00846/0.4841, allocations: 2.324 MB / 1.133 GB, free: 9.336 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.004273/0.4884, allocations: 1.374 MB / 1.134 GB, free: 7.969 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.02711/0.5155, allocations: 27.81 MB / 1.161 GB, free: 12.09 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01233/0.5279, allocations: 8.414 MB / 1.17 GB, free: 3.566 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01175/0.5397, allocations: 5.209 MB / 1.175 GB, free: 14.34 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01154/0.5513, allocations: 5.783 MB / 1.18 GB, free: 8.527 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.002189/0.5535, allocations: 344 kB / 1.181 GB, free: 8.191 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005849/0.5594, allocations: 1.033 MB / 1.182 GB, free: 7.156 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.002711/0.5621, allocations: 1.599 MB / 1.183 GB, free: 5.551 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.008697/0.5708, allocations: 3.889 MB / 1.187 GB, free: 1.637 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.01297/0.5838, allocations: 10.37 MB / 1.197 GB, free: 7.238 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.5839, allocations: 0 / 1.197 GB, free: 7.238 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.575e-06/0.5839, allocations: 4 kB / 1.197 GB, free: 7.234 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 0.0004619/0.5844, allocations: 0 / 1.197 GB, free: 7.234 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.0176/0.602, allocations: 6.885 MB / 1.204 GB, free: 264 kB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.149e-05/0.602, allocations: 15.95 kB / 1.204 GB, free: 248 kB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00432/0.6064, allocations: 0.8472 MB / 1.205 GB, free: 15.38 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01287/0.6193, allocations: 6.625 MB / 1.211 GB, free: 8.699 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004192/0.6197, allocations: 464.3 kB / 1.212 GB, free: 8.242 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002053/0.6218, allocations: 0.5937 MB / 1.212 GB, free: 7.648 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02051/0.6423, allocations: 9.028 MB / 1.221 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001424/0.6425, allocations: 23.72 kB / 1.221 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007548/0.6432, allocations: 264 kB / 1.221 GB, free: 14.01 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001761/0.6434, allocations: 176 kB / 1.222 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01623/0.6597, allocations: 7.461 MB / 1.229 GB, free: 6.371 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.336/1.995, allocations: 35.98 MB / 1.264 GB, free: 156.8 MB / 0.9982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006701/2.002, allocations: 4.279 MB / 1.268 GB, free: 156.7 MB / 0.9982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006571/2.009, allocations: 3.333 MB / 1.271 GB, free: 156.7 MB / 0.9982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001346/2.01, allocations: 0.9801 MB / 1.272 GB, free: 155.7 MB / 0.9982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005753/2.016, allocations: 2.398 MB / 1.275 GB, free: 155.6 MB / 0.9982 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003947/2.02, allocations: 440.2 kB / 1.275 GB, free: 155.6 MB / 0.9982 GB Notification: Performance of pre-optimization done (n=317): time 2.009e-05/2.02, allocations: 0 / 1.275 GB, free: 155.6 MB / 0.9982 GB Notification: Performance of matching and sorting (n=317): time 0.01631/2.036, allocations: 7.147 MB / 1.282 GB, free: 155 MB / 0.9982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.477e-05/2.036, allocations: 84.98 kB / 1.282 GB, free: 154.9 MB / 0.9982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01159/2.048, allocations: 5.463 MB / 1.288 GB, free: 153.1 MB / 0.9982 GB Notification: Performance of collectPreVariables (initialization): time 0.0009525/2.049, allocations: 86.64 kB / 1.288 GB, free: 153 MB / 0.9982 GB Notification: Performance of collectInitialEqns (initialization): time 0.003153/2.052, allocations: 3.197 MB / 1.291 GB, free: 150.6 MB / 0.9982 GB Notification: Performance of collectInitialBindings (initialization): time 0.001856/2.054, allocations: 1.118 MB / 1.292 GB, free: 149.7 MB / 0.9982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005702/2.055, allocations: 360.5 kB / 1.292 GB, free: 149.6 MB / 0.9982 GB Notification: Performance of setup shared object (initialization): time 7.46e-05/2.055, allocations: 302.3 kB / 1.292 GB, free: 149.3 MB / 0.9982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003738/2.058, allocations: 2.161 MB / 1.295 GB, free: 148.5 MB / 0.9982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004441/2.063, allocations: 3.691 MB / 1.298 GB, free: 145.9 MB / 0.9982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007416/2.07, allocations: 6.311 MB / 1.304 GB, free: 141.7 MB / 0.9982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.536e-05/2.07, allocations: 15.84 kB / 1.304 GB, free: 141.7 MB / 0.9982 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01119/2.082, allocations: 6.766 MB / 1.311 GB, free: 138.2 MB / 0.9982 GB Notification: Performance of prepare postOptimizeDAE: time 7.821e-05/2.082, allocations: 52.45 kB / 1.311 GB, free: 138.2 MB / 0.9982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.8e-05/2.082, allocations: 49.09 kB / 1.311 GB, free: 138.2 MB / 0.9982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000958/2.083, allocations: 441.5 kB / 1.311 GB, free: 138 MB / 0.9982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003388/2.086, allocations: 1.014 MB / 1.312 GB, free: 137.7 MB / 0.9982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004633/2.091, allocations: 5.267 MB / 1.318 GB, free: 133.4 MB / 0.9982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006894/2.098, allocations: 470.5 kB / 1.318 GB, free: 133.2 MB / 0.9982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008962/2.099, allocations: 215.8 kB / 1.318 GB, free: 133.1 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.006125/2.105, allocations: 2.48 MB / 1.321 GB, free: 131.6 MB / 0.9982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00241/2.107, allocations: 0.5331 MB / 1.321 GB, free: 131.3 MB / 0.9982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008875/2.116, allocations: 5.257 MB / 1.326 GB, free: 127.8 MB / 0.9982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.592e-05/2.116, allocations: 32 kB / 1.326 GB, free: 127.8 MB / 0.9982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.075e-05/2.116, allocations: 7.984 kB / 1.326 GB, free: 127.8 MB / 0.9982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005341/2.122, allocations: 4.538 MB / 1.331 GB, free: 123.1 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.02012/2.142, allocations: 11.99 MB / 1.342 GB, free: 111 MB / 0.9982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.095e-05/2.142, allocations: 0 / 1.342 GB, free: 111 MB / 0.9982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002465/2.144, allocations: 0.6477 MB / 1.343 GB, free: 110.4 MB / 0.9982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007681/2.145, allocations: 377.3 kB / 1.343 GB, free: 110 MB / 0.9982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001941/2.145, allocations: 87.89 kB / 1.344 GB, free: 109.9 MB / 0.9982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004054/2.149, allocations: 5.172 MB / 1.349 GB, free: 104.5 MB / 0.9982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/2.149, allocations: 4 kB / 1.349 GB, free: 104.5 MB / 0.9982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01014/2.159, allocations: 7.633 MB / 1.356 GB, free: 96.77 MB / 0.9982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003684/2.163, allocations: 1.221 MB / 1.357 GB, free: 95.52 MB / 0.9982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00151/2.165, allocations: 67.98 kB / 1.357 GB, free: 95.45 MB / 0.9982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004622/2.169, allocations: 475.8 kB / 1.358 GB, free: 94.99 MB / 0.9982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004262/2.17, allocations: 198.2 kB / 1.358 GB, free: 94.8 MB / 0.9982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003295/2.17, allocations: 147.8 kB / 1.358 GB, free: 94.65 MB / 0.9982 GB Notification: Performance of sorting global known variables: time 0.005436/2.176, allocations: 3.803 MB / 1.362 GB, free: 90.87 MB / 0.9982 GB Notification: Performance of sort global known variables: time 2.31e-07/2.176, allocations: 0 / 1.362 GB, free: 90.87 MB / 0.9982 GB Notification: Performance of remove unused functions: time 0.007091/2.183, allocations: 1.982 MB / 1.364 GB, free: 88.9 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.001297/2.184, allocations: 488.7 kB / 1.364 GB, free: 88.47 MB / 0.9982 GB Notification: Performance of simCode: created initialization part: time 0.007495/2.191, allocations: 5.386 MB / 1.369 GB, free: 83.04 MB / 0.9982 GB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/2.192, allocations: 12 kB / 1.37 GB, free: 83.02 MB / 0.9982 GB Notification: Performance of simCode: created simulation system equations: time 0.003061/2.195, allocations: 2.498 MB / 1.372 GB, free: 80.5 MB / 0.9982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01819/2.213, allocations: 3.232 MB / 1.375 GB, free: 77.37 MB / 0.9982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02447/2.237, allocations: 16.74 MB / 1.391 GB, free: 60.59 MB / 0.9982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00392/2.241, allocations: 4.553 MB / 1.396 GB, free: 56 MB / 0.9982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002203/2.244, allocations: 487.2 kB / 1.396 GB, free: 55.52 MB / 0.9982 GB Notification: Performance of SimCode: time 1.973e-06/2.244, allocations: 0 / 1.396 GB, free: 55.52 MB / 0.9982 GB Notification: Performance of Templates: time 0.2611/2.505, allocations: 184.8 MB / 1.577 GB, free: 15.05 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