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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 102.1 kB / 19.7 MB, free: 2.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 218.1 kB / 23.01 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.318/1.318, allocations: 230.6 MB / 256.8 MB, free: 8.059 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.938/2.938, allocations: 0.505 GB / 0.8108 GB, free: 22.06 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,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") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002083/0.002083, allocations: 70.7 kB / 1.178 GB, free: 16.88 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3207/0.3228, allocations: 180.2 MB / 1.354 GB, free: 7.945 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.0587/0.3815, allocations: 57.28 MB / 1.41 GB, free: 14.46 MB / 1.108 GB Notification: Performance of NFInst.instExpressions: time 0.02506/0.4065, allocations: 18.21 MB / 1.428 GB, free: 12.2 MB / 1.123 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00294/0.4095, allocations: 107.1 kB / 1.428 GB, free: 12.09 MB / 1.123 GB Notification: Performance of NFTyping.typeComponents: time 0.002728/0.4122, allocations: 0.9235 MB / 1.429 GB, free: 11.16 MB / 1.123 GB Notification: Performance of NFTyping.typeBindings: time 0.007581/0.4198, allocations: 2.682 MB / 1.431 GB, free: 8.469 MB / 1.123 GB Notification: Performance of NFTyping.typeClassSections: time 0.004012/0.4238, allocations: 1.589 MB / 1.433 GB, free: 6.887 MB / 1.123 GB Notification: Performance of NFFlatten.flatten: time 0.02366/0.4474, allocations: 21.84 MB / 1.454 GB, free: 0.9961 MB / 1.139 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01063/0.4581, allocations: 7.093 MB / 1.461 GB, free: 9.781 MB / 1.154 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01619/0.4743, allocations: 7.532 MB / 1.469 GB, free: 2.266 MB / 1.154 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01329/0.4875, allocations: 6.58 MB / 1.475 GB, free: 11.66 MB / 1.17 GB Notification: Performance of NFPackage.collectConstants: time 0.003576/0.4911, allocations: 0.9375 MB / 1.476 GB, free: 10.72 MB / 1.17 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00709/0.4982, allocations: 1.78 MB / 1.478 GB, free: 8.941 MB / 1.17 GB Notification: Performance of NFScalarize.scalarize: time 0.004623/0.5028, allocations: 2.434 MB / 1.48 GB, free: 6.5 MB / 1.17 GB Notification: Performance of NFVerifyModel.verify: time 0.01116/0.514, allocations: 4.723 MB / 1.485 GB, free: 1.758 MB / 1.17 GB Notification: Performance of NFConvertDAE.convert: time 0.02059/0.5346, allocations: 13.33 MB / 1.498 GB, free: 4.387 MB / 1.186 GB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.5346, allocations: 0 / 1.498 GB, free: 4.387 MB / 1.186 GB Notification: Performance of FrontEnd: time 1.743e-06/0.5346, allocations: 0 / 1.498 GB, free: 4.387 MB / 1.186 GB Notification: Performance of Transformations before backend: time 0.0005394/0.5351, allocations: 0 / 1.498 GB, free: 4.387 MB / 1.186 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.02533/0.5605, allocations: 8.634 MB / 1.506 GB, free: 11.67 MB / 1.201 GB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.5605, allocations: 12.03 kB / 1.506 GB, free: 11.66 MB / 1.201 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004895/0.5654, allocations: 0.9566 MB / 1.507 GB, free: 10.7 MB / 1.201 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01572/0.5811, allocations: 6.775 MB / 1.514 GB, free: 3.84 MB / 1.201 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005376/0.5816, allocations: 468.3 kB / 1.514 GB, free: 3.379 MB / 1.201 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002287/0.5839, allocations: 0.6015 MB / 1.515 GB, free: 2.777 MB / 1.201 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02218/0.6061, allocations: 9.04 MB / 1.524 GB, free: 9.414 MB / 1.217 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002604/0.6064, allocations: 19.83 kB / 1.524 GB, free: 9.395 MB / 1.217 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001689/0.6081, allocations: 256 kB / 1.524 GB, free: 9.145 MB / 1.217 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002135/0.6083, allocations: 183.9 kB / 1.524 GB, free: 8.965 MB / 1.217 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01664/0.6249, allocations: 7.469 MB / 1.531 GB, free: 1.488 MB / 1.217 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.05666/0.6816, allocations: 36.01 MB / 1.566 GB, free: 11.41 MB / 1.264 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007066/0.6886, allocations: 4.009 MB / 1.57 GB, free: 7.398 MB / 1.264 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005034/0.6937, allocations: 3.027 MB / 1.573 GB, free: 4.367 MB / 1.264 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00104/0.6947, allocations: 218.2 kB / 1.573 GB, free: 4.152 MB / 1.264 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004368/0.6991, allocations: 2.398 MB / 1.576 GB, free: 1.719 MB / 1.264 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002415/0.7015, allocations: 393.1 kB / 1.576 GB, free: 1.332 MB / 1.264 GB Notification: Performance of pre-optimization done (n=317): time 8.706e-06/0.7015, allocations: 0 / 1.576 GB, free: 1.332 MB / 1.264 GB Notification: Performance of matching and sorting (n=317): time 0.01398/0.7155, allocations: 7.008 MB / 1.583 GB, free: 10.27 MB / 1.279 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.299e-05/0.7156, allocations: 85.91 kB / 1.583 GB, free: 10.18 MB / 1.279 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01043/0.726, allocations: 5.671 MB / 1.589 GB, free: 4.527 MB / 1.279 GB Notification: Performance of collectPreVariables (initialization): time 0.0007993/0.7268, allocations: 89.7 kB / 1.589 GB, free: 4.434 MB / 1.279 GB Notification: Performance of collectInitialEqns (initialization): time 0.003314/0.7301, allocations: 3.275 MB / 1.592 GB, free: 1.133 MB / 1.279 GB Notification: Performance of collectInitialBindings (initialization): time 0.001778/0.7319, allocations: 1.166 MB / 1.593 GB, free: 15.95 MB / 1.295 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002296/0.7342, allocations: 0.8663 MB / 1.594 GB, free: 15.07 MB / 1.295 GB Notification: Performance of setup shared object (initialization): time 0.0001294/0.7343, allocations: 305.1 kB / 1.594 GB, free: 14.77 MB / 1.295 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003859/0.7382, allocations: 2.163 MB / 1.596 GB, free: 12.6 MB / 1.295 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005278/0.7434, allocations: 3.697 MB / 1.6 GB, free: 8.199 MB / 1.295 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00927/0.7527, allocations: 6.319 MB / 1.606 GB, free: 1.164 MB / 1.295 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.302e-05/0.7528, allocations: 16 kB / 1.606 GB, free: 1.148 MB / 1.295 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.6556/1.408, allocations: 6.78 MB / 1.613 GB, free: 233.2 MB / 1.295 GB Notification: Performance of prepare postOptimizeDAE: time 7.65e-05/1.408, allocations: 53.91 kB / 1.613 GB, free: 233.1 MB / 1.295 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001069/1.409, allocations: 53.27 kB / 1.613 GB, free: 233.1 MB / 1.295 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001092/1.41, allocations: 428.2 kB / 1.613 GB, free: 233.1 MB / 1.295 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004088/1.414, allocations: 1.009 MB / 1.614 GB, free: 233 MB / 1.295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00507/1.419, allocations: 5.49 MB / 1.62 GB, free: 229.4 MB / 1.295 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004227/1.423, allocations: 292.2 kB / 1.62 GB, free: 229.3 MB / 1.295 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005579/1.424, allocations: 217.3 kB / 1.62 GB, free: 229.3 MB / 1.295 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.004719/1.428, allocations: 2.489 MB / 1.623 GB, free: 228.2 MB / 1.295 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001596/1.43, allocations: 0.5557 MB / 1.623 GB, free: 228.2 MB / 1.295 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008128/1.438, allocations: 5.252 MB / 1.628 GB, free: 226.2 MB / 1.295 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-05/1.438, allocations: 37.14 kB / 1.628 GB, free: 226.2 MB / 1.295 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/1.438, allocations: 3.812 kB / 1.628 GB, free: 226.2 MB / 1.295 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005938/1.444, allocations: 4.521 MB / 1.633 GB, free: 224.4 MB / 1.295 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02094/1.465, allocations: 12.02 MB / 1.644 GB, free: 219.9 MB / 1.295 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.051e-05/1.465, allocations: 1.156 kB / 1.644 GB, free: 219.9 MB / 1.295 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00249/1.467, allocations: 0.6431 MB / 1.645 GB, free: 219.8 MB / 1.295 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007696/1.468, allocations: 370.2 kB / 1.645 GB, free: 219.8 MB / 1.295 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00022/1.468, allocations: 81.78 kB / 1.645 GB, free: 219.7 MB / 1.295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004277/1.473, allocations: 5.417 MB / 1.651 GB, free: 215.8 MB / 1.295 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/1.473, allocations: 0 / 1.651 GB, free: 215.8 MB / 1.295 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009798/1.482, allocations: 7.78 MB / 1.658 GB, free: 212.7 MB / 1.295 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003285/1.486, allocations: 1.15 MB / 1.659 GB, free: 212.1 MB / 1.295 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001269/1.487, allocations: 69.47 kB / 1.66 GB, free: 212.1 MB / 1.295 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003243/1.49, allocations: 200 kB / 1.66 GB, free: 211.9 MB / 1.295 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003708/1.491, allocations: 207.4 kB / 1.66 GB, free: 211.8 MB / 1.295 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003131/1.491, allocations: 139.4 kB / 1.66 GB, free: 211.8 MB / 1.295 GB Notification: Performance of sorting global known variables: time 0.005651/1.497, allocations: 3.971 MB / 1.664 GB, free: 209.7 MB / 1.295 GB Notification: Performance of sort global known variables: time 1.8e-07/1.497, allocations: 3.844 kB / 1.664 GB, free: 209.7 MB / 1.295 GB Notification: Performance of remove unused functions: time 0.005596/1.502, allocations: 2.029 MB / 1.666 GB, free: 209.4 MB / 1.295 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.0009209/1.503, allocations: 479 kB / 1.666 GB, free: 209.2 MB / 1.295 GB Notification: Performance of simCode: created initialization part: time 0.006199/1.509, allocations: 5.24 MB / 1.671 GB, free: 204.8 MB / 1.295 GB Notification: Performance of simCode: created event and clocks part: time 5.71e-06/1.509, allocations: 4 kB / 1.671 GB, free: 204.8 MB / 1.295 GB Notification: Performance of simCode: created simulation system equations: time 0.002553/1.512, allocations: 2.371 MB / 1.674 GB, free: 202.4 MB / 1.295 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01289/1.525, allocations: 3.385 MB / 1.677 GB, free: 199.3 MB / 1.295 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01992/1.545, allocations: 14.25 MB / 1.691 GB, free: 185 MB / 1.295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003537/1.548, allocations: 4.549 MB / 1.695 GB, free: 180.4 MB / 1.295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001878/1.55, allocations: 495.2 kB / 1.696 GB, free: 179.9 MB / 1.295 GB Notification: Performance of SimCode: time 1.012e-06/1.55, allocations: 0 / 1.696 GB, free: 179.9 MB / 1.295 GB Notification: Performance of Templates: time 0.1638/1.714, allocations: 188.4 MB / 1.88 GB, free: 7.816 MB / 1.311 GB " [Timeout remaining time 298] make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 26.072881844011135]