Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadModel(Modelica): time 1.822/1.822, allocations: 205.8 MB / 218.9 MB, free: 9.27 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.454e-05/3.465e-05, allocations: 0 / 269.4 MB, free: 6.367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08437/0.08444, allocations: 47.57 MB / 317 MB, free: 6.719 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4145/0.499, allocations: 135.8 MB / 452.8 MB, free: 0.9375 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002764/0.4993, allocations: 96.81 kB / 452.9 MB, free: 0.8867 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.475/1.975, allocations: 331.2 MB / 0.7657 GB, free: 41.95 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.19e-06/1.975, allocations: 4 kB / 0.7657 GB, free: 41.95 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005057/1.975, allocations: 218.1 kB / 0.766 GB, free: 41.93 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.03367/2.009, allocations: 8.746 MB / 0.7745 GB, free: 39.09 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/2.009, allocations: 11.64 kB / 0.7745 GB, free: 39.09 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0493/2.058, allocations: 5.851 MB / 0.7802 GB, free: 38.55 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0209/2.079, allocations: 7.439 MB / 0.7875 GB, free: 35.19 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009702/2.08, allocations: 0.7212 MB / 0.7882 GB, free: 34.87 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003972/2.084, allocations: 0.9357 MB / 0.7891 GB, free: 34.57 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04422/2.128, allocations: 16.72 MB / 0.8054 GB, free: 22.16 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003045/2.129, allocations: 15.81 kB / 0.8054 GB, free: 22.15 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001976/2.131, allocations: 411.1 kB / 0.8058 GB, free: 21.76 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007278/2.132, allocations: 0.7196 MB / 0.8065 GB, free: 21.12 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03548/2.167, allocations: 15.54 MB / 0.8217 GB, free: 7.117 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3931/2.56, allocations: 52.77 MB / 0.8733 GB, free: 39.11 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04378/2.604, allocations: 41.32 MB / 0.9136 GB, free: 38.53 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01397/2.618, allocations: 7.013 MB / 0.9204 GB, free: 38.43 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05063/2.669, allocations: 21.71 MB / 0.9416 GB, free: 34.37 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.113e-05/2.669, allocations: 98.22 kB / 0.9417 GB, free: 34.28 MB / 474.7 MB Notification: Performance of pre-optimization done (n=688): time 1.226e-05/2.669, allocations: 3.75 kB / 0.9417 GB, free: 34.28 MB / 474.7 MB Notification: Performance of matching and sorting (n=696): time 0.05013/2.719, allocations: 22.74 MB / 0.9639 GB, free: 24.36 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.04e-05/2.719, allocations: 110.5 kB / 0.9641 GB, free: 24.29 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004629/2.724, allocations: 2.437 MB / 0.9664 GB, free: 23.36 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001191/2.725, allocations: 118.8 kB / 0.9665 GB, free: 23.26 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002033/2.727, allocations: 3.637 MB / 0.9701 GB, free: 20.56 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002742/2.73, allocations: 2.29 MB / 0.9723 GB, free: 18.78 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006918/2.73, allocations: 127.4 kB / 0.9725 GB, free: 18.68 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005796/2.731, allocations: 0.6084 MB / 0.9731 GB, free: 18.25 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0088/2.74, allocations: 4.457 MB / 0.9774 GB, free: 16.41 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01093/2.751, allocations: 6.22 MB / 0.9835 GB, free: 12.45 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01166/2.763, allocations: 5.565 MB / 0.9889 GB, free: 10.18 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.639e-05/2.763, allocations: 18.78 kB / 0.9889 GB, free: 10.18 MB / 474.7 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.03084/2.794, allocations: 13.39 MB / 1.002 GB, free: 3.246 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.452e-05/2.794, allocations: 28 kB / 1.002 GB, free: 3.219 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001151/2.794, allocations: 56 kB / 1.002 GB, free: 3.164 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01187/2.806, allocations: 4.04 MB / 1.006 GB, free: 0 / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01565/2.821, allocations: 1.676 MB / 1.008 GB, free: 0 / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01671/2.838, allocations: 9.646 MB / 1.017 GB, free: 7.27 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005864/2.844, allocations: 344.8 kB / 1.017 GB, free: 7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001294/2.845, allocations: 322.4 kB / 1.018 GB, free: 6.711 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 243 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (647): * Single equations (assignments): 595 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.001621/2.847, allocations: 481.5 kB / 1.018 GB, free: 6.32 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001428/2.848, allocations: 450.4 kB / 1.019 GB, free: 5.879 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3516/3.2, allocations: 13.98 MB / 1.032 GB, free: 100.6 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002515/3.2, allocations: 188.3 kB / 1.032 GB, free: 100.6 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.238e-05/3.2, allocations: 0 / 1.032 GB, free: 100.6 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001184/3.2, allocations: 27.52 kB / 1.032 GB, free: 100.6 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05613/3.257, allocations: 24.66 MB / 1.057 GB, free: 99.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-05/3.257, allocations: 8.391 kB / 1.057 GB, free: 99.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005356/3.262, allocations: 0.8129 MB / 1.057 GB, free: 99.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009957/3.272, allocations: 3.888 MB / 1.061 GB, free: 99.72 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001239/3.273, allocations: 153.6 kB / 1.061 GB, free: 99.72 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01434/3.288, allocations: 9.508 MB / 1.071 GB, free: 97.61 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.812e-06/3.288, allocations: 3.75 kB / 1.071 GB, free: 97.61 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03786/3.326, allocations: 19.38 MB / 1.09 GB, free: 91.77 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00441/3.33, allocations: 1.479 MB / 1.091 GB, free: 91.19 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00125/3.331, allocations: 112 kB / 1.091 GB, free: 91.11 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003428/3.335, allocations: 271.2 kB / 1.091 GB, free: 91.04 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001247/3.336, allocations: 0.5071 MB / 1.092 GB, free: 90.93 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006981/3.337, allocations: 193.1 kB / 1.092 GB, free: 90.89 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003332/3.34, allocations: 1.828 MB / 1.094 GB, free: 90.17 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.78e-07/3.34, allocations: 0 / 1.094 GB, free: 90.17 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007995/3.348, allocations: 1.723 MB / 1.095 GB, free: 89.98 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 1 (smpmQS.phiMechanical) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (438): * Single equations (assignments): 386 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.002107/3.35, allocations: 0.6661 MB / 1.096 GB, free: 89.76 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02401/3.374, allocations: 10.91 MB / 1.107 GB, free: 85.65 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.405e-06/3.374, allocations: 0 / 1.107 GB, free: 85.65 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01344/3.388, allocations: 5.617 MB / 1.112 GB, free: 83.5 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006164/3.394, allocations: 0.8487 MB / 1.113 GB, free: 83.25 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04282/3.437, allocations: 17.96 MB / 1.131 GB, free: 74.67 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0115/3.448, allocations: 6.528 MB / 1.137 GB, free: 69.74 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.006944/3.455, allocations: 1.566 MB / 1.139 GB, free: 68.66 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001924/3.457, allocations: 333.5 kB / 1.139 GB, free: 68.36 MB / 490.7 MB Notification: Performance of SimCode: time 1.815e-06/3.457, allocations: 0 / 1.139 GB, free: 68.36 MB / 490.7 MB Notification: Performance of Templates: time 0.5031/3.96, allocations: 104.4 MB / 1.241 GB, free: 93.64 MB / 490.7 MB