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 1.058/1.058, allocations: 111.1 MB / 126.7 MB, free: 6.125 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002654/0.0002657, allocations: 8 kB / 158.3 MB, free: 15.17 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04537/0.04566, allocations: 25.17 MB / 183.5 MB, free: 5.969 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7322/0.7779, allocations: 238.4 MB / 421.9 MB, free: 64.89 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000222/0.7781, allocations: 71.27 kB / 421.9 MB, free: 64.82 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8011/1.579, allocations: 177.7 MB / 0.5856 GB, free: 23.48 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.299e-06/1.579, allocations: 0 / 0.5856 GB, free: 23.48 MB / 234.7 MB Notification: Performance of Transformations before backend: time 8.951e-05/1.579, allocations: 25.44 kB / 0.5856 GB, free: 23.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: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.003137/1.583, allocations: 1.339 MB / 0.5869 GB, free: 22.8 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/1.583, allocations: 11.94 kB / 0.5869 GB, free: 22.8 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002976/1.583, allocations: 97.81 kB / 0.587 GB, free: 22.75 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001797/1.585, allocations: 0.7433 MB / 0.5877 GB, free: 22.48 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.536e-05/1.585, allocations: 48.08 kB / 0.5878 GB, free: 22.48 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001358/1.585, allocations: 60.5 kB / 0.5878 GB, free: 22.48 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001957/1.587, allocations: 0.9831 MB / 0.5888 GB, free: 22.29 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.736e-05/1.587, allocations: 3.406 kB / 0.5888 GB, free: 22.29 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000118/1.587, allocations: 29.33 kB / 0.5888 GB, free: 22.29 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.222e-05/1.587, allocations: 63.5 kB / 0.5889 GB, free: 22.29 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001893/1.589, allocations: 0.9228 MB / 0.5898 GB, free: 22.29 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006547/1.596, allocations: 4.402 MB / 0.5941 GB, free: 19.78 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001189/1.597, allocations: 0.5334 MB / 0.5946 GB, free: 19.75 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002534/1.6, allocations: 1.924 MB / 0.5965 GB, free: 18.4 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.043e-05/1.6, allocations: 37.39 kB / 0.5965 GB, free: 18.36 MB / 234.7 MB Notification: Performance of pre-optimization done (n=40): time 3.206e-06/1.6, allocations: 0 / 0.5965 GB, free: 18.36 MB / 234.7 MB Notification: Performance of matching and sorting (n=44): time 0.004984/1.605, allocations: 1.831 MB / 0.5983 GB, free: 17.73 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.985e-05/1.605, allocations: 163.4 kB / 0.5985 GB, free: 17.54 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001124/1.606, allocations: 0.6913 MB / 0.5991 GB, free: 17.4 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 8.29e-05/1.606, allocations: 36.14 kB / 0.5992 GB, free: 17.37 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003032/1.606, allocations: 0.4963 MB / 0.5997 GB, free: 17.06 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001453/1.606, allocations: 161.3 kB / 0.5998 GB, free: 16.96 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.055e-05/1.606, allocations: 17.72 kB / 0.5998 GB, free: 16.96 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.5e-05/1.607, allocations: 348.6 kB / 0.6002 GB, free: 16.65 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006079/1.607, allocations: 267.6 kB / 0.6004 GB, free: 16.65 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007559/1.608, allocations: 0.6358 MB / 0.601 GB, free: 16.2 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007478/1.609, allocations: 377.4 kB / 0.6014 GB, free: 16.2 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.359e-06/1.609, allocations: 0 / 0.6014 GB, free: 16.2 MB / 234.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002169/1.611, allocations: 0.9969 MB / 0.6024 GB, free: 16.11 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.602e-05/1.611, allocations: 16.22 kB / 0.6024 GB, free: 16.11 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.751e-05/1.611, allocations: 10.88 kB / 0.6024 GB, free: 16.11 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002555/1.614, allocations: 310.9 kB / 0.6027 GB, free: 16.1 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008802/1.614, allocations: 179.9 kB / 0.6029 GB, free: 16.1 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001151/1.616, allocations: 1.309 MB / 0.6042 GB, free: 15.06 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001128/1.617, allocations: 57.03 kB / 0.6042 GB, free: 15.06 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001057/1.617, allocations: 49 kB / 0.6043 GB, free: 15.06 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: 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 () * Number of clocked 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.0006413/1.618, allocations: 319.5 kB / 0.6046 GB, free: 14.93 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001705/1.618, allocations: 84.56 kB / 0.6046 GB, free: 14.89 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002162/1.62, allocations: 0.7674 MB / 0.6054 GB, free: 14.8 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.778e-06/1.62, allocations: 9.531 kB / 0.6054 GB, free: 14.8 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.285e-06/1.62, allocations: 0 / 0.6054 GB, free: 14.8 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.983e-06/1.62, allocations: 3.844 kB / 0.6054 GB, free: 14.8 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00323/1.623, allocations: 1.495 MB / 0.6069 GB, free: 14.45 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.824e-06/1.623, allocations: 3.719 kB / 0.6069 GB, free: 14.45 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005103/1.624, allocations: 78.66 kB / 0.6069 GB, free: 14.45 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00194/1.626, allocations: 289.2 kB / 0.6072 GB, free: 14.44 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.632e-05/1.626, allocations: 10.97 kB / 0.6072 GB, free: 14.44 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00106/1.627, allocations: 1.296 MB / 0.6085 GB, free: 13.39 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.474e-06/1.627, allocations: 5.219 kB / 0.6085 GB, free: 13.39 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002105/1.629, allocations: 1.069 MB / 0.6095 GB, free: 13.13 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002797/1.629, allocations: 164.4 kB / 0.6097 GB, free: 13 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001872/1.63, allocations: 16.62 kB / 0.6097 GB, free: 13 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006943/1.63, allocations: 42.52 kB / 0.6098 GB, free: 12.99 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001306/1.63, allocations: 50 kB / 0.6098 GB, free: 12.99 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.43e-05/1.631, allocations: 23.88 kB / 0.6098 GB, free: 12.98 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0008736/1.631, allocations: 0.5332 MB / 0.6103 GB, free: 12.89 MB / 234.7 MB Notification: Performance of sort global known variables: time 8.39e-07/1.631, allocations: 0 / 0.6103 GB, free: 12.89 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.00193/1.633, allocations: 0.5267 MB / 0.6109 GB, free: 12.79 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]) * Number of clocked states: 0 () * 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.001617/1.635, allocations: 0.6876 MB / 0.6115 GB, free: 12.59 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001749/1.637, allocations: 0.7047 MB / 0.6122 GB, free: 12.56 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.867e-06/1.637, allocations: 0 / 0.6122 GB, free: 12.56 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007019/1.638, allocations: 301.6 kB / 0.6125 GB, free: 12.55 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001997/1.64, allocations: 349.7 kB / 0.6128 GB, free: 12.54 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003468/1.643, allocations: 2.081 MB / 0.6149 GB, free: 11.69 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005524/1.644, allocations: 1.04 MB / 0.6159 GB, free: 10.99 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003132/1.644, allocations: 77.59 kB / 0.616 GB, free: 10.98 MB / 234.7 MB Notification: Performance of SimCode: time 1.548e-06/1.644, allocations: 3.094 kB / 0.616 GB, free: 10.98 MB / 234.7 MB Notification: Performance of Templates: time 0.0347/1.679, allocations: 23.91 MB / 0.6393 GB, free: 6.465 MB / 234.7 MB