Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.976/1.976, allocations: 225.8 MB / 238.8 MB, free: 11.14 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.256e-05/2.263e-05, allocations: 0 / 292.2 MB, free: 8.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08993/0.08998, allocations: 50.41 MB / 342.6 MB, free: 5.895 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4673/0.5573, allocations: 164.1 MB / 0.4948 GB, free: 11.34 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003169/0.5577, allocations: 107.9 kB / 0.4949 GB, free: 11.28 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.993/2.55, allocations: 386.2 MB / 0.872 GB, free: 43.08 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.335e-06/2.55, allocations: 0 / 0.872 GB, free: 43.08 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001643/2.552, allocations: 289.2 kB / 0.8723 GB, free: 43.05 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.06917/2.621, allocations: 11.02 MB / 0.883 GB, free: 39.57 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/2.621, allocations: 9.844 kB / 0.8831 GB, free: 39.57 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03403/2.655, allocations: 4.476 MB / 0.8874 GB, free: 38.89 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02856/2.684, allocations: 9.537 MB / 0.8967 GB, free: 37.71 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001078/2.685, allocations: 0.8992 MB / 0.8976 GB, free: 37.68 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004662/2.69, allocations: 1.19 MB / 0.8988 GB, free: 37.66 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05252/2.742, allocations: 18.41 MB / 0.9168 GB, free: 36.18 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006029/2.743, allocations: 30.69 kB / 0.9168 GB, free: 36.17 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003943/2.747, allocations: 0.5078 MB / 0.9173 GB, free: 36.17 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009773/2.748, allocations: 0.8224 MB / 0.9181 GB, free: 36.14 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04125/2.789, allocations: 15.34 MB / 0.9331 GB, free: 36.09 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1263/2.916, allocations: 61.01 MB / 0.9926 GB, free: 8.977 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03522/2.951, allocations: 32.94 MB / 1.025 GB, free: 10.31 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008178/2.959, allocations: 3.672 MB / 1.028 GB, free: 7.84 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02222/2.981, allocations: 8.802 MB / 1.037 GB, free: 0.7891 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.926e-05/2.981, allocations: 73.41 kB / 1.037 GB, free: 0.707 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=362): time 7.8e-06/2.981, allocations: 0 / 1.037 GB, free: 0.707 MB / 0.4948 GB Notification: Performance of matching and sorting (n=404): time 0.04303/3.024, allocations: 14.3 MB / 1.051 GB, free: 5.043 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.501e-05/3.025, allocations: 90.58 kB / 1.051 GB, free: 4.941 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01047/3.035, allocations: 4.49 MB / 1.056 GB, free: 0.9531 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007053/3.036, allocations: 99.2 kB / 1.056 GB, free: 0.8516 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.3254/3.361, allocations: 5.662 MB / 1.061 GB, free: 86.75 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001847/3.363, allocations: 1.402 MB / 1.063 GB, free: 85.89 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007076/3.364, allocations: 141.6 kB / 1.063 GB, free: 85.89 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005423/3.364, allocations: 0.5837 MB / 1.063 GB, free: 85.57 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006907/3.371, allocations: 2.848 MB / 1.066 GB, free: 85.55 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009167/3.381, allocations: 5.893 MB / 1.072 GB, free: 81.72 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009575/3.39, allocations: 4.24 MB / 1.076 GB, free: 81.65 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002031/3.39, allocations: 31.44 kB / 1.076 GB, free: 81.65 MB / 0.5105 GB Notification: Performance of matching and sorting (n=896) (initialization): time 0.02437/3.415, allocations: 9.574 MB / 1.085 GB, free: 81.17 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001249/3.415, allocations: 51.06 kB / 1.085 GB, free: 81.17 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001789/3.415, allocations: 105.4 kB / 1.085 GB, free: 81.17 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003547/3.419, allocations: 0.9479 MB / 1.086 GB, free: 81.12 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008907/3.428, allocations: 1.634 MB / 1.088 GB, free: 81.12 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01462/3.442, allocations: 9.388 MB / 1.097 GB, free: 77.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007989/3.45, allocations: 427.4 kB / 1.098 GB, free: 77.11 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001567/3.452, allocations: 365.4 kB / 1.098 GB, free: 77.11 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 480 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (846): * Single equations (assignments): 840 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001496/3.453, allocations: 0.5684 MB / 1.098 GB, free: 76.93 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001515/3.455, allocations: 0.5379 MB / 1.099 GB, free: 76.65 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01503/3.47, allocations: 6.472 MB / 1.105 GB, free: 76.35 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-05/3.47, allocations: 45.61 kB / 1.105 GB, free: 76.34 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.217e-05/3.47, allocations: 7.844 kB / 1.105 GB, free: 76.34 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-05/3.47, allocations: 24.44 kB / 1.105 GB, free: 76.34 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03769/3.508, allocations: 15.91 MB / 1.121 GB, free: 75.49 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.518e-05/3.508, allocations: 3.812 kB / 1.121 GB, free: 75.49 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005341/3.513, allocations: 0.7694 MB / 1.122 GB, free: 75.49 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003131/3.517, allocations: 0.7744 MB / 1.122 GB, free: 75.44 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005659/3.517, allocations: 87.53 kB / 1.122 GB, free: 75.44 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01234/3.529, allocations: 8.555 MB / 1.131 GB, free: 71.46 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.797e-06/3.529, allocations: 6.969 kB / 1.131 GB, free: 71.46 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02027/3.55, allocations: 9.911 MB / 1.141 GB, free: 70.04 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003558/3.553, allocations: 1.088 MB / 1.142 GB, free: 69.65 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001585/3.555, allocations: 77.16 kB / 1.142 GB, free: 69.65 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004282/3.559, allocations: 234.7 kB / 1.142 GB, free: 69.65 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008139/3.56, allocations: 276 kB / 1.142 GB, free: 69.64 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004292/3.561, allocations: 121.3 kB / 1.142 GB, free: 69.64 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007648/3.568, allocations: 3.323 MB / 1.145 GB, free: 69.43 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.119e-06/3.568, allocations: 0 / 1.145 GB, free: 69.43 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01032/3.579, allocations: 1.982 MB / 1.147 GB, free: 69.43 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (384): * Single equations (assignments): 378 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(1,100.0%) 1,(8,62.5%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001639/3.58, allocations: 0.8424 MB / 1.148 GB, free: 69.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01538/3.596, allocations: 7.389 MB / 1.155 GB, free: 66.95 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.94e-06/3.596, allocations: 7.781 kB / 1.155 GB, free: 66.95 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.008303/3.604, allocations: 3.444 MB / 1.159 GB, free: 65.31 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009672/3.614, allocations: 1.256 MB / 1.16 GB, free: 64.95 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07846/3.692, allocations: 16.99 MB / 1.177 GB, free: 57.16 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0185/3.711, allocations: 7.62 MB / 1.184 GB, free: 51.48 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01046/3.721, allocations: 2.215 MB / 1.186 GB, free: 50.04 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002163/3.724, allocations: 421.8 kB / 1.187 GB, free: 49.66 MB / 0.5105 GB Notification: Performance of SimCode: time 1.957e-06/3.724, allocations: 0 / 1.187 GB, free: 49.66 MB / 0.5105 GB Notification: Performance of Templates: time 0.5354/4.259, allocations: 79.15 MB / 1.264 GB, free: 69.82 MB / 0.5105 GB