Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.566/1.566, allocations: 171.3 MB / 179.2 MB, free: 7.504 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.191e-05/2.192e-05, allocations: 4 kB / 222.5 MB, free: 8.688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07009/0.07013, allocations: 38.77 MB / 261.3 MB, free: 1.832 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8904/0.9606, allocations: 313.7 MB / 0.5615 GB, free: 113.1 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002338/0.9609, allocations: 90 kB / 0.5616 GB, free: 113.1 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.26/2.221, allocations: 277.3 MB / 0.8324 GB, free: 33.76 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.062e-06/2.221, allocations: 0 / 0.8324 GB, free: 33.76 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001239/2.221, allocations: 46.94 kB / 0.8324 GB, free: 33.75 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.00477/2.226, allocations: 1.778 MB / 0.8342 GB, free: 32.96 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/2.226, allocations: 15.28 kB / 0.8342 GB, free: 32.96 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008942/2.227, allocations: 170.7 kB / 0.8343 GB, free: 32.88 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003024/2.23, allocations: 1.086 MB / 0.8354 GB, free: 32.58 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.122e-05/2.23, allocations: 42.19 kB / 0.8354 GB, free: 32.58 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002519/2.23, allocations: 57.94 kB / 0.8355 GB, free: 32.58 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003178/2.233, allocations: 1.422 MB / 0.8369 GB, free: 32.58 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003023/2.236, allocations: 1.467 MB / 0.8383 GB, free: 32.32 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.894e-05/2.236, allocations: 3.469 kB / 0.8383 GB, free: 32.32 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001834/2.237, allocations: 3.062 kB / 0.8383 GB, free: 32.32 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001459/2.237, allocations: 103.3 kB / 0.8384 GB, free: 32.32 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01179/2.249, allocations: 6.315 MB / 0.8446 GB, free: 29.32 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001639/2.25, allocations: 0.8497 MB / 0.8454 GB, free: 29.29 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009134/2.251, allocations: 0.5117 MB / 0.8459 GB, free: 29.28 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004865/2.256, allocations: 2.753 MB / 0.8486 GB, free: 27.82 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.726e-05/2.256, allocations: 44.91 kB / 0.8486 GB, free: 27.79 MB / 346.7 MB Notification: Performance of pre-optimization done (n=80): time 4.991e-06/2.256, allocations: 0 / 0.8486 GB, free: 27.79 MB / 346.7 MB Notification: Performance of matching and sorting (n=90): time 0.01313/2.269, allocations: 3.105 MB / 0.8517 GB, free: 27.21 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.244e-05/2.269, allocations: 192.1 kB / 0.8519 GB, free: 26.99 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001477/2.271, allocations: 0.8517 MB / 0.8527 GB, free: 26.83 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001563/2.271, allocations: 34.98 kB / 0.8527 GB, free: 26.8 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004543/2.272, allocations: 0.6703 MB / 0.8534 GB, free: 26.4 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003019/2.272, allocations: 316.6 kB / 0.8537 GB, free: 26.21 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/2.272, allocations: 0 / 0.8537 GB, free: 26.21 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001129/2.272, allocations: 371.5 kB / 0.854 GB, free: 25.89 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001109/2.273, allocations: 0.5155 MB / 0.8545 GB, free: 25.89 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001305/2.275, allocations: 0.9804 MB / 0.8555 GB, free: 25.33 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01233/2.287, allocations: 2.173 MB / 0.8576 GB, free: 25.32 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-05/2.287, allocations: 3.75 kB / 0.8576 GB, free: 25.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.01586/2.303, allocations: 3.173 MB / 0.8607 GB, free: 25.21 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0011/2.304, allocations: 5.579 MB / 0.8662 GB, free: 19.4 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.777e-05/2.304, allocations: 12.78 kB / 0.8662 GB, free: 19.4 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001279/2.305, allocations: 337.6 kB / 0.8665 GB, free: 19.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001461/2.307, allocations: 291.4 kB / 0.8668 GB, free: 19.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004275/2.311, allocations: 2.441 MB / 0.8692 GB, free: 17.81 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001779/2.313, allocations: 76.89 kB / 0.8692 GB, free: 17.8 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002179/2.313, allocations: 75.86 kB / 0.8693 GB, free: 17.8 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/2.313, allocations: 5.625 kB / 0.8693 GB, free: 17.8 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01471/2.328, allocations: 2.946 MB / 0.8722 GB, free: 17.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.474e-05/2.328, allocations: 13.88 kB / 0.8722 GB, free: 17.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001119/2.329, allocations: 243.9 kB / 0.8724 GB, free: 17.72 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001494/2.331, allocations: 307.6 kB / 0.8727 GB, free: 17.72 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003372/2.334, allocations: 2.17 MB / 0.8749 GB, free: 16.17 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001348/2.335, allocations: 71.62 kB / 0.8749 GB, free: 16.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001727/2.336, allocations: 71 kB / 0.875 GB, free: 16.16 MB / 346.7 MB 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (171): * Single equations (assignments): 168 * 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.0004171/2.336, allocations: 166.4 kB / 0.8751 GB, free: 16.04 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003216/2.336, allocations: 125.4 kB / 0.8753 GB, free: 15.98 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005164/2.342, allocations: 1.519 MB / 0.8767 GB, free: 15.85 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-05/2.342, allocations: 15.03 kB / 0.8768 GB, free: 15.85 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.227e-06/2.342, allocations: 1.5 kB / 0.8768 GB, free: 15.85 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.559e-05/2.342, allocations: 7.125 kB / 0.8768 GB, free: 15.85 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007131/2.349, allocations: 2.658 MB / 0.8794 GB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.996e-06/2.349, allocations: 0 / 0.8794 GB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009314/2.35, allocations: 154.3 kB / 0.8795 GB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001431/2.351, allocations: 310.6 kB / 0.8798 GB, free: 15.46 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.566e-05/2.351, allocations: 13.97 kB / 0.8798 GB, free: 15.46 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003661/2.355, allocations: 2.271 MB / 0.882 GB, free: 29.88 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.541e-06/2.355, allocations: 7.422 kB / 0.882 GB, free: 29.88 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005303/2.36, allocations: 2.129 MB / 0.8841 GB, free: 29.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005075/2.361, allocations: 215.9 kB / 0.8843 GB, free: 29.35 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002784/2.361, allocations: 13 kB / 0.8843 GB, free: 29.35 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001102/2.362, allocations: 48.44 kB / 0.8844 GB, free: 29.35 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00023/2.363, allocations: 99.94 kB / 0.8845 GB, free: 29.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001192/2.363, allocations: 35.5 kB / 0.8845 GB, free: 29.34 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001113/2.364, allocations: 0.6288 MB / 0.8851 GB, free: 29.23 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.74e-07/2.364, allocations: 2.438 kB / 0.8851 GB, free: 29.23 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00398/2.368, allocations: 1.106 MB / 0.8862 GB, free: 29.04 MB / 362.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]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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.002835/2.371, allocations: 1.08 MB / 0.8873 GB, free: 28.72 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004709/2.375, allocations: 2.057 MB / 0.8893 GB, free: 28.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.634e-06/2.375, allocations: 0 / 0.8893 GB, free: 28.62 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001586/2.377, allocations: 0.6481 MB / 0.8899 GB, free: 28.6 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002883/2.38, allocations: 476.6 kB / 0.8904 GB, free: 28.59 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004641/2.385, allocations: 2.163 MB / 0.8925 GB, free: 27.92 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001083/2.386, allocations: 1.275 MB / 0.8937 GB, free: 27.2 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005642/2.386, allocations: 115.4 kB / 0.8938 GB, free: 27.19 MB / 362.7 MB Notification: Performance of SimCode: time 1.704e-06/2.386, allocations: 0 / 0.8938 GB, free: 27.19 MB / 362.7 MB Notification: Performance of Templates: time 0.1032/2.49, allocations: 42.77 MB / 0.9356 GB, free: 3.934 MB / 362.7 MB