Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.256/1.256, allocations: 111.1 MB / 127.3 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002591/0.0002591, allocations: 8 kB / 158.9 MB, free: 15.22 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0509/0.05118, allocations: 25.16 MB / 184 MB, free: 6.012 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7414/0.7927, allocations: 238.6 MB / 422.6 MB, free: 53.16 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002543/0.793, allocations: 76.52 kB / 422.7 MB, free: 53.13 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.443/2.236, allocations: 260.4 MB / 0.6671 GB, free: 21.74 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.076e-06/2.236, allocations: 2 kB / 0.6671 GB, free: 21.74 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0002185/2.236, allocations: 40.06 kB / 0.6671 GB, free: 21.73 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.007812/2.244, allocations: 1.848 MB / 0.6689 GB, free: 20.9 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/2.244, allocations: 9.688 kB / 0.6689 GB, free: 20.9 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009471/2.245, allocations: 155.4 kB / 0.6691 GB, free: 20.83 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003809/2.249, allocations: 1.048 MB / 0.6701 GB, free: 20.49 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001333/2.249, allocations: 76.27 kB / 0.6702 GB, free: 20.49 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003642/2.249, allocations: 93.11 kB / 0.6703 GB, free: 20.49 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004294/2.254, allocations: 1.53 MB / 0.6717 GB, free: 20.25 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.815e-05/2.254, allocations: 11.55 kB / 0.6718 GB, free: 20.24 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00024/2.254, allocations: 42.45 kB / 0.6718 GB, free: 20.24 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002228/2.254, allocations: 94.98 kB / 0.6719 GB, free: 20.24 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004316/2.258, allocations: 1.476 MB / 0.6733 GB, free: 20.23 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01453/2.273, allocations: 6.389 MB / 0.6796 GB, free: 16.9 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002667/2.276, allocations: 0.8922 MB / 0.6804 GB, free: 16.87 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006023/2.282, allocations: 2.701 MB / 0.6831 GB, free: 15.31 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.669e-05/2.282, allocations: 44 kB / 0.6831 GB, free: 15.27 MB / 250.7 MB Notification: Performance of pre-optimization done (n=80): time 5.33e-06/2.282, allocations: 3.031 kB / 0.6831 GB, free: 15.27 MB / 250.7 MB Notification: Performance of matching and sorting (n=88): time 0.01408/2.296, allocations: 3.545 MB / 0.6866 GB, free: 14.41 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.728e-05/2.296, allocations: 192.6 kB / 0.6868 GB, free: 14.2 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002075/2.298, allocations: 1.117 MB / 0.6879 GB, free: 14.03 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003198/2.299, allocations: 51.86 kB / 0.6879 GB, free: 14 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005316/2.299, allocations: 0.6431 MB / 0.6885 GB, free: 13.63 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004514/2.3, allocations: 307.2 kB / 0.6888 GB, free: 13.45 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/2.3, allocations: 33.3 kB / 0.6889 GB, free: 13.45 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001141/2.3, allocations: 363.4 kB / 0.6892 GB, free: 13.14 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001391/2.301, allocations: 0.5059 MB / 0.6897 GB, free: 13.14 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001708/2.303, allocations: 0.9817 MB / 0.6907 GB, free: 12.58 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001597/2.305, allocations: 0.6391 MB / 0.6913 GB, free: 12.55 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.1e-05/2.305, allocations: 5.688 kB / 0.6913 GB, free: 12.55 MB / 250.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.004336/2.309, allocations: 1.698 MB / 0.6929 GB, free: 12.45 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.869e-05/2.309, allocations: 10.22 kB / 0.693 GB, free: 12.45 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.097e-05/2.309, allocations: 16.28 kB / 0.693 GB, free: 12.45 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006971/2.316, allocations: 0.6434 MB / 0.6936 GB, free: 12.43 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0026/2.319, allocations: 272.3 kB / 0.6939 GB, free: 12.43 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003352/2.322, allocations: 2.122 MB / 0.6959 GB, free: 10.86 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003326/2.326, allocations: 105.9 kB / 0.696 GB, free: 10.86 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003715/2.326, allocations: 70.41 kB / 0.6961 GB, free: 10.86 MB / 250.7 MB Warning: Assuming fixed start value for the following 4 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],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 (160): * Single equations (assignments): 157 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001714/2.328, allocations: 433.9 kB / 0.6965 GB, free: 10.72 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00056/2.328, allocations: 129.3 kB / 0.6966 GB, free: 10.66 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01447/2.343, allocations: 1.504 MB / 0.6981 GB, free: 10.53 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.707e-05/2.343, allocations: 10.66 kB / 0.6981 GB, free: 10.53 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.188e-05/2.343, allocations: 2.625 kB / 0.6981 GB, free: 10.53 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.465e-05/2.343, allocations: 3.797 kB / 0.6981 GB, free: 10.53 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01904/2.362, allocations: 2.695 MB / 0.7008 GB, free: 10.13 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.305e-05/2.362, allocations: 2.312 kB / 0.7008 GB, free: 10.13 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001791/2.364, allocations: 148 kB / 0.7009 GB, free: 10.13 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01873/2.383, allocations: 0.6005 MB / 0.7015 GB, free: 10.11 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000334/2.383, allocations: 24.89 kB / 0.7015 GB, free: 10.11 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003081/2.386, allocations: 2.093 MB / 0.7036 GB, free: 8.543 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.344e-06/2.386, allocations: 7.031 kB / 0.7036 GB, free: 8.543 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01026/2.396, allocations: 2.038 MB / 0.7056 GB, free: 8.246 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008375/2.397, allocations: 221.1 kB / 0.7058 GB, free: 8.078 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007699/2.398, allocations: 27.34 kB / 0.7058 GB, free: 8.078 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002501/2.401, allocations: 69.45 kB / 0.7059 GB, free: 8.074 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005412/2.401, allocations: 92.94 kB / 0.7059 GB, free: 8.074 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001941/2.401, allocations: 40.28 kB / 0.706 GB, free: 8.074 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.002209/2.404, allocations: 0.7486 MB / 0.7067 GB, free: 7.965 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.352e-06/2.404, allocations: 0 / 0.7067 GB, free: 7.965 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.004965/2.409, allocations: 0.7651 MB / 0.7075 GB, free: 7.832 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 79 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.004351/2.413, allocations: 0.9472 MB / 0.7084 GB, free: 7.582 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.004511/2.418, allocations: 1.3 MB / 0.7097 GB, free: 7.555 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/2.418, allocations: 0 / 0.7097 GB, free: 7.555 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002563/2.42, allocations: 0.6865 MB / 0.7103 GB, free: 7.547 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004823/2.425, allocations: 0.5489 MB / 0.7109 GB, free: 7.535 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007482/2.433, allocations: 3.247 MB / 0.714 GB, free: 6.258 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001208/2.434, allocations: 1.273 MB / 0.7153 GB, free: 21.52 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007668/2.435, allocations: 119.9 kB / 0.7154 GB, free: 21.51 MB / 266.7 MB Notification: Performance of SimCode: time 1.834e-06/2.435, allocations: 0 / 0.7154 GB, free: 21.51 MB / 266.7 MB Notification: Performance of Templates: time 0.07867/2.514, allocations: 41.28 MB / 0.7557 GB, free: 6.746 MB / 266.7 MB