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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001567/0.001568, allocations: 110.6 kB / 15.99 MB, free: 6.367 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.001523/0.001523, allocations: 191.5 kB / 16.91 MB, free: 6.195 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.381/1.381, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.702/2.702, allocations: 482.2 MB / 0.7548 GB, free: 7.336 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002074/0.002074, allocations: 58.8 kB / 0.9238 GB, free: 0.543 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9001/0.9022, allocations: 162.2 MB / 1.082 GB, free: 1.742 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.067/0.9692, allocations: 55.61 MB / 1.136 GB, free: 9.887 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.02854/0.9978, allocations: 17.82 MB / 1.154 GB, free: 12.38 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004346/1.002, allocations: 66.75 kB / 1.154 GB, free: 12.35 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.003517/1.006, allocations: 0.7628 MB / 1.155 GB, free: 11.7 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0088/1.015, allocations: 2.308 MB / 1.157 GB, free: 9.863 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.004737/1.019, allocations: 1.397 MB / 1.158 GB, free: 8.785 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.02607/1.045, allocations: 21.39 MB / 1.179 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01547/1.061, allocations: 10.57 MB / 1.189 GB, free: 1.145 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01828/1.079, allocations: 7.421 MB / 1.197 GB, free: 9.742 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0114/1.091, allocations: 6.459 MB / 1.203 GB, free: 3.258 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.002963/1.094, allocations: 0.9297 MB / 1.204 GB, free: 2.328 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007186/1.101, allocations: 1.698 MB / 1.206 GB, free: 0.6289 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.004124/1.105, allocations: 2.329 MB / 1.208 GB, free: 14.29 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.01003/1.115, allocations: 4.711 MB / 1.212 GB, free: 9.559 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.01323/1.128, allocations: 10.76 MB / 1.223 GB, free: 14.78 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/1.128, allocations: 4 kB / 1.223 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.575e-06/1.128, allocations: 0 / 1.223 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 0.0004236/1.129, allocations: 0 / 1.223 GB, free: 14.77 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.02136/1.15, allocations: 8.499 MB / 1.231 GB, free: 6.184 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/1.15, allocations: 8.031 kB / 1.231 GB, free: 6.176 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003585/1.154, allocations: 0.8625 MB / 1.232 GB, free: 5.305 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0152/1.169, allocations: 6.624 MB / 1.239 GB, free: 14.62 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005183/1.17, allocations: 464.3 kB / 1.239 GB, free: 14.16 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002403/1.172, allocations: 0.5936 MB / 1.24 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02256/1.195, allocations: 9.032 MB / 1.248 GB, free: 4.215 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001696/1.195, allocations: 15.88 kB / 1.248 GB, free: 4.199 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001201/1.196, allocations: 260 kB / 1.249 GB, free: 3.945 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000209/1.196, allocations: 187.9 kB / 1.249 GB, free: 3.762 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01708/1.213, allocations: 7.445 MB / 1.256 GB, free: 12.3 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 0.05628/1.27, allocations: 35.95 MB / 1.291 GB, free: 6.297 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007449/1.277, allocations: 4.273 MB / 1.295 GB, free: 2.027 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005623/1.283, allocations: 3.312 MB / 1.299 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001522/1.284, allocations: 0.9583 MB / 1.3 GB, free: 13.56 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004748/1.289, allocations: 2.39 MB / 1.302 GB, free: 11.14 MB / 1.029 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002919/1.292, allocations: 403.9 kB / 1.302 GB, free: 10.74 MB / 1.029 GB Notification: Performance of pre-optimization done (n=317): time 9.087e-06/1.292, allocations: 0 / 1.302 GB, free: 10.74 MB / 1.029 GB Notification: Performance of matching and sorting (n=317): time 0.01436/1.306, allocations: 7.136 MB / 1.309 GB, free: 3.512 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.145e-05/1.307, allocations: 81.91 kB / 1.309 GB, free: 3.418 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00925/1.316, allocations: 5.467 MB / 1.315 GB, free: 13.97 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0008619/1.317, allocations: 89.7 kB / 1.315 GB, free: 13.88 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.003406/1.32, allocations: 3.184 MB / 1.318 GB, free: 10.66 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.001804/1.322, allocations: 1.121 MB / 1.319 GB, free: 9.523 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001386/1.323, allocations: 0.8541 MB / 1.32 GB, free: 8.656 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001299/1.324, allocations: 309 kB / 1.32 GB, free: 8.352 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003486/1.327, allocations: 2.167 MB / 1.322 GB, free: 6.176 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004885/1.332, allocations: 3.701 MB / 1.326 GB, free: 1.77 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009612/1.342, allocations: 6.319 MB / 1.332 GB, free: 10.73 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.406e-05/1.342, allocations: 19.94 kB / 1.332 GB, free: 10.71 MB / 1.061 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01309/1.355, allocations: 6.784 MB / 1.339 GB, free: 3.879 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 8.402e-05/1.355, allocations: 49.7 kB / 1.339 GB, free: 3.824 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.502e-05/1.355, allocations: 52 kB / 1.339 GB, free: 3.773 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001058/1.356, allocations: 432.5 kB / 1.339 GB, free: 3.348 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003818/1.36, allocations: 1.01 MB / 1.34 GB, free: 2.336 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006498/1.366, allocations: 5.688 MB / 1.346 GB, free: 12.38 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005638/1.372, allocations: 470.7 kB / 1.346 GB, free: 11.91 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000744/1.373, allocations: 216 kB / 1.346 GB, free: 11.7 MB / 1.076 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.004792/1.378, allocations: 2.485 MB / 1.349 GB, free: 9.207 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001688/1.379, allocations: 0.5249 MB / 1.349 GB, free: 8.676 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009825/1.389, allocations: 5.27 MB / 1.354 GB, free: 3.348 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.139e-05/1.389, allocations: 35.98 kB / 1.355 GB, free: 3.312 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/1.389, allocations: 4 kB / 1.355 GB, free: 3.309 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007011/1.396, allocations: 4.535 MB / 1.359 GB, free: 14.66 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02455/1.421, allocations: 11.96 MB / 1.371 GB, free: 2.523 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.287e-05/1.421, allocations: 0 / 1.371 GB, free: 2.523 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003119/1.424, allocations: 0.6516 MB / 1.371 GB, free: 1.871 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001016/1.425, allocations: 373.3 kB / 1.372 GB, free: 1.5 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004563/1.425, allocations: 83.95 kB / 1.372 GB, free: 1.418 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006639/1.432, allocations: 5.614 MB / 1.377 GB, free: 11.53 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/1.432, allocations: 0 / 1.377 GB, free: 11.53 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01417/1.446, allocations: 7.757 MB / 1.385 GB, free: 3.676 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003772/1.45, allocations: 1.143 MB / 1.386 GB, free: 2.508 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001512/1.452, allocations: 67.92 kB / 1.386 GB, free: 2.441 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004721/1.456, allocations: 463.2 kB / 1.386 GB, free: 1.988 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005625/1.457, allocations: 194.2 kB / 1.387 GB, free: 1.797 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000403/1.457, allocations: 139.9 kB / 1.387 GB, free: 1.66 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.007684/1.465, allocations: 3.807 MB / 1.39 GB, free: 13.88 MB / 1.123 GB Notification: Performance of sort global known variables: time 3.11e-07/1.465, allocations: 3.938 kB / 1.39 GB, free: 13.87 MB / 1.123 GB Notification: Performance of remove unused functions: time 0.007338/1.473, allocations: 2.003 MB / 1.392 GB, free: 11.86 MB / 1.123 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.001579/1.474, allocations: 499.8 kB / 1.393 GB, free: 11.37 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.02434/1.498, allocations: 11.63 MB / 1.404 GB, free: 15.69 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 9.758e-06/1.499, allocations: 384 / 1.404 GB, free: 15.69 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.004907/1.503, allocations: 2.537 MB / 1.407 GB, free: 13.12 MB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01798/1.521, allocations: 3.39 MB / 1.41 GB, free: 9.855 MB / 1.139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03363/1.555, allocations: 16.63 MB / 1.426 GB, free: 9.164 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006832/1.562, allocations: 4.545 MB / 1.431 GB, free: 4.586 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002475/1.564, allocations: 491.2 kB / 1.431 GB, free: 4.105 MB / 1.154 GB Notification: Performance of SimCode: time 1.072e-06/1.565, allocations: 0 / 1.431 GB, free: 4.105 MB / 1.154 GB Notification: Performance of Templates: time 1.263/2.827, allocations: 186.1 MB / 1.613 GB, free: 378.5 MB / 1.264 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