Running command: translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") Notification: Performance of loadModel(Modelica): time 2.05/2.05, allocations: 224.7 MB / 241.1 MB, free: 1.648 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.487e-05/2.474e-05, allocations: 0 / 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.93 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01958/0.1296, allocations: 11.92 MB / 356.9 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01645/0.1462, allocations: 4.83 MB / 361.7 MB, free: 8.113 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003253/0.1495, allocations: 127.7 kB / 361.9 MB, free: 7.988 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003473/0.153, allocations: 0.7259 MB / 362.6 MB, free: 7.258 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004511/0.1575, allocations: 0.8564 MB / 363.4 MB, free: 6.398 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003198/0.1608, allocations: 0.6671 MB / 364.1 MB, free: 5.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004835/0.1656, allocations: 1.509 MB / 365.6 MB, free: 4.219 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001662/0.1673, allocations: 0.6689 MB / 366.3 MB, free: 3.539 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001626/0.169, allocations: 0.6892 MB / 367 MB, free: 2.848 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00143/0.1704, allocations: 0.7197 MB / 367.7 MB, free: 2.125 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003777/0.1708, allocations: 68 kB / 367.8 MB, free: 2.059 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003611/0.1712, allocations: 68 kB / 367.8 MB, free: 1.992 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004007/0.1716, allocations: 302.6 kB / 368.1 MB, free: 1.695 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004907/0.1721, allocations: 168 kB / 368.3 MB, free: 1.531 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00356/0.1757, allocations: 2.427 MB / 370.7 MB, free: 15.1 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1757, allocations: 0 / 370.7 MB, free: 15.1 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.1757, allocations: 4 kB / 370.7 MB, free: 15.09 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.882e-05/0.1758, allocations: 0 / 370.7 MB, free: 15.09 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: 473 * Number of variables: 473 Notification: Performance of Generate backend data structure: time 0.00578/0.1816, allocations: 1.923 MB / 372.6 MB, free: 13.12 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/0.1817, allocations: 12.03 kB / 372.7 MB, free: 13.11 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000755/0.1825, allocations: 253 kB / 372.9 MB, free: 12.86 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003387/0.1859, allocations: 1.163 MB / 374.1 MB, free: 11.64 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004654/0.1864, allocations: 256.8 kB / 374.3 MB, free: 11.37 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004847/0.1869, allocations: 199.8 kB / 374.5 MB, free: 11.17 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006079/0.193, allocations: 1.923 MB / 376.4 MB, free: 9.188 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.968e-05/0.1931, allocations: 0 / 376.4 MB, free: 9.188 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002532/0.1933, allocations: 83.94 kB / 376.5 MB, free: 9.105 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.213e-05/0.1934, allocations: 44 kB / 376.6 MB, free: 9.062 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006435/0.1999, allocations: 1.618 MB / 378.2 MB, free: 7.441 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01638/0.2163, allocations: 7.289 MB / 385.5 MB, free: 15.83 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004797/0.2211, allocations: 1.257 MB / 386.7 MB, free: 14.49 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001503/0.2213, allocations: 9 kB / 386.7 MB, free: 14.48 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.952e-05/0.2214, allocations: 47.56 kB / 386.8 MB, free: 14.43 MB / 330.7 MB Notification: Performance of pre-optimization done (n=83): time 3.367e-06/0.2214, allocations: 0 / 386.8 MB, free: 14.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=110): time 0.06258/0.284, allocations: 8.803 MB / 395.6 MB, free: 5.504 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.868e-05/0.2841, allocations: 64.41 kB / 395.6 MB, free: 5.426 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002362/0.2865, allocations: 1.049 MB / 396.7 MB, free: 4.371 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002199/0.2867, allocations: 53.7 kB / 396.7 MB, free: 4.312 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000908/0.2876, allocations: 0.9675 MB / 397.7 MB, free: 3.332 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004913/0.2881, allocations: 386.5 kB / 398.1 MB, free: 2.949 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001394/0.2883, allocations: 28 kB / 398.1 MB, free: 2.922 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001983/0.2885, allocations: 374.7 kB / 398.5 MB, free: 2.547 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003564/0.2921, allocations: 0.7691 MB / 399.2 MB, free: 1.777 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003916/0.296, allocations: 1.226 MB / 400.5 MB, free: 356 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2812/0.5772, allocations: 0.802 MB / 401.3 MB, free: 49.91 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.788e-05/0.5773, allocations: 7.062 kB / 401.3 MB, free: 49.91 MB / 330.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.009355/0.5866, allocations: 2.134 MB / 403.4 MB, free: 49.52 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001263/0.5879, allocations: 5.748 MB / 409.2 MB, free: 43.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.845e-05/0.588, allocations: 14.91 kB / 409.2 MB, free: 43.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002753/0.5883, allocations: 39.88 kB / 409.2 MB, free: 43.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003739/0.5921, allocations: 437.7 kB / 409.6 MB, free: 43.37 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001078/0.5932, allocations: 1.286 MB / 410.9 MB, free: 42.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002703/0.5959, allocations: 178.9 kB / 411.1 MB, free: 42.03 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002612/0.5962, allocations: 66 kB / 411.2 MB, free: 42.02 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.5963, allocations: 4.375 kB / 411.2 MB, free: 42.02 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009499/0.6058, allocations: 1.956 MB / 413.1 MB, free: 41.21 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.131e-05/0.6059, allocations: 13.72 kB / 413.1 MB, free: 41.21 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000154/0.6061, allocations: 53.38 kB / 413.2 MB, free: 41.19 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003509/0.6096, allocations: 419.4 kB / 413.6 MB, free: 41.15 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001085/0.6107, allocations: 1.284 MB / 414.9 MB, free: 39.85 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002101/0.6129, allocations: 142 kB / 415 MB, free: 39.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002166/0.6131, allocations: 67.84 kB / 415.1 MB, free: 39.81 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 5 (kinematicPTP.moving[1],kinematicPTP.noWphase,speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (196): * Single equations (assignments): 195 * 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: 1 * Mixed (continuous/discrete) equation systems: 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.001341/0.6145, allocations: 405.7 kB / 415.5 MB, free: 39.52 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000457/0.615, allocations: 155.6 kB / 415.6 MB, free: 39.52 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007642/0.6226, allocations: 1.681 MB / 417.3 MB, free: 38.85 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-05/0.6227, allocations: 11.5 kB / 417.3 MB, free: 38.85 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.904e-06/0.6227, allocations: 0.5625 kB / 417.3 MB, free: 38.85 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-05/0.6228, allocations: 9.391 kB / 417.3 MB, free: 38.84 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01339/0.6362, allocations: 3.899 MB / 421.2 MB, free: 37.01 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.483e-05/0.6362, allocations: 14.17 kB / 421.3 MB, free: 37.01 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002421/0.6387, allocations: 287.8 kB / 421.5 MB, free: 36.98 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001742/0.6389, allocations: 32 kB / 421.6 MB, free: 36.97 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001899/0.6391, allocations: 34.56 kB / 421.6 MB, free: 36.95 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009671/0.6401, allocations: 1.282 MB / 422.9 MB, free: 35.65 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-05/0.6401, allocations: 19.45 kB / 422.9 MB, free: 35.64 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008417/0.6486, allocations: 2.976 MB / 425.9 MB, free: 33.57 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008643/0.6495, allocations: 313.7 kB / 426.2 MB, free: 33.39 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003589/0.6499, allocations: 31.62 kB / 426.2 MB, free: 33.38 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001697/0.6516, allocations: 136.5 kB / 426.4 MB, free: 33.36 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003357/0.6519, allocations: 133.3 kB / 426.5 MB, free: 33.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.796e-05/0.652, allocations: 35.53 kB / 426.5 MB, free: 33.32 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001577/0.6536, allocations: 0.7908 MB / 427.3 MB, free: 33 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6536, allocations: 0 / 427.3 MB, free: 33 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002851/0.6565, allocations: 0.6115 MB / 427.9 MB, free: 32.93 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 11 (loadInertia.w,speedSensor.flange.phi,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,currentController.integrator.y,speedController.integrator.y) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 108 * 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: 1 * Mixed (continuous/discrete) equation systems: 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.0003067/0.6569, allocations: 160.2 kB / 428.1 MB, free: 32.81 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.01104/0.6679, allocations: 2.922 MB / 431 MB, free: 30.57 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.501e-05/0.668, allocations: 4 kB / 431 MB, free: 30.57 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002932/0.6709, allocations: 0.7569 MB / 431.8 MB, free: 29.81 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002407/0.6734, allocations: 324.6 kB / 432.1 MB, free: 29.51 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009727/0.6831, allocations: 4.33 MB / 436.4 MB, free: 25.02 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009977/0.6842, allocations: 1.384 MB / 437.8 MB, free: 23.61 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008605/0.6851, allocations: 111.4 kB / 437.9 MB, free: 23.5 MB / 330.7 MB Notification: Performance of SimCode: time 1.122e-06/0.6851, allocations: 0 / 437.9 MB, free: 23.5 MB / 330.7 MB Notification: Performance of Templates: time 0.05232/0.7374, allocations: 29.39 MB / 467.3 MB, free: 10.14 MB / 346.7 MB