Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.01265/0.01265, allocations: 96.25 kB / 15.73 MB, free: 6.043 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.001477/0.001477, allocations: 203.9 kB / 16.68 MB, free: 5.969 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.496/1.496, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.925/2.925, allocations: 469.8 MB / 0.7425 GB, free: 7.41 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 68.11 kB / 1.065 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3963/0.3977, allocations: 159.1 MB / 1.221 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 1.008/1.406, allocations: 56.1 MB / 1.275 GB, free: 0.8477 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.03101/1.437, allocations: 17.98 MB / 1.293 GB, free: 6.734 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004633/1.442, allocations: 77.69 kB / 1.293 GB, free: 6.707 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.003762/1.445, allocations: 0.9284 MB / 1.294 GB, free: 6.141 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.01056/1.456, allocations: 2.625 MB / 1.296 GB, free: 4.566 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.005824/1.462, allocations: 1.531 MB / 1.298 GB, free: 3.719 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.03536/1.497, allocations: 21.24 MB / 1.319 GB, free: 9.641 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02171/1.519, allocations: 8.877 MB / 1.327 GB, free: 5.938 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02507/1.544, allocations: 7.228 MB / 1.334 GB, free: 2.766 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01733/1.561, allocations: 6.367 MB / 1.341 GB, free: 15.89 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.006465/1.568, allocations: 0.9377 MB / 1.342 GB, free: 15.89 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01506/1.583, allocations: 1.701 MB / 1.343 GB, free: 15.57 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.007531/1.59, allocations: 2.424 MB / 1.346 GB, free: 14.09 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.01789/1.608, allocations: 4.706 MB / 1.35 GB, free: 11.23 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.02867/1.637, allocations: 13.22 MB / 1.363 GB, free: 2.234 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 1.047e-05/1.637, allocations: 0 / 1.363 GB, free: 2.234 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.014e-06/1.637, allocations: 0 / 1.363 GB, free: 2.234 MB / 1.045 GB Notification: Performance of Transformations before backend: time 0.0007245/1.638, allocations: 6.531 kB / 1.363 GB, free: 2.23 MB / 1.045 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.0347/1.672, allocations: 8.721 MB / 1.372 GB, free: 10.77 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/1.672, allocations: 8.031 kB / 1.372 GB, free: 10.76 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006005/1.678, allocations: 0.8942 MB / 1.373 GB, free: 9.859 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01998/1.698, allocations: 6.739 MB / 1.379 GB, free: 3.062 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006018/1.699, allocations: 465.3 kB / 1.38 GB, free: 2.605 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003291/1.702, allocations: 0.5937 MB / 1.38 GB, free: 2.012 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03088/1.733, allocations: 9.028 MB / 1.389 GB, free: 8.66 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005109/1.734, allocations: 27.81 kB / 1.389 GB, free: 8.633 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003163/1.737, allocations: 256 kB / 1.389 GB, free: 8.383 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002538/1.737, allocations: 175.9 kB / 1.389 GB, free: 8.211 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02075/1.758, allocations: 7.453 MB / 1.397 GB, free: 0.75 MB / 1.076 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.07096/1.829, allocations: 36.08 MB / 1.432 GB, free: 10.61 MB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01073/1.839, allocations: 4.026 MB / 1.436 GB, free: 6.578 MB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008765/1.848, allocations: 3.032 MB / 1.439 GB, free: 3.539 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002121/1.85, allocations: 0.9544 MB / 1.44 GB, free: 2.398 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007584/1.858, allocations: 2.379 MB / 1.442 GB, free: 15.98 MB / 1.139 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005033/1.863, allocations: 385 kB / 1.442 GB, free: 15.61 MB / 1.139 GB Notification: Performance of pre-optimization done (n=317): time 2.049e-05/1.863, allocations: 0 / 1.442 GB, free: 15.61 MB / 1.139 GB Notification: Performance of matching and sorting (n=317): time 0.02982/1.893, allocations: 7.151 MB / 1.449 GB, free: 8.367 MB / 1.139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/1.893, allocations: 81.91 kB / 1.449 GB, free: 8.273 MB / 1.139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02177/1.915, allocations: 5.678 MB / 1.455 GB, free: 2.617 MB / 1.139 GB Notification: Performance of collectPreVariables (initialization): time 0.001503/1.916, allocations: 85.7 kB / 1.455 GB, free: 2.527 MB / 1.139 GB Notification: Performance of collectInitialEqns (initialization): time 0.006926/1.923, allocations: 3.271 MB / 1.458 GB, free: 15.23 MB / 1.154 GB Notification: Performance of collectInitialBindings (initialization): time 0.003499/1.927, allocations: 1.166 MB / 1.459 GB, free: 14.05 MB / 1.154 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004971/1.932, allocations: 0.8624 MB / 1.46 GB, free: 13.18 MB / 1.154 GB Notification: Performance of setup shared object (initialization): time 0.0001335/1.932, allocations: 313.1 kB / 1.461 GB, free: 12.87 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007043/1.939, allocations: 2.163 MB / 1.463 GB, free: 10.7 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00913/1.948, allocations: 3.697 MB / 1.466 GB, free: 6.301 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01346/1.961, allocations: 6.315 MB / 1.472 GB, free: 15.27 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001096/1.961, allocations: 12 kB / 1.472 GB, free: 15.25 MB / 1.17 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.0186/1.98, allocations: 6.794 MB / 1.479 GB, free: 8.41 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001111/1.98, allocations: 61.69 kB / 1.479 GB, free: 8.344 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.095e-05/1.98, allocations: 48 kB / 1.479 GB, free: 8.297 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001161/1.981, allocations: 430 kB / 1.48 GB, free: 7.871 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004471/1.986, allocations: 1.006 MB / 1.481 GB, free: 6.863 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006273/1.992, allocations: 5.711 MB / 1.486 GB, free: 0.8828 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006101/1.998, allocations: 291.6 kB / 1.486 GB, free: 0.5977 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001142/1.999, allocations: 216 kB / 1.487 GB, free: 396 kB / 1.17 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.006813/2.006, allocations: 2.479 MB / 1.489 GB, free: 13.89 MB / 1.186 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002719/2.009, allocations: 0.5513 MB / 1.49 GB, free: 13.34 MB / 1.186 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01268/2.022, allocations: 5.247 MB / 1.495 GB, free: 8.035 MB / 1.186 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4e-05/2.022, allocations: 35.98 kB / 1.495 GB, free: 8 MB / 1.186 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.008e-05/2.022, allocations: 4 kB / 1.495 GB, free: 7.996 MB / 1.186 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008033/2.03, allocations: 4.512 MB / 1.499 GB, free: 3.379 MB / 1.186 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03448/2.064, allocations: 11.97 MB / 1.511 GB, free: 7.266 MB / 1.201 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.675e-05/2.064, allocations: 0 / 1.511 GB, free: 7.266 MB / 1.201 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003249/2.067, allocations: 0.6478 MB / 1.512 GB, free: 6.617 MB / 1.201 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009517/2.068, allocations: 376.3 kB / 1.512 GB, free: 6.246 MB / 1.201 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005738/2.069, allocations: 83.89 kB / 1.512 GB, free: 6.164 MB / 1.201 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005834/2.075, allocations: 5.62 MB / 1.517 GB, free: 276 kB / 1.201 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/2.075, allocations: 0 / 1.517 GB, free: 276 kB / 1.201 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01622/2.091, allocations: 7.787 MB / 1.525 GB, free: 8.387 MB / 1.217 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005457/2.097, allocations: 1.177 MB / 1.526 GB, free: 7.188 MB / 1.217 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002671/2.099, allocations: 63.98 kB / 1.526 GB, free: 7.125 MB / 1.217 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005342/2.105, allocations: 199.8 kB / 1.526 GB, free: 6.93 MB / 1.217 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007306/2.105, allocations: 210.1 kB / 1.527 GB, free: 6.723 MB / 1.217 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007088/2.106, allocations: 139.9 kB / 1.527 GB, free: 6.586 MB / 1.217 GB Notification: Performance of sorting global known variables: time 0.01055/2.117, allocations: 3.959 MB / 1.531 GB, free: 2.648 MB / 1.217 GB Notification: Performance of sort global known variables: time 2.3e-07/2.117, allocations: 0 / 1.531 GB, free: 2.648 MB / 1.217 GB Notification: Performance of remove unused functions: time 0.01221/2.129, allocations: 2.024 MB / 1.533 GB, free: 0.6211 MB / 1.217 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.002936/2.132, allocations: 0.4935 MB / 1.533 GB, free: 132 kB / 1.217 GB Notification: Performance of simCode: created initialization part: time 0.01247/2.144, allocations: 5.24 MB / 1.538 GB, free: 10.83 MB / 1.232 GB Notification: Performance of simCode: created event and clocks part: time 1.7e-05/2.144, allocations: 5 kB / 1.538 GB, free: 10.83 MB / 1.232 GB Notification: Performance of simCode: created simulation system equations: time 0.005515/2.15, allocations: 2.377 MB / 1.541 GB, free: 8.426 MB / 1.232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0211/2.171, allocations: 3.382 MB / 1.544 GB, free: 5.133 MB / 1.232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03569/2.206, allocations: 14.09 MB / 1.558 GB, free: 6.98 MB / 1.248 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009759/2.216, allocations: 4.624 MB / 1.562 GB, free: 2.324 MB / 1.248 GB Notification: Performance of simCode: alias equations: time 0.0093/2.226, allocations: 2.085 MB / 1.564 GB, free: 248 kB / 1.248 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00249/2.228, allocations: 471.2 kB / 1.565 GB, free: 15.78 MB / 1.264 GB Notification: Performance of SimCode: time 1.523e-06/2.228, allocations: 4 kB / 1.565 GB, free: 15.78 MB / 1.264 GB Notification: Performance of Templates: time 0.2061/2.434, allocations: 117.2 MB / 1.679 GB, free: 11.44 MB / 1.373 GB make -j1 -f Buildings_11_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.makefile (rm -f Buildings_11_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; mkfifo Buildings_11_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe >> ../files/Buildings_11_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.sim & ./Buildings_11_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches