Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smee.is.1.|smee.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.951/1.951, allocations: 205.8 MB / 218.9 MB, free: 9.262 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.707e-05/3.729e-05, allocations: 4 kB / 269.4 MB, free: 6.383 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08408/0.08414, allocations: 47.57 MB / 316.9 MB, free: 6.723 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3785/0.4627, allocations: 109.9 MB / 426.8 MB, free: 10.64 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002901/0.463, allocations: 88.5 kB / 426.9 MB, free: 10.59 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2152/0.6782, allocations: 52.97 MB / 479.9 MB, free: 12.3 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.958e-06/0.6783, allocations: 4 kB / 479.9 MB, free: 12.3 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000287/0.6786, allocations: 71.88 kB / 480 MB, free: 12.23 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.007885/0.6865, allocations: 2.585 MB / 482.6 MB, free: 9.586 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.047e-05/0.6866, allocations: 15.92 kB / 482.6 MB, free: 9.57 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001661/0.6882, allocations: 344.1 kB / 482.9 MB, free: 9.23 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005716/0.694, allocations: 1.904 MB / 484.8 MB, free: 7.27 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000249/0.6943, allocations: 189 kB / 485 MB, free: 7.082 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006777/0.695, allocations: 256.2 kB / 485.3 MB, free: 6.832 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008485/0.7035, allocations: 3.176 MB / 488.4 MB, free: 3.512 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001032/0.7036, allocations: 7.906 kB / 488.4 MB, free: 3.504 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004/0.704, allocations: 108 kB / 488.5 MB, free: 3.398 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001767/0.7042, allocations: 116.9 kB / 488.7 MB, free: 3.281 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006703/0.7109, allocations: 2.489 MB / 491.1 MB, free: 0.7852 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02395/0.7349, allocations: 10.49 MB / 0.4899 GB, free: 5.941 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002912/0.7379, allocations: 1.396 MB / 0.4912 GB, free: 4.477 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001673/0.7396, allocations: 0.7496 MB / 0.492 GB, free: 3.723 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000453/0.7401, allocations: 219.1 kB / 0.4922 GB, free: 3.473 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.163e-05/0.7401, allocations: 40.22 kB / 0.4922 GB, free: 3.426 MB / 410.7 MB Notification: Performance of pre-optimization done (n=103): time 4.938e-06/0.7402, allocations: 0 / 0.4922 GB, free: 3.426 MB / 410.7 MB Notification: Performance of matching and sorting (n=131): time 0.01951/0.7597, allocations: 6.155 MB / 0.4982 GB, free: 13.21 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.708e-05/0.7598, allocations: 68.72 kB / 0.4983 GB, free: 13.13 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003498/0.7633, allocations: 1.534 MB / 0.4998 GB, free: 11.6 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002824/0.7636, allocations: 45.7 kB / 0.4998 GB, free: 11.55 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001382/0.765, allocations: 1.271 MB / 0.5011 GB, free: 10.26 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006532/0.7657, allocations: 453.4 kB / 0.5015 GB, free: 9.809 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001515/0.7659, allocations: 36 kB / 0.5016 GB, free: 9.773 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002492/0.7661, allocations: 369.9 kB / 0.5019 GB, free: 9.406 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001751/0.7679, allocations: 0.7771 MB / 0.5027 GB, free: 8.629 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002271/0.7702, allocations: 1.281 MB / 0.5039 GB, free: 7.113 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002295/0.7725, allocations: 1 MB / 0.5049 GB, free: 6.113 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.081e-05/0.7726, allocations: 7.953 kB / 0.5049 GB, free: 6.105 MB / 426.7 MB Notification: Performance of matching and sorting (n=211) (initialization): time 0.005878/0.7785, allocations: 2.44 MB / 0.5073 GB, free: 3.645 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.547e-05/0.7785, allocations: 12 kB / 0.5073 GB, free: 3.633 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.761e-05/0.7786, allocations: 20.03 kB / 0.5073 GB, free: 3.613 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008542/0.7794, allocations: 247.2 kB / 0.5076 GB, free: 3.359 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002198/0.7817, allocations: 439.3 kB / 0.508 GB, free: 2.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2331/1.015, allocations: 2.987 MB / 0.5109 GB, free: 108 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002064/1.017, allocations: 133.6 kB / 0.511 GB, free: 108 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002793/1.017, allocations: 77.25 kB / 0.5111 GB, free: 108 MB / 426.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 (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.0003958/1.018, allocations: 207.4 kB / 0.5113 GB, free: 107.9 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004606/1.018, allocations: 189.8 kB / 0.5115 GB, free: 107.9 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004843/1.023, allocations: 2.097 MB / 0.5135 GB, free: 107.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-05/1.023, allocations: 12.09 kB / 0.5135 GB, free: 107.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.609e-06/1.023, allocations: 2.625 kB / 0.5135 GB, free: 107.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.262e-05/1.023, allocations: 7.781 kB / 0.5135 GB, free: 107.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01142/1.035, allocations: 4.82 MB / 0.5182 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.305e-05/1.035, allocations: 2.094 kB / 0.5182 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001711/1.036, allocations: 290.8 kB / 0.5185 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007724/1.037, allocations: 200.5 kB / 0.5187 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001621/1.037, allocations: 26.34 kB / 0.5187 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00269/1.04, allocations: 2.97 MB / 0.5216 GB, free: 104.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.317e-06/1.04, allocations: 5.531 kB / 0.5216 GB, free: 104.8 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006504/1.047, allocations: 3.356 MB / 0.5249 GB, free: 104.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001236/1.048, allocations: 443.8 kB / 0.5253 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003247/1.048, allocations: 22.19 kB / 0.5254 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001253/1.049, allocations: 97.48 kB / 0.5255 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002211/1.05, allocations: 85.3 kB / 0.5255 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001393/1.05, allocations: 45.95 kB / 0.5256 GB, free: 104.2 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002329/1.052, allocations: 1.167 MB / 0.5267 GB, free: 104.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.839e-06/1.052, allocations: 1.375 kB / 0.5267 GB, free: 104.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0025/1.055, allocations: 0.5236 MB / 0.5272 GB, free: 104.1 MB / 426.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 (129): * Single equations (assignments): 125 * 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.0007419/1.055, allocations: 419.1 kB / 0.5276 GB, free: 104 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004307/1.06, allocations: 2.321 MB / 0.5299 GB, free: 103.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.209e-06/1.06, allocations: 0 / 0.5299 GB, free: 103.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002365/1.062, allocations: 1.335 MB / 0.5312 GB, free: 103.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00269/1.065, allocations: 460 kB / 0.5316 GB, free: 103.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009115/1.074, allocations: 3.931 MB / 0.5355 GB, free: 102.2 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002339/1.077, allocations: 2.061 MB / 0.5375 GB, free: 101.5 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002447/1.079, allocations: 0.5189 MB / 0.538 GB, free: 101.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006732/1.08, allocations: 141.8 kB / 0.5381 GB, free: 101.5 MB / 426.7 MB Notification: Performance of SimCode: time 2e-06/1.08, allocations: 0 / 0.5381 GB, free: 101.5 MB / 426.7 MB Notification: Performance of Templates: time 0.06681/1.147, allocations: 27.5 MB / 0.565 GB, free: 99.8 MB / 426.7 MB