Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 0.9415/0.9415, allocations: 111.2 MB / 124.2 MB, free: 11.15 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.613e-05/2.628e-05, allocations: 4 kB / 154.3 MB, free: 13.12 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.14, allocations: 25.14 MB / 179.4 MB, free: 0.8047 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5003/0.6403, allocations: 241.3 MB / 420.8 MB, free: 7.402 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001907/0.6405, allocations: 67.34 kB / 420.8 MB, free: 7.371 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6971/1.338, allocations: 153.9 MB / 0.5612 GB, free: 35.49 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.085e-06/1.338, allocations: 0 / 0.5612 GB, free: 35.49 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.837e-05/1.338, allocations: 21.41 kB / 0.5613 GB, free: 35.48 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.002204/1.34, allocations: 1.089 MB / 0.5623 GB, free: 34.76 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/1.34, allocations: 11.47 kB / 0.5623 GB, free: 34.76 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002077/1.34, allocations: 92.31 kB / 0.5624 GB, free: 34.71 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001315/1.342, allocations: 0.6368 MB / 0.563 GB, free: 34.33 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.081e-05/1.342, allocations: 54.64 kB / 0.5631 GB, free: 34.31 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001278/1.342, allocations: 50.64 kB / 0.5631 GB, free: 34.29 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001547/1.343, allocations: 0.8582 MB / 0.564 GB, free: 33.8 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.42e-05/1.343, allocations: 7.656 kB / 0.564 GB, free: 33.8 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001059/1.344, allocations: 27.44 kB / 0.564 GB, free: 33.79 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.269e-05/1.344, allocations: 42.17 kB / 0.5641 GB, free: 33.78 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001501/1.345, allocations: 0.7475 MB / 0.5648 GB, free: 33.43 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005123/1.35, allocations: 3.993 MB / 0.5687 GB, free: 29.42 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009025/1.351, allocations: 474 kB / 0.5691 GB, free: 28.95 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004155/1.352, allocations: 233.5 kB / 0.5694 GB, free: 28.72 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002892/1.355, allocations: 2.106 MB / 0.5714 GB, free: 26.39 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.275e-05/1.355, allocations: 46.48 kB / 0.5715 GB, free: 26.34 MB / 234.7 MB Notification: Performance of pre-optimization done (n=37): time 3.095e-06/1.355, allocations: 0 / 0.5715 GB, free: 26.34 MB / 234.7 MB Notification: Performance of matching and sorting (n=41): time 0.002889/1.358, allocations: 1.213 MB / 0.5726 GB, free: 25.08 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.11e-05/1.358, allocations: 132.5 kB / 0.5728 GB, free: 24.92 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008512/1.358, allocations: 0.5933 MB / 0.5733 GB, free: 24.32 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 5.687e-05/1.359, allocations: 33.7 kB / 0.5734 GB, free: 24.28 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002403/1.359, allocations: 461.2 kB / 0.5738 GB, free: 23.82 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001159/1.359, allocations: 149.5 kB / 0.574 GB, free: 23.68 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.958e-05/1.359, allocations: 16 kB / 0.574 GB, free: 23.66 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.792e-05/1.359, allocations: 350.1 kB / 0.5743 GB, free: 23.32 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004542/1.36, allocations: 225.7 kB / 0.5745 GB, free: 23.1 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000594/1.36, allocations: 0.5499 MB / 0.5751 GB, free: 22.4 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005668/1.361, allocations: 325.8 kB / 0.5754 GB, free: 22.1 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.209e-06/1.361, allocations: 4 kB / 0.5754 GB, free: 22.09 MB / 234.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001627/1.362, allocations: 0.8202 MB / 0.5762 GB, free: 21.27 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.25e-05/1.362, allocations: 15.98 kB / 0.5762 GB, free: 21.26 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.431e-05/1.362, allocations: 8 kB / 0.5762 GB, free: 21.25 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008527/1.363, allocations: 115.9 kB / 0.5763 GB, free: 21.14 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/1.365, allocations: 234.8 kB / 0.5765 GB, free: 20.91 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006697/1.365, allocations: 1.216 MB / 0.5777 GB, free: 19.65 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008869/1.366, allocations: 63.12 kB / 0.5778 GB, free: 19.59 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.318e-05/1.366, allocations: 43.98 kB / 0.5778 GB, free: 19.55 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" 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" 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 () * 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.0002552/1.367, allocations: 170 kB / 0.578 GB, free: 19.38 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001399/1.367, allocations: 76.73 kB / 0.5781 GB, free: 19.3 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001718/1.368, allocations: 0.7367 MB / 0.5788 GB, free: 18.56 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/1.368, allocations: 4 kB / 0.5788 GB, free: 18.56 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.733e-06/1.368, allocations: 0 / 0.5788 GB, free: 18.56 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.967e-06/1.368, allocations: 3.984 kB / 0.5788 GB, free: 18.55 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002645/1.371, allocations: 1.396 MB / 0.5802 GB, free: 17.11 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/1.371, allocations: 3.938 kB / 0.5802 GB, free: 17.1 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009911/1.372, allocations: 147.9 kB / 0.5803 GB, free: 16.96 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006036/1.373, allocations: 80.78 kB / 0.5804 GB, free: 16.88 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.369e-05/1.373, allocations: 19.98 kB / 0.5804 GB, free: 16.86 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006156/1.373, allocations: 1.173 MB / 0.5815 GB, free: 15.63 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.011e-06/1.374, allocations: 3.938 kB / 0.5815 GB, free: 15.63 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001679/1.375, allocations: 0.996 MB / 0.5825 GB, free: 14.59 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001868/1.375, allocations: 156.1 kB / 0.5827 GB, free: 14.41 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001542/1.376, allocations: 12 kB / 0.5827 GB, free: 14.4 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006331/1.376, allocations: 43.88 kB / 0.5827 GB, free: 14.36 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001304/1.376, allocations: 56.31 kB / 0.5828 GB, free: 14.3 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.691e-05/1.376, allocations: 23.98 kB / 0.5828 GB, free: 14.28 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0006615/1.377, allocations: 459.1 kB / 0.5832 GB, free: 13.84 MB / 234.7 MB Notification: Performance of sort global known variables: time 8.1e-07/1.377, allocations: 4 kB / 0.5832 GB, free: 13.83 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001575/1.379, allocations: 447.6 kB / 0.5837 GB, free: 13.39 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]) * 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.001243/1.38, allocations: 0.6057 MB / 0.5843 GB, free: 12.85 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001534/1.382, allocations: 0.6402 MB / 0.5849 GB, free: 12.21 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.821e-06/1.382, allocations: 0 / 0.5849 GB, free: 12.21 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000847/1.382, allocations: 331.7 kB / 0.5852 GB, free: 11.89 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001763/1.384, allocations: 317.6 kB / 0.5855 GB, free: 11.59 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002419/1.387, allocations: 1.157 MB / 0.5866 GB, free: 10.4 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004933/1.387, allocations: 0.9984 MB / 0.5876 GB, free: 9.375 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003138/1.387, allocations: 87.34 kB / 0.5877 GB, free: 9.289 MB / 234.7 MB Notification: Performance of SimCode: time 1.663e-06/1.388, allocations: 0 / 0.5877 GB, free: 9.289 MB / 234.7 MB Notification: Performance of Templates: time 0.03309/1.421, allocations: 21.39 MB / 0.6086 GB, free: 4.055 MB / 250.7 MB