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_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.909/1.909, allocations: 194.9 MB / 208 MB, free: 3.238 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.988e-05/3.012e-05, allocations: 8 kB / 255.4 MB, free: 2.688 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07663/0.07668, allocations: 44.49 MB / 299.9 MB, free: 6.125 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3536/0.4303, allocations: 105 MB / 404.9 MB, free: 16.04 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002497/0.4306, allocations: 87.59 kB / 405 MB, free: 16.03 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1981/0.6287, allocations: 52.84 MB / 457.8 MB, free: 13.5 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.162e-06/0.6288, allocations: 0 / 457.8 MB, free: 13.5 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002623/0.6291, allocations: 74.5 kB / 457.9 MB, free: 13.43 MB / 346.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.007519/0.6366, allocations: 2.575 MB / 460.5 MB, free: 10.98 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.6367, allocations: 8.031 kB / 460.5 MB, free: 10.97 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001675/0.6384, allocations: 348.1 kB / 460.8 MB, free: 10.62 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005559/0.644, allocations: 1.898 MB / 462.7 MB, free: 9.141 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000229/0.6442, allocations: 202.6 kB / 462.9 MB, free: 9.016 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007106/0.6449, allocations: 240.7 kB / 463.2 MB, free: 8.859 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008266/0.6532, allocations: 3.147 MB / 466.3 MB, free: 5.645 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.531e-05/0.6534, allocations: 15.84 kB / 466.3 MB, free: 5.629 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000371/0.6537, allocations: 108 kB / 466.4 MB, free: 5.523 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001701/0.6539, allocations: 116.9 kB / 466.5 MB, free: 5.406 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006861/0.6608, allocations: 2.478 MB / 469 MB, free: 2.922 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02327/0.6841, allocations: 10.45 MB / 479.5 MB, free: 8.129 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002838/0.687, allocations: 1.4 MB / 480.9 MB, free: 6.66 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003509/0.6906, allocations: 0.7457 MB / 481.6 MB, free: 5.91 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007773/0.6914, allocations: 215.1 kB / 481.8 MB, free: 5.664 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.238e-05/0.6915, allocations: 43.56 kB / 481.9 MB, free: 5.613 MB / 362.7 MB Notification: Performance of pre-optimization done (n=102): time 8.288e-06/0.6915, allocations: 0 / 481.9 MB, free: 5.613 MB / 362.7 MB Notification: Performance of matching and sorting (n=130): time 0.03578/0.7273, allocations: 6.127 MB / 488 MB, free: 15.42 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.7275, allocations: 76.64 kB / 488.1 MB, free: 15.33 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006368/0.7339, allocations: 1.522 MB / 489.6 MB, free: 13.81 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000388/0.7343, allocations: 49.7 kB / 489.6 MB, free: 13.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002296/0.7366, allocations: 1.256 MB / 490.9 MB, free: 12.48 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009838/0.7376, allocations: 457.5 kB / 491.3 MB, free: 12.03 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002643/0.7379, allocations: 36 kB / 491.4 MB, free: 12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003993/0.7383, allocations: 365.9 kB / 491.7 MB, free: 11.63 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003374/0.7417, allocations: 0.7732 MB / 492.5 MB, free: 10.86 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004128/0.7459, allocations: 1.273 MB / 493.8 MB, free: 9.363 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004287/0.7502, allocations: 1.004 MB / 494.8 MB, free: 8.359 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.972e-05/0.7503, allocations: 4 kB / 494.8 MB, free: 8.355 MB / 378.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.01132/0.7616, allocations: 2.432 MB / 497.2 MB, free: 5.902 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.332e-05/0.7618, allocations: 12.12 kB / 497.2 MB, free: 5.891 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.554e-05/0.7618, allocations: 24 kB / 497.2 MB, free: 5.867 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001562/0.7634, allocations: 239.3 kB / 497.5 MB, free: 5.621 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004413/0.7679, allocations: 435.3 kB / 497.9 MB, free: 5.195 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006949/0.7748, allocations: 2.99 MB / 0.4892 GB, free: 1.934 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002064/0.777, allocations: 135.7 kB / 0.4893 GB, free: 1.801 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002537/0.7773, allocations: 75.92 kB / 0.4894 GB, free: 1.727 MB / 378.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 (205): * Single equations (assignments): 201 * 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.0004547/0.7777, allocations: 208.6 kB / 0.4896 GB, free: 1.516 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004601/0.7782, allocations: 185.8 kB / 0.4897 GB, free: 1.332 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004823/0.783, allocations: 2.089 MB / 0.4918 GB, free: 15.22 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.796e-05/0.7831, allocations: 12 kB / 0.4918 GB, free: 15.21 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.893e-06/0.7831, allocations: 4 kB / 0.4918 GB, free: 15.2 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.781e-05/0.7831, allocations: 3.984 kB / 0.4918 GB, free: 15.2 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01262/0.7958, allocations: 4.811 MB / 0.4965 GB, free: 10.28 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.018e-05/0.7958, allocations: 0 / 0.4965 GB, free: 10.28 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001702/0.7975, allocations: 283.6 kB / 0.4968 GB, free: 10 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007678/0.7983, allocations: 207.5 kB / 0.497 GB, free: 9.785 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000134/0.7985, allocations: 28 kB / 0.497 GB, free: 9.758 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003541/0.802, allocations: 2.963 MB / 0.4999 GB, free: 6.531 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.519e-06/0.8021, allocations: 4 kB / 0.4999 GB, free: 6.527 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006908/0.809, allocations: 3.338 MB / 0.5031 GB, free: 3.078 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001356/0.8104, allocations: 442.6 kB / 0.5036 GB, free: 2.625 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003289/0.8107, allocations: 27.95 kB / 0.5036 GB, free: 2.598 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001234/0.812, allocations: 95.94 kB / 0.5037 GB, free: 2.504 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002353/0.8122, allocations: 84.83 kB / 0.5038 GB, free: 2.422 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001446/0.8124, allocations: 35.98 kB / 0.5038 GB, free: 2.387 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002653/0.815, allocations: 1.161 MB / 0.5049 GB, free: 1.234 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.803e-06/0.8151, allocations: 0 / 0.5049 GB, free: 1.234 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002529/0.8176, allocations: 0.5351 MB / 0.5055 GB, free: 0.6992 MB / 394.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 (128): * Single equations (assignments): 124 * 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.0007797/0.8184, allocations: 419.2 kB / 0.5059 GB, free: 300 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.2192/1.038, allocations: 2.314 MB / 0.5081 GB, free: 93.04 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.343e-06/1.038, allocations: 0.5 kB / 0.5081 GB, free: 93.04 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002574/1.04, allocations: 1.331 MB / 0.5094 GB, free: 92.63 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002632/1.043, allocations: 445.2 kB / 0.5098 GB, free: 92.62 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008952/1.052, allocations: 3.911 MB / 0.5137 GB, free: 91.71 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002642/1.055, allocations: 2.063 MB / 0.5157 GB, free: 90.96 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002641/1.057, allocations: 0.5156 MB / 0.5162 GB, free: 90.94 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007193/1.058, allocations: 143.1 kB / 0.5163 GB, free: 90.94 MB / 394.7 MB Notification: Performance of SimCode: time 1.696e-06/1.058, allocations: 1.156 kB / 0.5163 GB, free: 90.94 MB / 394.7 MB Notification: Performance of Templates: time 0.06776/1.126, allocations: 27.31 MB / 0.543 GB, free: 89.46 MB / 394.7 MB