Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|tank.aboveLevel.1.|tank.ports_m_flow_out.1.|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadModel(Modelica): time 2.116/2.116, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003718/0.0003719, allocations: 12 kB / 264.6 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09982/0.1002, allocations: 44.5 MB / 309.1 MB, free: 380 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.001/1.101, allocations: 321.5 MB / 0.6158 GB, free: 61.3 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003326/1.102, allocations: 107.2 kB / 0.6159 GB, free: 61.25 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7793/1.881, allocations: 141.9 MB / 0.7545 GB, free: 93.15 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.194e-06/1.881, allocations: 0 / 0.7545 GB, free: 93.15 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.406e-05/1.881, allocations: 19.36 kB / 0.7545 GB, free: 93.14 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.00377/1.885, allocations: 1.173 MB / 0.7556 GB, free: 91.92 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/1.885, allocations: 8.031 kB / 0.7557 GB, free: 91.91 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007245/1.886, allocations: 106.9 kB / 0.7558 GB, free: 91.8 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002241/1.888, allocations: 0.6486 MB / 0.7564 GB, free: 91.13 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/1.888, allocations: 95.12 kB / 0.7565 GB, free: 91.02 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001862/1.888, allocations: 51.05 kB / 0.7565 GB, free: 90.98 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001991/1.89, allocations: 0.7984 MB / 0.7573 GB, free: 90.14 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.059e-05/1.89, allocations: 7.938 kB / 0.7573 GB, free: 90.13 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001248/1.89, allocations: 22.42 kB / 0.7573 GB, free: 90.11 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.772e-05/1.891, allocations: 40.97 kB / 0.7574 GB, free: 90.07 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001816/1.892, allocations: 0.679 MB / 0.758 GB, free: 89.39 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00706/1.899, allocations: 3.412 MB / 0.7614 GB, free: 85.79 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001036/1.901, allocations: 399.2 kB / 0.7618 GB, free: 85.39 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002495/1.903, allocations: 1.31 MB / 0.763 GB, free: 83.95 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000632/1.904, allocations: 288.9 kB / 0.7633 GB, free: 83.65 MB / 410.7 MB Notification: Performance of pre-optimization done (n=35): time 3.697e-06/1.904, allocations: 0 / 0.7633 GB, free: 83.65 MB / 410.7 MB Notification: Performance of matching and sorting (n=40): time 0.005899/1.91, allocations: 1.823 MB / 0.7651 GB, free: 81.71 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.202e-05/1.91, allocations: 170.5 kB / 0.7653 GB, free: 81.51 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001208/1.911, allocations: 0.6955 MB / 0.7659 GB, free: 80.8 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001107/1.911, allocations: 33.7 kB / 0.766 GB, free: 80.77 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003319/1.912, allocations: 418.3 kB / 0.7664 GB, free: 80.35 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001628/1.912, allocations: 132.9 kB / 0.7665 GB, free: 80.22 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.873e-05/1.912, allocations: 19.94 kB / 0.7665 GB, free: 80.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001355/1.912, allocations: 390.8 kB / 0.7669 GB, free: 79.81 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006475/1.913, allocations: 249.8 kB / 0.7671 GB, free: 79.57 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007622/1.913, allocations: 0.5271 MB / 0.7676 GB, free: 78.91 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007849/1.914, allocations: 363 kB / 0.768 GB, free: 78.55 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.012e-06/1.914, allocations: 0 / 0.768 GB, free: 78.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002612/1.917, allocations: 0.9431 MB / 0.7689 GB, free: 77.59 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002205/1.917, allocations: 382 kB / 0.7693 GB, free: 77.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.56e-05/1.917, allocations: 12 kB / 0.7693 GB, free: 77.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008733/1.918, allocations: 124.8 kB / 0.7694 GB, free: 76.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000957/1.919, allocations: 151.8 kB / 0.7695 GB, free: 76.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008039/1.92, allocations: 0.6771 MB / 0.7702 GB, free: 76.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001067/1.921, allocations: 44.03 kB / 0.7702 GB, free: 76.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/1.921, allocations: 44 kB / 0.7703 GB, free: 76.01 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.13e-05/1.921, allocations: 4 kB / 0.7703 GB, free: 76.01 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002523/1.924, allocations: 0.8826 MB / 0.7712 GB, free: 75.12 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/1.924, allocations: 8 kB / 0.7712 GB, free: 75.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006507/1.924, allocations: 121.3 kB / 0.7713 GB, free: 74.99 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008682/1.925, allocations: 147.8 kB / 0.7714 GB, free: 74.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006328/1.926, allocations: 0.6576 MB / 0.7721 GB, free: 74.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009234/1.927, allocations: 52.03 kB / 0.7721 GB, free: 74.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001179/1.927, allocations: 36 kB / 0.7721 GB, free: 74.07 MB / 410.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.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: 40 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0007315/1.928, allocations: 397.3 kB / 0.7725 GB, free: 73.67 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001756/1.928, allocations: 83.02 kB / 0.7726 GB, free: 73.59 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001965/1.93, allocations: 0.6545 MB / 0.7732 GB, free: 72.91 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.645e-06/1.93, allocations: 8 kB / 0.7732 GB, free: 72.91 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/1.93, allocations: 0 / 0.7732 GB, free: 72.91 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/1.93, allocations: 8.016 kB / 0.7733 GB, free: 72.9 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003066/1.933, allocations: 1.344 MB / 0.7746 GB, free: 71.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/1.933, allocations: 4 kB / 0.7746 GB, free: 71.49 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005066/1.933, allocations: 59.94 kB / 0.7746 GB, free: 71.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007586/1.934, allocations: 120.8 kB / 0.7747 GB, free: 71.31 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.868e-05/1.934, allocations: 12 kB / 0.7748 GB, free: 71.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007493/1.935, allocations: 0.6732 MB / 0.7754 GB, free: 70.6 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/1.935, allocations: 4.031 kB / 0.7754 GB, free: 70.6 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002277/1.937, allocations: 0.9996 MB / 0.7764 GB, free: 69.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002553/1.938, allocations: 148.1 kB / 0.7765 GB, free: 69.4 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002189/1.938, allocations: 16 kB / 0.7765 GB, free: 69.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007406/1.939, allocations: 36.03 kB / 0.7766 GB, free: 69.35 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000147/1.939, allocations: 39.89 kB / 0.7766 GB, free: 69.31 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.848e-05/1.939, allocations: 20 kB / 0.7766 GB, free: 69.29 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008239/1.94, allocations: 479 kB / 0.7771 GB, free: 68.83 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.81e-07/1.94, allocations: 4 kB / 0.7771 GB, free: 68.83 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002329/1.942, allocations: 0.5654 MB / 0.7777 GB, free: 68.27 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001811/1.944, allocations: 0.5748 MB / 0.7782 GB, free: 67.73 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003317/1.947, allocations: 1.182 MB / 0.7794 GB, free: 66.52 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.637e-06/1.947, allocations: 0 / 0.7794 GB, free: 66.52 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009811/1.948, allocations: 351.1 kB / 0.7797 GB, free: 66.17 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002021/1.95, allocations: 248.4 kB / 0.7799 GB, free: 65.93 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003608/1.954, allocations: 1.751 MB / 0.7817 GB, free: 64.14 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005127/1.955, allocations: 0.9811 MB / 0.7826 GB, free: 63.13 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001456/1.956, allocations: 237.6 kB / 0.7828 GB, free: 62.9 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001967/1.956, allocations: 51.44 kB / 0.7829 GB, free: 62.85 MB / 410.7 MB Notification: Performance of SimCode: time 1.133e-06/1.956, allocations: 0 / 0.7829 GB, free: 62.85 MB / 410.7 MB Notification: Performance of Templates: time 0.03838/1.995, allocations: 15.6 MB / 0.7981 GB, free: 47.3 MB / 410.7 MB