Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 2.011/2.011, allocations: 224.7 MB / 241.1 MB, free: 1.695 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.456e-05/3.44e-05, allocations: 0 / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.146/0.1461, allocations: 50.42 MB / 345 MB, free: 8.945 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02959/0.1757, allocations: 11.88 MB / 356.9 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01651/0.1923, allocations: 4.429 MB / 361.3 MB, free: 8.578 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003985/0.1964, allocations: 123.6 kB / 361.4 MB, free: 8.457 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004946/0.2014, allocations: 0.7962 MB / 362.2 MB, free: 7.656 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008089/0.2095, allocations: 1.211 MB / 363.4 MB, free: 6.441 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004585/0.2142, allocations: 0.6393 MB / 364.1 MB, free: 5.801 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.008231/0.2224, allocations: 1.943 MB / 366 MB, free: 3.855 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006015/0.2285, allocations: 1.808 MB / 367.8 MB, free: 2.027 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003234/0.2318, allocations: 0.9389 MB / 368.8 MB, free: 1.086 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004605/0.2365, allocations: 1.25 MB / 370 MB, free: 15.83 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002581/0.2391, allocations: 283.8 kB / 370.3 MB, free: 15.55 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001278/0.2405, allocations: 119.9 kB / 370.4 MB, free: 15.44 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001956/0.2425, allocations: 0.6656 MB / 371.1 MB, free: 14.77 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001824/0.2444, allocations: 276 kB / 371.3 MB, free: 14.5 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01163/0.256, allocations: 5.037 MB / 376.4 MB, free: 9.449 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2561, allocations: 0 / 376.4 MB, free: 9.449 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.386e-06/0.2561, allocations: 0 / 376.4 MB, free: 9.449 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002133/0.2564, allocations: 0 / 376.4 MB, free: 9.449 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01726/0.2736, allocations: 3.306 MB / 379.7 MB, free: 6.074 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.989e-05/0.2737, allocations: 16.03 kB / 379.7 MB, free: 6.059 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00729/0.281, allocations: 0.6124 MB / 380.3 MB, free: 5.441 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009896/0.291, allocations: 2.159 MB / 382.5 MB, free: 3.227 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006357/0.2917, allocations: 250.2 kB / 382.7 MB, free: 2.98 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001677/0.2934, allocations: 307.9 kB / 383 MB, free: 2.68 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01522/0.3086, allocations: 3.996 MB / 387 MB, free: 14.62 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001325/0.3088, allocations: 11.91 kB / 387 MB, free: 14.61 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006119/0.3095, allocations: 128 kB / 387.1 MB, free: 14.48 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002357/0.3097, allocations: 146.2 kB / 387.3 MB, free: 14.34 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01168/0.3214, allocations: 3.366 MB / 390.7 MB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3102/0.6316, allocations: 13.26 MB / 403.9 MB, free: 41.38 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006483/0.6382, allocations: 3.938 MB / 407.8 MB, free: 38.61 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007425/0.6456, allocations: 2.638 MB / 410.5 MB, free: 38.02 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.225e-05/0.6457, allocations: 49.56 kB / 410.5 MB, free: 37.97 MB / 330.7 MB Notification: Performance of pre-optimization done (n=112): time 5.07e-06/0.6458, allocations: 0 / 410.5 MB, free: 37.97 MB / 330.7 MB Notification: Performance of matching and sorting (n=146): time 0.01994/0.6657, allocations: 6.023 MB / 416.6 MB, free: 35.19 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.965e-05/0.6658, allocations: 71.31 kB / 416.6 MB, free: 35.12 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003539/0.6694, allocations: 1.595 MB / 418.2 MB, free: 34.47 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000275/0.6697, allocations: 53.55 kB / 418.3 MB, free: 34.42 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001055/0.6708, allocations: 1.439 MB / 419.7 MB, free: 33.26 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006006/0.6714, allocations: 0.4916 MB / 420.2 MB, free: 32.88 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001514/0.6715, allocations: 35.84 kB / 420.2 MB, free: 32.85 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.6717, allocations: 385.5 kB / 420.6 MB, free: 32.51 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001903/0.6736, allocations: 0.7714 MB / 421.4 MB, free: 32.21 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002296/0.6759, allocations: 1.368 MB / 422.8 MB, free: 31.17 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002639/0.6786, allocations: 1.014 MB / 423.8 MB, free: 30.72 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.642e-05/0.6787, allocations: 5.5 kB / 423.8 MB, free: 30.72 MB / 330.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.005782/0.6845, allocations: 2.361 MB / 426.1 MB, free: 29.72 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.716e-05/0.6846, allocations: 11.72 kB / 426.1 MB, free: 29.72 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.719e-05/0.6846, allocations: 19.41 kB / 426.2 MB, free: 29.72 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005351/0.6851, allocations: 117.9 kB / 426.3 MB, free: 29.67 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00348/0.6886, allocations: 492.2 kB / 426.8 MB, free: 29.62 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001181/0.6899, allocations: 1.331 MB / 428.1 MB, free: 28.3 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002449/0.6924, allocations: 109.7 kB / 428.2 MB, free: 28.27 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002798/0.6927, allocations: 85.02 kB / 428.3 MB, free: 28.25 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (235): * Single equations (assignments): 232 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002465/0.6951, allocations: 0.9838 MB / 429.3 MB, free: 27.69 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000595/0.6957, allocations: 201.5 kB / 429.5 MB, free: 27.59 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004986/0.7007, allocations: 1.989 MB / 431.5 MB, free: 26.56 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.058e-05/0.7008, allocations: 19.23 kB / 431.5 MB, free: 26.55 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/0.7008, allocations: 0.5 kB / 431.5 MB, free: 26.55 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.865e-05/0.7009, allocations: 3.984 kB / 431.5 MB, free: 26.55 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01224/0.7131, allocations: 5.018 MB / 436.5 MB, free: 23.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.178e-05/0.7132, allocations: 4 kB / 436.5 MB, free: 23.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002595/0.7158, allocations: 323.8 kB / 436.8 MB, free: 22.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004563/0.7163, allocations: 90.53 kB / 436.9 MB, free: 22.81 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000158/0.7165, allocations: 31.98 kB / 436.9 MB, free: 22.78 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009495/0.7174, allocations: 1.273 MB / 438.2 MB, free: 21.38 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.7174, allocations: 3.938 kB / 438.2 MB, free: 21.37 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006886/0.7243, allocations: 3.258 MB / 441.5 MB, free: 17.99 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001413/0.7258, allocations: 456.1 kB / 441.9 MB, free: 17.52 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005701/0.7264, allocations: 28 kB / 441.9 MB, free: 17.5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001724/0.7281, allocations: 83.91 kB / 442 MB, free: 17.41 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002124/0.7284, allocations: 101.1 kB / 442.1 MB, free: 17.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001299/0.7285, allocations: 44.86 kB / 442.2 MB, free: 17.27 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002467/0.731, allocations: 1.217 MB / 443.4 MB, free: 16.04 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.731, allocations: 0 / 443.4 MB, free: 16.04 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00264/0.7337, allocations: 0.5297 MB / 443.9 MB, free: 15.51 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (145): * Single equations (assignments): 142 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000453/0.7342, allocations: 169.2 kB / 444.1 MB, free: 15.34 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004983/0.7392, allocations: 2.227 MB / 446.3 MB, free: 13.06 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.816e-06/0.7392, allocations: 4 kB / 446.3 MB, free: 13.05 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003774/0.743, allocations: 1.19 MB / 447.5 MB, free: 11.81 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005466/0.7485, allocations: 480.1 kB / 448 MB, free: 11.35 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02139/0.77, allocations: 6.778 MB / 454.7 MB, free: 4.512 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004243/0.7743, allocations: 2.278 MB / 457 MB, free: 2.207 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001505/0.7759, allocations: 171.3 kB / 457.2 MB, free: 2.039 MB / 330.7 MB Notification: Performance of SimCode: time 1.543e-06/0.7759, allocations: 0 / 457.2 MB, free: 2.039 MB / 330.7 MB Notification: Performance of Templates: time 0.175/0.9509, allocations: 80.69 MB / 0.5253 GB, free: 1.422 MB / 410.7 MB