Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.654/1.654, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.42e-05/2.393e-05, allocations: 4 kB / 225 MB, free: 2.336 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2251/0.2252, allocations: 38.76 MB / 263.8 MB, free: 9.848 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.186/0.4113, allocations: 99.66 MB / 363.4 MB, free: 6.027 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004605/0.4118, allocations: 83.95 kB / 363.5 MB, free: 5.945 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3698/0.7816, allocations: 51.22 MB / 414.7 MB, free: 60.12 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.482e-06/0.7817, allocations: 4 kB / 414.7 MB, free: 60.12 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001874/0.7819, allocations: 71.88 kB / 414.8 MB, free: 60.05 MB / 314.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.005657/0.7875, allocations: 2.546 MB / 417.4 MB, free: 57.45 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.7876, allocations: 15.98 kB / 417.4 MB, free: 57.43 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001425/0.789, allocations: 340.6 kB / 417.7 MB, free: 57.09 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004182/0.7932, allocations: 1.736 MB / 419.4 MB, free: 55.3 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001626/0.7934, allocations: 185 kB / 419.6 MB, free: 55.12 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006086/0.7941, allocations: 255.8 kB / 419.9 MB, free: 54.87 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006563/0.8006, allocations: 3.168 MB / 423 MB, free: 51.55 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.621e-05/0.8008, allocations: 4 kB / 423.1 MB, free: 51.55 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000316/0.8011, allocations: 107.9 kB / 423.2 MB, free: 51.45 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001242/0.8012, allocations: 116.9 kB / 423.3 MB, free: 51.33 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01157/0.8128, allocations: 2.485 MB / 425.8 MB, free: 48.84 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05452/0.8674, allocations: 10.36 MB / 436.1 MB, free: 38.13 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01628/0.8838, allocations: 1.372 MB / 437.5 MB, free: 36.68 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002815/0.8866, allocations: 0.739 MB / 438.2 MB, free: 35.95 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005734/0.8873, allocations: 138.8 kB / 438.4 MB, free: 35.79 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.743e-05/0.8873, allocations: 43.56 kB / 438.4 MB, free: 35.74 MB / 314.7 MB Notification: Performance of pre-optimization done (n=101): time 9.335e-06/0.8874, allocations: 3.938 kB / 438.4 MB, free: 35.74 MB / 314.7 MB Notification: Performance of matching and sorting (n=129): time 0.02002/0.9074, allocations: 6.118 MB / 444.5 MB, free: 29.55 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.48e-05/0.9075, allocations: 72.67 kB / 444.6 MB, free: 29.47 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002546/0.9101, allocations: 1.404 MB / 446 MB, free: 28.07 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002208/0.9103, allocations: 45.7 kB / 446 MB, free: 28.02 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007637/0.9111, allocations: 1.252 MB / 447.3 MB, free: 26.75 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003638/0.9115, allocations: 441.6 kB / 447.7 MB, free: 26.31 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001225/0.9116, allocations: 36 kB / 447.8 MB, free: 26.27 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.9117, allocations: 365.9 kB / 448.1 MB, free: 25.91 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001412/0.9132, allocations: 0.7732 MB / 448.9 MB, free: 25.14 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001646/0.9148, allocations: 1.273 MB / 450.2 MB, free: 23.64 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001741/0.9166, allocations: 1.004 MB / 451.2 MB, free: 22.63 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.151e-05/0.9166, allocations: 4 kB / 451.2 MB, free: 22.62 MB / 314.7 MB Notification: Performance of matching and sorting (n=209) (initialization): time 0.004794/0.9214, allocations: 2.424 MB / 453.6 MB, free: 20.18 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.331e-05/0.9215, allocations: 12 kB / 453.6 MB, free: 20.17 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.318e-05/0.9215, allocations: 16 kB / 453.6 MB, free: 20.15 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007751/0.9223, allocations: 247.5 kB / 453.9 MB, free: 19.9 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002004/0.9243, allocations: 431.3 kB / 454.3 MB, free: 19.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002473/0.9268, allocations: 3.009 MB / 457.3 MB, free: 16.2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001792/0.9286, allocations: 127.8 kB / 457.4 MB, free: 16.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001853/0.9288, allocations: 68 kB / 457.5 MB, free: 16.01 MB / 314.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 (204): * Single equations (assignments): 200 * 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.0003433/0.9292, allocations: 208.5 kB / 457.7 MB, free: 15.8 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003412/0.9296, allocations: 185.7 kB / 457.9 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004069/0.9336, allocations: 2.074 MB / 460 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.454e-05/0.9337, allocations: 16 kB / 460 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.947e-06/0.9337, allocations: 144 / 460 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.737e-05/0.9337, allocations: 11.95 kB / 460 MB, free: 13.49 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009534/0.9433, allocations: 4.737 MB / 464.7 MB, free: 8.648 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.147e-05/0.9433, allocations: 0 / 464.7 MB, free: 8.648 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001467/0.9448, allocations: 287.5 kB / 465 MB, free: 8.367 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006694/0.9455, allocations: 195.3 kB / 465.2 MB, free: 8.164 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001085/0.9456, allocations: 31.92 kB / 465.2 MB, free: 8.133 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002371/0.948, allocations: 2.974 MB / 468.2 MB, free: 4.891 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.037e-06/0.9481, allocations: 4.031 kB / 468.2 MB, free: 4.887 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005553/0.9536, allocations: 3.329 MB / 471.5 MB, free: 1.449 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002302/0.956, allocations: 422.6 kB / 471.9 MB, free: 1.016 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007732/0.9568, allocations: 24 kB / 472 MB, free: 0.9922 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002752/0.9596, allocations: 95.86 kB / 472.1 MB, free: 0.8984 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000441/0.96, allocations: 92.84 kB / 472.1 MB, free: 0.8086 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002823/0.9604, allocations: 32 kB / 472.2 MB, free: 0.7773 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00453/0.9649, allocations: 1.071 MB / 473.2 MB, free: 15.71 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.523e-06/0.9649, allocations: 0 / 473.2 MB, free: 15.71 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.004937/0.9699, allocations: 0.5117 MB / 473.8 MB, free: 15.2 MB / 330.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 (127): * Single equations (assignments): 123 * 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.001495/0.9714, allocations: 417.5 kB / 474.2 MB, free: 14.8 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.01028/0.9818, allocations: 2.301 MB / 476.5 MB, free: 12.43 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.081e-05/0.9818, allocations: 10.44 kB / 476.5 MB, free: 12.42 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005497/0.9873, allocations: 1.331 MB / 477.8 MB, free: 11.02 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005365/0.9927, allocations: 433.7 kB / 478.2 MB, free: 10.6 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01887/1.012, allocations: 3.813 MB / 482 MB, free: 6.719 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005655/1.017, allocations: 2.048 MB / 484.1 MB, free: 4.637 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.004934/1.022, allocations: 0.4957 MB / 484.6 MB, free: 4.137 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001313/1.024, allocations: 131.4 kB / 484.7 MB, free: 4.008 MB / 330.7 MB Notification: Performance of SimCode: time 3.168e-06/1.024, allocations: 0 / 484.7 MB, free: 4.008 MB / 330.7 MB Notification: Performance of Templates: time 0.2779/1.302, allocations: 25.88 MB / 0.4986 GB, free: 88.85 MB / 346.7 MB