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.564/1.564, allocations: 171.1 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003591/0.0003592, allocations: 8 kB / 233.2 MB, free: 0.9375 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07144/0.07182, allocations: 38.78 MB / 272 MB, free: 10.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9077/0.9796, allocations: 311.4 MB / 0.5697 GB, free: 102.5 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002363/0.9799, allocations: 84.64 kB / 0.5698 GB, free: 102.5 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.354/2.334, allocations: 267.7 MB / 0.8312 GB, free: 33.22 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.526e-06/2.334, allocations: 4.562 kB / 0.8312 GB, free: 33.22 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001486/2.334, allocations: 37.2 kB / 0.8312 GB, free: 33.21 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.006894/2.341, allocations: 1.995 MB / 0.8332 GB, free: 32.22 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/2.341, allocations: 15.17 kB / 0.8332 GB, free: 32.21 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001145/2.343, allocations: 173.3 kB / 0.8334 GB, free: 32.14 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003269/2.346, allocations: 1.119 MB / 0.8345 GB, free: 31.8 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001728/2.346, allocations: 180 kB / 0.8346 GB, free: 31.71 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003134/2.346, allocations: 97.98 kB / 0.8347 GB, free: 31.71 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004138/2.351, allocations: 1.765 MB / 0.8365 GB, free: 31.53 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.457e-05/2.351, allocations: 6.953 kB / 0.8365 GB, free: 31.53 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002702/2.351, allocations: 46.58 kB / 0.8365 GB, free: 31.53 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001802/2.351, allocations: 112.2 kB / 0.8366 GB, free: 31.52 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00458/2.356, allocations: 1.774 MB / 0.8383 GB, free: 31.51 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01562/2.371, allocations: 6.406 MB / 0.8446 GB, free: 29.49 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002608/2.374, allocations: 1.177 MB / 0.8457 GB, free: 29.46 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007298/2.381, allocations: 4.16 MB / 0.8498 GB, free: 27.11 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.18e-05/2.381, allocations: 49.31 kB / 0.8499 GB, free: 27.07 MB / 346.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0013/2.383, allocations: 214.7 kB / 0.8501 GB, free: 27.01 MB / 346.7 MB Notification: Performance of pre-optimization done (n=97): time 4.854e-06/2.383, allocations: 3.531 kB / 0.8501 GB, free: 27.01 MB / 346.7 MB Notification: Performance of matching and sorting (n=112): time 0.02149/2.404, allocations: 5.361 MB / 0.8553 GB, free: 26.35 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.221e-05/2.404, allocations: 147.6 kB / 0.8554 GB, free: 26.19 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002073/2.406, allocations: 1.101 MB / 0.8565 GB, free: 26.04 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003306/2.407, allocations: 48.02 kB / 0.8566 GB, free: 26 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003872/2.407, allocations: 0.5792 MB / 0.8571 GB, free: 25.69 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004491/2.408, allocations: 384.4 kB / 0.8575 GB, free: 25.45 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001441/2.408, allocations: 33.16 kB / 0.8575 GB, free: 25.45 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001126/2.408, allocations: 367 kB / 0.8579 GB, free: 25.14 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001563/2.41, allocations: 0.6407 MB / 0.8585 GB, free: 25.13 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001759/2.411, allocations: 0.9689 MB / 0.8594 GB, free: 24.78 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00187/2.413, allocations: 0.7587 MB / 0.8602 GB, free: 24.76 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.729e-06/2.413, allocations: 3.875 kB / 0.8602 GB, free: 24.76 MB / 346.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.005191/2.418, allocations: 2.029 MB / 0.8622 GB, free: 24.66 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007382/2.419, allocations: 3.494 MB / 0.8656 GB, free: 21.03 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.236e-05/2.419, allocations: 7.75 kB / 0.8656 GB, free: 21.03 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009049/2.428, allocations: 1.227 MB / 0.8668 GB, free: 21.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001601/2.43, allocations: 290.8 kB / 0.8671 GB, free: 21.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003023/2.433, allocations: 1.538 MB / 0.8686 GB, free: 20.47 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002167/2.435, allocations: 95.56 kB / 0.8687 GB, free: 20.46 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003317/2.436, allocations: 66.36 kB / 0.8687 GB, free: 20.46 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/2.436, allocations: 7 kB / 0.8687 GB, free: 20.46 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004409/2.44, allocations: 1.791 MB / 0.8705 GB, free: 20.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.799e-05/2.44, allocations: 10.38 kB / 0.8705 GB, free: 20.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007701/2.448, allocations: 0.9498 MB / 0.8714 GB, free: 20.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001642/2.45, allocations: 298.4 kB / 0.8717 GB, free: 20.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002065/2.452, allocations: 1.218 MB / 0.8729 GB, free: 19.88 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001397/2.453, allocations: 82.03 kB / 0.873 GB, free: 19.88 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002225/2.453, allocations: 71.62 kB / 0.873 GB, free: 19.88 MB / 346.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.001131/2.454, allocations: 462.4 kB / 0.8735 GB, free: 19.68 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004515/2.455, allocations: 148.1 kB / 0.8736 GB, free: 19.6 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005539/2.461, allocations: 2.018 MB / 0.8756 GB, free: 19.49 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.75e-05/2.461, allocations: 12.31 kB / 0.8756 GB, free: 19.49 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.551e-06/2.461, allocations: 0 / 0.8756 GB, free: 19.49 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.8e-05/2.461, allocations: 10.62 kB / 0.8756 GB, free: 19.49 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008055/2.469, allocations: 3.435 MB / 0.879 GB, free: 18.65 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.347e-06/2.469, allocations: 0 / 0.879 GB, free: 18.65 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001353/2.47, allocations: 193.7 kB / 0.8792 GB, free: 18.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00513/2.475, allocations: 0.9552 MB / 0.8801 GB, free: 18.49 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002806/2.476, allocations: 33.83 kB / 0.8801 GB, free: 18.47 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002813/2.478, allocations: 1.571 MB / 0.8817 GB, free: 17.55 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.302e-06/2.478, allocations: 0 / 0.8817 GB, free: 17.55 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005913/2.484, allocations: 2.747 MB / 0.8843 GB, free: 16.38 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001205/2.486, allocations: 407.7 kB / 0.8847 GB, free: 16.12 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000349/2.486, allocations: 30.92 kB / 0.8848 GB, free: 16.1 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001449/2.487, allocations: 80.38 kB / 0.8848 GB, free: 16.08 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002714/2.488, allocations: 100.4 kB / 0.8849 GB, free: 16.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001754/2.488, allocations: 47.81 kB / 0.885 GB, free: 16.06 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001523/2.49, allocations: 0.8397 MB / 0.8858 GB, free: 15.72 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.738e-06/2.49, allocations: 0 / 0.8858 GB, free: 15.72 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004556/2.494, allocations: 1.244 MB / 0.887 GB, free: 15.42 MB / 346.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.002921/2.497, allocations: 1.067 MB / 0.888 GB, free: 15.05 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007347/2.504, allocations: 2.555 MB / 0.8905 GB, free: 14.21 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.66e-06/2.504, allocations: 3.562 kB / 0.8905 GB, free: 14.21 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002368/2.507, allocations: 0.8354 MB / 0.8914 GB, free: 13.94 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003521/2.51, allocations: 0.5949 MB / 0.8919 GB, free: 13.79 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007263/2.518, allocations: 3.591 MB / 0.8954 GB, free: 11.91 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008941/2.519, allocations: 1.312 MB / 0.8967 GB, free: 11.14 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007065/2.519, allocations: 150.8 kB / 0.8969 GB, free: 11.12 MB / 346.7 MB Notification: Performance of SimCode: time 1.617e-06/2.519, allocations: 0 / 0.8969 GB, free: 11.12 MB / 346.7 MB Notification: Performance of Templates: time 0.05942/2.579, allocations: 35.51 MB / 0.9316 GB, free: 368 kB / 362.7 MB