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_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadModel(Modelica): time 1.936/1.936, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.116e-05/3.137e-05, allocations: 4 kB / 255.4 MB, free: 2.711 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07987/0.07993, allocations: 44.5 MB / 299.9 MB, free: 6.148 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8378/0.9178, allocations: 316.6 MB / 0.602 GB, free: 90.4 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002274/0.918, allocations: 75.97 kB / 0.6021 GB, free: 90.33 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.317/2.235, allocations: 266.8 MB / 0.8627 GB, free: 58.31 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.005e-06/2.235, allocations: 5.906 kB / 0.8627 GB, free: 58.31 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001731/2.235, allocations: 41.61 kB / 0.8627 GB, free: 58.31 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.006648/2.242, allocations: 1.806 MB / 0.8645 GB, free: 57.59 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/2.242, allocations: 7.938 kB / 0.8645 GB, free: 57.59 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001161/2.243, allocations: 173.3 kB / 0.8646 GB, free: 57.52 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003646/2.246, allocations: 1.115 MB / 0.8657 GB, free: 57.24 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002223/2.247, allocations: 178.5 kB / 0.8659 GB, free: 57.14 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005047/2.247, allocations: 98.12 kB / 0.866 GB, free: 57.14 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004649/2.252, allocations: 1.733 MB / 0.8677 GB, free: 56.97 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.603e-05/2.252, allocations: 1.312 kB / 0.8677 GB, free: 56.97 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002641/2.252, allocations: 44.12 kB / 0.8677 GB, free: 56.97 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000218/2.253, allocations: 115.2 kB / 0.8678 GB, free: 56.97 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00442/2.257, allocations: 1.727 MB / 0.8695 GB, free: 56.96 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01689/2.274, allocations: 6.396 MB / 0.8758 GB, free: 55.01 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002532/2.276, allocations: 1.151 MB / 0.8769 GB, free: 54.98 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001606/2.278, allocations: 0.6988 MB / 0.8776 GB, free: 54.97 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008282/2.286, allocations: 4.283 MB / 0.8818 GB, free: 52.65 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.139e-05/2.286, allocations: 42.69 kB / 0.8818 GB, free: 52.61 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001339/2.288, allocations: 215.1 kB / 0.882 GB, free: 52.55 MB / 410.7 MB Notification: Performance of pre-optimization done (n=97): time 5.693e-06/2.288, allocations: 0 / 0.882 GB, free: 52.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=112): time 0.0123/2.3, allocations: 3.774 MB / 0.8857 GB, free: 52.01 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/2.3, allocations: 144.3 kB / 0.8858 GB, free: 51.85 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002148/2.302, allocations: 1.098 MB / 0.8869 GB, free: 51.68 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003569/2.303, allocations: 50.14 kB / 0.8869 GB, free: 51.65 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004915/2.303, allocations: 0.6 MB / 0.8875 GB, free: 51.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000517/2.304, allocations: 390 kB / 0.8879 GB, free: 51.16 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001639/2.304, allocations: 29.06 kB / 0.8879 GB, free: 51.16 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001149/2.304, allocations: 361 kB / 0.8883 GB, free: 50.86 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001592/2.306, allocations: 0.6208 MB / 0.8889 GB, free: 50.86 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001882/2.308, allocations: 0.9435 MB / 0.8898 GB, free: 50.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001889/2.31, allocations: 0.7479 MB / 0.8905 GB, free: 50.48 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.17e-05/2.31, allocations: 0 / 0.8905 GB, free: 50.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.005415/2.315, allocations: 2.05 MB / 0.8925 GB, free: 50.34 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006954/2.316, allocations: 3.515 MB / 0.896 GB, free: 46.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.95e-05/2.316, allocations: 11.75 kB / 0.896 GB, free: 46.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008325/2.324, allocations: 1.214 MB / 0.8972 GB, free: 46.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001881/2.326, allocations: 289 kB / 0.8974 GB, free: 46.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003082/2.329, allocations: 1.525 MB / 0.8989 GB, free: 46.15 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002126/2.331, allocations: 89.19 kB / 0.899 GB, free: 46.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003115/2.332, allocations: 67.81 kB / 0.8991 GB, free: 46.14 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/2.332, allocations: 7.094 kB / 0.8991 GB, free: 46.14 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004306/2.336, allocations: 1.736 MB / 0.9008 GB, free: 46.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.252e-05/2.336, allocations: 10.38 kB / 0.9008 GB, free: 46.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007745/2.344, allocations: 0.9709 MB / 0.9017 GB, free: 46.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001922/2.346, allocations: 303.9 kB / 0.902 GB, free: 46.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001999/2.348, allocations: 1.236 MB / 0.9032 GB, free: 45.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002194/2.35, allocations: 85.03 kB / 0.9033 GB, free: 45.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003775/2.351, allocations: 61.5 kB / 0.9034 GB, free: 45.55 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 () * 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.0005387/2.351, allocations: 195.4 kB / 0.9036 GB, free: 45.44 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004591/2.352, allocations: 152.1 kB / 0.9037 GB, free: 45.36 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005507/2.357, allocations: 1.993 MB / 0.9057 GB, free: 45.25 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.584e-05/2.357, allocations: 12.59 kB / 0.9057 GB, free: 45.25 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.079e-06/2.357, allocations: 0 / 0.9057 GB, free: 45.25 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.933e-05/2.357, allocations: 11.08 kB / 0.9057 GB, free: 45.24 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008144/2.365, allocations: 3.399 MB / 0.909 GB, free: 44.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-05/2.365, allocations: 0 / 0.909 GB, free: 44.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00148/2.367, allocations: 195.4 kB / 0.9092 GB, free: 44.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005273/2.372, allocations: 0.9463 MB / 0.9101 GB, free: 44.87 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003139/2.373, allocations: 35.72 kB / 0.9101 GB, free: 44.87 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002611/2.375, allocations: 1.552 MB / 0.9117 GB, free: 44.31 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.382e-06/2.375, allocations: 0 / 0.9117 GB, free: 44.31 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006013/2.381, allocations: 2.703 MB / 0.9143 GB, free: 44.05 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00124/2.383, allocations: 406.1 kB / 0.9147 GB, free: 43.88 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005002/2.383, allocations: 27.98 kB / 0.9147 GB, free: 43.87 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0017/2.385, allocations: 90.59 kB / 0.9148 GB, free: 43.87 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003149/2.385, allocations: 101.6 kB / 0.9149 GB, free: 43.87 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002037/2.385, allocations: 53.97 kB / 0.9149 GB, free: 43.87 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001585/2.387, allocations: 0.8191 MB / 0.9157 GB, free: 43.75 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.019e-06/2.387, allocations: 3.062 kB / 0.9157 GB, free: 43.75 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004958/2.392, allocations: 1.252 MB / 0.917 GB, free: 43.54 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 () * 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.003326/2.395, allocations: 1.069 MB / 0.918 GB, free: 43.22 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007218/2.403, allocations: 2.529 MB / 0.9205 GB, free: 43.17 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.968e-06/2.403, allocations: 3.719 kB / 0.9205 GB, free: 43.17 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002541/2.405, allocations: 0.8105 MB / 0.9213 GB, free: 43.15 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003774/2.409, allocations: 0.5992 MB / 0.9219 GB, free: 43.14 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006376/2.415, allocations: 2.437 MB / 0.9242 GB, free: 42.64 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009154/2.416, allocations: 1.328 MB / 0.9255 GB, free: 41.92 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00366/2.42, allocations: 0.6605 MB / 0.9262 GB, free: 41.89 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004954/2.421, allocations: 108.9 kB / 0.9263 GB, free: 41.89 MB / 410.7 MB Notification: Performance of SimCode: time 2.103e-06/2.421, allocations: 0 / 0.9263 GB, free: 41.89 MB / 410.7 MB Notification: Performance of Templates: time 0.08603/2.507, allocations: 42.35 MB / 0.9677 GB, free: 30.58 MB / 410.7 MB