Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadModel(Modelica): time 1.794/1.794, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003683/0.0003684, allocations: 12 kB / 263.9 MB, free: 13.58 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08296/0.08336, allocations: 44.51 MB / 308.4 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8232/0.9066, allocations: 316.7 MB / 0.6105 GB, free: 68.15 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002466/0.9069, allocations: 80.73 kB / 0.6106 GB, free: 68.11 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.365/2.272, allocations: 267.7 MB / 0.872 GB, free: 62.3 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.178e-06/2.272, allocations: 0 / 0.872 GB, free: 62.3 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000183/2.272, allocations: 36.69 kB / 0.872 GB, free: 62.3 MB / 410.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.007205/2.279, allocations: 1.992 MB / 0.874 GB, free: 61.38 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/2.279, allocations: 7.812 kB / 0.874 GB, free: 61.38 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001254/2.281, allocations: 176.1 kB / 0.8741 GB, free: 61.3 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00365/2.284, allocations: 1.117 MB / 0.8752 GB, free: 60.96 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000245/2.285, allocations: 174.4 kB / 0.8754 GB, free: 60.87 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005544/2.285, allocations: 104.6 kB / 0.8755 GB, free: 60.87 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005579/2.291, allocations: 1.767 MB / 0.8772 GB, free: 60.69 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.132e-05/2.291, allocations: 0 / 0.8772 GB, free: 60.69 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005998/2.291, allocations: 52.62 kB / 0.8773 GB, free: 60.69 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002252/2.292, allocations: 112.8 kB / 0.8774 GB, free: 60.68 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004936/2.297, allocations: 1.774 MB / 0.8791 GB, free: 60.67 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01609/2.313, allocations: 6.395 MB / 0.8854 GB, free: 58.68 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00264/2.315, allocations: 1.184 MB / 0.8865 GB, free: 58.64 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007957/2.324, allocations: 4.165 MB / 0.8906 GB, free: 56.29 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.506e-05/2.324, allocations: 47.81 kB / 0.8906 GB, free: 56.25 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001414/2.325, allocations: 219.8 kB / 0.8908 GB, free: 56.18 MB / 410.7 MB Notification: Performance of pre-optimization done (n=97): time 5.916e-06/2.325, allocations: 0 / 0.8908 GB, free: 56.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=112): time 0.02206/2.347, allocations: 5.366 MB / 0.8961 GB, free: 55.52 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.444e-05/2.347, allocations: 151.6 kB / 0.8962 GB, free: 55.36 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002085/2.349, allocations: 1.1 MB / 0.8973 GB, free: 55.21 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003391/2.35, allocations: 47.89 kB / 0.8973 GB, free: 55.18 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003809/2.35, allocations: 0.5729 MB / 0.8979 GB, free: 54.87 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005572/2.351, allocations: 392.5 kB / 0.8983 GB, free: 54.62 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001484/2.351, allocations: 29.5 kB / 0.8983 GB, free: 54.62 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001227/2.351, allocations: 365.5 kB / 0.8986 GB, free: 54.31 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001613/2.353, allocations: 0.6368 MB / 0.8993 GB, free: 54.31 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001893/2.355, allocations: 0.9684 MB / 0.9002 GB, free: 53.95 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001915/2.356, allocations: 0.7608 MB / 0.901 GB, free: 53.94 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-05/2.357, allocations: 3.969 kB / 0.901 GB, free: 53.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.00541/2.362, allocations: 2.033 MB / 0.9029 GB, free: 53.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007291/2.363, allocations: 3.485 MB / 0.9063 GB, free: 50.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.219e-05/2.363, allocations: 11.17 kB / 0.9064 GB, free: 50.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008459/2.371, allocations: 1.229 MB / 0.9076 GB, free: 50.19 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001665/2.373, allocations: 294.1 kB / 0.9078 GB, free: 50.19 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003069/2.376, allocations: 1.523 MB / 0.9093 GB, free: 49.65 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00227/2.378, allocations: 86.12 kB / 0.9094 GB, free: 49.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004039/2.379, allocations: 70.3 kB / 0.9095 GB, free: 49.64 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/2.379, allocations: 8.094 kB / 0.9095 GB, free: 49.64 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004727/2.384, allocations: 1.786 MB / 0.9112 GB, free: 49.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.711e-05/2.384, allocations: 18.92 kB / 0.9112 GB, free: 49.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007829/2.392, allocations: 0.9462 MB / 0.9122 GB, free: 49.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001661/2.393, allocations: 300.8 kB / 0.9125 GB, free: 49.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002051/2.395, allocations: 1.214 MB / 0.9136 GB, free: 49.06 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001536/2.397, allocations: 88.06 kB / 0.9137 GB, free: 49.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000298/2.397, allocations: 69.64 kB / 0.9138 GB, free: 49.05 MB / 410.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.001223/2.399, allocations: 462.5 kB / 0.9142 GB, free: 48.86 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004581/2.399, allocations: 148.9 kB / 0.9144 GB, free: 48.78 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005677/2.405, allocations: 2.03 MB / 0.9164 GB, free: 48.67 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.033e-05/2.405, allocations: 14.75 kB / 0.9164 GB, free: 48.67 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.663e-06/2.405, allocations: 3.688 kB / 0.9164 GB, free: 48.67 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-05/2.405, allocations: 7.453 kB / 0.9164 GB, free: 48.67 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008303/2.413, allocations: 3.434 MB / 0.9197 GB, free: 48.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.915e-06/2.413, allocations: 0 / 0.9197 GB, free: 48.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001223/2.414, allocations: 195 kB / 0.9199 GB, free: 48.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004863/2.419, allocations: 0.9523 MB / 0.9209 GB, free: 48.27 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003099/2.42, allocations: 34.06 kB / 0.9209 GB, free: 48.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002701/2.422, allocations: 1.564 MB / 0.9224 GB, free: 47.73 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.857e-06/2.422, allocations: 3.938 kB / 0.9224 GB, free: 47.73 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00637/2.429, allocations: 2.758 MB / 0.9251 GB, free: 47.46 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001253/2.43, allocations: 397.9 kB / 0.9255 GB, free: 47.29 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000471/2.431, allocations: 24.91 kB / 0.9255 GB, free: 47.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001659/2.432, allocations: 89.53 kB / 0.9256 GB, free: 47.29 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003089/2.433, allocations: 94.45 kB / 0.9257 GB, free: 47.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002014/2.433, allocations: 53.27 kB / 0.9257 GB, free: 47.28 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001633/2.435, allocations: 0.8339 MB / 0.9266 GB, free: 47.17 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.76e-07/2.435, allocations: 2.156 kB / 0.9266 GB, free: 47.17 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005142/2.44, allocations: 1.244 MB / 0.9278 GB, free: 46.97 MB / 410.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.003308/2.443, allocations: 1.074 MB / 0.9288 GB, free: 46.64 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00778/2.451, allocations: 2.544 MB / 0.9313 GB, free: 46.59 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.125e-05/2.451, allocations: 3.031 kB / 0.9313 GB, free: 46.59 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002718/2.454, allocations: 0.8296 MB / 0.9321 GB, free: 46.57 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003884/2.458, allocations: 0.5944 MB / 0.9327 GB, free: 46.56 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008178/2.466, allocations: 3.594 MB / 0.9362 GB, free: 45.27 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009409/2.467, allocations: 1.314 MB / 0.9375 GB, free: 44.52 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008116/2.468, allocations: 142.6 kB / 0.9376 GB, free: 44.5 MB / 410.7 MB Notification: Performance of SimCode: time 1.829e-06/2.468, allocations: 0 / 0.9376 GB, free: 44.5 MB / 410.7 MB Notification: Performance of Templates: time 0.05537/2.523, allocations: 35.53 MB / 0.9723 GB, free: 25.18 MB / 410.7 MB