Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.h|tank.aboveLevel.1.|tank.aboveLevel.2.|tank.aboveLevel.3.|tank.aboveLevel.4.|tank.ports_m_flow_out.1.|tank.ports_m_flow_out.2.|tank.ports_m_flow_out.3.|tank.ports_m_flow_out.4.",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts") Notification: Performance of loadModel(ModelicaTest): time 1.799/1.799, allocations: 209.3 MB / 222.4 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.987e-05/3.008e-05, allocations: 4 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08628/0.08634, allocations: 48.69 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.332/6.418, allocations: 2.486 GB / 2.805 GB, free: 72.13 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002144/6.418, allocations: 80.25 kB / 2.805 GB, free: 72.09 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.313/8.732, allocations: 0.5365 GB / 3.341 GB, free: 30.5 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.467e-06/8.732, allocations: 4 kB / 3.341 GB, free: 30.49 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.018e-05/8.732, allocations: 26.41 kB / 3.341 GB, free: 30.47 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.007229/8.739, allocations: 1.99 MB / 3.343 GB, free: 28.64 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/8.739, allocations: 12.03 kB / 3.343 GB, free: 28.63 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00314/8.742, allocations: 311.4 kB / 3.344 GB, free: 28.39 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00178/8.744, allocations: 0.6972 MB / 3.344 GB, free: 27.76 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002153/8.744, allocations: 304.4 kB / 3.345 GB, free: 27.42 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002479/8.745, allocations: 76 kB / 3.345 GB, free: 27.35 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003854/8.748, allocations: 1.469 MB / 3.346 GB, free: 26.07 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.063e-05/8.749, allocations: 11.88 kB / 3.346 GB, free: 26.05 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001762/8.749, allocations: 32.69 kB / 3.346 GB, free: 26.02 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.169e-05/8.749, allocations: 45.75 kB / 3.346 GB, free: 25.98 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00757/8.756, allocations: 1.262 MB / 3.347 GB, free: 24.93 MB / 442.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01822/8.775, allocations: 6.378 MB / 3.354 GB, free: 18.23 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005436/8.78, allocations: 0.8889 MB / 3.354 GB, free: 17.32 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001455/8.782, allocations: 379.2 kB / 3.355 GB, free: 16.95 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06583/8.848, allocations: 18.59 MB / 3.373 GB, free: 12.09 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.61e-05/8.848, allocations: 51.06 kB / 3.373 GB, free: 12.04 MB / 458.7 MB Notification: Performance of pre-optimization done (n=59): time 3.771e-06/8.848, allocations: 0 / 3.373 GB, free: 12.04 MB / 458.7 MB Notification: Performance of matching and sorting (n=64): time 0.009195/8.857, allocations: 2.474 MB / 3.375 GB, free: 9.508 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001302/8.857, allocations: 166.7 kB / 3.376 GB, free: 9.305 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001367/8.858, allocations: 0.6989 MB / 3.376 GB, free: 8.598 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001927/8.859, allocations: 45.7 kB / 3.376 GB, free: 8.547 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004651/8.859, allocations: 461.6 kB / 3.377 GB, free: 8.094 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003285/8.86, allocations: 217 kB / 3.377 GB, free: 7.887 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.177e-05/8.86, allocations: 20 kB / 3.377 GB, free: 7.867 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002144/8.86, allocations: 350.8 kB / 3.377 GB, free: 7.516 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009909/8.861, allocations: 381.8 kB / 3.378 GB, free: 7.141 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001217/8.862, allocations: 0.6533 MB / 3.378 GB, free: 6.363 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009772/8.863, allocations: 425 kB / 3.379 GB, free: 5.953 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.83e-06/8.863, allocations: 4 kB / 3.379 GB, free: 5.949 MB / 458.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002957/8.866, allocations: 1.11 MB / 3.38 GB, free: 4.828 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.533e-05/8.866, allocations: 8 kB / 3.38 GB, free: 4.82 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.041e-05/8.866, allocations: 11.94 kB / 3.38 GB, free: 4.809 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004962/8.867, allocations: 92.8 kB / 3.38 GB, free: 4.715 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004724/8.871, allocations: 419.5 kB / 3.38 GB, free: 4.305 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2887/9.16, allocations: 6.403 MB / 3.387 GB, free: 50.58 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001711/9.162, allocations: 144.8 kB / 3.387 GB, free: 50.58 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000204/9.162, allocations: 45.16 kB / 3.387 GB, free: 50.58 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 21 (tank.heatTransfer.states[1].phase,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.ports_m_flow_out[2],tank.ports_m_flow_out[2],$PRE.tank.ports_m_flow_out[3],tank.ports_m_flow_out[3],$PRE.tank.ports_m_flow_out[4],tank.ports_m_flow_out[4],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],$PRE.tank.aboveLevel[2],tank.aboveLevel[2],$PRE.tank.aboveLevel[3],tank.aboveLevel[3],$PRE.tank.aboveLevel[4],tank.aboveLevel[4],massFlowRate[1].medium.phase,massFlowRate[2].medium.phase,Boundary_fixed.medium.phase,Boundary_fixed.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003477/9.163, allocations: 181.3 kB / 3.387 GB, free: 50.47 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002929/9.163, allocations: 89.03 kB / 3.387 GB, free: 50.47 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003668/9.167, allocations: 2.084 MB / 3.389 GB, free: 50.33 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-05/9.167, allocations: 15.91 kB / 3.389 GB, free: 50.33 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.465e-06/9.167, allocations: 1.438 kB / 3.389 GB, free: 50.33 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.221e-05/9.167, allocations: 3.281 kB / 3.389 GB, free: 50.33 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006739/9.173, allocations: 3.309 MB / 3.392 GB, free: 49.97 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.178e-05/9.173, allocations: 3.375 kB / 3.392 GB, free: 49.97 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004859/9.178, allocations: 361.8 kB / 3.393 GB, free: 49.97 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005336/9.179, allocations: 107.3 kB / 3.393 GB, free: 49.96 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001517/9.179, allocations: 21.94 kB / 3.393 GB, free: 49.96 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006381/9.186, allocations: 6.382 MB / 3.399 GB, free: 44.18 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.523e-06/9.186, allocations: 1.531 kB / 3.399 GB, free: 44.18 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003897/9.189, allocations: 2.039 MB / 3.401 GB, free: 43.74 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006766/9.19, allocations: 314.9 kB / 3.401 GB, free: 43.57 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003198/9.191, allocations: 36.67 kB / 3.401 GB, free: 43.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001321/9.192, allocations: 119.2 kB / 3.401 GB, free: 43.57 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004149/9.192, allocations: 123.3 kB / 3.402 GB, free: 43.57 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001092/9.192, allocations: 28.03 kB / 3.402 GB, free: 43.57 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001497/9.194, allocations: 0.7663 MB / 3.402 GB, free: 43.45 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.59e-07/9.194, allocations: 0 / 3.402 GB, free: 43.45 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006031/9.2, allocations: 1.291 MB / 3.404 GB, free: 43.45 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (tank.medium.h,tank.level) * Number of discrete variables: 20 ($cse3.phase,$cse3.region,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,tank.heatTransfer.states[1].phase,tank.ports_m_flow_out[1],tank.ports_m_flow_out[2],tank.ports_m_flow_out[3],tank.ports_m_flow_out[4],tank.aboveLevel[1],tank.aboveLevel[2],tank.aboveLevel[3],tank.aboveLevel[4],massFlowRate[1].medium.phase,massFlowRate[2].medium.phase,Boundary_fixed.medium.phase) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],tank.aboveLevel[2],tank.ports_m_flow_out[2],tank.aboveLevel[3],tank.ports_m_flow_out[3],tank.aboveLevel[4],tank.ports_m_flow_out[4]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.009438/9.21, allocations: 1.89 MB / 3.405 GB, free: 43.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005423/9.215, allocations: 1.193 MB / 3.407 GB, free: 43.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.76e-06/9.215, allocations: 1.406 kB / 3.407 GB, free: 43.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004474/9.22, allocations: 0.8385 MB / 3.407 GB, free: 43.29 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003485/9.223, allocations: 0.5028 MB / 3.408 GB, free: 43.27 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004427/9.228, allocations: 1.939 MB / 3.41 GB, free: 42.79 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008594/9.228, allocations: 1.223 MB / 3.411 GB, free: 42.07 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004909/9.229, allocations: 89.61 kB / 3.411 GB, free: 42.07 MB / 458.7 MB Notification: Performance of SimCode: time 1.906e-06/9.229, allocations: 0 / 3.411 GB, free: 42.07 MB / 458.7 MB Notification: Performance of Templates: time 0.08653/9.316, allocations: 63.34 MB / 3.473 GB, free: 39.32 MB / 458.7 MB