Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 2.03/2.03, allocations: 225.8 MB / 239.4 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.977e-05/2.984e-05, allocations: 4 kB / 292.7 MB, free: 8.352 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09042/0.09047, allocations: 50.41 MB / 343.1 MB, free: 5.918 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3922/0.4827, allocations: 110.4 MB / 453.5 MB, free: 260 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002462/0.483, allocations: 84.52 kB / 453.5 MB, free: 216 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2046/0.6875, allocations: 53.16 MB / 0.4948 GB, free: 14.87 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.979e-06/0.6876, allocations: 0 / 0.4948 GB, free: 14.87 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002123/0.6878, allocations: 75.88 kB / 0.4949 GB, free: 14.79 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.006989/0.6948, allocations: 2.597 MB / 0.4974 GB, free: 12.14 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.6949, allocations: 8.031 kB / 0.4974 GB, free: 12.13 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001292/0.6962, allocations: 348.1 kB / 0.4978 GB, free: 11.79 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005587/0.7018, allocations: 1.908 MB / 0.4996 GB, free: 9.82 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000232/0.7021, allocations: 197 kB / 0.4998 GB, free: 9.625 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006086/0.7027, allocations: 243.9 kB / 0.5001 GB, free: 9.387 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007917/0.7106, allocations: 3.157 MB / 0.5031 GB, free: 6.086 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.306e-05/0.7108, allocations: 7.906 kB / 0.5032 GB, free: 6.078 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003684/0.7111, allocations: 112.3 kB / 0.5033 GB, free: 5.969 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001753/0.7113, allocations: 124.8 kB / 0.5034 GB, free: 5.844 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006731/0.7181, allocations: 2.482 MB / 0.5058 GB, free: 3.355 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0228/0.7409, allocations: 10.48 MB / 0.516 GB, free: 8.527 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002802/0.7438, allocations: 1.409 MB / 0.5174 GB, free: 7.051 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001587/0.7454, allocations: 0.7573 MB / 0.5182 GB, free: 6.293 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000429/0.7458, allocations: 215.2 kB / 0.5184 GB, free: 6.047 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.426e-05/0.7459, allocations: 47.56 kB / 0.5184 GB, free: 5.992 MB / 442.7 MB Notification: Performance of pre-optimization done (n=104): time 4.469e-06/0.7459, allocations: 4 kB / 0.5184 GB, free: 5.988 MB / 442.7 MB Notification: Performance of matching and sorting (n=132): time 0.2551/1.001, allocations: 6.157 MB / 0.5244 GB, free: 109.9 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.968e-05/1.001, allocations: 67.31 kB / 0.5245 GB, free: 109.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003433/1.005, allocations: 1.532 MB / 0.526 GB, free: 109.7 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002265/1.005, allocations: 48.34 kB / 0.526 GB, free: 109.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009946/1.006, allocations: 1.268 MB / 0.5273 GB, free: 109.5 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004316/1.006, allocations: 455.2 kB / 0.5277 GB, free: 109.2 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001277/1.006, allocations: 40.09 kB / 0.5277 GB, free: 109.2 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001519/1.007, allocations: 370 kB / 0.5281 GB, free: 108.9 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001577/1.008, allocations: 0.776 MB / 0.5288 GB, free: 108.9 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001794/1.01, allocations: 1.276 MB / 0.5301 GB, free: 108.3 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001927/1.012, allocations: 0.9995 MB / 0.5311 GB, free: 108.3 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.458e-05/1.012, allocations: 9.812 kB / 0.5311 GB, free: 108.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=211) (initialization): time 0.005337/1.017, allocations: 2.442 MB / 0.5335 GB, free: 108.1 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.733e-05/1.017, allocations: 12.22 kB / 0.5335 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.036e-05/1.017, allocations: 16.75 kB / 0.5335 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007957/1.018, allocations: 244.5 kB / 0.5337 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002151/1.02, allocations: 440.5 kB / 0.5341 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002651/1.023, allocations: 2.989 MB / 0.5371 GB, free: 105.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001921/1.025, allocations: 129.7 kB / 0.5372 GB, free: 105.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002096/1.025, allocations: 72.84 kB / 0.5373 GB, free: 105.6 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (206): * Single equations (assignments): 202 * 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.0003638/1.026, allocations: 208.7 kB / 0.5375 GB, free: 105.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003776/1.026, allocations: 191.2 kB / 0.5376 GB, free: 105.4 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004517/1.031, allocations: 2.102 MB / 0.5397 GB, free: 105.3 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-05/1.031, allocations: 12.94 kB / 0.5397 GB, free: 105.3 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/1.031, allocations: 9.578 kB / 0.5397 GB, free: 105.3 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.461e-05/1.031, allocations: 10.22 kB / 0.5397 GB, free: 105.3 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0109/1.042, allocations: 4.83 MB / 0.5444 GB, free: 104.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-05/1.042, allocations: 5 kB / 0.5444 GB, free: 104.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001607/1.043, allocations: 288.2 kB / 0.5447 GB, free: 104.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006795/1.044, allocations: 207 kB / 0.5449 GB, free: 104.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001117/1.044, allocations: 32.91 kB / 0.5449 GB, free: 104.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002535/1.047, allocations: 2.964 MB / 0.5478 GB, free: 102.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.7e-06/1.047, allocations: 2.969 kB / 0.5478 GB, free: 102.2 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005709/1.052, allocations: 3.365 MB / 0.5511 GB, free: 101.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009913/1.053, allocations: 441.1 kB / 0.5516 GB, free: 101.5 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003437/1.054, allocations: 30.05 kB / 0.5516 GB, free: 101.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001318/1.055, allocations: 100.3 kB / 0.5517 GB, free: 101.5 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001943/1.055, allocations: 87.45 kB / 0.5518 GB, free: 101.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001264/1.055, allocations: 34.09 kB / 0.5518 GB, free: 101.5 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002153/1.058, allocations: 1.176 MB / 0.5529 GB, free: 101.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.06e-07/1.058, allocations: 7.109 kB / 0.5529 GB, free: 101.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002034/1.06, allocations: 0.5211 MB / 0.5535 GB, free: 101.4 MB / 442.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 (130): * Single equations (assignments): 126 * 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.0006274/1.06, allocations: 419.5 kB / 0.5539 GB, free: 101.2 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003818/1.064, allocations: 2.325 MB / 0.5561 GB, free: 100.4 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.192e-06/1.064, allocations: 0 / 0.5561 GB, free: 100.4 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002072/1.066, allocations: 1.341 MB / 0.5574 GB, free: 99.69 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002347/1.069, allocations: 449.7 kB / 0.5579 GB, free: 99.57 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007563/1.076, allocations: 3.943 MB / 0.5617 GB, free: 97.99 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002054/1.078, allocations: 2.062 MB / 0.5637 GB, free: 97.05 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002249/1.081, allocations: 0.5167 MB / 0.5642 GB, free: 97 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006093/1.081, allocations: 142.7 kB / 0.5644 GB, free: 96.98 MB / 442.7 MB Notification: Performance of SimCode: time 2.017e-06/1.081, allocations: 0 / 0.5644 GB, free: 96.98 MB / 442.7 MB Notification: Performance of Templates: time 0.07988/1.161, allocations: 27.54 MB / 0.5913 GB, free: 94.98 MB / 442.7 MB