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.865/1.865, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.676e-05/2.693e-05, allocations: 4 kB / 255.3 MB, free: 3.199 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08031/0.08036, allocations: 44.5 MB / 299.8 MB, free: 6.633 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.364/0.4444, allocations: 105 MB / 404.8 MB, free: 16.39 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002491/0.4447, allocations: 88.47 kB / 404.9 MB, free: 16.38 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2359/0.6807, allocations: 52.84 MB / 457.8 MB, free: 14.07 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.108e-06/0.6807, allocations: 0 / 457.8 MB, free: 14.07 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002676/0.681, allocations: 75.92 kB / 457.8 MB, free: 14 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.007657/0.6887, allocations: 2.571 MB / 460.4 MB, free: 11.55 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/0.6887, allocations: 12.02 kB / 460.4 MB, free: 11.54 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001727/0.6905, allocations: 344.1 kB / 460.8 MB, free: 11.2 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005693/0.6962, allocations: 1.897 MB / 462.7 MB, free: 9.711 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002377/0.6965, allocations: 195.8 kB / 462.9 MB, free: 9.594 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007961/0.6973, allocations: 243.1 kB / 463.1 MB, free: 9.418 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008848/0.7062, allocations: 3.178 MB / 466.3 MB, free: 6.09 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001119/0.7063, allocations: 11.89 kB / 466.3 MB, free: 6.078 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000434/0.7068, allocations: 111.9 kB / 466.4 MB, free: 5.969 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001714/0.7069, allocations: 112.9 kB / 466.5 MB, free: 5.855 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007236/0.7142, allocations: 2.515 MB / 469 MB, free: 3.328 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02474/0.739, allocations: 10.45 MB / 479.5 MB, free: 8.527 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002894/0.7419, allocations: 1.402 MB / 480.9 MB, free: 7.055 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00168/0.7436, allocations: 0.7534 MB / 481.6 MB, free: 6.301 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00044/0.7441, allocations: 215.1 kB / 481.8 MB, free: 6.055 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.455e-05/0.7442, allocations: 43.56 kB / 481.9 MB, free: 6 MB / 362.7 MB Notification: Performance of pre-optimization done (n=102): time 4.555e-06/0.7442, allocations: 0 / 481.9 MB, free: 6 MB / 362.7 MB Notification: Performance of matching and sorting (n=130): time 0.01912/0.7633, allocations: 6.138 MB / 488 MB, free: 15.79 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.166e-05/0.7634, allocations: 68.66 kB / 488.1 MB, free: 15.71 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003448/0.7669, allocations: 1.526 MB / 489.6 MB, free: 14.19 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002621/0.7672, allocations: 53.7 kB / 489.7 MB, free: 14.13 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00115/0.7684, allocations: 1.193 MB / 490.9 MB, free: 12.92 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006127/0.769, allocations: 453.5 kB / 491.3 MB, free: 12.47 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001442/0.7691, allocations: 32 kB / 491.3 MB, free: 12.44 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002466/0.7694, allocations: 374.8 kB / 491.7 MB, free: 12.07 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001742/0.7712, allocations: 0.7732 MB / 492.5 MB, free: 11.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002223/0.7734, allocations: 1.285 MB / 493.7 MB, free: 9.785 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002185/0.7756, allocations: 1 MB / 494.7 MB, free: 8.785 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.301e-05/0.7756, allocations: 4 kB / 494.8 MB, free: 8.781 MB / 378.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005551/0.7812, allocations: 2.363 MB / 497.1 MB, free: 6.398 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.304e-05/0.7813, allocations: 15.98 kB / 497.1 MB, free: 6.383 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.256e-05/0.7813, allocations: 20.03 kB / 497.2 MB, free: 6.363 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008668/0.7822, allocations: 239.3 kB / 497.4 MB, free: 6.117 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002311/0.7846, allocations: 435.3 kB / 497.8 MB, free: 5.691 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003683/0.7883, allocations: 2.99 MB / 0.4891 GB, free: 2.434 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002039/0.7903, allocations: 135.8 kB / 0.4892 GB, free: 2.301 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002634/0.7906, allocations: 76 kB / 0.4893 GB, free: 2.227 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.0004384/0.7911, allocations: 208.5 kB / 0.4895 GB, free: 2.016 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005375/0.7916, allocations: 193.6 kB / 0.4896 GB, free: 1.824 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004919/0.7966, allocations: 2.078 MB / 0.4917 GB, free: 15.72 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.112e-05/0.7966, allocations: 16 kB / 0.4917 GB, free: 15.71 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.587e-06/0.7967, allocations: 0 / 0.4917 GB, free: 15.71 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.396e-05/0.7967, allocations: 7.969 kB / 0.4917 GB, free: 15.7 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0122/0.8089, allocations: 4.811 MB / 0.4964 GB, free: 10.78 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-05/0.809, allocations: 7.844 kB / 0.4964 GB, free: 10.78 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001784/0.8108, allocations: 283.6 kB / 0.4967 GB, free: 10.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007891/0.8116, allocations: 199.6 kB / 0.4969 GB, free: 10.29 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001946/0.8118, allocations: 31.97 kB / 0.4969 GB, free: 10.26 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003539/0.8153, allocations: 2.963 MB / 0.4998 GB, free: 7.031 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.671e-06/0.8154, allocations: 7.938 kB / 0.4998 GB, free: 7.023 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006996/0.8224, allocations: 3.338 MB / 0.5031 GB, free: 3.578 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001404/0.8238, allocations: 446.5 kB / 0.5035 GB, free: 3.121 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004548/0.8243, allocations: 27.95 kB / 0.5035 GB, free: 3.094 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001447/0.8258, allocations: 95.94 kB / 0.5036 GB, free: 3 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002466/0.8261, allocations: 85.02 kB / 0.5037 GB, free: 2.918 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001353/0.8262, allocations: 35.98 kB / 0.5037 GB, free: 2.883 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002639/0.8289, allocations: 1.165 MB / 0.5049 GB, free: 1.727 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.167e-06/0.8289, allocations: 0 / 0.5049 GB, free: 1.727 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002589/0.8315, allocations: 0.5273 MB / 0.5054 GB, free: 1.199 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.0008462/0.8324, allocations: 419.2 kB / 0.5058 GB, free: 0.7852 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.2232/1.056, allocations: 2.35 MB / 0.5081 GB, free: 92.98 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.522e-06/1.056, allocations: 0 / 0.5081 GB, free: 92.98 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002576/1.058, allocations: 1.35 MB / 0.5094 GB, free: 92.56 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002869/1.061, allocations: 452.7 kB / 0.5098 GB, free: 92.55 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009994/1.071, allocations: 3.982 MB / 0.5137 GB, free: 91.64 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002636/1.074, allocations: 2.026 MB / 0.5157 GB, free: 90.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000951/1.075, allocations: 153.2 kB / 0.5158 GB, free: 90.9 MB / 394.7 MB Notification: Performance of SimCode: time 1.797e-06/1.075, allocations: 0 / 0.5158 GB, free: 90.9 MB / 394.7 MB Notification: Performance of Templates: time 0.09499/1.17, allocations: 79.22 MB / 0.5932 GB, free: 50.24 MB / 394.7 MB