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_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadModel(Modelica): time 2.057/2.057, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.181e-05/3.191e-05, allocations: 11.78 kB / 292.2 MB, free: 8.309 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08964/0.0897, allocations: 50.41 MB / 342.6 MB, free: 5.879 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4335/0.5232, allocations: 137.1 MB / 479.7 MB, free: 5.809 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003205/0.5236, allocations: 101.9 kB / 479.8 MB, free: 5.754 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.495/2.019, allocations: 321.4 MB / 0.7825 GB, free: 45.35 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.948e-06/2.019, allocations: 0 / 0.7825 GB, free: 45.35 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005442/2.02, allocations: 212.6 kB / 0.7827 GB, free: 45.33 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: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.03317/2.053, allocations: 8.422 MB / 0.7909 GB, free: 42.39 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/2.053, allocations: 14.81 kB / 0.7909 GB, free: 42.38 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03015/2.083, allocations: 3.907 MB / 0.7947 GB, free: 41.57 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02122/2.104, allocations: 7.338 MB / 0.8019 GB, free: 37.88 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006978/2.105, allocations: 0.6695 MB / 0.8025 GB, free: 37.58 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00328/2.108, allocations: 0.8857 MB / 0.8034 GB, free: 37.28 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03657/2.145, allocations: 14.61 MB / 0.8177 GB, free: 27.5 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003183/2.145, allocations: 23.64 kB / 0.8177 GB, free: 27.48 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002205/2.147, allocations: 391.1 kB / 0.8181 GB, free: 27.1 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007137/2.148, allocations: 0.6872 MB / 0.8187 GB, free: 26.5 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02958/2.178, allocations: 12.39 MB / 0.8308 GB, free: 15.15 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3985/2.576, allocations: 47.93 MB / 0.8776 GB, free: 37.5 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0277/2.604, allocations: 28.39 MB / 0.9054 GB, free: 28.32 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006538/2.611, allocations: 2.996 MB / 0.9083 GB, free: 28.29 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005934/2.611, allocations: 240.8 kB / 0.9085 GB, free: 28.09 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.013e-05/2.611, allocations: 75.14 kB / 0.9086 GB, free: 28.05 MB / 474.7 MB Notification: Performance of pre-optimization done (n=386): time 9.355e-06/2.611, allocations: 6.188 kB / 0.9086 GB, free: 28.05 MB / 474.7 MB Notification: Performance of matching and sorting (n=394): time 0.0254/2.637, allocations: 11.3 MB / 0.9196 GB, free: 26.49 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.395e-05/2.637, allocations: 94.95 kB / 0.9197 GB, free: 26.42 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00627/2.643, allocations: 3.123 MB / 0.9228 GB, free: 26.14 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006932/2.644, allocations: 89.52 kB / 0.9229 GB, free: 26.11 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00289/2.647, allocations: 4.025 MB / 0.9268 GB, free: 24.04 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001534/2.648, allocations: 1.345 MB / 0.9281 GB, free: 23.2 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005821/2.649, allocations: 122.9 kB / 0.9282 GB, free: 23.2 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001192/2.65, allocations: 0.5487 MB / 0.9288 GB, free: 38.89 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005522/2.656, allocations: 2.503 MB / 0.9312 GB, free: 38.87 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006998/2.663, allocations: 4.926 MB / 0.936 GB, free: 35.85 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007269/2.67, allocations: 3.724 MB / 0.9397 GB, free: 35.79 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.484e-05/2.67, allocations: 26.72 kB / 0.9397 GB, free: 35.79 MB / 490.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01967/2.69, allocations: 8.246 MB / 0.9477 GB, free: 35.36 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.274e-05/2.69, allocations: 41.78 kB / 0.9478 GB, free: 35.36 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001195/2.69, allocations: 86.33 kB / 0.9479 GB, free: 35.36 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003302/2.693, allocations: 0.8882 MB / 0.9487 GB, free: 35.34 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007094/2.701, allocations: 1.356 MB / 0.95 GB, free: 35.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0143/2.715, allocations: 7.52 MB / 0.9574 GB, free: 33.81 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005871/2.721, allocations: 336.7 kB / 0.9577 GB, free: 33.78 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001274/2.722, allocations: 308.7 kB / 0.958 GB, free: 33.78 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 377 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (716): * Single equations (assignments): 714 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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: 1 {(8,65.6%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001218/2.723, allocations: 0.4951 MB / 0.9585 GB, free: 33.62 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001109/2.724, allocations: 408.5 kB / 0.9589 GB, free: 33.41 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01323/2.738, allocations: 5.854 MB / 0.9646 GB, free: 33.12 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.936e-05/2.738, allocations: 42.12 kB / 0.9646 GB, free: 33.12 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.986e-05/2.738, allocations: 11.09 kB / 0.9646 GB, free: 33.12 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.195e-05/2.738, allocations: 25.23 kB / 0.9647 GB, free: 33.12 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03503/2.773, allocations: 15.3 MB / 0.9796 GB, free: 28.25 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.398e-05/2.773, allocations: 9.094 kB / 0.9796 GB, free: 28.25 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004246/2.777, allocations: 0.6864 MB / 0.9803 GB, free: 28.22 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002743/2.78, allocations: 0.688 MB / 0.981 GB, free: 28.07 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005778/2.781, allocations: 88.72 kB / 0.9811 GB, free: 28.02 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0109/2.792, allocations: 6.14 MB / 0.987 GB, free: 24.53 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/2.792, allocations: 10.59 kB / 0.9871 GB, free: 24.53 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0172/2.809, allocations: 8.927 MB / 0.9958 GB, free: 20.32 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002845/2.812, allocations: 0.8745 MB / 0.9966 GB, free: 19.8 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001073/2.813, allocations: 74.23 kB / 0.9967 GB, free: 19.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003185/2.816, allocations: 198 kB / 0.9969 GB, free: 19.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007907/2.817, allocations: 267.3 kB / 0.9971 GB, free: 19.65 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003663/2.817, allocations: 109.7 kB / 0.9972 GB, free: 19.63 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005168/2.822, allocations: 2.329 MB / 0.9995 GB, free: 18.74 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.979e-06/2.822, allocations: 0 / 0.9995 GB, free: 18.74 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008327/2.831, allocations: 1.603 MB / 1.001 GB, free: 18.56 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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 (378): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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: 1 {(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001519/2.832, allocations: 0.7009 MB / 1.002 GB, free: 18.28 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01313/2.846, allocations: 6.216 MB / 1.008 GB, free: 15.54 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.113e-06/2.846, allocations: 0 / 1.008 GB, free: 15.54 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00594/2.852, allocations: 2.799 MB / 1.011 GB, free: 12.99 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005351/2.857, allocations: 0.8485 MB / 1.011 GB, free: 12.32 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0373/2.894, allocations: 13.39 MB / 1.024 GB, free: 348 kB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01534/2.91, allocations: 6.271 MB / 1.031 GB, free: 12.02 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.007281/2.917, allocations: 1.862 MB / 1.032 GB, free: 10.82 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001517/2.919, allocations: 343.2 kB / 1.033 GB, free: 10.5 MB / 0.4948 GB Notification: Performance of SimCode: time 1.772e-06/2.919, allocations: 0 / 1.033 GB, free: 10.5 MB / 0.4948 GB Notification: Performance of Templates: time 0.4684/3.387, allocations: 62.61 MB / 1.094 GB, free: 96.97 MB / 0.4948 GB