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: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.093/1.093, allocations: 111.1 MB / 127.3 MB, free: 6.148 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003483/0.0003485, allocations: 8 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05364/0.05402, allocations: 25.17 MB / 184 MB, free: 6.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7948/0.8489, allocations: 241.4 MB / 425.5 MB, free: 50.66 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002529/0.8492, allocations: 76.69 kB / 425.6 MB, free: 50.63 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9114/1.761, allocations: 154.5 MB / 0.5665 GB, free: 27.58 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.675e-06/1.761, allocations: 0 / 0.5665 GB, free: 27.58 MB / 234.7 MB Notification: Performance of Transformations before backend: time 8.89e-05/1.761, allocations: 23.33 kB / 0.5665 GB, free: 27.58 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.003825/1.765, allocations: 1.183 MB / 0.5677 GB, free: 27.02 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/1.765, allocations: 11.22 kB / 0.5677 GB, free: 27.02 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003894/1.765, allocations: 89.56 kB / 0.5678 GB, free: 26.97 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002022/1.767, allocations: 0.6427 MB / 0.5684 GB, free: 26.73 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.354e-05/1.767, allocations: 42.86 kB / 0.5684 GB, free: 26.73 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001844/1.767, allocations: 58.06 kB / 0.5685 GB, free: 26.73 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00238/1.77, allocations: 0.8791 MB / 0.5693 GB, free: 26.54 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.798e-05/1.77, allocations: 5.031 kB / 0.5693 GB, free: 26.54 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001645/1.77, allocations: 27.89 kB / 0.5694 GB, free: 26.54 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001038/1.77, allocations: 43.8 kB / 0.5694 GB, free: 26.54 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002225/1.772, allocations: 0.7634 MB / 0.5702 GB, free: 26.54 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007106/1.78, allocations: 3.988 MB / 0.5741 GB, free: 24.11 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001215/1.781, allocations: 482.5 kB / 0.5745 GB, free: 24.08 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003823/1.785, allocations: 2.058 MB / 0.5765 GB, free: 22.65 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.884e-05/1.785, allocations: 44.75 kB / 0.5766 GB, free: 22.61 MB / 234.7 MB Notification: Performance of pre-optimization done (n=37): time 3.667e-06/1.785, allocations: 2.812 kB / 0.5766 GB, free: 22.61 MB / 234.7 MB Notification: Performance of matching and sorting (n=41): time 0.00484/1.79, allocations: 1.453 MB / 0.578 GB, free: 22.11 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.742e-05/1.79, allocations: 133.4 kB / 0.5781 GB, free: 21.95 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001239/1.791, allocations: 0.6742 MB / 0.5788 GB, free: 21.81 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000136/1.791, allocations: 42.92 kB / 0.5788 GB, free: 21.78 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003308/1.792, allocations: 460.2 kB / 0.5793 GB, free: 21.48 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001745/1.792, allocations: 148 kB / 0.5794 GB, free: 21.4 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.015e-05/1.792, allocations: 18.47 kB / 0.5794 GB, free: 21.4 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 9.046e-05/1.792, allocations: 346 kB / 0.5797 GB, free: 21.08 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006619/1.793, allocations: 232.7 kB / 0.58 GB, free: 21.08 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008193/1.793, allocations: 0.5654 MB / 0.5805 GB, free: 20.67 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007814/1.794, allocations: 325.6 kB / 0.5808 GB, free: 20.67 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.203e-06/1.794, allocations: 0 / 0.5808 GB, free: 20.67 MB / 234.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002028/1.796, allocations: 0.8348 MB / 0.5816 GB, free: 20.61 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.709e-05/1.796, allocations: 7.812 kB / 0.5816 GB, free: 20.61 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.873e-05/1.796, allocations: 13.38 kB / 0.5817 GB, free: 20.61 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00126/1.798, allocations: 119.7 kB / 0.5818 GB, free: 20.6 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001763/1.799, allocations: 237.7 kB / 0.582 GB, free: 20.6 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008132/1.8, allocations: 1.207 MB / 0.5832 GB, free: 19.49 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001226/1.801, allocations: 62 kB / 0.5832 GB, free: 19.48 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001039/1.802, allocations: 44.38 kB / 0.5833 GB, free: 19.48 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.0006688/1.802, allocations: 288.2 kB / 0.5836 GB, free: 19.36 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000161/1.802, allocations: 78.23 kB / 0.5836 GB, free: 19.32 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002138/1.805, allocations: 0.7416 MB / 0.5844 GB, free: 19.23 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.26e-05/1.805, allocations: 6 kB / 0.5844 GB, free: 19.23 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/1.805, allocations: 3.75 kB / 0.5844 GB, free: 19.23 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.829e-06/1.805, allocations: 7.641 kB / 0.5844 GB, free: 19.23 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003316/1.808, allocations: 1.405 MB / 0.5857 GB, free: 18.88 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/1.808, allocations: 0 / 0.5857 GB, free: 18.88 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001245/1.809, allocations: 143.9 kB / 0.5859 GB, free: 18.88 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007384/1.81, allocations: 89.14 kB / 0.586 GB, free: 18.87 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.19e-05/1.81, allocations: 16.42 kB / 0.586 GB, free: 18.87 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000711/1.811, allocations: 1.181 MB / 0.5871 GB, free: 17.77 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/1.811, allocations: 3.75 kB / 0.5871 GB, free: 17.77 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002192/1.813, allocations: 0.967 MB / 0.5881 GB, free: 17.54 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00035/1.813, allocations: 161.5 kB / 0.5882 GB, free: 17.4 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002093/1.814, allocations: 13.06 kB / 0.5882 GB, free: 17.4 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008147/1.815, allocations: 37.81 kB / 0.5883 GB, free: 17.4 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000167/1.815, allocations: 50.91 kB / 0.5883 GB, free: 17.4 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.007e-05/1.815, allocations: 21.91 kB / 0.5884 GB, free: 17.4 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0008119/1.816, allocations: 468.6 kB / 0.5888 GB, free: 17.31 MB / 234.7 MB Notification: Performance of sort global known variables: time 5.11e-07/1.816, allocations: 0 / 0.5888 GB, free: 17.31 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001984/1.818, allocations: 456.9 kB / 0.5892 GB, free: 17.23 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.001872/1.82, allocations: 0.6043 MB / 0.5898 GB, free: 17.06 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0023/1.822, allocations: 0.6587 MB / 0.5905 GB, free: 17.05 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/1.822, allocations: 3.609 kB / 0.5905 GB, free: 17.05 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001219/1.823, allocations: 338.4 kB / 0.5908 GB, free: 17.04 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002786/1.826, allocations: 322.5 kB / 0.5911 GB, free: 17.03 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003898/1.83, allocations: 1.893 MB / 0.593 GB, free: 16.22 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008576/1.831, allocations: 0.997 MB / 0.5939 GB, free: 31.52 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004598/1.831, allocations: 80.16 kB / 0.594 GB, free: 31.52 MB / 250.7 MB Notification: Performance of SimCode: time 1.933e-06/1.831, allocations: 2.25 kB / 0.594 GB, free: 31.52 MB / 250.7 MB Notification: Performance of Templates: time 0.03983/1.871, allocations: 21.42 MB / 0.6149 GB, free: 30.26 MB / 250.7 MB