Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.891/1.891, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.877e-05/1.888e-05, allocations: 4 kB / 249.6 MB, free: 15.29 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2457/0.2458, allocations: 44.5 MB / 294.1 MB, free: 14.29 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1541/0.3999, allocations: 104.3 MB / 398.5 MB, free: 9.578 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002749/0.4002, allocations: 87.94 kB / 398.5 MB, free: 9.492 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4149/0.8152, allocations: 52.12 MB / 450.7 MB, free: 50.84 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.463e-06/0.8152, allocations: 0 / 450.7 MB, free: 50.84 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002125/0.8155, allocations: 74.34 kB / 450.7 MB, free: 50.82 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: 657 * Number of variables: 657 Notification: Performance of Generate backend data structure: time 0.006236/0.8217, allocations: 2.569 MB / 453.3 MB, free: 49.7 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.8218, allocations: 7.75 kB / 453.3 MB, free: 49.7 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001559/0.8233, allocations: 349.2 kB / 453.7 MB, free: 49.54 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005207/0.8286, allocations: 1.895 MB / 455.5 MB, free: 49 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001207/0.8287, allocations: 82.09 kB / 455.6 MB, free: 49 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005117/0.8293, allocations: 150.9 kB / 455.8 MB, free: 48.99 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005806/0.8351, allocations: 2.352 MB / 458.1 MB, free: 48.97 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006931/0.8421, allocations: 2.814 MB / 460.9 MB, free: 48.55 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.306e-05/0.8422, allocations: 7.656 kB / 460.9 MB, free: 48.55 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002872/0.8425, allocations: 3.875 kB / 461 MB, free: 48.55 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001231/0.8426, allocations: 112.2 kB / 461.1 MB, free: 48.55 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01926/0.8619, allocations: 9.958 MB / 471 MB, free: 45.58 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00226/0.8642, allocations: 1.382 MB / 472.4 MB, free: 45.25 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001354/0.8656, allocations: 0.733 MB / 473.1 MB, free: 45.24 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003716/0.866, allocations: 223.2 kB / 473.4 MB, free: 45.04 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.889e-05/0.866, allocations: 46.72 kB / 473.4 MB, free: 45 MB / 362.7 MB Notification: Performance of pre-optimization done (n=106): time 4.784e-06/0.8661, allocations: 3.844 kB / 473.4 MB, free: 45 MB / 362.7 MB Notification: Performance of matching and sorting (n=136): time 0.0136/0.8797, allocations: 5.154 MB / 478.6 MB, free: 44.06 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.097e-05/0.8798, allocations: 68.34 kB / 478.6 MB, free: 43.99 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002436/0.8822, allocations: 1.295 MB / 479.9 MB, free: 43.81 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000231/0.8825, allocations: 25.7 kB / 479.9 MB, free: 43.78 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006578/0.8831, allocations: 1.217 MB / 481.2 MB, free: 43.11 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003736/0.8835, allocations: 452.6 kB / 481.6 MB, free: 42.81 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001116/0.8836, allocations: 0 / 481.6 MB, free: 42.81 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.8838, allocations: 381.7 kB / 482 MB, free: 42.5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001381/0.8852, allocations: 0.7546 MB / 482.7 MB, free: 42.49 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001652/0.8868, allocations: 1.266 MB / 484 MB, free: 41.87 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001899/0.8888, allocations: 0.9886 MB / 485 MB, free: 41.75 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.416e-05/0.8888, allocations: 3.906 kB / 485 MB, free: 41.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.004704/0.8935, allocations: 2.241 MB / 487.2 MB, free: 40.91 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.488e-05/0.8936, allocations: 17.62 kB / 487.2 MB, free: 40.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.645e-05/0.8936, allocations: 18.75 kB / 487.3 MB, free: 40.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007688/0.8944, allocations: 240.2 kB / 487.5 MB, free: 40.83 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002213/0.8966, allocations: 452.2 kB / 487.9 MB, free: 40.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002471/0.8991, allocations: 2.872 MB / 490.8 MB, free: 38.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002119/0.9013, allocations: 100.2 kB / 490.9 MB, free: 38.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002767/0.9016, allocations: 79.81 kB / 491 MB, free: 38.15 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 207 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003769/0.902, allocations: 147.5 kB / 491.1 MB, free: 38 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003912/0.9024, allocations: 172.9 kB / 491.3 MB, free: 37.91 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00394/0.9063, allocations: 2.021 MB / 493.3 MB, free: 37.13 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.792e-05/0.9064, allocations: 14.59 kB / 493.3 MB, free: 37.13 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.231e-06/0.9064, allocations: 3.953 kB / 493.3 MB, free: 37.12 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.088e-05/0.9065, allocations: 10.33 kB / 493.4 MB, free: 37.12 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009339/0.9158, allocations: 4.464 MB / 497.8 MB, free: 34.49 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-05/0.9159, allocations: 7.828 kB / 497.8 MB, free: 34.49 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001666/0.9175, allocations: 297.2 kB / 498.1 MB, free: 34.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007874/0.9184, allocations: 202.2 kB / 498.3 MB, free: 34.29 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001328/0.9185, allocations: 7.766 kB / 498.3 MB, free: 34.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002377/0.9209, allocations: 2.861 MB / 0.4894 GB, free: 31.54 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.04e-06/0.9209, allocations: 0 / 0.4894 GB, free: 31.54 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005707/0.9267, allocations: 3.328 MB / 0.4927 GB, free: 28.66 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001136/0.9278, allocations: 430.9 kB / 0.4931 GB, free: 28.22 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002909/0.9281, allocations: 4 kB / 0.4931 GB, free: 28.22 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001216/0.9294, allocations: 79.86 kB / 0.4932 GB, free: 28.14 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002068/0.9296, allocations: 93.08 kB / 0.4933 GB, free: 28.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001377/0.9298, allocations: 39.98 kB / 0.4933 GB, free: 28.01 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00171/0.9315, allocations: 0.9617 MB / 0.4942 GB, free: 27.05 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.003e-06/0.9315, allocations: 0 / 0.4942 GB, free: 27.05 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002329/0.9338, allocations: 456 kB / 0.4947 GB, free: 26.61 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (132): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006571/0.9345, allocations: 379.9 kB / 0.495 GB, free: 26.26 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003828/0.9384, allocations: 2.309 MB / 0.4973 GB, free: 23.88 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.016e-06/0.9384, allocations: 4 kB / 0.4973 GB, free: 23.88 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002041/0.9405, allocations: 1.341 MB / 0.4986 GB, free: 22.48 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002323/0.9428, allocations: 373.8 kB / 0.499 GB, free: 22.11 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008194/0.951, allocations: 3.945 MB / 0.5028 GB, free: 18.09 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001958/0.953, allocations: 2.024 MB / 0.5048 GB, free: 16.03 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000848/0.9539, allocations: 151.3 kB / 0.5049 GB, free: 15.88 MB / 362.7 MB Notification: Performance of SimCode: time 1.944e-06/0.9539, allocations: 4 kB / 0.5049 GB, free: 15.88 MB / 362.7 MB Notification: Performance of Templates: time 0.3245/1.278, allocations: 77.98 MB / 0.5811 GB, free: 114.1 MB / 410.7 MB