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.9794/0.9794, allocations: 111.1 MB / 126.7 MB, free: 6.129 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002939/0.0002941, allocations: 12 kB / 158.3 MB, free: 15.18 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04492/0.04524, allocations: 25.16 MB / 183.5 MB, free: 5.973 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6313/0.6766, allocations: 241.4 MB / 424.9 MB, free: 52.47 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001932/0.6768, allocations: 75.56 kB / 425 MB, free: 52.44 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8279/1.505, allocations: 154.5 MB / 0.566 GB, free: 26.93 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.863e-06/1.505, allocations: 0 / 0.566 GB, free: 26.93 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.585e-05/1.505, allocations: 16.38 kB / 0.566 GB, free: 26.93 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.002931/1.508, allocations: 1.173 MB / 0.5671 GB, free: 26.35 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/1.508, allocations: 12.91 kB / 0.5671 GB, free: 26.35 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003072/1.508, allocations: 89.62 kB / 0.5672 GB, free: 26.3 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002912/1.511, allocations: 0.6445 MB / 0.5679 GB, free: 26.06 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001281/1.511, allocations: 49.92 kB / 0.5679 GB, free: 26.06 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002862/1.512, allocations: 52.52 kB / 0.568 GB, free: 26.06 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003925/1.516, allocations: 0.867 MB / 0.5688 GB, free: 25.87 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.959e-05/1.516, allocations: 4.938 kB / 0.5688 GB, free: 25.87 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002453/1.516, allocations: 29.3 kB / 0.5688 GB, free: 25.87 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001724/1.516, allocations: 47.2 kB / 0.5689 GB, free: 25.87 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003897/1.52, allocations: 0.7601 MB / 0.5696 GB, free: 25.87 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01064/1.531, allocations: 3.995 MB / 0.5735 GB, free: 23.44 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002055/1.533, allocations: 482.6 kB / 0.574 GB, free: 23.41 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005922/1.539, allocations: 2.057 MB / 0.576 GB, free: 21.99 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.762e-05/1.539, allocations: 38.94 kB / 0.576 GB, free: 21.95 MB / 234.7 MB Notification: Performance of pre-optimization done (n=37): time 6.955e-06/1.539, allocations: 3.75 kB / 0.576 GB, free: 21.95 MB / 234.7 MB Notification: Performance of matching and sorting (n=41): time 0.006938/1.546, allocations: 1.457 MB / 0.5775 GB, free: 21.44 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.742e-05/1.546, allocations: 136.8 kB / 0.5776 GB, free: 21.29 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001715/1.548, allocations: 0.5984 MB / 0.5782 GB, free: 21.15 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001157/1.548, allocations: 35.98 kB / 0.5782 GB, free: 21.12 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004602/1.548, allocations: 462.5 kB / 0.5786 GB, free: 20.82 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002352/1.549, allocations: 154.2 kB / 0.5788 GB, free: 20.73 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.7e-05/1.549, allocations: 15.69 kB / 0.5788 GB, free: 20.73 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001293/1.549, allocations: 345 kB / 0.5791 GB, free: 20.41 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009998/1.55, allocations: 234.6 kB / 0.5794 GB, free: 20.41 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001249/1.551, allocations: 0.5607 MB / 0.5799 GB, free: 20 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001305/1.553, allocations: 315 kB / 0.5802 GB, free: 20 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-05/1.553, allocations: 3.906 kB / 0.5802 GB, free: 20 MB / 234.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003875/1.557, allocations: 0.8434 MB / 0.581 GB, free: 19.94 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.291e-05/1.557, allocations: 11.66 kB / 0.581 GB, free: 19.94 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.431e-05/1.557, allocations: 9.625 kB / 0.5811 GB, free: 19.94 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001692/1.558, allocations: 118 kB / 0.5812 GB, free: 19.93 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002367/1.561, allocations: 239 kB / 0.5814 GB, free: 19.93 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001267/1.562, allocations: 1.201 MB / 0.5826 GB, free: 18.82 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001862/1.564, allocations: 65.16 kB / 0.5826 GB, free: 18.82 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002017/1.564, allocations: 43.59 kB / 0.5827 GB, free: 18.82 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.001009/1.565, allocations: 284.1 kB / 0.5829 GB, free: 18.7 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003146/1.566, allocations: 78.52 kB / 0.583 GB, free: 18.65 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003687/1.569, allocations: 0.747 MB / 0.5838 GB, free: 18.57 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.211e-05/1.569, allocations: 3.312 kB / 0.5838 GB, free: 18.57 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/1.569, allocations: 2.531 kB / 0.5838 GB, free: 18.57 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.652e-05/1.569, allocations: 3.141 kB / 0.5838 GB, free: 18.57 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005171/1.575, allocations: 1.405 MB / 0.5851 GB, free: 18.22 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-05/1.575, allocations: 6.734 kB / 0.5851 GB, free: 18.22 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00167/1.576, allocations: 139.6 kB / 0.5853 GB, free: 18.22 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001024/1.577, allocations: 98.84 kB / 0.5854 GB, free: 18.21 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001028/1.578, allocations: 16.92 kB / 0.5854 GB, free: 18.21 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00112/1.579, allocations: 1.174 MB / 0.5865 GB, free: 17.11 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.229e-06/1.579, allocations: 3.375 kB / 0.5865 GB, free: 17.11 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003443/1.582, allocations: 0.997 MB / 0.5875 GB, free: 16.83 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004177/1.583, allocations: 157.4 kB / 0.5877 GB, free: 16.7 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000281/1.583, allocations: 13.59 kB / 0.5877 GB, free: 16.7 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001163/1.584, allocations: 40.89 kB / 0.5877 GB, free: 16.7 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002424/1.584, allocations: 60.8 kB / 0.5878 GB, free: 16.69 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001281/1.585, allocations: 22.31 kB / 0.5878 GB, free: 16.69 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.001376/1.586, allocations: 467.1 kB / 0.5882 GB, free: 16.59 MB / 234.7 MB Notification: Performance of sort global known variables: time 1.206e-06/1.586, allocations: 0 / 0.5882 GB, free: 16.59 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.003095/1.589, allocations: 442.7 kB / 0.5887 GB, free: 16.52 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.002546/1.592, allocations: 0.6183 MB / 0.5893 GB, free: 16.34 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.003593/1.595, allocations: 0.6481 MB / 0.5899 GB, free: 16.33 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 1.167e-05/1.595, allocations: 2.562 kB / 0.5899 GB, free: 16.33 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001957/1.597, allocations: 336.3 kB / 0.5902 GB, free: 16.32 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003935/1.601, allocations: 313.5 kB / 0.5905 GB, free: 16.32 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005036/1.606, allocations: 1.905 MB / 0.5924 GB, free: 15.52 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008653/1.607, allocations: 1 MB / 0.5933 GB, free: 30.82 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000367/1.608, allocations: 78.89 kB / 0.5934 GB, free: 30.81 MB / 250.7 MB Notification: Performance of SimCode: time 1.626e-06/1.608, allocations: 1.75 kB / 0.5934 GB, free: 30.81 MB / 250.7 MB Notification: Performance of Templates: time 0.03151/1.639, allocations: 21.42 MB / 0.6143 GB, free: 29.6 MB / 250.7 MB