Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadModel(Modelica): time 1.799/1.799, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003643/0.0003645, allocations: 8 kB / 233.8 MB, free: 2.406 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09501/0.0954, allocations: 38.78 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9945/1.09, allocations: 311.4 MB / 0.5703 GB, free: 2.602 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002905/1.09, allocations: 84.08 kB / 0.5704 GB, free: 2.559 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.48/2.57, allocations: 267.7 MB / 0.8318 GB, free: 31.82 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.725e-06/2.57, allocations: 0 / 0.8318 GB, free: 31.82 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002123/2.57, allocations: 47.86 kB / 0.8318 GB, free: 31.78 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.008977/2.579, allocations: 1.99 MB / 0.8338 GB, free: 29.73 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/2.579, allocations: 16 kB / 0.8338 GB, free: 29.72 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001428/2.581, allocations: 178 kB / 0.834 GB, free: 29.54 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004303/2.585, allocations: 1.113 MB / 0.835 GB, free: 28.39 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002343/2.585, allocations: 175.1 kB / 0.8352 GB, free: 28.2 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006125/2.586, allocations: 107.9 kB / 0.8353 GB, free: 28.09 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005262/2.591, allocations: 1.764 MB / 0.837 GB, free: 26.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.887e-05/2.591, allocations: 4 kB / 0.837 GB, free: 26.26 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002783/2.592, allocations: 39.97 kB / 0.8371 GB, free: 26.22 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002419/2.592, allocations: 113.9 kB / 0.8372 GB, free: 26.11 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005604/2.598, allocations: 1.776 MB / 0.8389 GB, free: 24.32 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02012/2.618, allocations: 6.397 MB / 0.8452 GB, free: 17.66 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003058/2.621, allocations: 1.18 MB / 0.8463 GB, free: 16.47 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009291/2.63, allocations: 4.173 MB / 0.8504 GB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.218e-05/2.63, allocations: 51.5 kB / 0.8505 GB, free: 11.82 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001956/2.632, allocations: 210.7 kB / 0.8507 GB, free: 11.61 MB / 362.7 MB Notification: Performance of pre-optimization done (n=97): time 6.802e-06/2.632, allocations: 0 / 0.8507 GB, free: 11.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=112): time 0.0336/2.666, allocations: 5.455 MB / 0.856 GB, free: 6.094 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.793e-05/2.666, allocations: 141.5 kB / 0.8561 GB, free: 5.926 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002347/2.669, allocations: 1.253 MB / 0.8573 GB, free: 4.664 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004082/2.669, allocations: 45.7 kB / 0.8574 GB, free: 4.613 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005184/2.669, allocations: 0.5976 MB / 0.858 GB, free: 4.008 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005517/2.67, allocations: 390.4 kB / 0.8583 GB, free: 3.621 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001587/2.67, allocations: 24 kB / 0.8584 GB, free: 3.598 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001184/2.67, allocations: 365.9 kB / 0.8587 GB, free: 3.234 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001831/2.672, allocations: 0.6402 MB / 0.8593 GB, free: 2.594 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002269/2.674, allocations: 0.9665 MB / 0.8603 GB, free: 1.496 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002272/2.677, allocations: 0.76 MB / 0.861 GB, free: 0.7344 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.147e-05/2.677, allocations: 0 / 0.861 GB, free: 0.7344 MB / 362.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.2754/2.952, allocations: 2.114 MB / 0.8631 GB, free: 46.28 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002539/2.953, allocations: 358.5 kB / 0.8634 GB, free: 45.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.474e-05/2.953, allocations: 8.375 kB / 0.8634 GB, free: 45.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01511/2.968, allocations: 1.231 MB / 0.8646 GB, free: 45.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003469/2.971, allocations: 291.2 kB / 0.8649 GB, free: 45.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005862/2.977, allocations: 1.544 MB / 0.8664 GB, free: 45.35 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004006/2.981, allocations: 91.53 kB / 0.8665 GB, free: 45.35 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007659/2.982, allocations: 72.41 kB / 0.8666 GB, free: 45.35 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/2.982, allocations: 3.812 kB / 0.8666 GB, free: 45.35 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009354/2.991, allocations: 1.786 MB / 0.8683 GB, free: 45.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.754e-05/2.992, allocations: 12.72 kB / 0.8683 GB, free: 45.31 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01635/3.008, allocations: 0.9639 MB / 0.8693 GB, free: 45.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003705/3.012, allocations: 302.1 kB / 0.8696 GB, free: 45.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004037/3.016, allocations: 1.232 MB / 0.8708 GB, free: 44.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003571/3.019, allocations: 86.16 kB / 0.8709 GB, free: 44.78 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006499/3.02, allocations: 70.58 kB / 0.8709 GB, free: 44.78 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.002158/3.022, allocations: 460.1 kB / 0.8714 GB, free: 44.59 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00082/3.023, allocations: 146.2 kB / 0.8715 GB, free: 44.59 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01143/3.035, allocations: 2.03 MB / 0.8735 GB, free: 44.49 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.201e-05/3.035, allocations: 13.83 kB / 0.8735 GB, free: 44.49 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.245e-05/3.035, allocations: 0 / 0.8735 GB, free: 44.49 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.902e-05/3.035, allocations: 6.188 kB / 0.8735 GB, free: 44.49 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01076/3.046, allocations: 3.435 MB / 0.8769 GB, free: 44.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.071e-05/3.046, allocations: 0 / 0.8769 GB, free: 44.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001896/3.048, allocations: 190.3 kB / 0.877 GB, free: 44.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006664/3.054, allocations: 0.9574 MB / 0.878 GB, free: 44.12 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003778/3.055, allocations: 35.09 kB / 0.878 GB, free: 44.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003337/3.058, allocations: 1.565 MB / 0.8795 GB, free: 43.58 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/3.058, allocations: 5.406 kB / 0.8795 GB, free: 43.58 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007389/3.065, allocations: 2.745 MB / 0.8822 GB, free: 43.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001554/3.067, allocations: 401.9 kB / 0.8826 GB, free: 43.15 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005882/3.068, allocations: 28.12 kB / 0.8826 GB, free: 43.15 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002603/3.07, allocations: 87.16 kB / 0.8827 GB, free: 43.14 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000623/3.071, allocations: 96.91 kB / 0.8828 GB, free: 43.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002713/3.071, allocations: 53.88 kB / 0.8829 GB, free: 43.14 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00231/3.074, allocations: 0.8402 MB / 0.8837 GB, free: 43.03 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.884e-06/3.074, allocations: 2.469 kB / 0.8837 GB, free: 43.03 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005733/3.079, allocations: 1.243 MB / 0.8849 GB, free: 43.03 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.003786/3.083, allocations: 1.061 MB / 0.8859 GB, free: 42.93 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01013/3.093, allocations: 2.578 MB / 0.8884 GB, free: 42.88 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/3.093, allocations: 6.688 kB / 0.8885 GB, free: 42.88 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003447/3.097, allocations: 0.8344 MB / 0.8893 GB, free: 42.87 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004971/3.102, allocations: 0.5978 MB / 0.8899 GB, free: 42.86 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008891/3.111, allocations: 3.508 MB / 0.8933 GB, free: 41.63 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009033/3.112, allocations: 1.324 MB / 0.8946 GB, free: 40.92 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.003341/3.115, allocations: 0.5564 MB / 0.8951 GB, free: 40.89 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005694/3.116, allocations: 126.9 kB / 0.8952 GB, free: 40.89 MB / 362.7 MB Notification: Performance of SimCode: time 1.273e-06/3.116, allocations: 0 / 0.8952 GB, free: 40.89 MB / 362.7 MB Notification: Performance of Templates: time 0.09432/3.21, allocations: 40.58 MB / 0.9349 GB, free: 38.47 MB / 362.7 MB