Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadModel(Modelica): time 1.891/1.891, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.661e-05/2.67e-05, allocations: 0 / 292.2 MB, free: 8.832 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.1418, allocations: 50.42 MB / 342.6 MB, free: 6.391 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.444/0.5858, allocations: 120 MB / 462.6 MB, free: 6.82 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002811/0.5862, allocations: 89.89 kB / 462.7 MB, free: 6.773 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5418/1.128, allocations: 80.75 MB / 0.5307 GB, free: 94.33 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.299e-06/1.128, allocations: 0 / 0.5307 GB, free: 94.33 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003702/1.128, allocations: 97.14 kB / 0.5308 GB, free: 94.32 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01561/1.144, allocations: 3.445 MB / 0.5342 GB, free: 93.12 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.951e-05/1.144, allocations: 11.84 kB / 0.5342 GB, free: 93.12 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008921/1.153, allocations: 0.6405 MB / 0.5348 GB, free: 92.91 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02009/1.173, allocations: 3.384 MB / 0.5381 GB, free: 92.35 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005916/1.174, allocations: 258 kB / 0.5383 GB, free: 92.34 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00208/1.176, allocations: 350.1 kB / 0.5387 GB, free: 92.34 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02169/1.198, allocations: 4.281 MB / 0.5429 GB, free: 91.9 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000212/1.198, allocations: 4.531 kB / 0.5429 GB, free: 91.9 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001042/1.199, allocations: 149.9 kB / 0.543 GB, free: 91.9 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003777/1.199, allocations: 161.7 kB / 0.5432 GB, free: 91.89 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01823/1.218, allocations: 3.39 MB / 0.5465 GB, free: 91.88 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03042/1.248, allocations: 14.56 MB / 0.5607 GB, free: 88.36 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005506/1.254, allocations: 5.334 MB / 0.5659 GB, free: 84.48 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002609/1.256, allocations: 1.25 MB / 0.5671 GB, free: 84.1 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008609/1.265, allocations: 3.884 MB / 0.5709 GB, free: 82.05 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.148e-05/1.265, allocations: 54.14 kB / 0.571 GB, free: 82 MB / 442.7 MB Notification: Performance of pre-optimization done (n=127): time 4.88e-06/1.265, allocations: 0 / 0.571 GB, free: 82 MB / 442.7 MB Notification: Performance of matching and sorting (n=131): time 0.00891/1.274, allocations: 4.273 MB / 0.5751 GB, free: 79.74 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.148e-05/1.274, allocations: 68.72 kB / 0.5752 GB, free: 79.68 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003582/1.278, allocations: 1.831 MB / 0.577 GB, free: 78.93 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002397/1.278, allocations: 48.95 kB / 0.577 GB, free: 78.88 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008738/1.279, allocations: 1.572 MB / 0.5786 GB, free: 77.61 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004378/1.279, allocations: 460.4 kB / 0.579 GB, free: 77.27 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001251/1.279, allocations: 35.16 kB / 0.579 GB, free: 77.24 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001283/1.28, allocations: 382.1 kB / 0.5794 GB, free: 76.89 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001421/1.281, allocations: 0.6958 MB / 0.5801 GB, free: 76.62 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001752/1.283, allocations: 1.295 MB / 0.5813 GB, free: 75.57 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001878/1.285, allocations: 0.9348 MB / 0.5823 GB, free: 75.2 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.39e-05/1.285, allocations: 3.844 kB / 0.5823 GB, free: 75.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.004473/1.289, allocations: 2.268 MB / 0.5845 GB, free: 74.34 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.535e-05/1.289, allocations: 15.09 kB / 0.5845 GB, free: 74.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.657e-05/1.289, allocations: 17.59 kB / 0.5845 GB, free: 74.34 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004434/1.29, allocations: 139.5 kB / 0.5846 GB, free: 74.29 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002162/1.292, allocations: 472.1 kB / 0.5851 GB, free: 74.27 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002417/1.294, allocations: 3.062 MB / 0.5881 GB, free: 71.39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002218/1.297, allocations: 114 kB / 0.5882 GB, free: 71.36 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002705/1.297, allocations: 84.11 kB / 0.5883 GB, free: 71.34 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 89 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 220 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003905/1.297, allocations: 222.1 kB / 0.5885 GB, free: 71.16 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005053/1.298, allocations: 218.8 kB / 0.5887 GB, free: 71.05 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004616/1.303, allocations: 2.154 MB / 0.5908 GB, free: 70.03 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.249e-05/1.303, allocations: 17.41 kB / 0.5908 GB, free: 70.02 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/1.303, allocations: 3.781 kB / 0.5908 GB, free: 70.02 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-05/1.303, allocations: 6.797 kB / 0.5908 GB, free: 70.02 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01114/1.314, allocations: 5.155 MB / 0.5959 GB, free: 67.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-05/1.314, allocations: 0 / 0.5959 GB, free: 67.71 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001505/1.315, allocations: 235.2 kB / 0.5961 GB, free: 67.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001012/1.316, allocations: 267 kB / 0.5963 GB, free: 67.6 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001561/1.317, allocations: 33.81 kB / 0.5964 GB, free: 67.58 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007095/1.324, allocations: 7.093 MB / 0.6033 GB, free: 61.27 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.582e-06/1.324, allocations: 5.969 kB / 0.6033 GB, free: 61.27 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00621/1.33, allocations: 3.289 MB / 0.6065 GB, free: 59.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001427/1.331, allocations: 468.6 kB / 0.607 GB, free: 59.19 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005412/1.332, allocations: 30.03 kB / 0.607 GB, free: 59.17 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00154/1.334, allocations: 82.41 kB / 0.6071 GB, free: 59.15 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000227/1.334, allocations: 92.41 kB / 0.6072 GB, free: 59.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001273/1.334, allocations: 37.72 kB / 0.6072 GB, free: 59.13 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00283/1.337, allocations: 1.391 MB / 0.6086 GB, free: 58.55 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.42e-07/1.337, allocations: 0 / 0.6086 GB, free: 58.55 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003095/1.34, allocations: 0.6156 MB / 0.6092 GB, free: 58.48 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,currentController.PI_d.x,currentController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007884/1.341, allocations: 0.5231 MB / 0.6097 GB, free: 58.29 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003781/1.345, allocations: 2.003 MB / 0.6116 GB, free: 57.37 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.519e-06/1.345, allocations: 3.938 kB / 0.6116 GB, free: 57.36 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002349/1.347, allocations: 1.319 MB / 0.6129 GB, free: 56.59 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003269/1.35, allocations: 0.5088 MB / 0.6134 GB, free: 56.44 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01118/1.361, allocations: 4.864 MB / 0.6182 GB, free: 54.35 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002549/1.364, allocations: 2.433 MB / 0.6205 GB, free: 52.95 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009253/1.365, allocations: 170 kB / 0.6207 GB, free: 52.8 MB / 442.7 MB Notification: Performance of SimCode: time 1.727e-06/1.365, allocations: 0 / 0.6207 GB, free: 52.8 MB / 442.7 MB Notification: Performance of Templates: time 0.3697/1.735, allocations: 95.13 MB / 0.7136 GB, free: 102.9 MB / 458.7 MB