Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.805/1.805, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.626e-05/3.642e-05, allocations: 8.812 kB / 255.4 MB, free: 3.188 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0789/0.07896, allocations: 44.5 MB / 299.9 MB, free: 6.625 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3622/0.4412, allocations: 105 MB / 404.9 MB, free: 16.28 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002399/0.4415, allocations: 81.52 kB / 405 MB, free: 16.27 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2008/0.6423, allocations: 52.85 MB / 457.8 MB, free: 13.99 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.467e-06/0.6423, allocations: 0 / 457.8 MB, free: 13.99 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002186/0.6425, allocations: 67.94 kB / 457.9 MB, free: 13.92 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 657 * Number of variables: 657 Notification: Performance of Generate backend data structure: time 0.007183/0.6497, allocations: 2.566 MB / 460.4 MB, free: 11.47 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.6498, allocations: 12.03 kB / 460.5 MB, free: 11.46 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001695/0.6515, allocations: 340.1 kB / 460.8 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005785/0.6573, allocations: 1.904 MB / 462.7 MB, free: 9.633 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002604/0.6576, allocations: 196.3 kB / 462.9 MB, free: 9.516 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009195/0.6586, allocations: 252 kB / 463.1 MB, free: 9.352 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008627/0.6672, allocations: 3.149 MB / 466.3 MB, free: 6.105 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.674e-05/0.6674, allocations: 11.84 kB / 466.3 MB, free: 6.094 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003662/0.6677, allocations: 108 kB / 466.4 MB, free: 5.988 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001693/0.6679, allocations: 120.9 kB / 466.5 MB, free: 5.867 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006121/0.674, allocations: 2.474 MB / 469 MB, free: 3.387 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02346/0.6975, allocations: 10.45 MB / 479.4 MB, free: 8.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002667/0.7003, allocations: 1.396 MB / 480.8 MB, free: 7.129 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001528/0.7018, allocations: 0.734 MB / 481.6 MB, free: 6.391 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004323/0.7023, allocations: 227.1 kB / 481.8 MB, free: 6.133 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.095e-05/0.7023, allocations: 47.56 kB / 481.8 MB, free: 6.078 MB / 362.7 MB Notification: Performance of pre-optimization done (n=102): time 4.374e-06/0.7023, allocations: 0 / 481.8 MB, free: 6.078 MB / 362.7 MB Notification: Performance of matching and sorting (n=130): time 0.0187/0.7211, allocations: 6.127 MB / 488 MB, free: 15.89 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.024e-05/0.7212, allocations: 68.66 kB / 488 MB, free: 15.8 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003459/0.7246, allocations: 1.53 MB / 489.6 MB, free: 14.28 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002445/0.7249, allocations: 45.7 kB / 489.6 MB, free: 14.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001109/0.726, allocations: 1.193 MB / 490.8 MB, free: 13.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005491/0.7266, allocations: 453.5 kB / 491.2 MB, free: 12.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001296/0.7267, allocations: 36 kB / 491.3 MB, free: 12.54 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002396/0.727, allocations: 374.8 kB / 491.6 MB, free: 12.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001641/0.7286, allocations: 0.7693 MB / 492.4 MB, free: 11.39 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002092/0.7308, allocations: 1.277 MB / 493.7 MB, free: 9.891 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002035/0.7328, allocations: 1 MB / 494.7 MB, free: 8.891 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.404e-05/0.7328, allocations: 7.953 kB / 494.7 MB, free: 8.883 MB / 378.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005232/0.7381, allocations: 2.32 MB / 497 MB, free: 6.543 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.705e-05/0.7381, allocations: 12 kB / 497 MB, free: 6.531 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.91e-05/0.7382, allocations: 16 kB / 497 MB, free: 6.516 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008402/0.7391, allocations: 239.8 kB / 497.3 MB, free: 6.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002259/0.7413, allocations: 439.3 kB / 497.7 MB, free: 5.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003599/0.745, allocations: 2.99 MB / 0.489 GB, free: 2.578 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002097/0.7471, allocations: 127.8 kB / 0.4891 GB, free: 2.453 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003058/0.7474, allocations: 75.92 kB / 0.4892 GB, free: 2.379 MB / 378.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 (205): * Single equations (assignments): 201 * 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.0004358/0.7479, allocations: 212.7 kB / 0.4894 GB, free: 2.164 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005449/0.7484, allocations: 185.7 kB / 0.4895 GB, free: 1.98 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004805/0.7533, allocations: 2.094 MB / 0.4916 GB, free: 15.86 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.968e-05/0.7533, allocations: 15.94 kB / 0.4916 GB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.042e-06/0.7533, allocations: 0 / 0.4916 GB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.827e-05/0.7534, allocations: 7.984 kB / 0.4916 GB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01093/0.7643, allocations: 4.807 MB / 0.4963 GB, free: 10.92 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.916e-06/0.7644, allocations: 0 / 0.4963 GB, free: 10.92 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00161/0.766, allocations: 279.6 kB / 0.4966 GB, free: 10.65 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007578/0.7668, allocations: 207.5 kB / 0.4968 GB, free: 10.43 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001229/0.7669, allocations: 24 kB / 0.4968 GB, free: 10.41 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003392/0.7703, allocations: 2.967 MB / 0.4997 GB, free: 7.18 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.7703, allocations: 4.062 kB / 0.4997 GB, free: 7.176 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006722/0.7771, allocations: 3.342 MB / 0.5029 GB, free: 3.723 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001338/0.7785, allocations: 442.6 kB / 0.5034 GB, free: 3.27 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003297/0.7788, allocations: 27.95 kB / 0.5034 GB, free: 3.242 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001238/0.7801, allocations: 103.9 kB / 0.5035 GB, free: 3.141 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002182/0.7803, allocations: 76.83 kB / 0.5036 GB, free: 3.066 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001434/0.7804, allocations: 39.98 kB / 0.5036 GB, free: 3.027 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002484/0.7829, allocations: 1.165 MB / 0.5047 GB, free: 1.871 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.488e-06/0.783, allocations: 0 / 0.5047 GB, free: 1.871 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002217/0.7852, allocations: 0.5234 MB / 0.5053 GB, free: 1.348 MB / 394.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 (128): * Single equations (assignments): 124 * 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.0007446/0.786, allocations: 417.4 kB / 0.5057 GB, free: 0.9453 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.2209/1.007, allocations: 2.313 MB / 0.5079 GB, free: 92.95 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/1.007, allocations: 0 / 0.5079 GB, free: 92.95 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002383/1.009, allocations: 1.33 MB / 0.5092 GB, free: 92.54 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002744/1.012, allocations: 448.6 kB / 0.5096 GB, free: 92.53 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009781/1.022, allocations: 3.973 MB / 0.5135 GB, free: 91.62 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002922/1.025, allocations: 2.028 MB / 0.5155 GB, free: 90.89 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009768/1.026, allocations: 152.1 kB / 0.5156 GB, free: 90.88 MB / 394.7 MB Notification: Performance of SimCode: time 1.958e-06/1.026, allocations: 0 / 0.5156 GB, free: 90.88 MB / 394.7 MB Notification: Performance of Templates: time 0.09276/1.119, allocations: 78.95 MB / 0.5927 GB, free: 50.59 MB / 394.7 MB