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.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 0.9387/0.9387, allocations: 111.2 MB / 124.2 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.303e-05/2.324e-05, allocations: 4 kB / 154.3 MB, free: 13.14 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.1385, allocations: 25.14 MB / 179.4 MB, free: 0.8008 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5902/0.7288, allocations: 238.3 MB / 417.7 MB, free: 10.45 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002044/0.7291, allocations: 66.94 kB / 417.8 MB, free: 10.42 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7759/1.505, allocations: 177 MB / 0.5808 GB, free: 17.95 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.942e-06/1.505, allocations: 0 / 0.5808 GB, free: 17.95 MB / 234.7 MB Notification: Performance of Transformations before backend: time 8.207e-05/1.505, allocations: 27.98 kB / 0.5808 GB, free: 17.92 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: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.00326/1.508, allocations: 1.22 MB / 0.582 GB, free: 16.65 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/1.508, allocations: 16.02 kB / 0.5821 GB, free: 16.63 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003887/1.509, allocations: 98.78 kB / 0.5821 GB, free: 16.54 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001801/1.511, allocations: 0.7412 MB / 0.5829 GB, free: 15.75 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.023e-05/1.511, allocations: 53.3 kB / 0.5829 GB, free: 15.7 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001433/1.511, allocations: 52.52 kB / 0.583 GB, free: 15.65 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001861/1.513, allocations: 0.9719 MB / 0.5839 GB, free: 14.62 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.733e-05/1.513, allocations: 0 / 0.5839 GB, free: 14.62 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001274/1.513, allocations: 31.98 kB / 0.5839 GB, free: 14.59 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001055/1.513, allocations: 65.27 kB / 0.584 GB, free: 14.52 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001736/1.515, allocations: 0.9027 MB / 0.5849 GB, free: 13.62 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006425/1.521, allocations: 4.393 MB / 0.5892 GB, free: 8.918 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001029/1.522, allocations: 0.5208 MB / 0.5897 GB, free: 8.391 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005079/1.523, allocations: 290.1 kB / 0.59 GB, free: 8.105 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002606/1.526, allocations: 2.009 MB / 0.5919 GB, free: 5.867 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.194e-05/1.526, allocations: 38.89 kB / 0.592 GB, free: 5.82 MB / 234.7 MB Notification: Performance of pre-optimization done (n=40): time 3.351e-06/1.526, allocations: 4 kB / 0.592 GB, free: 5.816 MB / 234.7 MB Notification: Performance of matching and sorting (n=44): time 0.003624/1.529, allocations: 1.409 MB / 0.5933 GB, free: 4.348 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/1.529, allocations: 166.2 kB / 0.5935 GB, free: 4.148 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001061/1.53, allocations: 0.68 MB / 0.5942 GB, free: 3.461 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 7.561e-05/1.531, allocations: 37.7 kB / 0.5942 GB, free: 3.418 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002893/1.531, allocations: 0.4892 MB / 0.5947 GB, free: 2.922 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001461/1.531, allocations: 165.7 kB / 0.5948 GB, free: 2.758 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.587e-05/1.531, allocations: 16 kB / 0.5949 GB, free: 2.742 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.156e-05/1.531, allocations: 350.8 kB / 0.5952 GB, free: 2.391 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005353/1.532, allocations: 261.9 kB / 0.5954 GB, free: 2.133 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000698/1.532, allocations: 0.6214 MB / 0.596 GB, free: 1.344 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006962/1.533, allocations: 376 kB / 0.5964 GB, free: 0.9766 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.051e-06/1.533, allocations: 4 kB / 0.5964 GB, free: 0.9727 MB / 234.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.1465/1.68, allocations: 0.9742 MB / 0.5974 GB, free: 26.03 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.962e-05/1.68, allocations: 11.64 kB / 0.5974 GB, free: 26.03 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.799e-05/1.68, allocations: 11.53 kB / 0.5974 GB, free: 26.03 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0025/1.682, allocations: 312.6 kB / 0.5977 GB, free: 26.01 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000969/1.683, allocations: 184.6 kB / 0.5979 GB, free: 26.01 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001235/1.685, allocations: 1.302 MB / 0.5991 GB, free: 24.98 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001198/1.686, allocations: 59.25 kB / 0.5992 GB, free: 24.98 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001727/1.686, allocations: 46.39 kB / 0.5992 GB, free: 24.98 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: 51 * 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 (102): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003497/1.686, allocations: 178.3 kB / 0.5994 GB, free: 24.88 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002465/1.687, allocations: 87.11 kB / 0.5995 GB, free: 24.88 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002398/1.689, allocations: 0.7575 MB / 0.6002 GB, free: 24.8 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.16e-05/1.689, allocations: 15.58 kB / 0.6002 GB, free: 24.8 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.33e-06/1.689, allocations: 0 / 0.6002 GB, free: 24.8 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.399e-06/1.689, allocations: 0 / 0.6002 GB, free: 24.8 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003265/1.692, allocations: 1.493 MB / 0.6017 GB, free: 24.47 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/1.692, allocations: 4.844 kB / 0.6017 GB, free: 24.47 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005417/1.693, allocations: 78.89 kB / 0.6018 GB, free: 24.47 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002002/1.695, allocations: 274.7 kB / 0.602 GB, free: 24.45 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.185e-05/1.695, allocations: 16.14 kB / 0.6021 GB, free: 24.45 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001098/1.696, allocations: 1.288 MB / 0.6033 GB, free: 23.42 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.793e-06/1.696, allocations: 0 / 0.6033 GB, free: 23.42 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002063/1.698, allocations: 1.062 MB / 0.6043 GB, free: 23.21 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003179/1.699, allocations: 164.5 kB / 0.6045 GB, free: 23.08 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001875/1.699, allocations: 21.52 kB / 0.6045 GB, free: 23.07 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000712/1.7, allocations: 35.27 kB / 0.6046 GB, free: 23.07 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001381/1.7, allocations: 54.11 kB / 0.6046 GB, free: 23.07 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.313e-05/1.7, allocations: 16.19 kB / 0.6046 GB, free: 23.07 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0008355/1.701, allocations: 0.5246 MB / 0.6051 GB, free: 22.97 MB / 234.7 MB Notification: Performance of sort global known variables: time 8.33e-07/1.701, allocations: 0 / 0.6051 GB, free: 22.97 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001881/1.703, allocations: 0.5264 MB / 0.6057 GB, free: 22.97 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001795/1.704, allocations: 0.697 MB / 0.6063 GB, free: 22.88 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001713/1.706, allocations: 0.682 MB / 0.607 GB, free: 22.87 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.577e-06/1.706, allocations: 2.156 kB / 0.607 GB, free: 22.87 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007151/1.707, allocations: 300.7 kB / 0.6073 GB, free: 22.87 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002028/1.709, allocations: 352.4 kB / 0.6076 GB, free: 22.86 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00298/1.712, allocations: 1.337 MB / 0.6089 GB, free: 22.51 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005639/1.713, allocations: 1.041 MB / 0.6099 GB, free: 21.8 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003072/1.713, allocations: 78.17 kB / 0.61 GB, free: 21.8 MB / 234.7 MB Notification: Performance of SimCode: time 1.804e-06/1.713, allocations: 3.125 kB / 0.61 GB, free: 21.8 MB / 234.7 MB Notification: Performance of Templates: time 0.03372/1.747, allocations: 23.86 MB / 0.6333 GB, free: 20.69 MB / 234.7 MB