Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.72/1.72, allocations: 171.2 MB / 186.7 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003574/0.0003575, allocations: 8 kB / 233.2 MB, free: 3.055 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0694/0.06978, allocations: 38.78 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.02725/0.09708, allocations: 18.62 MB / 290.5 MB, free: 9.512 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01636/0.1135, allocations: 8.785 MB / 299.3 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001191/0.1147, allocations: 39.69 kB / 299.4 MB, free: 0.6758 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001182/0.1159, allocations: 350.1 kB / 299.7 MB, free: 340 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1871/0.303, allocations: 1.155 MB / 300.9 MB, free: 9.102 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007167/0.3102, allocations: 2.017 MB / 302.9 MB, free: 9.07 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003332/0.3136, allocations: 1.598 MB / 304.5 MB, free: 9.066 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001217/0.3148, allocations: 0.5353 MB / 305 MB, free: 9.012 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002069/0.3169, allocations: 0.7874 MB / 305.8 MB, free: 9.012 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001455/0.3184, allocations: 0.6273 MB / 306.4 MB, free: 9.008 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002467/0.3187, allocations: 42.75 kB / 306.5 MB, free: 9.008 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004228/0.3229, allocations: 1.561 MB / 308 MB, free: 9.008 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006705/0.3237, allocations: 282.8 kB / 308.3 MB, free: 9.008 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004701/0.3241, allocations: 212.1 kB / 308.5 MB, free: 8.973 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003845/0.328, allocations: 1.734 MB / 310.3 MB, free: 8.844 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.605e-06/0.328, allocations: 0 / 310.3 MB, free: 8.844 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.52e-06/0.3281, allocations: 0.8438 kB / 310.3 MB, free: 8.844 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.808e-05/0.3281, allocations: 3.094 kB / 310.3 MB, free: 8.844 MB / 250.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.003285/0.3314, allocations: 1.313 MB / 311.6 MB, free: 8.043 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.3314, allocations: 8.25 kB / 311.6 MB, free: 8.043 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000602/0.3321, allocations: 113.9 kB / 311.7 MB, free: 7.988 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001385/0.3335, allocations: 0.6765 MB / 312.4 MB, free: 7.711 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.489e-05/0.3335, allocations: 47.28 kB / 312.4 MB, free: 7.711 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000145/0.3337, allocations: 59.97 kB / 312.5 MB, free: 7.711 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002113/0.3358, allocations: 1.05 MB / 313.5 MB, free: 7.348 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.906e-05/0.3359, allocations: 3.031 kB / 313.5 MB, free: 7.348 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001243/0.336, allocations: 32.81 kB / 313.6 MB, free: 7.348 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001193/0.3361, allocations: 64.92 kB / 313.6 MB, free: 7.336 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002195/0.3384, allocations: 1.032 MB / 314.7 MB, free: 7.156 MB / 250.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.007524/0.3459, allocations: 4.519 MB / 319.2 MB, free: 4.176 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001173/0.3471, allocations: 0.541 MB / 319.7 MB, free: 4.074 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00271/0.3498, allocations: 1.937 MB / 321.6 MB, free: 2.551 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.3499, allocations: 38.73 kB / 321.7 MB, free: 2.512 MB / 250.7 MB Notification: Performance of pre-optimization done (n=40): time 3.646e-06/0.3499, allocations: 2.406 kB / 321.7 MB, free: 2.512 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.005492/0.3554, allocations: 1.894 MB / 323.6 MB, free: 1.656 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.69e-05/0.3555, allocations: 159.6 kB / 323.7 MB, free: 1.469 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001324/0.3568, allocations: 0.8393 MB / 324.6 MB, free: 1.188 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.656e-05/0.357, allocations: 36.89 kB / 324.6 MB, free: 1.156 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003102/0.3573, allocations: 0.5036 MB / 325.1 MB, free: 0.8164 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001619/0.3575, allocations: 162 kB / 325.3 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.589e-05/0.3575, allocations: 21.53 kB / 325.3 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.727e-05/0.3576, allocations: 346.3 kB / 325.6 MB, free: 388 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006673/0.3583, allocations: 309.1 kB / 325.9 MB, free: 336 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009519/0.3593, allocations: 0.6726 MB / 326.6 MB, free: 15.8 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008542/0.3602, allocations: 407.1 kB / 327 MB, free: 15.75 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.578e-06/0.3602, allocations: 2.875 kB / 327 MB, free: 15.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.002403/0.3626, allocations: 1.063 MB / 328.1 MB, free: 15.54 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003849/0.363, allocations: 445.7 kB / 328.5 MB, free: 15.01 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.195e-05/0.3631, allocations: 17.53 kB / 328.5 MB, free: 15.01 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003044/0.3661, allocations: 379.8 kB / 328.9 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000944/0.3671, allocations: 200.6 kB / 329.1 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001606/0.3687, allocations: 1.309 MB / 330.4 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001138/0.3699, allocations: 69.69 kB / 330.5 MB, free: 13.56 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001309/0.37, allocations: 56.52 kB / 330.5 MB, free: 13.52 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.3701, allocations: 4 kB / 330.5 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002307/0.3724, allocations: 0.9918 MB / 331.5 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.235e-05/0.3724, allocations: 12 kB / 331.5 MB, free: 12.87 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002747/0.3752, allocations: 347.3 kB / 331.9 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009455/0.3762, allocations: 196.8 kB / 332.1 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001501/0.3777, allocations: 1.278 MB / 333.3 MB, free: 11.15 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008594/0.3786, allocations: 59.5 kB / 333.4 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001172/0.3787, allocations: 51.42 kB / 333.4 MB, free: 11.06 MB / 266.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.000733/0.3795, allocations: 372.4 kB / 333.8 MB, free: 10.78 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002527/0.3797, allocations: 90.92 kB / 333.9 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002266/0.382, allocations: 0.7845 MB / 334.7 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.244e-05/0.382, allocations: 8 kB / 334.7 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.091e-06/0.3821, allocations: 4 kB / 334.7 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.153e-05/0.3821, allocations: 3.984 kB / 334.7 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003539/0.3856, allocations: 1.544 MB / 336.2 MB, free: 8.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.77e-06/0.3857, allocations: 4 kB / 336.2 MB, free: 8.926 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005052/0.3862, allocations: 77.22 kB / 336.3 MB, free: 8.859 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001922/0.3881, allocations: 302.2 kB / 336.6 MB, free: 8.59 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.53e-05/0.3882, allocations: 19.25 kB / 336.6 MB, free: 8.578 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001487/0.3897, allocations: 1.289 MB / 337.9 MB, free: 7.348 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.153e-06/0.3898, allocations: 0 / 337.9 MB, free: 7.348 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002356/0.3921, allocations: 1.075 MB / 339 MB, free: 6.555 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000441/0.3926, allocations: 184.2 kB / 339.2 MB, free: 6.371 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001756/0.3928, allocations: 10.81 kB / 339.2 MB, free: 6.367 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006375/0.3934, allocations: 38.38 kB / 339.2 MB, free: 6.336 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001488/0.3936, allocations: 42.94 kB / 339.3 MB, free: 6.297 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.151e-05/0.3937, allocations: 27.23 kB / 339.3 MB, free: 6.273 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001109/0.3948, allocations: 0.5675 MB / 339.9 MB, free: 5.855 MB / 266.7 MB Notification: Performance of sort global known variables: time 9.09e-07/0.3948, allocations: 0 / 339.9 MB, free: 5.855 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.002937/0.3978, allocations: 0.7187 MB / 340.6 MB, free: 5.184 MB / 266.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.001929/0.3998, allocations: 0.5852 MB / 341.2 MB, free: 4.648 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.003418/0.4032, allocations: 1.245 MB / 342.4 MB, free: 3.746 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.289e-06/0.4032, allocations: 0 / 342.4 MB, free: 3.746 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008818/0.4041, allocations: 317.4 kB / 342.7 MB, free: 3.445 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001899/0.4061, allocations: 307 kB / 343 MB, free: 3.148 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004269/0.4104, allocations: 2.073 MB / 345.1 MB, free: 1.055 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009663/0.4114, allocations: 1.06 MB / 346.2 MB, free: 15.96 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003647/0.4117, allocations: 79.38 kB / 346.2 MB, free: 15.89 MB / 282.7 MB Notification: Performance of SimCode: time 1.638e-06/0.4118, allocations: 0 / 346.2 MB, free: 15.89 MB / 282.7 MB Notification: Performance of Templates: time 0.04398/0.4558, allocations: 24.59 MB / 370.8 MB, free: 7.383 MB / 298.7 MB