Running command: translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadModel(Modelica): time 1.979/1.979, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.55e-05/2.565e-05, allocations: 0 / 292.1 MB, free: 8.355 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09548/0.09553, allocations: 50.42 MB / 342.6 MB, free: 5.918 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.92/1.016, allocations: 321.7 MB / 0.6487 GB, free: 38.57 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002146/1.016, allocations: 78.14 kB / 0.6488 GB, free: 38.53 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6767/1.693, allocations: 134.3 MB / 0.7799 GB, free: 81.97 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.17e-06/1.693, allocations: 3.938 kB / 0.7799 GB, free: 81.96 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.068e-05/1.693, allocations: 23.98 kB / 0.78 GB, free: 81.94 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003124/1.696, allocations: 1.076 MB / 0.781 GB, free: 80.82 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/1.696, allocations: 8.031 kB / 0.781 GB, free: 80.81 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005871/1.697, allocations: 99.05 kB / 0.7811 GB, free: 80.71 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001753/1.698, allocations: 0.6519 MB / 0.7818 GB, free: 80.02 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001165/1.698, allocations: 112.7 kB / 0.7819 GB, free: 79.89 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001462/1.699, allocations: 51.98 kB / 0.7819 GB, free: 79.84 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001796/1.7, allocations: 0.8673 MB / 0.7828 GB, free: 78.95 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.815e-05/1.701, allocations: 7.906 kB / 0.7828 GB, free: 78.95 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001183/1.701, allocations: 27.98 kB / 0.7828 GB, free: 78.92 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.41e-05/1.701, allocations: 53.27 kB / 0.7828 GB, free: 78.86 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00168/1.702, allocations: 0.8029 MB / 0.7836 GB, free: 78.06 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006897/1.709, allocations: 3.285 MB / 0.7868 GB, free: 74.62 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001194/1.711, allocations: 0.6559 MB / 0.7875 GB, free: 73.96 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006446/1.711, allocations: 358.4 kB / 0.7878 GB, free: 73.61 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003547/1.715, allocations: 2.059 MB / 0.7898 GB, free: 71.35 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/1.715, allocations: 43.12 kB / 0.7899 GB, free: 71.3 MB / 442.7 MB Notification: Performance of pre-optimization done (n=56): time 4.203e-06/1.715, allocations: 0 / 0.7899 GB, free: 71.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=66): time 0.005775/1.721, allocations: 2.211 MB / 0.792 GB, free: 69.04 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.393e-05/1.721, allocations: 89.62 kB / 0.7921 GB, free: 68.93 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009653/1.722, allocations: 0.5933 MB / 0.7927 GB, free: 68.33 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001433/1.722, allocations: 37.7 kB / 0.7927 GB, free: 68.29 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002289/1.722, allocations: 344.4 kB / 0.7931 GB, free: 67.95 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002263/1.722, allocations: 220.8 kB / 0.7933 GB, free: 67.73 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.394e-05/1.723, allocations: 16 kB / 0.7933 GB, free: 67.71 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001292/1.723, allocations: 390.8 kB / 0.7937 GB, free: 67.32 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007059/1.723, allocations: 349.4 kB / 0.794 GB, free: 66.98 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00077/1.724, allocations: 499.2 kB / 0.7945 GB, free: 66.43 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008279/1.725, allocations: 397.9 kB / 0.7948 GB, free: 66.05 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.922e-06/1.725, allocations: 0 / 0.7948 GB, free: 66.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002471/1.728, allocations: 1.117 MB / 0.7959 GB, free: 64.92 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003292/1.728, allocations: 1.576 MB / 0.7975 GB, free: 63.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/1.728, allocations: 4 kB / 0.7975 GB, free: 63.22 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001598/1.73, allocations: 432.4 kB / 0.7979 GB, free: 62.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009158/1.731, allocations: 159.8 kB / 0.798 GB, free: 62.64 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001369/1.732, allocations: 1.024 MB / 0.799 GB, free: 61.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001032/1.733, allocations: 47.95 kB / 0.7991 GB, free: 61.54 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001173/1.733, allocations: 35.98 kB / 0.7991 GB, free: 61.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/1.733, allocations: 7.594 kB / 0.7991 GB, free: 61.5 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002169/1.735, allocations: 0.9718 MB / 0.8001 GB, free: 60.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/1.735, allocations: 7.984 kB / 0.8001 GB, free: 60.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000859/1.736, allocations: 316.7 kB / 0.8004 GB, free: 60.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009459/1.737, allocations: 159.8 kB / 0.8005 GB, free: 60.05 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001109/1.738, allocations: 0.8996 MB / 0.8014 GB, free: 59.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001038/1.739, allocations: 47.92 kB / 0.8015 GB, free: 59.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001341/1.74, allocations: 35.92 kB / 0.8015 GB, free: 59.04 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002913/1.74, allocations: 148.8 kB / 0.8016 GB, free: 58.89 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002429/1.74, allocations: 79.09 kB / 0.8017 GB, free: 58.81 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002406/1.743, allocations: 1.086 MB / 0.8028 GB, free: 57.71 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/1.743, allocations: 8 kB / 0.8028 GB, free: 57.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.596e-06/1.743, allocations: 0 / 0.8028 GB, free: 57.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.118e-05/1.743, allocations: 3.984 kB / 0.8028 GB, free: 57.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003865/1.747, allocations: 1.985 MB / 0.8047 GB, free: 55.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.793e-06/1.747, allocations: 7.953 kB / 0.8047 GB, free: 55.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007442/1.747, allocations: 115.9 kB / 0.8048 GB, free: 55.53 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00153/1.749, allocations: 440.5 kB / 0.8053 GB, free: 55.1 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00011/1.749, allocations: 12 kB / 0.8053 GB, free: 55.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001302/1.75, allocations: 1.035 MB / 0.8063 GB, free: 54.03 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.113e-06/1.75, allocations: 4 kB / 0.8063 GB, free: 54.02 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002934/1.753, allocations: 1.572 MB / 0.8078 GB, free: 52.43 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006001/1.754, allocations: 248.1 kB / 0.8081 GB, free: 52.17 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001873/1.754, allocations: 12 kB / 0.8081 GB, free: 52.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008321/1.755, allocations: 63.8 kB / 0.8081 GB, free: 52.09 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001635/1.755, allocations: 56.69 kB / 0.8082 GB, free: 52.04 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001062/1.755, allocations: 23.98 kB / 0.8082 GB, free: 52.02 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007229/1.756, allocations: 471.1 kB / 0.8087 GB, free: 51.56 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.03e-06/1.756, allocations: 0 / 0.8087 GB, free: 51.56 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002382/1.758, allocations: 0.6439 MB / 0.8093 GB, free: 50.92 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001676/1.76, allocations: 0.6091 MB / 0.8099 GB, free: 50.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00339/1.764, allocations: 1.356 MB / 0.8112 GB, free: 48.95 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.389e-06/1.764, allocations: 0 / 0.8112 GB, free: 48.95 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001125/1.765, allocations: 466.8 kB / 0.8117 GB, free: 48.5 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002009/1.767, allocations: 341.2 kB / 0.812 GB, free: 48.16 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003388/1.77, allocations: 1.345 MB / 0.8133 GB, free: 46.78 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004861/1.771, allocations: 1.016 MB / 0.8143 GB, free: 45.74 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001741/1.772, allocations: 362.5 kB / 0.8146 GB, free: 45.38 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002421/1.773, allocations: 71.34 kB / 0.8147 GB, free: 45.31 MB / 442.7 MB Notification: Performance of SimCode: time 1.906e-06/1.773, allocations: 0 / 0.8147 GB, free: 45.31 MB / 442.7 MB Notification: Performance of Templates: time 0.04584/1.819, allocations: 22.84 MB / 0.837 GB, free: 22.63 MB / 442.7 MB