Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 2.123/2.123, allocations: 224.7 MB / 241.1 MB, free: 1.68 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.478e-05/2.478e-05, allocations: 0 / 294.6 MB, free: 11.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.114, allocations: 50.42 MB / 345 MB, free: 8.922 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01481/0.1288, allocations: 8.637 MB / 353.6 MB, free: 256 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.009026/0.1379, allocations: 3.18 MB / 356.8 MB, free: 13.06 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002169/0.1402, allocations: 83.75 kB / 356.9 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002608/0.1428, allocations: 0.5942 MB / 357.5 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003842/0.1467, allocations: 0.7086 MB / 358.2 MB, free: 11.67 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001728/0.1485, allocations: 299.6 kB / 358.5 MB, free: 11.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004463/0.153, allocations: 1.424 MB / 359.9 MB, free: 9.953 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003325/0.1563, allocations: 1.486 MB / 361.4 MB, free: 8.449 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001943/0.1584, allocations: 0.7518 MB / 362.1 MB, free: 7.695 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002689/0.1611, allocations: 1.082 MB / 363.2 MB, free: 6.609 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001224/0.1624, allocations: 179.8 kB / 363.4 MB, free: 6.434 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005581/0.163, allocations: 92 kB / 363.5 MB, free: 6.344 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001223/0.1642, allocations: 0.7048 MB / 364.2 MB, free: 5.637 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009913/0.1652, allocations: 232 kB / 364.4 MB, free: 5.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006796/0.172, allocations: 3.864 MB / 368.3 MB, free: 1.535 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.1721, allocations: 4 kB / 368.3 MB, free: 1.531 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.647e-06/0.1721, allocations: 0 / 368.3 MB, free: 1.531 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001764/0.1723, allocations: 0 / 368.3 MB, free: 1.531 MB / 298.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.008912/0.1812, allocations: 2.61 MB / 370.9 MB, free: 14.86 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/0.1813, allocations: 12.03 kB / 370.9 MB, free: 14.85 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001809/0.1831, allocations: 336.1 kB / 371.2 MB, free: 14.52 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005432/0.1886, allocations: 1.729 MB / 373 MB, free: 12.73 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003163/0.189, allocations: 197 kB / 373.2 MB, free: 12.54 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008589/0.1898, allocations: 251.9 kB / 373.4 MB, free: 12.29 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01007/0.1999, allocations: 3.24 MB / 376.6 MB, free: 8.969 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001162/0.2001, allocations: 11.84 kB / 376.7 MB, free: 8.957 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003926/0.2005, allocations: 104 kB / 376.8 MB, free: 8.855 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002241/0.2007, allocations: 132.9 kB / 376.9 MB, free: 8.723 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009155/0.2099, allocations: 2.736 MB / 379.6 MB, free: 5.973 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02826/0.2382, allocations: 10.46 MB / 390.1 MB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003354/0.2416, allocations: 1.346 MB / 391.4 MB, free: 9.738 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004648/0.2422, allocations: 208.2 kB / 391.6 MB, free: 9.5 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.658e-05/0.2422, allocations: 51.5 kB / 391.7 MB, free: 9.441 MB / 330.7 MB Notification: Performance of pre-optimization done (n=98): time 3.767e-06/0.2422, allocations: 0 / 391.7 MB, free: 9.441 MB / 330.7 MB Notification: Performance of matching and sorting (n=123): time 0.02702/0.2693, allocations: 6.956 MB / 398.6 MB, free: 2.367 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.808e-05/0.2694, allocations: 68.41 kB / 398.7 MB, free: 2.289 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004099/0.2735, allocations: 1.527 MB / 400.2 MB, free: 0.7656 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002947/0.2739, allocations: 45.7 kB / 400.3 MB, free: 0.7148 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.283/0.5569, allocations: 1.195 MB / 401.5 MB, free: 48.11 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006985/0.5577, allocations: 433.2 kB / 401.9 MB, free: 47.9 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000167/0.5579, allocations: 38.27 kB / 401.9 MB, free: 47.9 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.558, allocations: 369.3 kB / 402.3 MB, free: 47.59 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002484/0.5605, allocations: 0.7789 MB / 403.1 MB, free: 47.59 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002814/0.5634, allocations: 1.285 MB / 404.4 MB, free: 46.9 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00268/0.5661, allocations: 0.9821 MB / 405.3 MB, free: 46.51 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.951e-05/0.5662, allocations: 4.719 kB / 405.3 MB, free: 46.51 MB / 330.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.006758/0.573, allocations: 2.355 MB / 407.7 MB, free: 45.6 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.619e-05/0.5731, allocations: 13.41 kB / 407.7 MB, free: 45.6 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-05/0.5731, allocations: 15.72 kB / 407.7 MB, free: 45.6 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001025/0.5742, allocations: 241.7 kB / 408 MB, free: 45.52 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00317/0.5773, allocations: 421.9 kB / 408.4 MB, free: 45.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003381/0.5808, allocations: 3.04 MB / 411.4 MB, free: 42.71 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00239/0.5832, allocations: 132.6 kB / 411.6 MB, free: 42.68 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002514/0.5835, allocations: 70.58 kB / 411.6 MB, free: 42.66 MB / 330.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 (198): * Single equations (assignments): 194 * 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.002184/0.5857, allocations: 0.8094 MB / 412.4 MB, free: 42.22 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005861/0.5863, allocations: 186.5 kB / 412.6 MB, free: 42.12 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005647/0.592, allocations: 2.046 MB / 414.7 MB, free: 41.3 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.373e-05/0.592, allocations: 12.88 kB / 414.7 MB, free: 41.3 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/0.5921, allocations: 5.312 kB / 414.7 MB, free: 41.29 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.849e-05/0.5921, allocations: 10.23 kB / 414.7 MB, free: 41.29 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01166/0.6038, allocations: 4.727 MB / 419.4 MB, free: 39.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.238e-05/0.6038, allocations: 3.031 kB / 419.4 MB, free: 39.34 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002206/0.6061, allocations: 275.3 kB / 419.7 MB, free: 39.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009206/0.607, allocations: 205.3 kB / 419.9 MB, free: 39.25 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001734/0.6072, allocations: 24.91 kB / 419.9 MB, free: 39.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0031/0.6103, allocations: 3.011 MB / 422.9 MB, free: 36.47 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.6104, allocations: 3.906 kB / 422.9 MB, free: 36.47 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00696/0.6173, allocations: 3.3 MB / 426.2 MB, free: 34.72 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001233/0.6186, allocations: 423.9 kB / 426.6 MB, free: 34.41 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004518/0.6191, allocations: 21.81 kB / 426.7 MB, free: 34.39 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001673/0.6208, allocations: 97.64 kB / 426.8 MB, free: 34.34 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002228/0.621, allocations: 81.56 kB / 426.8 MB, free: 34.3 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000122/0.6212, allocations: 33.03 kB / 426.9 MB, free: 34.29 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002312/0.6235, allocations: 1.175 MB / 428 MB, free: 33.34 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.22e-07/0.6235, allocations: 0 / 428 MB, free: 33.34 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002272/0.6258, allocations: 484.5 kB / 428.5 MB, free: 32.87 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 (121): * Single equations (assignments): 117 * 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.0004263/0.6263, allocations: 162.1 kB / 428.7 MB, free: 32.71 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.005119/0.6314, allocations: 2.344 MB / 431 MB, free: 30.3 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.757e-06/0.6315, allocations: 4 kB / 431 MB, free: 30.3 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002807/0.6343, allocations: 1.345 MB / 432.4 MB, free: 28.89 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003504/0.6378, allocations: 455 kB / 432.8 MB, free: 28.45 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01143/0.6493, allocations: 5.859 MB / 438.7 MB, free: 22.53 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001936/0.6513, allocations: 2.028 MB / 440.7 MB, free: 20.46 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009725/0.6523, allocations: 151.4 kB / 440.8 MB, free: 20.32 MB / 330.7 MB Notification: Performance of SimCode: time 1.323e-06/0.6523, allocations: 4 kB / 440.8 MB, free: 20.31 MB / 330.7 MB Notification: Performance of Templates: time 0.1352/0.7875, allocations: 77.77 MB / 0.5065 GB, free: 6.559 MB / 394.7 MB