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.Tanks.ThreeTanks.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.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadModel(Modelica): time 1.603/1.603, allocations: 171.2 MB / 184.2 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.973e-05/2.992e-05, allocations: 0 / 228.8 MB, free: 15.33 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.245/0.2451, allocations: 38.78 MB / 267.6 MB, free: 9.426 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.876/1.121, allocations: 311.3 MB / 0.5653 GB, free: 60.65 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002436/1.121, allocations: 78.14 kB / 0.5654 GB, free: 60.61 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.276/2.398, allocations: 266.8 MB / 0.826 GB, free: 54.5 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.932e-06/2.398, allocations: 0 / 0.826 GB, free: 54.5 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001698/2.398, allocations: 40.53 kB / 0.826 GB, free: 54.5 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.006383/2.404, allocations: 1.808 MB / 0.8278 GB, free: 53.57 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/2.404, allocations: 11.31 kB / 0.8278 GB, free: 53.57 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001193/2.405, allocations: 172.5 kB / 0.828 GB, free: 53.5 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0034/2.409, allocations: 1.116 MB / 0.829 GB, free: 53.16 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002208/2.409, allocations: 180.4 kB / 0.8292 GB, free: 53.05 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005188/2.41, allocations: 102.2 kB / 0.8293 GB, free: 53.05 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00424/2.414, allocations: 1.741 MB / 0.831 GB, free: 52.88 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.751e-05/2.414, allocations: 0 / 0.831 GB, free: 52.88 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000278/2.414, allocations: 46.45 kB / 0.8311 GB, free: 52.88 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001897/2.415, allocations: 111.2 kB / 0.8312 GB, free: 52.88 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004201/2.419, allocations: 1.74 MB / 0.8329 GB, free: 52.86 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01579/2.435, allocations: 6.395 MB / 0.8391 GB, free: 50.84 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002362/2.437, allocations: 1.168 MB / 0.8403 GB, free: 50.8 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001492/2.439, allocations: 0.6975 MB / 0.8409 GB, free: 50.79 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00772/2.446, allocations: 4.276 MB / 0.8451 GB, free: 48.43 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.072e-05/2.446, allocations: 45.47 kB / 0.8452 GB, free: 48.39 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001325/2.448, allocations: 208 kB / 0.8454 GB, free: 48.33 MB / 362.7 MB Notification: Performance of pre-optimization done (n=97): time 5.279e-06/2.448, allocations: 0 / 0.8454 GB, free: 48.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=112): time 0.01167/2.459, allocations: 3.786 MB / 0.849 GB, free: 47.78 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.66e-05/2.46, allocations: 142 kB / 0.8492 GB, free: 47.62 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002128/2.462, allocations: 1.088 MB / 0.8502 GB, free: 47.28 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003337/2.462, allocations: 57.58 kB / 0.8503 GB, free: 47.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003531/2.462, allocations: 0.5707 MB / 0.8509 GB, free: 46.72 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003959/2.463, allocations: 389.8 kB / 0.8512 GB, free: 46.43 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001441/2.463, allocations: 27 kB / 0.8513 GB, free: 46.41 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001087/2.463, allocations: 373.3 kB / 0.8516 GB, free: 46.07 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001563/2.465, allocations: 0.6224 MB / 0.8522 GB, free: 45.84 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001804/2.467, allocations: 0.9525 MB / 0.8532 GB, free: 45.22 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001827/2.468, allocations: 0.7484 MB / 0.8539 GB, free: 44.96 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.119e-05/2.468, allocations: 0 / 0.8539 GB, free: 44.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.00517/2.474, allocations: 1.994 MB / 0.8558 GB, free: 44.28 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007039/2.474, allocations: 3.489 MB / 0.8592 GB, free: 40.58 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.792e-05/2.474, allocations: 11.72 kB / 0.8592 GB, free: 40.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009881/2.484, allocations: 1.207 MB / 0.8604 GB, free: 40.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001775/2.486, allocations: 299.2 kB / 0.8607 GB, free: 40.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003125/2.489, allocations: 1.532 MB / 0.8622 GB, free: 39.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002064/2.491, allocations: 88.36 kB / 0.8623 GB, free: 39.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002891/2.492, allocations: 70.22 kB / 0.8624 GB, free: 39.46 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/2.492, allocations: 3.688 kB / 0.8624 GB, free: 39.46 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004266/2.496, allocations: 1.759 MB / 0.8641 GB, free: 38.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.231e-05/2.496, allocations: 11.19 kB / 0.8641 GB, free: 38.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006844/2.503, allocations: 0.9441 MB / 0.865 GB, free: 38.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001895/2.505, allocations: 301.6 kB / 0.8653 GB, free: 38.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001974/2.507, allocations: 1.207 MB / 0.8665 GB, free: 37.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00144/2.508, allocations: 88.14 kB / 0.8666 GB, free: 37.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001866/2.509, allocations: 66.31 kB / 0.8666 GB, free: 37.59 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 152 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.0005057/2.509, allocations: 189.8 kB / 0.8668 GB, free: 37.4 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004292/2.51, allocations: 142.3 kB / 0.8669 GB, free: 37.26 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005077/2.515, allocations: 2 MB / 0.8689 GB, free: 35.61 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.637e-05/2.515, allocations: 12 kB / 0.8689 GB, free: 35.59 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.058e-06/2.515, allocations: 0 / 0.8689 GB, free: 35.59 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.212e-05/2.515, allocations: 6.234 kB / 0.8689 GB, free: 35.59 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00773/2.523, allocations: 3.414 MB / 0.8722 GB, free: 32.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.841e-06/2.523, allocations: 7 kB / 0.8723 GB, free: 32.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001262/2.524, allocations: 190 kB / 0.8724 GB, free: 32.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00461/2.528, allocations: 0.9419 MB / 0.8734 GB, free: 31.95 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002914/2.529, allocations: 31.8 kB / 0.8734 GB, free: 31.92 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002572/2.531, allocations: 1.555 MB / 0.8749 GB, free: 30.5 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/2.531, allocations: 6.578 kB / 0.8749 GB, free: 30.49 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005581/2.537, allocations: 2.707 MB / 0.8776 GB, free: 28.04 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001222/2.538, allocations: 399.5 kB / 0.8779 GB, free: 27.69 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004652/2.539, allocations: 27.94 kB / 0.878 GB, free: 27.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001669/2.541, allocations: 90.23 kB / 0.878 GB, free: 27.6 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000307/2.541, allocations: 104.8 kB / 0.8781 GB, free: 27.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001765/2.541, allocations: 51.77 kB / 0.8782 GB, free: 27.5 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001454/2.543, allocations: 0.823 MB / 0.879 GB, free: 26.74 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.69e-07/2.543, allocations: 0 / 0.879 GB, free: 26.74 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004405/2.547, allocations: 1.247 MB / 0.8802 GB, free: 25.52 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.003151/2.55, allocations: 1.068 MB / 0.8813 GB, free: 24.68 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007/2.557, allocations: 2.51 MB / 0.8837 GB, free: 22.42 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.966e-06/2.557, allocations: 6.781 kB / 0.8837 GB, free: 22.41 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002209/2.559, allocations: 0.8164 MB / 0.8845 GB, free: 21.68 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003581/2.563, allocations: 0.5786 MB / 0.8851 GB, free: 21.26 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006119/2.569, allocations: 2.505 MB / 0.8875 GB, free: 19.07 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008398/2.57, allocations: 1.306 MB / 0.8888 GB, free: 17.96 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007132/2.571, allocations: 147.6 kB / 0.8889 GB, free: 17.83 MB / 362.7 MB Notification: Performance of SimCode: time 1.643e-06/2.571, allocations: 3.938 kB / 0.8889 GB, free: 17.82 MB / 362.7 MB Notification: Performance of Templates: time 0.2779/2.849, allocations: 35.44 MB / 0.9236 GB, free: 48.23 MB / 362.7 MB