Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_3_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.081/1.081, allocations: 111.1 MB / 126.7 MB, free: 6.148 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002826/0.0002825, allocations: 7.984 kB / 158.4 MB, free: 15.07 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0616/0.06192, allocations: 25.17 MB / 183.6 MB, free: 5.863 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8624/0.9244, allocations: 241.4 MB / 425 MB, free: 49.86 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002853/0.9247, allocations: 71.86 kB / 425.1 MB, free: 49.83 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8848/1.81, allocations: 154.5 MB / 0.5661 GB, free: 27.41 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.905e-06/1.81, allocations: 0 / 0.5661 GB, free: 27.41 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0001208/1.81, allocations: 19.41 kB / 0.5661 GB, free: 27.41 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.005078/1.815, allocations: 1.182 MB / 0.5672 GB, free: 26.83 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.281e-05/1.815, allocations: 9.156 kB / 0.5672 GB, free: 26.83 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004912/1.815, allocations: 105.8 kB / 0.5674 GB, free: 26.79 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003794/1.816, allocations: 90.12 kB / 0.5674 GB, free: 26.75 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002389/1.818, allocations: 0.6474 MB / 0.5681 GB, free: 26.5 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.915e-05/1.818, allocations: 49.33 kB / 0.5681 GB, free: 26.5 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002619/1.819, allocations: 57.52 kB / 0.5682 GB, free: 26.5 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002858/1.821, allocations: 0.8681 MB / 0.569 GB, free: 26.32 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.081e-05/1.822, allocations: 0.9062 kB / 0.569 GB, free: 26.32 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001585/1.822, allocations: 29.47 kB / 0.569 GB, free: 26.32 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001436/1.822, allocations: 45.59 kB / 0.5691 GB, free: 26.31 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002474/1.824, allocations: 0.7624 MB / 0.5698 GB, free: 26.31 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007945/1.832, allocations: 3.997 MB / 0.5737 GB, free: 23.88 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001339/1.834, allocations: 489.8 kB / 0.5742 GB, free: 23.85 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0041/1.838, allocations: 2.049 MB / 0.5762 GB, free: 22.41 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.598e-05/1.838, allocations: 40 kB / 0.5762 GB, free: 22.38 MB / 234.7 MB Notification: Performance of pre-optimization done (n=37): time 3.697e-06/1.838, allocations: 0 / 0.5762 GB, free: 22.38 MB / 234.7 MB Notification: Performance of matching and sorting (n=41): time 0.005289/1.843, allocations: 1.459 MB / 0.5777 GB, free: 21.87 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.784e-05/1.843, allocations: 133.1 kB / 0.5778 GB, free: 21.71 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001226/1.845, allocations: 0.5978 MB / 0.5784 GB, free: 21.57 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001854/1.845, allocations: 37.39 kB / 0.5784 GB, free: 21.54 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003592/1.845, allocations: 469.3 kB / 0.5789 GB, free: 21.24 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002255/1.846, allocations: 148.7 kB / 0.579 GB, free: 21.16 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.299e-05/1.846, allocations: 14.69 kB / 0.579 GB, free: 21.16 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 9.831e-05/1.846, allocations: 347 kB / 0.5794 GB, free: 20.84 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000713/1.846, allocations: 234.8 kB / 0.5796 GB, free: 20.84 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008714/1.847, allocations: 0.5572 MB / 0.5801 GB, free: 20.43 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008871/1.848, allocations: 322.6 kB / 0.5804 GB, free: 20.43 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-05/1.848, allocations: 3.906 kB / 0.5804 GB, free: 20.43 MB / 234.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002409/1.851, allocations: 0.8418 MB / 0.5813 GB, free: 20.36 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.457e-05/1.851, allocations: 7.219 kB / 0.5813 GB, free: 20.36 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.48e-05/1.851, allocations: 11.62 kB / 0.5813 GB, free: 20.36 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001325/1.852, allocations: 117.7 kB / 0.5814 GB, free: 20.36 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001927/1.854, allocations: 240.2 kB / 0.5816 GB, free: 20.36 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009301/1.855, allocations: 1.211 MB / 0.5828 GB, free: 19.25 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001422/1.857, allocations: 56.31 kB / 0.5828 GB, free: 19.25 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001865/1.857, allocations: 42.27 kB / 0.5829 GB, free: 19.25 MB / 234.7 MB Warning: Assuming fixed start value for the following 2 variables: tank1.level:VARIABLE(min = 0.0 start = tank1.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank1.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (97): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * 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: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.000798/1.858, allocations: 285.9 kB / 0.5832 GB, free: 19.12 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002856/1.858, allocations: 80.08 kB / 0.5832 GB, free: 19.08 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002358/1.86, allocations: 0.7394 MB / 0.584 GB, free: 19 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.759e-05/1.86, allocations: 7.594 kB / 0.584 GB, free: 19 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.216e-06/1.86, allocations: 0 / 0.584 GB, free: 19 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.249e-05/1.86, allocations: 0 / 0.584 GB, free: 19 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003782/1.864, allocations: 1.41 MB / 0.5853 GB, free: 18.65 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.708e-06/1.864, allocations: 3.594 kB / 0.5853 GB, free: 18.65 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001308/1.866, allocations: 143.6 kB / 0.5855 GB, free: 18.65 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008021/1.866, allocations: 88.5 kB / 0.5856 GB, free: 18.64 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001408/1.867, allocations: 16.94 kB / 0.5856 GB, free: 18.64 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007468/1.867, allocations: 1.176 MB / 0.5867 GB, free: 17.54 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.169e-06/1.867, allocations: 7.234 kB / 0.5867 GB, free: 17.54 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002355/1.87, allocations: 1.005 MB / 0.5877 GB, free: 17.26 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003877/1.87, allocations: 154.8 kB / 0.5879 GB, free: 17.12 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001894/1.87, allocations: 15.34 kB / 0.5879 GB, free: 17.12 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007782/1.871, allocations: 39.2 kB / 0.5879 GB, free: 17.12 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001785/1.871, allocations: 55.56 kB / 0.588 GB, free: 17.12 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.597e-05/1.871, allocations: 20.11 kB / 0.588 GB, free: 17.12 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0008352/1.872, allocations: 473.3 kB / 0.5884 GB, free: 17.02 MB / 234.7 MB Notification: Performance of sort global known variables: time 3.91e-07/1.872, allocations: 0 / 0.5884 GB, free: 17.02 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.002331/1.875, allocations: 449.3 kB / 0.5889 GB, free: 16.95 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[2],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * 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: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.004612/1.879, allocations: 2.258 MB / 0.5911 GB, free: 15.86 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.002341/1.882, allocations: 0.6553 MB / 0.5917 GB, free: 15.85 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 8.346e-06/1.882, allocations: 0 / 0.5917 GB, free: 15.85 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001255/1.883, allocations: 336.1 kB / 0.592 GB, free: 15.84 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002911/1.886, allocations: 316.7 kB / 0.5923 GB, free: 15.84 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01417/1.9, allocations: 11.92 MB / 0.604 GB, free: 22.98 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006998/1.901, allocations: 0.998 MB / 0.605 GB, free: 22.28 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007636/1.902, allocations: 294.3 kB / 0.6052 GB, free: 22.27 MB / 250.7 MB Notification: Performance of SimCode: time 1.533e-06/1.902, allocations: 0 / 0.6052 GB, free: 22.27 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.421/5.322, allocations: 24.96 MB / 0.6296 GB, free: 20.74 MB / 250.7 MB