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 2.079/2.079, allocations: 224.7 MB / 241.1 MB, free: 1.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.809e-05/2.808e-05, allocations: 4 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.11, allocations: 50.42 MB / 345 MB, free: 8.918 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.02217/0.1323, allocations: 12.47 MB / 357.5 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01297/0.1453, allocations: 4.655 MB / 362.1 MB, free: 7.727 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003286/0.1486, allocations: 135.6 kB / 362.3 MB, free: 7.594 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003773/0.1524, allocations: 0.8427 MB / 363.1 MB, free: 6.746 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006231/0.1587, allocations: 1.265 MB / 364.4 MB, free: 5.477 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003493/0.1623, allocations: 0.6821 MB / 365 MB, free: 4.793 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006546/0.1688, allocations: 2.106 MB / 367.1 MB, free: 2.688 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004748/0.1736, allocations: 2.028 MB / 369.2 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002637/0.1763, allocations: 1.013 MB / 370.2 MB, free: 15.62 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00347/0.1798, allocations: 1.378 MB / 371.6 MB, free: 14.24 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002112/0.182, allocations: 315.7 kB / 371.9 MB, free: 13.93 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001077/0.1831, allocations: 124 kB / 372 MB, free: 13.81 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001664/0.1848, allocations: 0.7668 MB / 372.8 MB, free: 13.04 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001459/0.1864, allocations: 296 kB / 373.1 MB, free: 12.75 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009453/0.1958, allocations: 5.528 MB / 378.6 MB, free: 7.211 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1959, allocations: 0 / 378.6 MB, free: 7.211 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.116e-06/0.1959, allocations: 4 kB / 378.6 MB, free: 7.207 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002365/0.1961, allocations: 0 / 378.6 MB, free: 7.207 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01371/0.2099, allocations: 3.62 MB / 382.2 MB, free: 3.52 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.969e-05/0.2099, allocations: 8.031 kB / 382.2 MB, free: 3.512 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007284/0.2172, allocations: 0.6705 MB / 382.9 MB, free: 2.836 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01078/0.2281, allocations: 2.4 MB / 385.3 MB, free: 392 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000612/0.2287, allocations: 274.9 kB / 385.6 MB, free: 116 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001681/0.2304, allocations: 344 kB / 385.9 MB, free: 15.77 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01977/0.2502, allocations: 4.409 MB / 390.3 MB, free: 11.31 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001723/0.2505, allocations: 0 / 390.3 MB, free: 11.31 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001033/0.2515, allocations: 148 kB / 390.4 MB, free: 11.17 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003629/0.2519, allocations: 162.7 kB / 390.6 MB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01767/0.2696, allocations: 3.724 MB / 394.3 MB, free: 7.277 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3376/0.6073, allocations: 14.46 MB / 408.8 MB, free: 39.6 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008317/0.6156, allocations: 5.33 MB / 414.1 MB, free: 35.2 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00971/0.6254, allocations: 3.188 MB / 417.3 MB, free: 33.57 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.183e-05/0.6255, allocations: 49.34 kB / 417.4 MB, free: 33.52 MB / 330.7 MB Notification: Performance of pre-optimization done (n=137): time 4.077e-06/0.6255, allocations: 0 / 417.4 MB, free: 33.52 MB / 330.7 MB Notification: Performance of matching and sorting (n=142): time 0.01769/0.6432, allocations: 5.745 MB / 423.1 MB, free: 30.59 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.726e-05/0.6433, allocations: 70.53 kB / 423.2 MB, free: 30.53 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004653/0.648, allocations: 1.781 MB / 424.9 MB, free: 29.82 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003195/0.6484, allocations: 49.61 kB / 425 MB, free: 29.77 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001157/0.6495, allocations: 1.562 MB / 426.6 MB, free: 28.38 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006971/0.6503, allocations: 498.1 kB / 427 MB, free: 27.95 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.6504, allocations: 35.94 kB / 427.1 MB, free: 27.93 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.6506, allocations: 389 kB / 427.5 MB, free: 27.56 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001976/0.6526, allocations: 0.7427 MB / 428.2 MB, free: 27.18 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002441/0.6551, allocations: 1.358 MB / 429.6 MB, free: 25.98 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002575/0.6577, allocations: 0.9819 MB / 430.5 MB, free: 25.46 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.161e-05/0.6578, allocations: 5.688 kB / 430.5 MB, free: 25.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.006245/0.664, allocations: 2.449 MB / 433 MB, free: 24.13 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4e-05/0.6641, allocations: 11.59 kB / 433 MB, free: 24.13 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.75e-05/0.6642, allocations: 21.78 kB / 433 MB, free: 24.13 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005313/0.6647, allocations: 139.2 kB / 433.2 MB, free: 24.06 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003441/0.6682, allocations: 485.5 kB / 433.6 MB, free: 23.94 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00291/0.6711, allocations: 3.096 MB / 436.7 MB, free: 20.9 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002672/0.6738, allocations: 109.8 kB / 436.8 MB, free: 20.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004044/0.6743, allocations: 78.31 kB / 436.9 MB, free: 20.83 MB / 330.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 (234): * Single equations (assignments): 231 * 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.002813/0.6771, allocations: 1.055 MB / 438 MB, free: 20.12 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006546/0.6778, allocations: 215.9 kB / 438.2 MB, free: 20.01 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005796/0.6836, allocations: 2.268 MB / 440.5 MB, free: 18.25 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.91e-05/0.6837, allocations: 16 kB / 440.5 MB, free: 18.23 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.6837, allocations: 4 kB / 440.5 MB, free: 18.23 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.621e-05/0.6838, allocations: 11.97 kB / 440.5 MB, free: 18.21 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01357/0.6973, allocations: 5.396 MB / 445.9 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.35e-05/0.6974, allocations: 4 kB / 445.9 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002179/0.6996, allocations: 247.6 kB / 446.1 MB, free: 12.46 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001111/0.7007, allocations: 275.4 kB / 446.4 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002515/0.701, allocations: 35.98 kB / 446.4 MB, free: 12.14 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007908/0.7089, allocations: 7.155 MB / 453.6 MB, free: 4.461 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.709, allocations: 8.344 kB / 453.6 MB, free: 4.453 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007577/0.7166, allocations: 3.502 MB / 457.1 MB, free: 0.7656 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001494/0.7181, allocations: 466.3 kB / 457.5 MB, free: 296 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006844/0.7189, allocations: 28 kB / 457.6 MB, free: 268 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002055/0.7209, allocations: 87.8 kB / 457.7 MB, free: 180 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003415/0.7213, allocations: 98.3 kB / 457.8 MB, free: 80 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001284/0.7215, allocations: 39.98 kB / 457.8 MB, free: 40 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003714/0.7252, allocations: 1.354 MB / 459.1 MB, free: 14.67 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.51e-07/0.7252, allocations: 1.531 kB / 459.2 MB, free: 14.67 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00357/0.7288, allocations: 0.577 MB / 459.7 MB, free: 14.09 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (122): * Single equations (assignments): 118 * 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%) 1,(1,100.0%) 5,(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.000654/0.7295, allocations: 167.8 kB / 459.9 MB, free: 13.93 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006033/0.7356, allocations: 2.161 MB / 462.1 MB, free: 11.72 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.232e-05/0.7356, allocations: 4 kB / 462.1 MB, free: 11.72 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003868/0.7395, allocations: 1.425 MB / 463.5 MB, free: 10.25 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004307/0.7439, allocations: 0.5078 MB / 464 MB, free: 9.742 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01944/0.7634, allocations: 7.446 MB / 471.4 MB, free: 2.23 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004511/0.7679, allocations: 2.439 MB / 473.9 MB, free: 15.76 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001181/0.7692, allocations: 163.4 kB / 474 MB, free: 15.6 MB / 362.7 MB Notification: Performance of SimCode: time 2.174e-06/0.7692, allocations: 0 / 474 MB, free: 15.6 MB / 362.7 MB Notification: Performance of Templates: time 0.1762/0.9454, allocations: 93.84 MB / 0.5546 GB, free: 1.781 MB / 442.7 MB