Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.008386/0.008387, allocations: 97.98 kB / 15.73 MB, free: 5.602 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.001824/0.001825, allocations: 194.7 kB / 16.68 MB, free: 5.523 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.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.572/2.572, allocations: 437 MB / 0.7105 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 67.88 kB / 1.019 GB, free: 9.422 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.041/1.043, allocations: 151.6 MB / 1.167 GB, free: 3.855 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.05362/1.096, allocations: 56.01 MB / 1.221 GB, free: 11.64 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0267/1.123, allocations: 17.94 MB / 1.239 GB, free: 9.652 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004247/1.127, allocations: 75.56 kB / 1.239 GB, free: 9.578 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.003458/1.131, allocations: 0.9002 MB / 1.24 GB, free: 8.672 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.009739/1.141, allocations: 2.504 MB / 1.242 GB, free: 6.156 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.004767/1.145, allocations: 1.538 MB / 1.244 GB, free: 4.625 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.02255/1.168, allocations: 21.25 MB / 1.264 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0146/1.183, allocations: 10.67 MB / 1.275 GB, free: 4.531 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01716/1.2, allocations: 7.168 MB / 1.282 GB, free: 13.39 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01322/1.213, allocations: 6.358 MB / 1.288 GB, free: 7.004 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.004239/1.217, allocations: 0.9375 MB / 1.289 GB, free: 6.066 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008894/1.226, allocations: 1.702 MB / 1.291 GB, free: 4.363 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.005314/1.232, allocations: 2.337 MB / 1.293 GB, free: 2.02 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.01209/1.244, allocations: 4.703 MB / 1.298 GB, free: 13.3 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.02065/1.265, allocations: 13.22 MB / 1.31 GB, free: 40 kB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 8.526e-06/1.265, allocations: 0 / 1.31 GB, free: 40 kB / 1.029 GB Notification: Performance of FrontEnd: time 2.806e-06/1.265, allocations: 0 / 1.31 GB, free: 40 kB / 1.029 GB Notification: Performance of Transformations before backend: time 0.0004999/1.265, allocations: 4 kB / 1.31 GB, free: 36 kB / 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.02581/1.291, allocations: 8.717 MB / 1.319 GB, free: 7.215 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 6.594e-05/1.291, allocations: 8.922 kB / 1.319 GB, free: 7.207 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00563/1.297, allocations: 0.9019 MB / 1.32 GB, free: 6.301 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01686/1.314, allocations: 6.739 MB / 1.326 GB, free: 15.5 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000548/1.314, allocations: 460.4 kB / 1.327 GB, free: 15.05 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002685/1.317, allocations: 0.6015 MB / 1.327 GB, free: 14.45 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02591/1.343, allocations: 9.025 MB / 1.336 GB, free: 5.102 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003498/1.343, allocations: 23.83 kB / 1.336 GB, free: 5.078 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002363/1.346, allocations: 260 kB / 1.337 GB, free: 4.824 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000256/1.346, allocations: 179.9 kB / 1.337 GB, free: 4.648 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02269/1.369, allocations: 7.449 MB / 1.344 GB, free: 13.19 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.06767/1.436, allocations: 36.08 MB / 1.379 GB, free: 7.051 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008887/1.445, allocations: 4.278 MB / 1.383 GB, free: 2.766 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005882/1.451, allocations: 3.296 MB / 1.387 GB, free: 15.46 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001501/1.453, allocations: 0.9582 MB / 1.388 GB, free: 14.32 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005111/1.458, allocations: 2.394 MB / 1.39 GB, free: 11.89 MB / 1.123 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00336/1.461, allocations: 381.1 kB / 1.39 GB, free: 11.52 MB / 1.123 GB Notification: Performance of pre-optimization done (n=317): time 1.621e-05/1.461, allocations: 0 / 1.39 GB, free: 11.52 MB / 1.123 GB Notification: Performance of matching and sorting (n=317): time 0.01652/1.478, allocations: 7.163 MB / 1.397 GB, free: 4.266 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.218e-05/1.478, allocations: 85.91 kB / 1.397 GB, free: 4.168 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01289/1.491, allocations: 5.667 MB / 1.403 GB, free: 14.52 MB / 1.139 GB Notification: Performance of collectPreVariables (initialization): time 0.000941/1.492, allocations: 89.7 kB / 1.403 GB, free: 14.43 MB / 1.139 GB Notification: Performance of collectInitialEqns (initialization): time 0.003832/1.496, allocations: 3.267 MB / 1.406 GB, free: 11.14 MB / 1.139 GB Notification: Performance of collectInitialBindings (initialization): time 0.002081/1.498, allocations: 1.174 MB / 1.407 GB, free: 9.953 MB / 1.139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001469/1.499, allocations: 0.8585 MB / 1.408 GB, free: 9.082 MB / 1.139 GB Notification: Performance of setup shared object (initialization): time 0.0001125/1.499, allocations: 313 kB / 1.408 GB, free: 8.773 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003499/1.503, allocations: 2.163 MB / 1.411 GB, free: 6.602 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004832/1.508, allocations: 3.693 MB / 1.414 GB, free: 2.211 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009974/1.518, allocations: 6.319 MB / 1.42 GB, free: 11.17 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-05/1.518, allocations: 15.94 kB / 1.42 GB, free: 11.16 MB / 1.154 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01588/1.534, allocations: 6.806 MB / 1.427 GB, free: 4.301 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001175/1.534, allocations: 49.7 kB / 1.427 GB, free: 4.246 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001159/1.534, allocations: 48 kB / 1.427 GB, free: 4.199 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0012/1.535, allocations: 433.9 kB / 1.428 GB, free: 3.77 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004085/1.539, allocations: 1.01 MB / 1.428 GB, free: 2.758 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007478/1.547, allocations: 5.707 MB / 1.434 GB, free: 12.78 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007235/1.554, allocations: 287.7 kB / 1.434 GB, free: 12.5 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001615/1.556, allocations: 216 kB / 1.435 GB, free: 12.29 MB / 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.008494/1.564, allocations: 2.478 MB / 1.437 GB, free: 9.801 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002929/1.567, allocations: 0.5551 MB / 1.438 GB, free: 9.242 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01305/1.58, allocations: 5.274 MB / 1.443 GB, free: 3.91 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.125e-05/1.58, allocations: 28 kB / 1.443 GB, free: 3.883 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.519e-05/1.58, allocations: 4 kB / 1.443 GB, free: 3.879 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008487/1.589, allocations: 4.536 MB / 1.447 GB, free: 15.23 MB / 1.186 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03551/1.624, allocations: 11.98 MB / 1.459 GB, free: 3.105 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.608e-05/1.624, allocations: 0 / 1.459 GB, free: 3.105 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003199/1.628, allocations: 0.6476 MB / 1.459 GB, free: 2.457 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001014/1.629, allocations: 373.2 kB / 1.46 GB, free: 2.086 MB / 1.186 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005984/1.629, allocations: 83.95 kB / 1.46 GB, free: 2.004 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006591/1.636, allocations: 5.618 MB / 1.465 GB, free: 12.11 MB / 1.201 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/1.636, allocations: 0 / 1.465 GB, free: 12.11 MB / 1.201 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01789/1.654, allocations: 7.791 MB / 1.473 GB, free: 4.223 MB / 1.201 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004393/1.658, allocations: 1.185 MB / 1.474 GB, free: 3.016 MB / 1.201 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002128/1.66, allocations: 67.94 kB / 1.474 GB, free: 2.949 MB / 1.201 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004791/1.665, allocations: 204 kB / 1.474 GB, free: 2.75 MB / 1.201 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006742/1.666, allocations: 202.2 kB / 1.475 GB, free: 2.551 MB / 1.201 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005842/1.667, allocations: 139.9 kB / 1.475 GB, free: 2.414 MB / 1.201 GB Notification: Performance of sorting global known variables: time 0.00966/1.676, allocations: 3.959 MB / 1.479 GB, free: 14.47 MB / 1.217 GB Notification: Performance of sort global known variables: time 2.9e-07/1.676, allocations: 0 / 1.479 GB, free: 14.47 MB / 1.217 GB Notification: Performance of remove unused functions: time 0.009785/1.686, allocations: 2.023 MB / 1.481 GB, free: 12.45 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.002167/1.688, allocations: 494.7 kB / 1.481 GB, free: 11.96 MB / 1.217 GB Notification: Performance of simCode: created initialization part: time 0.01148/1.7, allocations: 5.452 MB / 1.486 GB, free: 6.461 MB / 1.217 GB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/1.7, allocations: 0 / 1.486 GB, free: 6.461 MB / 1.217 GB Notification: Performance of simCode: created simulation system equations: time 0.005195/1.705, allocations: 2.557 MB / 1.489 GB, free: 3.875 MB / 1.217 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0209/1.726, allocations: 3.383 MB / 1.492 GB, free: 0.582 MB / 1.217 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03504/1.761, allocations: 14.08 MB / 1.506 GB, free: 2.434 MB / 1.232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009264/1.77, allocations: 4.636 MB / 1.51 GB, free: 13.77 MB / 1.248 GB Notification: Performance of simCode: alias equations: time 0.009529/1.78, allocations: 2.073 MB / 1.512 GB, free: 11.7 MB / 1.248 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002897/1.783, allocations: 463.2 kB / 1.513 GB, free: 11.24 MB / 1.248 GB Notification: Performance of SimCode: time 1.442e-06/1.783, allocations: 4 kB / 1.513 GB, free: 11.24 MB / 1.248 GB Notification: Performance of Templates: time 1.529/3.312, allocations: 116.6 MB / 1.627 GB, free: 308.5 MB / 1.279 GB make -j1 -f Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.makefile (rm -f Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.sim & ./Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches