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.TanksWithEmptyingPipe2.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.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 0.9435/0.9435, allocations: 111.1 MB / 126.7 MB, free: 6.129 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002676/0.0002678, allocations: 4 kB / 158.3 MB, free: 15.18 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04519/0.04548, allocations: 25.17 MB / 183.5 MB, free: 5.973 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6252/0.6707, allocations: 240.8 MB / 424.4 MB, free: 62.49 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001788/0.6709, allocations: 71.45 kB / 424.4 MB, free: 62.43 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.368/2.039, allocations: 302.1 MB / 0.7095 GB, free: 20.14 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.61e-06/2.039, allocations: 0 / 0.7095 GB, free: 20.14 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001491/2.04, allocations: 43 kB / 0.7096 GB, free: 20.13 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 309 * Number of variables: 309 Notification: Performance of Generate backend data structure: time 0.005577/2.045, allocations: 2.142 MB / 0.7117 GB, free: 19.09 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/2.045, allocations: 9.344 kB / 0.7117 GB, free: 19.09 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006587/2.046, allocations: 185.6 kB / 0.7118 GB, free: 19 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00318/2.049, allocations: 1.209 MB / 0.713 GB, free: 18.61 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001068/2.049, allocations: 98.27 kB / 0.7131 GB, free: 18.61 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002764/2.049, allocations: 111 kB / 0.7132 GB, free: 18.61 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004154/2.054, allocations: 1.84 MB / 0.715 GB, free: 18.32 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.497e-05/2.054, allocations: 4.375 kB / 0.715 GB, free: 18.32 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002192/2.054, allocations: 48.73 kB / 0.7151 GB, free: 18.32 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001632/2.054, allocations: 113.4 kB / 0.7152 GB, free: 18.32 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004084/2.058, allocations: 1.818 MB / 0.717 GB, free: 18.3 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01198/2.07, allocations: 7.409 MB / 0.7242 GB, free: 14.69 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002381/2.073, allocations: 1.152 MB / 0.7253 GB, free: 14.66 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005757/2.078, allocations: 3.314 MB / 0.7286 GB, free: 12.99 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.634e-05/2.079, allocations: 48.72 kB / 0.7286 GB, free: 12.95 MB / 250.7 MB Notification: Performance of pre-optimization done (n=119): time 4.349e-06/2.079, allocations: 0 / 0.7286 GB, free: 12.95 MB / 250.7 MB Notification: Performance of matching and sorting (n=131): time 0.01503/2.094, allocations: 5.203 MB / 0.7337 GB, free: 11.9 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.379e-05/2.094, allocations: 172.6 kB / 0.7338 GB, free: 11.71 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001828/2.096, allocations: 1.097 MB / 0.7349 GB, free: 11.45 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002554/2.096, allocations: 59.66 kB / 0.735 GB, free: 11.4 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000467/2.096, allocations: 0.6763 MB / 0.7356 GB, free: 10.81 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004269/2.097, allocations: 461.9 kB / 0.7361 GB, free: 10.46 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001373/2.097, allocations: 34.91 kB / 0.7361 GB, free: 10.44 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001306/2.097, allocations: 379.8 kB / 0.7365 GB, free: 10.1 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001616/2.099, allocations: 0.6999 MB / 0.7372 GB, free: 9.855 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001825/2.1, allocations: 1.156 MB / 0.7383 GB, free: 9.059 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001798/2.102, allocations: 0.8332 MB / 0.7391 GB, free: 8.719 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.088e-05/2.102, allocations: 7.359 kB / 0.7391 GB, free: 8.719 MB / 250.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.005002/2.107, allocations: 2.216 MB / 0.7413 GB, free: 7.852 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.909e-05/2.107, allocations: 11.28 kB / 0.7413 GB, free: 7.852 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.273e-05/2.107, allocations: 12.53 kB / 0.7413 GB, free: 7.852 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006977/2.114, allocations: 0.9372 MB / 0.7422 GB, free: 7.703 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0018/2.116, allocations: 339.3 kB / 0.7425 GB, free: 7.668 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002836/2.119, allocations: 2.852 MB / 0.7453 GB, free: 5.285 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002196/2.121, allocations: 137.1 kB / 0.7454 GB, free: 5.242 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000231/2.122, allocations: 86.7 kB / 0.7455 GB, free: 5.23 MB / 250.7 MB Warning: Assuming fixed start value for the following 6 variables: tank2.level:VARIABLE(min = 0.0 start = tank2.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank2.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 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 tank3.level:VARIABLE(min = 0.0 start = tank3.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank3.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: 59 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.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 (195): * Single equations (assignments): 191 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001169/2.123, allocations: 0.496 MB / 0.746 GB, free: 4.93 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003406/2.123, allocations: 162.2 kB / 0.7462 GB, free: 4.848 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005901/2.129, allocations: 2.299 MB / 0.7484 GB, free: 3.918 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.156e-05/2.129, allocations: 17.31 kB / 0.7484 GB, free: 3.918 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.232e-06/2.129, allocations: 2.406 kB / 0.7484 GB, free: 3.918 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.31e-05/2.129, allocations: 9.047 kB / 0.7484 GB, free: 3.918 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008608/2.138, allocations: 3.865 MB / 0.7522 GB, free: 1.855 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.095e-05/2.138, allocations: 4.188 kB / 0.7522 GB, free: 1.852 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001456/2.139, allocations: 238.4 kB / 0.7524 GB, free: 1.652 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00556/2.145, allocations: 0.8688 MB / 0.7533 GB, free: 0.9961 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002976/2.145, allocations: 38.66 kB / 0.7533 GB, free: 0.9648 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00318/2.148, allocations: 2.822 MB / 0.7561 GB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.02e-06/2.148, allocations: 0 / 0.7561 GB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007224/2.156, allocations: 3.166 MB / 0.7592 GB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000743/2.156, allocations: 250.2 kB / 0.7594 GB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003902/2.157, allocations: 35.44 kB / 0.7594 GB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00152/2.158, allocations: 111.8 kB / 0.7596 GB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000364/2.159, allocations: 142.2 kB / 0.7597 GB, free: 10.81 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002029/2.159, allocations: 63.69 kB / 0.7597 GB, free: 10.76 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.00165/2.161, allocations: 0.8456 MB / 0.7606 GB, free: 10.05 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.51e-07/2.161, allocations: 0 / 0.7606 GB, free: 10.05 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.003475/2.164, allocations: 0.8839 MB / 0.7614 GB, free: 9.191 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002685/2.167, allocations: 1.07 MB / 0.7625 GB, free: 8.32 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.004836/2.172, allocations: 1.834 MB / 0.7643 GB, free: 6.738 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.361e-06/2.172, allocations: 4 kB / 0.7643 GB, free: 6.734 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00276/2.175, allocations: 1.054 MB / 0.7653 GB, free: 5.844 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004177/2.179, allocations: 0.7177 MB / 0.766 GB, free: 5.32 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00854/2.187, allocations: 4.149 MB / 0.7701 GB, free: 1.629 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001413/2.189, allocations: 1.418 MB / 0.7714 GB, free: 452 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008402/2.19, allocations: 152.7 kB / 0.7716 GB, free: 312 kB / 266.7 MB Notification: Performance of SimCode: time 1.802e-06/2.19, allocations: 0 / 0.7716 GB, free: 312 kB / 266.7 MB Notification: Performance of Templates: time 0.2375/2.427, allocations: 56.6 MB / 0.8269 GB, free: 25.01 MB / 266.7 MB