Running command: translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") Notification: Performance of loadModel(Modelica): time 2.141/2.141, allocations: 224.7 MB / 241.1 MB, free: 1.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.222e-05/3.216e-05, allocations: 8 kB / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1107, allocations: 50.41 MB / 345 MB, free: 8.949 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.01869/0.1294, allocations: 10.96 MB / 355.9 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01128/0.1408, allocations: 4.397 MB / 360.3 MB, free: 9.531 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002753/0.1436, allocations: 107.8 kB / 360.4 MB, free: 9.426 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003419/0.147, allocations: 0.6755 MB / 361.1 MB, free: 8.746 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004086/0.1512, allocations: 0.7826 MB / 361.9 MB, free: 7.961 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002694/0.1539, allocations: 0.4953 MB / 362.4 MB, free: 7.465 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004118/0.1581, allocations: 1.2 MB / 363.6 MB, free: 6.262 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001475/0.1596, allocations: 0.5681 MB / 364.2 MB, free: 5.684 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001155/0.1608, allocations: 0.4906 MB / 364.7 MB, free: 5.191 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001223/0.162, allocations: 0.5914 MB / 365.2 MB, free: 4.598 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005504/0.1626, allocations: 99.98 kB / 365.3 MB, free: 4.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000323/0.1629, allocations: 64 kB / 365.4 MB, free: 4.438 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002898/0.1632, allocations: 246.8 kB / 365.6 MB, free: 4.195 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004337/0.1637, allocations: 140 kB / 365.8 MB, free: 4.059 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003505/0.1672, allocations: 2.162 MB / 367.9 MB, free: 1.891 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.1673, allocations: 3.938 kB / 368 MB, free: 1.887 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.731e-06/0.1673, allocations: 0 / 368 MB, free: 1.887 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.768e-05/0.1674, allocations: 7.938 kB / 368 MB, free: 1.879 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.004347/0.1717, allocations: 1.538 MB / 369.5 MB, free: 292 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.1718, allocations: 12.03 kB / 369.5 MB, free: 280 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001229/0.1731, allocations: 241.6 kB / 369.7 MB, free: 36 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00283/0.1759, allocations: 0.9966 MB / 370.7 MB, free: 14.99 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001277/0.1761, allocations: 115 kB / 370.9 MB, free: 14.88 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000338/0.1764, allocations: 147.9 kB / 371 MB, free: 14.73 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004241/0.1807, allocations: 1.419 MB / 372.4 MB, free: 13.26 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.591e-05/0.1808, allocations: 7.844 kB / 372.4 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001991/0.181, allocations: 64 kB / 372.5 MB, free: 13.19 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.497e-05/0.1811, allocations: 36 kB / 372.5 MB, free: 13.15 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003541/0.1846, allocations: 0.9673 MB / 373.5 MB, free: 12.18 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0139/0.1986, allocations: 6.167 MB / 379.7 MB, free: 5.711 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001867/0.2005, allocations: 0.6473 MB / 380.3 MB, free: 5.023 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.196e-05/0.2006, allocations: 4.438 kB / 380.3 MB, free: 5.02 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.767e-05/0.2006, allocations: 39 kB / 380.3 MB, free: 4.973 MB / 314.7 MB Notification: Performance of pre-optimization done (n=51): time 4.459e-06/0.2007, allocations: 4 kB / 380.4 MB, free: 4.969 MB / 314.7 MB Notification: Performance of matching and sorting (n=54): time 0.006909/0.2076, allocations: 1.755 MB / 382.1 MB, free: 3.141 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.946e-05/0.2077, allocations: 89.48 kB / 382.2 MB, free: 3.035 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003196/0.2109, allocations: 0.9806 MB / 383.2 MB, free: 2.043 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001393/0.2111, allocations: 33.7 kB / 383.2 MB, free: 2.004 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001074/0.2122, allocations: 0.7881 MB / 384 MB, free: 1.207 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003941/0.2126, allocations: 209.1 kB / 384.2 MB, free: 1 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.39e-05/0.2127, allocations: 20 kB / 384.2 MB, free: 0.9805 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002377/0.213, allocations: 346.8 kB / 384.6 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001352/0.2143, allocations: 245.9 kB / 384.8 MB, free: 404 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001791/0.2162, allocations: 0.6213 MB / 385.4 MB, free: 15.59 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0016/0.2178, allocations: 350 kB / 385.8 MB, free: 15.25 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-05/0.2178, allocations: 4 kB / 385.8 MB, free: 15.25 MB / 330.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.003719/0.2216, allocations: 0.9291 MB / 386.7 MB, free: 14.31 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002776/0.2244, allocations: 5.134 MB / 391.8 MB, free: 8.773 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-05/0.2245, allocations: 16 kB / 391.8 MB, free: 8.758 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003392/0.2248, allocations: 44.84 kB / 391.9 MB, free: 8.711 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002134/0.227, allocations: 227.6 kB / 392.1 MB, free: 8.488 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001811/0.2288, allocations: 1.307 MB / 393.4 MB, free: 7.043 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001974/0.2308, allocations: 60.06 kB / 393.5 MB, free: 6.984 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001456/0.231, allocations: 48 kB / 393.5 MB, free: 6.938 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.231, allocations: 7.984 kB / 393.5 MB, free: 6.93 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003115/0.2342, allocations: 0.8064 MB / 394.3 MB, free: 6.121 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.298e-05/0.2343, allocations: 16.78 kB / 394.4 MB, free: 6.105 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001985/0.2345, allocations: 44.84 kB / 394.4 MB, free: 6.059 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001823/0.2363, allocations: 215.7 kB / 394.6 MB, free: 5.848 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00168/0.238, allocations: 1.296 MB / 395.9 MB, free: 4.422 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001058/0.2391, allocations: 32 kB / 395.9 MB, free: 4.391 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001425/0.2393, allocations: 44 kB / 396 MB, free: 4.348 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 121 * 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.001314/0.2406, allocations: 337.4 kB / 396.3 MB, free: 4.008 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004644/0.2411, allocations: 118.6 kB / 396.4 MB, free: 3.891 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002651/0.2438, allocations: 0.5829 MB / 397 MB, free: 3.285 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.668e-05/0.2438, allocations: 8 kB / 397 MB, free: 3.277 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/0.2438, allocations: 4 kB / 397 MB, free: 3.273 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.405e-05/0.2439, allocations: 3.984 kB / 397 MB, free: 3.27 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00653/0.2504, allocations: 1.874 MB / 398.9 MB, free: 1.324 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.937e-06/0.2505, allocations: 0 / 398.9 MB, free: 1.324 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001352/0.2518, allocations: 107.9 kB / 399 MB, free: 1.219 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001894/0.252, allocations: 29.06 kB / 399 MB, free: 1.188 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.208e-05/0.2521, allocations: 12 kB / 399 MB, free: 1.176 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2858/0.538, allocations: 1.278 MB / 400.3 MB, free: 48.53 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.835e-06/0.5381, allocations: 3.25 kB / 400.3 MB, free: 48.53 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002961/0.541, allocations: 1.024 MB / 401.3 MB, free: 48.23 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007555/0.5418, allocations: 239.9 kB / 401.6 MB, free: 48.13 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002595/0.5421, allocations: 16 kB / 401.6 MB, free: 48.13 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009379/0.5431, allocations: 37.59 kB / 401.6 MB, free: 48.13 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001451/0.5432, allocations: 44.33 kB / 401.7 MB, free: 48.13 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.723e-05/0.5433, allocations: 16.95 kB / 401.7 MB, free: 48.13 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002122/0.5454, allocations: 0.7352 MB / 402.4 MB, free: 48.02 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.22e-07/0.5455, allocations: 1 kB / 402.4 MB, free: 48.02 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002447/0.5479, allocations: 466.1 kB / 402.9 MB, free: 48.02 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (loadInertia.w,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,loadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 52 * 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.0003262/0.5483, allocations: 140.5 kB / 403 MB, free: 47.93 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003457/0.5518, allocations: 1.259 MB / 404.3 MB, free: 47.57 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.138e-05/0.5518, allocations: 1.094 kB / 404.3 MB, free: 47.57 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009312/0.5528, allocations: 360 kB / 404.6 MB, free: 47.38 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002213/0.555, allocations: 254.3 kB / 404.9 MB, free: 47.31 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007054/0.5621, allocations: 3.104 MB / 408 MB, free: 45.48 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001072/0.5632, allocations: 1.2 MB / 409.2 MB, free: 44.75 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004805/0.5637, allocations: 83.86 kB / 409.3 MB, free: 44.74 MB / 330.7 MB Notification: Performance of SimCode: time 1.242e-06/0.5637, allocations: 0 / 409.3 MB, free: 44.74 MB / 330.7 MB Notification: Performance of Templates: time 0.04138/0.6051, allocations: 21.86 MB / 431.1 MB, free: 30.02 MB / 330.7 MB