Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.725/1.725, allocations: 171.1 MB / 187.3 MB, free: 1.148 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003619/0.0003621, allocations: 8 kB / 233.8 MB, free: 3.094 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09131/0.09169, allocations: 38.78 MB / 272.5 MB, free: 12.24 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8905/0.9823, allocations: 311.4 MB / 0.5702 GB, free: 3.043 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002895/0.9827, allocations: 81.09 kB / 0.5703 GB, free: 3.004 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.512/2.495, allocations: 267.7 MB / 0.8317 GB, free: 32.51 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.085e-06/2.495, allocations: 0 / 0.8317 GB, free: 32.51 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002367/2.495, allocations: 39.94 kB / 0.8318 GB, free: 32.47 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.01016/2.505, allocations: 1.986 MB / 0.8337 GB, free: 30.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/2.505, allocations: 12.02 kB / 0.8337 GB, free: 30.42 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001362/2.507, allocations: 178.1 kB / 0.8339 GB, free: 30.25 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004284/2.511, allocations: 1.117 MB / 0.835 GB, free: 29.09 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003018/2.511, allocations: 175.1 kB / 0.8351 GB, free: 28.89 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006986/2.512, allocations: 103.9 kB / 0.8352 GB, free: 28.79 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00477/2.517, allocations: 1.783 MB / 0.837 GB, free: 26.95 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.666e-05/2.517, allocations: 0 / 0.837 GB, free: 26.95 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002427/2.517, allocations: 43.97 kB / 0.837 GB, free: 26.91 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002262/2.517, allocations: 109.9 kB / 0.8371 GB, free: 26.8 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005252/2.523, allocations: 1.776 MB / 0.8389 GB, free: 25.01 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01994/2.543, allocations: 6.402 MB / 0.8451 GB, free: 18.34 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003128/2.546, allocations: 1.176 MB / 0.8463 GB, free: 17.16 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009102/2.555, allocations: 4.177 MB / 0.8503 GB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.786e-05/2.555, allocations: 51.55 kB / 0.8504 GB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001894/2.557, allocations: 202.7 kB / 0.8506 GB, free: 12.3 MB / 362.7 MB Notification: Performance of pre-optimization done (n=97): time 6.722e-06/2.557, allocations: 0 / 0.8506 GB, free: 12.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=112): time 0.03242/2.59, allocations: 5.455 MB / 0.8559 GB, free: 6.785 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.785e-05/2.59, allocations: 145.5 kB / 0.856 GB, free: 6.613 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002448/2.592, allocations: 1.253 MB / 0.8573 GB, free: 5.352 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004267/2.593, allocations: 45.7 kB / 0.8573 GB, free: 5.301 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004251/2.593, allocations: 0.572 MB / 0.8579 GB, free: 4.723 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000451/2.594, allocations: 386.4 kB / 0.8582 GB, free: 4.34 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001506/2.594, allocations: 32 kB / 0.8583 GB, free: 4.309 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001153/2.594, allocations: 366.8 kB / 0.8586 GB, free: 3.941 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001835/2.596, allocations: 0.6363 MB / 0.8592 GB, free: 3.305 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001952/2.598, allocations: 0.9743 MB / 0.8602 GB, free: 2.199 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002087/2.6, allocations: 0.7639 MB / 0.8609 GB, free: 1.434 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.159e-05/2.6, allocations: 0 / 0.8609 GB, free: 1.434 MB / 362.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.2766/2.876, allocations: 2.029 MB / 0.8629 GB, free: 46.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002473/2.877, allocations: 358.3 kB / 0.8633 GB, free: 45.87 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.194e-05/2.877, allocations: 11.59 kB / 0.8633 GB, free: 45.87 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0137/2.891, allocations: 1.226 MB / 0.8645 GB, free: 45.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002635/2.893, allocations: 296.2 kB / 0.8648 GB, free: 45.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004122/2.897, allocations: 1.538 MB / 0.8663 GB, free: 45.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002838/2.9, allocations: 97.66 kB / 0.8663 GB, free: 45.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004138/2.901, allocations: 66.38 kB / 0.8664 GB, free: 45.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/2.901, allocations: 6 kB / 0.8664 GB, free: 45.34 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005537/2.906, allocations: 1.791 MB / 0.8682 GB, free: 45.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.542e-05/2.906, allocations: 8.094 kB / 0.8682 GB, free: 45.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0117/2.918, allocations: 0.9446 MB / 0.8691 GB, free: 45.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002567/2.921, allocations: 298.2 kB / 0.8694 GB, free: 45.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00276/2.924, allocations: 1.211 MB / 0.8706 GB, free: 44.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001864/2.925, allocations: 87.03 kB / 0.8706 GB, free: 44.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002078/2.926, allocations: 66.95 kB / 0.8707 GB, free: 44.77 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 () * Number of clocked 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.001338/2.927, allocations: 463.7 kB / 0.8712 GB, free: 44.58 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005428/2.928, allocations: 145.4 kB / 0.8713 GB, free: 44.58 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0077/2.935, allocations: 2.031 MB / 0.8733 GB, free: 44.48 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.307e-05/2.935, allocations: 12.94 kB / 0.8733 GB, free: 44.48 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.46e-05/2.935, allocations: 2.25 kB / 0.8733 GB, free: 44.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.239e-05/2.935, allocations: 7.844 kB / 0.8733 GB, free: 44.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01005/2.946, allocations: 3.426 MB / 0.8766 GB, free: 44.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.409e-05/2.946, allocations: 3.094 kB / 0.8766 GB, free: 44.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001904/2.947, allocations: 199.3 kB / 0.8768 GB, free: 44.13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006705/2.954, allocations: 0.9501 MB / 0.8778 GB, free: 44.12 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003304/2.955, allocations: 35.31 kB / 0.8778 GB, free: 44.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003263/2.958, allocations: 1.567 MB / 0.8793 GB, free: 43.59 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/2.958, allocations: 5.438 kB / 0.8793 GB, free: 43.59 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007452/2.965, allocations: 2.742 MB / 0.882 GB, free: 43.39 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001489/2.967, allocations: 407.4 kB / 0.8824 GB, free: 43.21 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006082/2.968, allocations: 24.62 kB / 0.8824 GB, free: 43.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002125/2.97, allocations: 90.59 kB / 0.8825 GB, free: 43.21 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003373/2.97, allocations: 99.62 kB / 0.8826 GB, free: 43.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001928/2.97, allocations: 48 kB / 0.8826 GB, free: 43.21 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001923/2.972, allocations: 0.8447 MB / 0.8835 GB, free: 43.11 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.91e-07/2.972, allocations: 0 / 0.8835 GB, free: 43.11 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00562/2.978, allocations: 1.242 MB / 0.8847 GB, free: 43.11 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 () * Number of clocked 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.004054/2.982, allocations: 1.074 MB / 0.8857 GB, free: 43 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.009332/2.991, allocations: 2.552 MB / 0.8882 GB, free: 42.95 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.856e-06/2.991, allocations: 0 / 0.8882 GB, free: 42.95 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003259/2.995, allocations: 0.8339 MB / 0.889 GB, free: 42.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005395/3, allocations: 0.5864 MB / 0.8896 GB, free: 42.92 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009365/3.01, allocations: 3.591 MB / 0.8931 GB, free: 41.67 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009127/3.011, allocations: 1.31 MB / 0.8944 GB, free: 40.96 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009561/3.011, allocations: 142.8 kB / 0.8945 GB, free: 40.95 MB / 362.7 MB Notification: Performance of SimCode: time 1.313e-06/3.012, allocations: 2.812 kB / 0.8945 GB, free: 40.95 MB / 362.7 MB Notification: Performance of Templates: time 0.07272/3.084, allocations: 35.52 MB / 0.9292 GB, free: 38.73 MB / 362.7 MB