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_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.68/1.68, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.028e-05/3.04e-05, allocations: 3.438 kB / 225 MB, free: 2.785 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2158/0.2159, allocations: 38.77 MB / 263.8 MB, free: 9.879 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1477/0.3637, allocations: 99.65 MB / 363.4 MB, free: 6.07 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002902/0.364, allocations: 83.95 kB / 363.5 MB, free: 5.988 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3624/0.7264, allocations: 51.22 MB / 414.7 MB, free: 60.14 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.7265, allocations: 0 / 414.7 MB, free: 60.14 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002209/0.7267, allocations: 71.88 kB / 414.8 MB, free: 60.07 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.006564/0.7333, allocations: 2.554 MB / 417.3 MB, free: 57.46 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.7333, allocations: 11.98 kB / 417.4 MB, free: 57.45 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001703/0.7351, allocations: 340.6 kB / 417.7 MB, free: 57.11 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004442/0.7395, allocations: 1.743 MB / 419.4 MB, free: 55.31 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001959/0.7398, allocations: 189 kB / 419.6 MB, free: 55.12 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007735/0.7406, allocations: 247.9 kB / 419.9 MB, free: 54.88 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007608/0.7482, allocations: 3.168 MB / 423 MB, free: 51.57 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001033/0.7484, allocations: 4 kB / 423 MB, free: 51.56 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003525/0.7487, allocations: 104 kB / 423.1 MB, free: 51.46 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00013/0.7489, allocations: 124.9 kB / 423.3 MB, free: 51.34 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006366/0.7553, allocations: 2.489 MB / 425.7 MB, free: 48.84 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02041/0.7757, allocations: 10.35 MB / 436.1 MB, free: 38.14 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002471/0.7782, allocations: 1.376 MB / 437.5 MB, free: 36.69 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001422/0.7797, allocations: 0.7379 MB / 438.2 MB, free: 35.95 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003037/0.78, allocations: 146 kB / 438.3 MB, free: 35.79 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.758e-05/0.7801, allocations: 43.56 kB / 438.4 MB, free: 35.74 MB / 314.7 MB Notification: Performance of pre-optimization done (n=101): time 4.354e-06/0.7801, allocations: 0 / 438.4 MB, free: 35.74 MB / 314.7 MB Notification: Performance of matching and sorting (n=129): time 0.01615/0.7962, allocations: 6.114 MB / 444.5 MB, free: 29.56 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.504e-05/0.7963, allocations: 68.67 kB / 444.6 MB, free: 29.48 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002551/0.7989, allocations: 1.4 MB / 446 MB, free: 28.08 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002316/0.7991, allocations: 45.7 kB / 446 MB, free: 28.03 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006721/0.7998, allocations: 1.201 MB / 447.2 MB, free: 26.82 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003931/0.8002, allocations: 441.6 kB / 447.7 MB, free: 26.38 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.8004, allocations: 36 kB / 447.7 MB, free: 26.34 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.8005, allocations: 378.7 kB / 448.1 MB, free: 25.96 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001462/0.802, allocations: 0.7654 MB / 448.8 MB, free: 25.2 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00169/0.8037, allocations: 1.273 MB / 450.1 MB, free: 23.7 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001861/0.8056, allocations: 1.004 MB / 451.1 MB, free: 22.69 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.288e-05/0.8056, allocations: 4 kB / 451.1 MB, free: 22.69 MB / 314.7 MB Notification: Performance of matching and sorting (n=209) (initialization): time 0.004724/0.8103, allocations: 2.308 MB / 453.4 MB, free: 20.36 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.551e-05/0.8104, allocations: 17.66 kB / 453.4 MB, free: 20.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.504e-05/0.8105, allocations: 20 kB / 453.4 MB, free: 20.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001117/0.8116, allocations: 239.3 kB / 453.7 MB, free: 20.08 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002162/0.8138, allocations: 431.3 kB / 454.1 MB, free: 19.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002571/0.8164, allocations: 3.006 MB / 457.1 MB, free: 16.38 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001897/0.8183, allocations: 131.8 kB / 457.2 MB, free: 16.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002127/0.8186, allocations: 71.98 kB / 457.3 MB, free: 16.18 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.0003508/0.8189, allocations: 204.4 kB / 457.5 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000359/0.8193, allocations: 185.7 kB / 457.7 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00412/0.8234, allocations: 2.078 MB / 459.8 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.582e-05/0.8235, allocations: 12 kB / 459.8 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.824e-06/0.8235, allocations: 4 kB / 459.8 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.905e-05/0.8235, allocations: 11.97 kB / 459.8 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01002/0.8336, allocations: 4.736 MB / 464.5 MB, free: 8.824 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.136e-05/0.8336, allocations: 4 kB / 464.5 MB, free: 8.82 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001505/0.8351, allocations: 279.6 kB / 464.8 MB, free: 8.547 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006925/0.8358, allocations: 207.5 kB / 465 MB, free: 8.332 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001321/0.836, allocations: 24 kB / 465 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002499/0.8385, allocations: 2.974 MB / 468 MB, free: 5.066 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.246e-06/0.8385, allocations: 4 kB / 468 MB, free: 5.062 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005666/0.8442, allocations: 3.321 MB / 471.3 MB, free: 1.633 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001175/0.8454, allocations: 426.7 kB / 471.7 MB, free: 1.195 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003405/0.8458, allocations: 24 kB / 471.8 MB, free: 1.172 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001194/0.847, allocations: 95.94 kB / 471.9 MB, free: 1.078 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001982/0.8472, allocations: 80.84 kB / 471.9 MB, free: 1 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001284/0.8474, allocations: 44.12 kB / 472 MB, free: 0.957 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002029/0.8494, allocations: 1.071 MB / 473.1 MB, free: 15.89 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.86e-07/0.8494, allocations: 0 / 473.1 MB, free: 15.89 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002503/0.852, allocations: 0.5078 MB / 473.6 MB, free: 15.38 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.0008364/0.8528, allocations: 419.3 kB / 474 MB, free: 14.98 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.005159/0.858, allocations: 2.303 MB / 476.3 MB, free: 12.61 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.69e-06/0.858, allocations: 0.625 kB / 476.3 MB, free: 12.61 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00279/0.8608, allocations: 1.331 MB / 477.6 MB, free: 11.21 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002668/0.8635, allocations: 438 kB / 478 MB, free: 10.79 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01018/0.8738, allocations: 3.864 MB / 481.9 MB, free: 6.852 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003225/0.877, allocations: 2.027 MB / 483.9 MB, free: 4.793 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008677/0.8779, allocations: 139.4 kB / 484.1 MB, free: 4.656 MB / 330.7 MB Notification: Performance of SimCode: time 2.089e-06/0.878, allocations: 0 / 484.1 MB, free: 4.656 MB / 330.7 MB Notification: Performance of Templates: time 0.294/1.172, allocations: 77.48 MB / 0.5484 GB, free: 58.41 MB / 346.7 MB