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_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadModel(Modelica): time 1.975/1.975, allocations: 205.8 MB / 218.9 MB, free: 9.34 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.185e-05/3.218e-05, allocations: 4 kB / 269.3 MB, free: 6.406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08964/0.0897, allocations: 47.58 MB / 316.9 MB, free: 6.742 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8392/0.929, allocations: 320.9 MB / 0.6229 GB, free: 46.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002447/0.9293, allocations: 78.58 kB / 0.6229 GB, free: 46.76 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6597/1.589, allocations: 131.5 MB / 0.7514 GB, free: 92.21 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.12e-06/1.589, allocations: 0 / 0.7514 GB, free: 92.21 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.76e-05/1.589, allocations: 12 kB / 0.7514 GB, free: 92.2 MB / 426.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.00305/1.592, allocations: 1.077 MB / 0.7525 GB, free: 91.09 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/1.592, allocations: 12.03 kB / 0.7525 GB, free: 91.07 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006078/1.593, allocations: 91.88 kB / 0.7526 GB, free: 90.98 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001761/1.595, allocations: 0.666 MB / 0.7532 GB, free: 90.29 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001198/1.595, allocations: 102.8 kB / 0.7533 GB, free: 90.18 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001854/1.595, allocations: 53.88 kB / 0.7534 GB, free: 90.12 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001789/1.597, allocations: 0.8805 MB / 0.7542 GB, free: 89.23 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.682e-05/1.597, allocations: 0 / 0.7542 GB, free: 89.23 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001233/1.597, allocations: 23.44 kB / 0.7542 GB, free: 89.21 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001023/1.597, allocations: 49.28 kB / 0.7543 GB, free: 89.16 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001669/1.599, allocations: 0.8068 MB / 0.7551 GB, free: 88.36 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006922/1.606, allocations: 3.302 MB / 0.7583 GB, free: 84.93 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001192/1.607, allocations: 0.6327 MB / 0.7589 GB, free: 84.29 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006479/1.608, allocations: 362.3 kB / 0.7593 GB, free: 83.93 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003542/1.611, allocations: 2.059 MB / 0.7613 GB, free: 81.7 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.528e-05/1.611, allocations: 43.12 kB / 0.7613 GB, free: 81.64 MB / 426.7 MB Notification: Performance of pre-optimization done (n=56): time 4.184e-06/1.611, allocations: 0 / 0.7613 GB, free: 81.64 MB / 426.7 MB Notification: Performance of matching and sorting (n=66): time 0.005783/1.617, allocations: 2.211 MB / 0.7635 GB, free: 79.39 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.693e-05/1.617, allocations: 81.67 kB / 0.7636 GB, free: 79.29 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009787/1.618, allocations: 0.6009 MB / 0.7641 GB, free: 78.68 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001342/1.618, allocations: 37.7 kB / 0.7642 GB, free: 78.64 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002269/1.619, allocations: 336.5 kB / 0.7645 GB, free: 78.3 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000226/1.619, allocations: 232.2 kB / 0.7647 GB, free: 78.08 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.595e-05/1.619, allocations: 20 kB / 0.7647 GB, free: 78.06 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001264/1.619, allocations: 382.8 kB / 0.7651 GB, free: 77.68 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007086/1.62, allocations: 345.4 kB / 0.7654 GB, free: 77.34 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007717/1.621, allocations: 0.4913 MB / 0.7659 GB, free: 76.79 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007856/1.621, allocations: 401.9 kB / 0.7663 GB, free: 76.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.097e-06/1.621, allocations: 0 / 0.7663 GB, free: 76.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.00248/1.624, allocations: 1.117 MB / 0.7674 GB, free: 75.27 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003272/1.624, allocations: 1.571 MB / 0.7689 GB, free: 73.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/1.624, allocations: 8 kB / 0.7689 GB, free: 73.58 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001655/1.626, allocations: 436.5 kB / 0.7693 GB, free: 73.15 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/1.627, allocations: 163.7 kB / 0.7695 GB, free: 72.99 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001488/1.629, allocations: 1.017 MB / 0.7705 GB, free: 71.95 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001106/1.63, allocations: 59.81 kB / 0.7705 GB, free: 71.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001654/1.63, allocations: 31.98 kB / 0.7706 GB, free: 71.86 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/1.63, allocations: 4 kB / 0.7706 GB, free: 71.85 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002216/1.632, allocations: 0.9641 MB / 0.7715 GB, free: 70.88 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/1.632, allocations: 4 kB / 0.7715 GB, free: 70.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008736/1.633, allocations: 316.7 kB / 0.7718 GB, free: 70.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009066/1.634, allocations: 163.8 kB / 0.772 GB, free: 70.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001105/1.635, allocations: 0.8918 MB / 0.7729 GB, free: 69.49 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009792/1.636, allocations: 51.88 kB / 0.7729 GB, free: 69.44 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000135/1.636, allocations: 31.98 kB / 0.7729 GB, free: 69.41 MB / 426.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.0002842/1.637, allocations: 152.7 kB / 0.7731 GB, free: 69.25 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002399/1.637, allocations: 79.06 kB / 0.7732 GB, free: 69.17 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002439/1.639, allocations: 1.082 MB / 0.7742 GB, free: 68.07 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.084e-05/1.639, allocations: 8 kB / 0.7742 GB, free: 68.07 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.586e-06/1.639, allocations: 0 / 0.7742 GB, free: 68.07 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/1.639, allocations: 3.984 kB / 0.7742 GB, free: 68.06 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003943/1.643, allocations: 1.995 MB / 0.7762 GB, free: 66.02 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.906e-06/1.643, allocations: 4 kB / 0.7762 GB, free: 66.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007555/1.644, allocations: 115.9 kB / 0.7763 GB, free: 65.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001566/1.646, allocations: 441.9 kB / 0.7767 GB, free: 65.47 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001267/1.646, allocations: 23.98 kB / 0.7767 GB, free: 65.45 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001288/1.647, allocations: 1.021 MB / 0.7777 GB, free: 64.4 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.901e-06/1.647, allocations: 4 kB / 0.7777 GB, free: 64.4 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002989/1.65, allocations: 1.576 MB / 0.7793 GB, free: 62.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000619/1.651, allocations: 252.1 kB / 0.7795 GB, free: 62.54 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001894/1.651, allocations: 16 kB / 0.7795 GB, free: 62.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008509/1.652, allocations: 47.88 kB / 0.7796 GB, free: 62.47 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001693/1.652, allocations: 60.64 kB / 0.7796 GB, free: 62.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001028/1.652, allocations: 31.92 kB / 0.7797 GB, free: 62.38 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007402/1.653, allocations: 471.1 kB / 0.7801 GB, free: 61.93 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.46e-07/1.653, allocations: 0 / 0.7801 GB, free: 61.93 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002356/1.655, allocations: 0.6478 MB / 0.7807 GB, free: 61.28 MB / 426.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.001684/1.657, allocations: 0.5868 MB / 0.7813 GB, free: 60.72 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003497/1.661, allocations: 1.367 MB / 0.7827 GB, free: 59.36 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.692e-06/1.661, allocations: 320 / 0.7827 GB, free: 59.36 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001167/1.662, allocations: 462.7 kB / 0.7831 GB, free: 58.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002096/1.664, allocations: 354.5 kB / 0.7834 GB, free: 58.56 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003443/1.668, allocations: 1.352 MB / 0.7848 GB, free: 57.17 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004937/1.668, allocations: 1.012 MB / 0.7857 GB, free: 56.13 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001774/1.67, allocations: 354.5 kB / 0.7861 GB, free: 55.78 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000228/1.67, allocations: 67.42 kB / 0.7861 GB, free: 55.71 MB / 426.7 MB Notification: Performance of SimCode: time 1.657e-06/1.67, allocations: 0 / 0.7861 GB, free: 55.71 MB / 426.7 MB Notification: Performance of Templates: time 0.04513/1.715, allocations: 22.84 MB / 0.8084 GB, free: 32.95 MB / 426.7 MB