Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 2.027/2.027, allocations: 194.8 MB / 211.6 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006206/0.0006211, allocations: 16 kB / 263.9 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09684/0.0975, allocations: 44.5 MB / 308.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.02689/0.1244, allocations: 18.62 MB / 327 MB, free: 14.33 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01641/0.1409, allocations: 8.792 MB / 335.8 MB, free: 5.527 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001138/0.1421, allocations: 39.62 kB / 335.8 MB, free: 5.488 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001162/0.1433, allocations: 350.2 kB / 336.2 MB, free: 5.145 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004123/0.1474, allocations: 1.157 MB / 337.3 MB, free: 3.984 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007401/0.1548, allocations: 2.023 MB / 339.3 MB, free: 1.957 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003141/0.158, allocations: 1.593 MB / 340.9 MB, free: 372 kB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001053/0.1591, allocations: 0.5366 MB / 341.5 MB, free: 15.81 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001804/0.1609, allocations: 0.7867 MB / 342.3 MB, free: 15.02 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001212/0.1621, allocations: 0.623 MB / 342.9 MB, free: 14.4 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000174/0.1623, allocations: 44 kB / 342.9 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003959/0.1663, allocations: 1.56 MB / 344.5 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005316/0.1669, allocations: 283.2 kB / 344.8 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004224/0.1673, allocations: 213.2 kB / 345 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003616/0.1709, allocations: 1.735 MB / 346.7 MB, free: 10.56 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.621e-06/0.171, allocations: 4 kB / 346.7 MB, free: 10.56 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.422e-06/0.171, allocations: 0 / 346.7 MB, free: 10.56 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.522e-05/0.171, allocations: 0 / 346.7 MB, free: 10.56 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003199/0.1742, allocations: 1.312 MB / 348 MB, free: 9.195 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.1743, allocations: 8.031 kB / 348 MB, free: 9.188 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005104/0.1748, allocations: 118.7 kB / 348.1 MB, free: 9.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001468/0.1763, allocations: 0.6635 MB / 348.8 MB, free: 8.367 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.133e-05/0.1764, allocations: 57.3 kB / 348.9 MB, free: 8.309 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001573/0.1766, allocations: 63.97 kB / 348.9 MB, free: 8.246 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0023/0.1789, allocations: 1.048 MB / 350 MB, free: 7.145 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.86e-05/0.1789, allocations: 0 / 350 MB, free: 7.145 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001189/0.1791, allocations: 31.92 kB / 350 MB, free: 7.113 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001246/0.1792, allocations: 65.27 kB / 350.1 MB, free: 7.051 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002452/0.1817, allocations: 1.032 MB / 351.1 MB, free: 6.016 MB / 298.7 MB 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.009037/0.1907, allocations: 4.538 MB / 355.6 MB, free: 1.191 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001359/0.1921, allocations: 0.5319 MB / 356.2 MB, free: 0.6523 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003432/0.1956, allocations: 1.926 MB / 358.1 MB, free: 14.51 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.865e-05/0.1957, allocations: 42.88 kB / 358.1 MB, free: 14.46 MB / 314.7 MB Notification: Performance of pre-optimization done (n=40): time 3.324e-06/0.1957, allocations: 0 / 358.1 MB, free: 14.46 MB / 314.7 MB Notification: Performance of matching and sorting (n=45): time 0.006528/0.2022, allocations: 1.889 MB / 360 MB, free: 12.48 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001493/0.2024, allocations: 162.2 kB / 360.2 MB, free: 12.29 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002759/0.2052, allocations: 0.833 MB / 361 MB, free: 11.44 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001819/0.2054, allocations: 37.7 kB / 361.1 MB, free: 11.4 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000835/0.2063, allocations: 0.5085 MB / 361.6 MB, free: 10.88 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003762/0.2067, allocations: 165.7 kB / 361.7 MB, free: 10.72 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001304/0.2068, allocations: 20 kB / 361.7 MB, free: 10.7 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003107/0.2072, allocations: 350.8 kB / 362.1 MB, free: 10.35 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00131/0.2085, allocations: 297.8 kB / 362.4 MB, free: 10.05 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001886/0.2104, allocations: 0.6733 MB / 363 MB, free: 9.207 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001651/0.2121, allocations: 413.8 kB / 363.5 MB, free: 8.805 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.632e-05/0.2121, allocations: 4 kB / 363.5 MB, free: 8.801 MB / 314.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.004498/0.2167, allocations: 1.058 MB / 364.5 MB, free: 7.727 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00057/0.2173, allocations: 442.8 kB / 364.9 MB, free: 7.133 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.456e-05/0.2173, allocations: 12 kB / 365 MB, free: 7.121 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004883/0.2222, allocations: 385.2 kB / 365.3 MB, free: 6.738 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001596/0.2239, allocations: 191.7 kB / 365.5 MB, free: 6.551 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002449/0.2263, allocations: 1.331 MB / 366.9 MB, free: 5.168 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001864/0.2283, allocations: 68.03 kB / 366.9 MB, free: 5.102 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002414/0.2285, allocations: 44 kB / 367 MB, free: 5.059 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.2286, allocations: 4 kB / 367 MB, free: 5.055 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004172/0.2328, allocations: 0.9947 MB / 368 MB, free: 4.051 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.796e-05/0.2328, allocations: 12 kB / 368 MB, free: 4.039 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004438/0.2373, allocations: 345.9 kB / 368.3 MB, free: 3.695 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001518/0.2389, allocations: 195.7 kB / 368.5 MB, free: 3.504 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002306/0.2412, allocations: 1.28 MB / 369.8 MB, free: 2.172 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001397/0.2427, allocations: 55.97 kB / 369.8 MB, free: 2.117 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001789/0.2429, allocations: 51.98 kB / 369.9 MB, free: 2.066 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001092/0.244, allocations: 372.7 kB / 370.2 MB, free: 1.691 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003707/0.2444, allocations: 90.88 kB / 370.3 MB, free: 1.602 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003715/0.2481, allocations: 0.7824 MB / 371.1 MB, free: 0.8086 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.675e-05/0.2482, allocations: 4 kB / 371.1 MB, free: 0.8047 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.361e-05/0.2482, allocations: 3.953 kB / 371.1 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.016e-05/0.2482, allocations: 8 kB / 371.1 MB, free: 0.793 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2452/0.4934, allocations: 1.546 MB / 372.7 MB, free: 62.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.4935, allocations: 1.984 kB / 372.7 MB, free: 62.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005333/0.494, allocations: 80.31 kB / 372.8 MB, free: 62.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001917/0.496, allocations: 297.5 kB / 373.1 MB, free: 62.96 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-05/0.4961, allocations: 13.55 kB / 373.1 MB, free: 62.96 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001107/0.4972, allocations: 1.297 MB / 374.4 MB, free: 61.93 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.4972, allocations: 0.9688 kB / 374.4 MB, free: 61.93 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00222/0.4994, allocations: 1.07 MB / 375.4 MB, free: 61.68 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002758/0.4997, allocations: 176.2 kB / 375.6 MB, free: 61.57 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001633/0.4999, allocations: 13.17 kB / 375.6 MB, free: 61.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006158/0.5006, allocations: 41.78 kB / 375.7 MB, free: 61.56 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001434/0.5007, allocations: 46.16 kB / 375.7 MB, free: 61.55 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.64e-05/0.5008, allocations: 19.83 kB / 375.7 MB, free: 61.55 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00104/0.5018, allocations: 0.5603 MB / 376.3 MB, free: 61.31 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.396e-06/0.5019, allocations: 0 / 376.3 MB, free: 61.31 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002581/0.5045, allocations: 0.7281 MB / 377 MB, free: 61.26 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.level,tank1.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001666/0.5061, allocations: 0.5779 MB / 377.6 MB, free: 61.16 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003213/0.5094, allocations: 1.243 MB / 378.8 MB, free: 60.78 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.323e-06/0.5094, allocations: 0.5469 kB / 378.8 MB, free: 60.78 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008769/0.5103, allocations: 311.6 kB / 379.1 MB, free: 60.68 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00176/0.5121, allocations: 313.9 kB / 379.4 MB, free: 60.62 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003587/0.5157, allocations: 2.08 MB / 381.5 MB, free: 59.59 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006651/0.5164, allocations: 1.052 MB / 382.6 MB, free: 58.86 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003256/0.5167, allocations: 78.59 kB / 382.7 MB, free: 58.84 MB / 314.7 MB Notification: Performance of SimCode: time 1.696e-06/0.5168, allocations: 0 / 382.7 MB, free: 58.84 MB / 314.7 MB Notification: Performance of Templates: time 0.03464/0.5514, allocations: 24.59 MB / 407.2 MB, free: 39.16 MB / 314.7 MB