Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadModel(Modelica): time 2.188/2.188, allocations: 224.7 MB / 241.1 MB, free: 1.66 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.644e-05/2.657e-05, allocations: 0 / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1134, allocations: 50.42 MB / 345 MB, free: 8.945 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.009375/0.1229, allocations: 5.564 MB / 350.5 MB, free: 3.352 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004992/0.1279, allocations: 2.055 MB / 352.6 MB, free: 1.293 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008924/0.1289, allocations: 31.94 kB / 352.6 MB, free: 1.262 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001335/0.1302, allocations: 346.1 kB / 353 MB, free: 0.9219 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001605/0.1319, allocations: 362.8 kB / 353.3 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006416/0.1326, allocations: 123.9 kB / 353.4 MB, free: 456 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.00203/0.1346, allocations: 0.6635 MB / 354.1 MB, free: 15.78 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006294/0.1353, allocations: 258.2 kB / 354.4 MB, free: 15.53 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005846/0.1359, allocations: 295.1 kB / 354.7 MB, free: 15.24 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006029/0.1365, allocations: 338.7 kB / 355 MB, free: 14.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003815/0.1369, allocations: 83.84 kB / 355.1 MB, free: 14.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001614/0.1371, allocations: 36 kB / 355.1 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001528/0.1372, allocations: 127.4 kB / 355.2 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002614/0.1375, allocations: 95.94 kB / 355.3 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00174/0.1393, allocations: 1.083 MB / 356.4 MB, free: 13.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1393, allocations: 0 / 356.4 MB, free: 13.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.845e-06/0.1393, allocations: 0 / 356.4 MB, free: 13.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.796e-05/0.1394, allocations: 0 / 356.4 MB, free: 13.48 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002356/0.1417, allocations: 0.9866 MB / 357.4 MB, free: 12.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.04e-05/0.1418, allocations: 12.03 kB / 357.4 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005874/0.1424, allocations: 126.7 kB / 357.5 MB, free: 12.31 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001535/0.1439, allocations: 0.6134 MB / 358.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.226e-05/0.144, allocations: 58 kB / 358.2 MB, free: 11.6 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001928/0.1442, allocations: 83.98 kB / 358.3 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002195/0.1465, allocations: 0.7637 MB / 359 MB, free: 10.72 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.709e-05/0.1465, allocations: 11.84 kB / 359 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000108/0.1467, allocations: 36 kB / 359.1 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.2e-05/0.1467, allocations: 27.95 kB / 359.1 MB, free: 10.65 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001846/0.1486, allocations: 0.5231 MB / 359.6 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006668/0.1553, allocations: 3.356 MB / 363 MB, free: 6.559 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008021/0.1561, allocations: 230.6 kB / 363.2 MB, free: 6.324 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.123e-05/0.1562, allocations: 3.984 kB / 363.2 MB, free: 6.32 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.42e-05/0.1562, allocations: 34.56 kB / 363.3 MB, free: 6.277 MB / 298.7 MB Notification: Performance of pre-optimization done (n=25): time 3.216e-06/0.1562, allocations: 0 / 363.3 MB, free: 6.277 MB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.003322/0.1596, allocations: 1.07 MB / 364.3 MB, free: 5.133 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.994e-05/0.1597, allocations: 81.33 kB / 364.4 MB, free: 5.035 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001215/0.1609, allocations: 0.6012 MB / 365 MB, free: 4.43 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.566e-05/0.161, allocations: 29.7 kB / 365 MB, free: 4.395 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004574/0.1614, allocations: 0.5084 MB / 365.5 MB, free: 3.883 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001276/0.1616, allocations: 110.5 kB / 365.6 MB, free: 3.773 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.374e-05/0.1616, allocations: 12 kB / 365.7 MB, free: 3.762 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.1618, allocations: 334.8 kB / 366 MB, free: 3.426 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004984/0.1623, allocations: 129.2 kB / 366.1 MB, free: 3.297 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007222/0.163, allocations: 422.1 kB / 366.5 MB, free: 2.754 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00063/0.1637, allocations: 207.2 kB / 366.7 MB, free: 2.555 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.787e-06/0.1637, allocations: 4 kB / 366.7 MB, free: 2.551 MB / 298.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001684/0.1654, allocations: 0.5648 MB / 367.3 MB, free: 1.977 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.886e-05/0.1655, allocations: 12.12 kB / 367.3 MB, free: 1.965 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.161e-05/0.1655, allocations: 12 kB / 367.3 MB, free: 1.953 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002144/0.1657, allocations: 40.73 kB / 367.4 MB, free: 1.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008658/0.1666, allocations: 143.8 kB / 367.5 MB, free: 1.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001365/0.168, allocations: 1.292 MB / 368.8 MB, free: 352 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007728/0.1688, allocations: 43.89 kB / 368.8 MB, free: 308 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.37e-05/0.1689, allocations: 32.25 kB / 368.9 MB, free: 276 kB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * 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.0004922/0.1694, allocations: 233.6 kB / 369.1 MB, free: 32 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001798/0.1696, allocations: 75.14 kB / 369.2 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001092/0.1707, allocations: 332.7 kB / 369.5 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.386e-06/0.1707, allocations: 4 kB / 369.5 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.1707, allocations: 0 / 369.5 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.1707, allocations: 3.984 kB / 369.5 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002563/0.1733, allocations: 1.08 MB / 370.6 MB, free: 14.46 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.849e-06/0.1734, allocations: 7.984 kB / 370.6 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005235/0.1739, allocations: 59.91 kB / 370.6 MB, free: 14.39 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001514/0.1741, allocations: 24.84 kB / 370.7 MB, free: 14.36 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.935e-05/0.1741, allocations: 4 kB / 370.7 MB, free: 14.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001342/0.1755, allocations: 1.288 MB / 372 MB, free: 12.94 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.1755, allocations: 256 / 372 MB, free: 12.94 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001612/0.1771, allocations: 0.6458 MB / 372.6 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003606/0.1775, allocations: 164.3 kB / 372.8 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000146/0.1777, allocations: 8 kB / 372.8 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005116/0.1782, allocations: 27.97 kB / 372.8 MB, free: 11.99 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.957e-05/0.1783, allocations: 23.92 kB / 372.8 MB, free: 11.97 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.982e-05/0.1783, allocations: 11.98 kB / 372.8 MB, free: 11.96 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009467/0.1793, allocations: 463 kB / 373.3 MB, free: 11.51 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1793, allocations: 0 / 373.3 MB, free: 11.51 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001008/0.1803, allocations: 156 kB / 373.4 MB, free: 11.36 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * 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.0002773/0.1806, allocations: 127.1 kB / 373.6 MB, free: 11.23 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001466/0.1821, allocations: 483.1 kB / 374 MB, free: 10.75 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.1822, allocations: 0 / 374 MB, free: 10.75 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006242/0.1828, allocations: 244 kB / 374.3 MB, free: 10.5 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001463/0.1843, allocations: 174.9 kB / 374.5 MB, free: 10.32 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003917/0.1882, allocations: 1.767 MB / 376.2 MB, free: 8.496 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007042/0.189, allocations: 0.953 MB / 377.2 MB, free: 7.512 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002205/0.1892, allocations: 51.44 kB / 377.2 MB, free: 7.461 MB / 314.7 MB Notification: Performance of SimCode: time 1.212e-06/0.1892, allocations: 0 / 377.2 MB, free: 7.461 MB / 314.7 MB Notification: Performance of Templates: time 0.02775/0.217, allocations: 12.6 MB / 389.8 MB, free: 10.91 MB / 330.7 MB