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.666/1.666, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.825e-05/4.863e-05, allocations: 4 kB / 225 MB, free: 2.34 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2817/0.2818, allocations: 38.77 MB / 263.8 MB, free: 9.84 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.745/1.027, allocations: 311.3 MB / 0.5616 GB, free: 74.95 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002013/1.027, allocations: 75.05 kB / 0.5617 GB, free: 74.92 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.278/2.305, allocations: 266.8 MB / 0.8222 GB, free: 52.06 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.374e-06/2.305, allocations: 3.188 kB / 0.8222 GB, free: 52.06 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001693/2.306, allocations: 43.45 kB / 0.8223 GB, free: 52.05 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.006245/2.312, allocations: 1.804 MB / 0.824 GB, free: 51.18 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/2.312, allocations: 12.12 kB / 0.824 GB, free: 51.18 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001127/2.313, allocations: 172.7 kB / 0.8242 GB, free: 51.1 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0034/2.316, allocations: 1.116 MB / 0.8253 GB, free: 50.76 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002188/2.317, allocations: 177.2 kB / 0.8255 GB, free: 50.66 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00046/2.317, allocations: 95.11 kB / 0.8255 GB, free: 50.66 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004196/2.321, allocations: 1.729 MB / 0.8272 GB, free: 50.49 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.364e-05/2.321, allocations: 4.594 kB / 0.8272 GB, free: 50.49 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002496/2.322, allocations: 44.14 kB / 0.8273 GB, free: 50.49 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001908/2.322, allocations: 112.7 kB / 0.8274 GB, free: 50.49 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004213/2.326, allocations: 1.726 MB / 0.8291 GB, free: 50.48 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01583/2.342, allocations: 6.407 MB / 0.8353 GB, free: 48.46 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002457/2.345, allocations: 1.158 MB / 0.8365 GB, free: 48.41 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001444/2.346, allocations: 0.6986 MB / 0.8371 GB, free: 48.41 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007866/2.354, allocations: 4.278 MB / 0.8413 GB, free: 46.05 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.239e-05/2.354, allocations: 47.91 kB / 0.8414 GB, free: 46.02 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001261/2.355, allocations: 209.3 kB / 0.8416 GB, free: 45.96 MB / 362.7 MB Notification: Performance of pre-optimization done (n=97): time 5.01e-06/2.355, allocations: 0 / 0.8416 GB, free: 45.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=112): time 0.01094/2.366, allocations: 3.776 MB / 0.8453 GB, free: 45.4 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.935e-05/2.366, allocations: 140.7 kB / 0.8454 GB, free: 45.25 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001972/2.368, allocations: 1.099 MB / 0.8465 GB, free: 45.08 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002642/2.369, allocations: 45.02 kB / 0.8465 GB, free: 45.05 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004423/2.369, allocations: 0.6009 MB / 0.8471 GB, free: 44.8 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004148/2.37, allocations: 389.2 kB / 0.8475 GB, free: 44.56 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001415/2.37, allocations: 30.06 kB / 0.8475 GB, free: 44.56 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000107/2.37, allocations: 363.8 kB / 0.8478 GB, free: 44.25 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001441/2.371, allocations: 0.6257 MB / 0.8485 GB, free: 44.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001629/2.373, allocations: 0.9386 MB / 0.8494 GB, free: 43.89 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001637/2.375, allocations: 0.7463 MB / 0.8501 GB, free: 43.88 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.788e-06/2.375, allocations: 3.969 kB / 0.8501 GB, free: 43.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.005059/2.38, allocations: 2.056 MB / 0.8521 GB, free: 43.73 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006991/2.38, allocations: 3.51 MB / 0.8555 GB, free: 40.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.043e-05/2.38, allocations: 11.62 kB / 0.8555 GB, free: 40.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008347/2.389, allocations: 1.205 MB / 0.8567 GB, free: 40.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001702/2.391, allocations: 290.8 kB / 0.857 GB, free: 40.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002833/2.393, allocations: 1.531 MB / 0.8585 GB, free: 39.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002164/2.396, allocations: 82.11 kB / 0.8586 GB, free: 39.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000253/2.396, allocations: 73.39 kB / 0.8586 GB, free: 39.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/2.396, allocations: 5.5 kB / 0.8587 GB, free: 39.54 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004161/2.4, allocations: 1.733 MB / 0.8603 GB, free: 39.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.555e-05/2.4, allocations: 10.97 kB / 0.8604 GB, free: 39.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008492/2.409, allocations: 0.9645 MB / 0.8613 GB, free: 39.49 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001921/2.411, allocations: 301.8 kB / 0.8616 GB, free: 39.49 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001979/2.413, allocations: 1.226 MB / 0.8628 GB, free: 38.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001974/2.415, allocations: 88.81 kB / 0.8629 GB, free: 38.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003444/2.415, allocations: 62.89 kB / 0.8629 GB, free: 38.95 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.0005429/2.416, allocations: 190.3 kB / 0.8631 GB, free: 38.83 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004635/2.416, allocations: 149.9 kB / 0.8632 GB, free: 38.76 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005386/2.421, allocations: 1.996 MB / 0.8652 GB, free: 38.66 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-05/2.422, allocations: 19.36 kB / 0.8652 GB, free: 38.66 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.403e-06/2.422, allocations: 3.438 kB / 0.8652 GB, free: 38.66 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-05/2.422, allocations: 6.984 kB / 0.8652 GB, free: 38.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00782/2.429, allocations: 3.415 MB / 0.8686 GB, free: 37.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.828e-06/2.429, allocations: 0 / 0.8686 GB, free: 37.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001399/2.431, allocations: 190.5 kB / 0.8687 GB, free: 37.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005191/2.436, allocations: 0.9404 MB / 0.8697 GB, free: 37.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002705/2.436, allocations: 38.19 kB / 0.8697 GB, free: 37.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00272/2.439, allocations: 1.559 MB / 0.8712 GB, free: 36.58 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/2.439, allocations: 3.953 kB / 0.8712 GB, free: 36.57 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006098/2.445, allocations: 2.705 MB / 0.8739 GB, free: 35.44 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001237/2.447, allocations: 403.9 kB / 0.8743 GB, free: 35.18 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004608/2.447, allocations: 23.62 kB / 0.8743 GB, free: 35.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001621/2.449, allocations: 90.58 kB / 0.8744 GB, free: 35.14 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002766/2.449, allocations: 108.1 kB / 0.8745 GB, free: 35.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001845/2.449, allocations: 45.97 kB / 0.8745 GB, free: 35.11 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001466/2.451, allocations: 0.8251 MB / 0.8753 GB, free: 34.76 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.52e-07/2.451, allocations: 0 / 0.8753 GB, free: 34.76 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004752/2.455, allocations: 1.241 MB / 0.8765 GB, free: 34.46 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.002881/2.458, allocations: 1.084 MB / 0.8776 GB, free: 33.69 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006832/2.465, allocations: 2.514 MB / 0.88 GB, free: 31.48 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.094e-06/2.465, allocations: 0 / 0.88 GB, free: 31.48 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002227/2.468, allocations: 0.8158 MB / 0.8808 GB, free: 30.77 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003623/2.471, allocations: 0.5835 MB / 0.8814 GB, free: 30.36 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006032/2.477, allocations: 2.451 MB / 0.8838 GB, free: 28.28 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008923/2.478, allocations: 1.322 MB / 0.8851 GB, free: 27.15 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.003528/2.482, allocations: 0.6704 MB / 0.8857 GB, free: 26.72 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004905/2.482, allocations: 110.4 kB / 0.8858 GB, free: 26.62 MB / 362.7 MB Notification: Performance of SimCode: time 2.286e-06/2.482, allocations: 0 / 0.8858 GB, free: 26.62 MB / 362.7 MB Notification: Performance of Templates: time 0.3018/2.784, allocations: 42.34 MB / 0.9272 GB, free: 45.47 MB / 362.7 MB