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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.746/1.746, allocations: 171.2 MB / 184.2 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.68e-05/3.69e-05, allocations: 4 kB / 228.8 MB, free: 15.34 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2519/0.252, allocations: 38.77 MB / 267.6 MB, free: 9.434 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7819/1.034, allocations: 314.3 MB / 0.5683 GB, free: 57.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002669/1.034, allocations: 92.5 kB / 0.5684 GB, free: 57.48 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.285/2.319, allocations: 279.1 MB / 0.8409 GB, free: 51.6 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.769e-06/2.319, allocations: 3.797 kB / 0.8409 GB, free: 51.6 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001602/2.319, allocations: 37.88 kB / 0.8409 GB, free: 51.59 MB / 362.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.005354/2.324, allocations: 1.779 MB / 0.8427 GB, free: 50.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/2.325, allocations: 10.22 kB / 0.8427 GB, free: 50.66 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009876/2.326, allocations: 167.1 kB / 0.8428 GB, free: 50.58 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003103/2.329, allocations: 1.094 MB / 0.8439 GB, free: 50.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001039/2.329, allocations: 80.52 kB / 0.844 GB, free: 50.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003573/2.329, allocations: 96.05 kB / 0.8441 GB, free: 50.23 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003622/2.333, allocations: 1.597 MB / 0.8456 GB, free: 49.97 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.07e-05/2.333, allocations: 5.594 kB / 0.8456 GB, free: 49.97 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002367/2.333, allocations: 47.28 kB / 0.8457 GB, free: 49.97 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001755/2.333, allocations: 100.3 kB / 0.8458 GB, free: 49.97 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004028/2.337, allocations: 1.578 MB / 0.8473 GB, free: 49.96 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01363/2.351, allocations: 6.539 MB / 0.8537 GB, free: 46.66 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001875/2.353, allocations: 0.875 MB / 0.8546 GB, free: 46.32 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00108/2.354, allocations: 0.5263 MB / 0.8551 GB, free: 46.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004823/2.359, allocations: 2.827 MB / 0.8578 GB, free: 44.13 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.777e-05/2.359, allocations: 46.19 kB / 0.8579 GB, free: 44.08 MB / 362.7 MB Notification: Performance of pre-optimization done (n=80): time 4.421e-06/2.359, allocations: 0 / 0.8579 GB, free: 44.08 MB / 362.7 MB Notification: Performance of matching and sorting (n=90): time 0.007936/2.367, allocations: 2.761 MB / 0.8606 GB, free: 42.86 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.32e-05/2.367, allocations: 197 kB / 0.8608 GB, free: 42.64 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001881/2.369, allocations: 1.032 MB / 0.8618 GB, free: 42.21 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002592/2.369, allocations: 48.73 kB / 0.8618 GB, free: 42.16 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004459/2.37, allocations: 0.6569 MB / 0.8625 GB, free: 41.6 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003214/2.37, allocations: 326.4 kB / 0.8628 GB, free: 41.36 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001199/2.37, allocations: 27.75 kB / 0.8628 GB, free: 41.34 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001136/2.37, allocations: 369.8 kB / 0.8631 GB, free: 41 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001229/2.372, allocations: 0.5348 MB / 0.8637 GB, free: 40.81 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001424/2.373, allocations: 1.009 MB / 0.8646 GB, free: 40.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001415/2.374, allocations: 0.6653 MB / 0.8653 GB, free: 39.79 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.15e-05/2.375, allocations: 3.875 kB / 0.8653 GB, free: 39.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004123/2.379, allocations: 1.761 MB / 0.867 GB, free: 39.13 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001126/2.38, allocations: 5.586 MB / 0.8725 GB, free: 33.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.939e-05/2.38, allocations: 12.78 kB / 0.8725 GB, free: 33.21 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005257/2.385, allocations: 0.6445 MB / 0.8731 GB, free: 33.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001575/2.387, allocations: 301.6 kB / 0.8734 GB, free: 33.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002269/2.389, allocations: 2.138 MB / 0.8755 GB, free: 31.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002082/2.391, allocations: 105.9 kB / 0.8756 GB, free: 31.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003015/2.392, allocations: 73.84 kB / 0.8757 GB, free: 31.26 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/2.392, allocations: 3.594 kB / 0.8757 GB, free: 31.26 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003777/2.395, allocations: 1.64 MB / 0.8773 GB, free: 29.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.559e-05/2.395, allocations: 12 kB / 0.8773 GB, free: 29.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003571/2.399, allocations: 497.8 kB / 0.8778 GB, free: 29.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001609/2.401, allocations: 299.3 kB / 0.878 GB, free: 29.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001893/2.403, allocations: 1.98 MB / 0.88 GB, free: 27.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001459/2.404, allocations: 101.5 kB / 0.8801 GB, free: 27.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002021/2.404, allocations: 71.94 kB / 0.8801 GB, free: 27.18 MB / 362.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.0004336/2.405, allocations: 203.1 kB / 0.8803 GB, free: 26.98 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003548/2.405, allocations: 130.4 kB / 0.8805 GB, free: 26.85 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003801/2.409, allocations: 1.497 MB / 0.8819 GB, free: 25.57 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.524e-05/2.409, allocations: 12 kB / 0.8819 GB, free: 25.56 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.093e-06/2.409, allocations: 0 / 0.8819 GB, free: 25.56 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.868e-05/2.409, allocations: 10.34 kB / 0.8819 GB, free: 25.55 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006537/2.416, allocations: 2.731 MB / 0.8846 GB, free: 23.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.039e-05/2.416, allocations: 3.953 kB / 0.8846 GB, free: 23.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009411/2.417, allocations: 161.2 kB / 0.8848 GB, free: 23.15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003724/2.42, allocations: 0.5985 MB / 0.8854 GB, free: 22.7 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002219/2.421, allocations: 22.91 kB / 0.8854 GB, free: 22.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001923/2.423, allocations: 2.11 MB / 0.8874 GB, free: 20.58 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.376e-06/2.423, allocations: 4.219 kB / 0.8874 GB, free: 20.58 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003986/2.427, allocations: 2.096 MB / 0.8895 GB, free: 18.63 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005967/2.427, allocations: 229.4 kB / 0.8897 GB, free: 18.4 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003448/2.428, allocations: 27.95 kB / 0.8897 GB, free: 18.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001201/2.429, allocations: 78.61 kB / 0.8898 GB, free: 18.31 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002494/2.429, allocations: 96.94 kB / 0.8899 GB, free: 18.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000128/2.429, allocations: 39.45 kB / 0.8899 GB, free: 18.22 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001395/2.431, allocations: 0.7866 MB / 0.8907 GB, free: 17.5 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.113e-06/2.431, allocations: 4 kB / 0.8907 GB, free: 17.49 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004721/2.435, allocations: 1.177 MB / 0.8919 GB, free: 16.34 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.003184/2.439, allocations: 1.101 MB / 0.8929 GB, free: 15.43 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005557/2.444, allocations: 2.178 MB / 0.8951 GB, free: 13.42 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.029e-05/2.444, allocations: 0.8125 kB / 0.8951 GB, free: 13.42 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001883/2.446, allocations: 0.689 MB / 0.8957 GB, free: 12.73 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003191/2.449, allocations: 499.5 kB / 0.8962 GB, free: 12.25 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005112/2.455, allocations: 2.249 MB / 0.8984 GB, free: 9.984 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008313/2.455, allocations: 1.275 MB / 0.8997 GB, free: 8.684 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006166/2.456, allocations: 119.4 kB / 0.8998 GB, free: 8.566 MB / 362.7 MB Notification: Performance of SimCode: time 1.862e-06/2.456, allocations: 0 / 0.8998 GB, free: 8.566 MB / 362.7 MB Notification: Performance of Templates: time 0.2876/2.744, allocations: 43.22 MB / 0.942 GB, free: 42.18 MB / 362.7 MB