Running command: translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") Notification: Performance of loadModel(Modelica): time 2.111/2.111, allocations: 224.7 MB / 241.1 MB, free: 1.703 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.96e-05/2.955e-05, allocations: 4 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1097, allocations: 50.42 MB / 345 MB, free: 8.949 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.01957/0.1293, allocations: 11.43 MB / 356.4 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01206/0.1414, allocations: 4.576 MB / 361 MB, free: 8.879 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002976/0.1445, allocations: 115.8 kB / 361.1 MB, free: 8.766 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003317/0.1478, allocations: 0.6909 MB / 361.8 MB, free: 8.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004527/0.1524, allocations: 0.8136 MB / 362.6 MB, free: 7.254 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003046/0.1555, allocations: 0.5618 MB / 363.2 MB, free: 6.691 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004374/0.1599, allocations: 1.349 MB / 364.5 MB, free: 5.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001453/0.1614, allocations: 0.6131 MB / 365.1 MB, free: 4.715 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001052/0.1625, allocations: 0.5296 MB / 365.7 MB, free: 4.184 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001131/0.1637, allocations: 0.6419 MB / 366.3 MB, free: 3.539 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004979/0.1642, allocations: 112 kB / 366.4 MB, free: 3.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002857/0.1645, allocations: 75.98 kB / 366.5 MB, free: 3.355 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002974/0.1648, allocations: 266.7 kB / 366.7 MB, free: 3.094 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004086/0.1652, allocations: 152 kB / 366.9 MB, free: 2.945 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003465/0.1687, allocations: 2.337 MB / 369.2 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1687, allocations: 7.938 kB / 369.2 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.086e-06/0.1688, allocations: 0 / 369.2 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.716e-05/0.1688, allocations: 0 / 369.2 MB, free: 0.5938 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: 417 * Number of variables: 417 Notification: Performance of Generate backend data structure: time 0.004712/0.1736, allocations: 1.703 MB / 370.9 MB, free: 14.84 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.1736, allocations: 8.031 kB / 370.9 MB, free: 14.83 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001227/0.1749, allocations: 269.4 kB / 371.2 MB, free: 14.56 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003006/0.1779, allocations: 1.091 MB / 372.3 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001425/0.1781, allocations: 123.3 kB / 372.4 MB, free: 13.29 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000373/0.1785, allocations: 167.9 kB / 372.6 MB, free: 13.13 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004905/0.1834, allocations: 1.594 MB / 374.2 MB, free: 11.47 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.826e-05/0.1835, allocations: 8 kB / 374.2 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002201/0.1838, allocations: 68 kB / 374.3 MB, free: 11.4 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.236e-05/0.1838, allocations: 40 kB / 374.3 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003963/0.1878, allocations: 1.109 MB / 375.4 MB, free: 10.25 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01442/0.2022, allocations: 6.693 MB / 382.1 MB, free: 3.246 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003124/0.2054, allocations: 0.9993 MB / 383.1 MB, free: 2.18 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.194e-05/0.2055, allocations: 8.562 kB / 383.1 MB, free: 2.172 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.783e-05/0.2056, allocations: 51.11 kB / 383.2 MB, free: 2.113 MB / 314.7 MB Notification: Performance of pre-optimization done (n=61): time 3.747e-06/0.2056, allocations: 0 / 383.2 MB, free: 2.113 MB / 314.7 MB Notification: Performance of matching and sorting (n=64): time 0.006838/0.2125, allocations: 2.132 MB / 385.3 MB, free: 15.91 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.598e-05/0.2126, allocations: 81.67 kB / 385.4 MB, free: 15.82 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002535/0.2151, allocations: 1.098 MB / 386.5 MB, free: 14.71 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001168/0.2153, allocations: 37.7 kB / 386.5 MB, free: 14.66 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008077/0.2161, allocations: 0.8624 MB / 387.4 MB, free: 13.79 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003018/0.2164, allocations: 240.6 kB / 387.6 MB, free: 13.55 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.748e-05/0.2165, allocations: 24 kB / 387.6 MB, free: 13.53 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.2167, allocations: 354.8 kB / 388 MB, free: 13.18 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001164/0.2178, allocations: 310.5 kB / 388.3 MB, free: 12.87 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001485/0.2193, allocations: 0.7197 MB / 389 MB, free: 11.96 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001347/0.2207, allocations: 419 kB / 389.4 MB, free: 11.55 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.025e-05/0.2207, allocations: 4 kB / 389.4 MB, free: 11.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003297/0.224, allocations: 1.099 MB / 390.5 MB, free: 10.44 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0023/0.2264, allocations: 5.312 MB / 395.8 MB, free: 4.711 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-05/0.2265, allocations: 19.95 kB / 395.8 MB, free: 4.691 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003299/0.2268, allocations: 40.86 kB / 395.9 MB, free: 4.648 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001905/0.2287, allocations: 275.5 kB / 396.1 MB, free: 4.379 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001326/0.2301, allocations: 1.299 MB / 397.4 MB, free: 2.949 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001515/0.2316, allocations: 76.06 kB / 397.5 MB, free: 2.875 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000109/0.2317, allocations: 55.94 kB / 397.6 MB, free: 2.82 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.157e-05/0.2318, allocations: 4 kB / 397.6 MB, free: 2.816 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002637/0.2344, allocations: 0.9456 MB / 398.5 MB, free: 1.867 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.337e-05/0.2345, allocations: 16 kB / 398.5 MB, free: 1.852 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001671/0.2346, allocations: 40.84 kB / 398.6 MB, free: 1.809 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001607/0.2363, allocations: 256.1 kB / 398.8 MB, free: 1.559 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001206/0.2375, allocations: 1.303 MB / 400.1 MB, free: 124 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007119/0.2382, allocations: 48.16 kB / 400.2 MB, free: 76 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.544e-05/0.2383, allocations: 55.98 kB / 400.2 MB, free: 20 kB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 3 (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 (139): * Single equations (assignments): 138 * 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.3162/0.5546, allocations: 354.1 kB / 400.6 MB, free: 48.88 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003964/0.555, allocations: 130.8 kB / 400.7 MB, free: 48.88 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002684/0.5577, allocations: 0.7279 MB / 401.4 MB, free: 48.81 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-05/0.5577, allocations: 6.438 kB / 401.4 MB, free: 48.81 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.5577, allocations: 1.516 kB / 401.4 MB, free: 48.81 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.496e-05/0.5578, allocations: 6.297 kB / 401.4 MB, free: 48.81 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005977/0.5637, allocations: 2.165 MB / 403.6 MB, free: 48.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.467e-06/0.5638, allocations: 2.656 kB / 403.6 MB, free: 48.09 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001265/0.5651, allocations: 144.5 kB / 403.8 MB, free: 48.08 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001444/0.5652, allocations: 23.91 kB / 403.8 MB, free: 48.07 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.397e-05/0.5653, allocations: 19.02 kB / 403.8 MB, free: 48.06 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009526/0.5663, allocations: 1.281 MB / 405.1 MB, free: 46.77 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.5663, allocations: 2.469 kB / 405.1 MB, free: 46.77 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003468/0.5698, allocations: 1.258 MB / 406.3 MB, free: 46.14 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007239/0.5705, allocations: 272 kB / 406.6 MB, free: 45.99 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000284/0.5708, allocations: 15.95 kB / 406.6 MB, free: 45.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001066/0.5719, allocations: 58.73 kB / 406.7 MB, free: 45.97 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/0.5721, allocations: 51.03 kB / 406.7 MB, free: 45.96 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.802e-05/0.5721, allocations: 18.95 kB / 406.7 MB, free: 45.96 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001943/0.5741, allocations: 0.8233 MB / 407.6 MB, free: 45.61 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.5741, allocations: 1.062 kB / 407.6 MB, free: 45.61 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002501/0.5766, allocations: 0.4961 MB / 408.1 MB, free: 45.57 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 13 (loadInertia.w,dcpm.inertiaRotor.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,preFilter.y,slewRateLimiter.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 62 * 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.000309/0.577, allocations: 147.1 kB / 408.2 MB, free: 45.46 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004198/0.5812, allocations: 1.483 MB / 409.7 MB, free: 44.86 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.607e-06/0.5812, allocations: 1 kB / 409.7 MB, free: 44.86 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001251/0.5825, allocations: 442.2 kB / 410.1 MB, free: 44.64 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002419/0.5849, allocations: 294.6 kB / 410.4 MB, free: 44.56 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007629/0.5926, allocations: 3.492 MB / 413.9 MB, free: 42.49 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00104/0.5936, allocations: 1.269 MB / 415.2 MB, free: 41.76 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005474/0.5942, allocations: 91.69 kB / 415.3 MB, free: 41.75 MB / 330.7 MB Notification: Performance of SimCode: time 2.385e-06/0.5942, allocations: 7.938 kB / 415.3 MB, free: 41.75 MB / 330.7 MB Notification: Performance of Templates: time 0.0434/0.6376, allocations: 24.49 MB / 439.8 MB, free: 21.7 MB / 330.7 MB