Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") Notification: Performance of loadModel(Modelica): time 2.104/2.104, allocations: 224.7 MB / 241.1 MB, free: 1.648 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.281e-05/3.27e-05, allocations: 7.984 kB / 294.6 MB, free: 11.37 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.107, allocations: 50.41 MB / 345 MB, free: 8.914 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.0151/0.1222, allocations: 9.034 MB / 354 MB, free: 15.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007439/0.1297, allocations: 2.882 MB / 356.9 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00176/0.1315, allocations: 55.94 kB / 357 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002114/0.1336, allocations: 449.2 kB / 357.4 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003132/0.1368, allocations: 0.6426 MB / 358 MB, free: 11.81 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001414/0.1383, allocations: 239.6 kB / 358.3 MB, free: 11.58 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003836/0.1421, allocations: 1.214 MB / 359.5 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001231/0.1434, allocations: 0.491 MB / 360 MB, free: 9.867 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001248/0.1447, allocations: 0.5453 MB / 360.5 MB, free: 9.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001454/0.1462, allocations: 0.6227 MB / 361.1 MB, free: 8.695 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007354/0.1469, allocations: 104 kB / 361.2 MB, free: 8.594 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003895/0.1474, allocations: 68 kB / 361.3 MB, free: 8.527 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002865/0.1477, allocations: 246.8 kB / 361.5 MB, free: 8.285 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006187/0.1483, allocations: 172 kB / 361.7 MB, free: 8.117 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003549/0.1518, allocations: 2.049 MB / 363.8 MB, free: 6.062 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1519, allocations: 0 / 363.8 MB, free: 6.062 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.286e-06/0.1519, allocations: 4 kB / 363.8 MB, free: 6.059 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001115/0.152, allocations: 0 / 363.8 MB, free: 6.059 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.004388/0.1564, allocations: 1.586 MB / 365.4 MB, free: 4.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.113e-05/0.1565, allocations: 8.031 kB / 365.4 MB, free: 4.402 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001214/0.1577, allocations: 241.6 kB / 365.6 MB, free: 4.164 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002718/0.1605, allocations: 1.008 MB / 366.6 MB, free: 3.109 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001822/0.1607, allocations: 119.1 kB / 366.7 MB, free: 2.992 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003935/0.1611, allocations: 155.9 kB / 366.9 MB, free: 2.84 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004286/0.1654, allocations: 1.46 MB / 368.3 MB, free: 1.305 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.475e-05/0.1656, allocations: 27.7 kB / 368.4 MB, free: 1.277 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002259/0.1658, allocations: 67.95 kB / 368.4 MB, free: 1.211 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-05/0.1659, allocations: 40 kB / 368.5 MB, free: 1.172 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003276/0.1691, allocations: 0.9629 MB / 369.4 MB, free: 208 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01373/0.1829, allocations: 6.512 MB / 375.9 MB, free: 9.344 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001432/0.1844, allocations: 407 kB / 376.3 MB, free: 8.941 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.341e-05/0.1845, allocations: 8.422 kB / 376.3 MB, free: 8.934 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008295/0.1853, allocations: 272.7 kB / 376.6 MB, free: 8.648 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 3.165e-06/0.1854, allocations: 0 / 376.6 MB, free: 8.648 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.005367/0.1907, allocations: 1.782 MB / 378.4 MB, free: 6.773 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001201/0.1909, allocations: 162.8 kB / 378.6 MB, free: 6.578 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002423/0.1933, allocations: 1.043 MB / 379.6 MB, free: 5.523 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001087/0.1935, allocations: 37.7 kB / 379.6 MB, free: 5.48 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009523/0.1945, allocations: 0.8538 MB / 380.5 MB, free: 4.617 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002925/0.1948, allocations: 201.1 kB / 380.7 MB, free: 4.418 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.97e-05/0.1949, allocations: 28 kB / 380.7 MB, free: 4.391 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001869/0.1951, allocations: 358.7 kB / 381.1 MB, free: 4.031 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008102/0.1959, allocations: 230.5 kB / 381.3 MB, free: 3.805 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001297/0.1972, allocations: 0.7995 MB / 382.1 MB, free: 2.73 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001163/0.1984, allocations: 399.6 kB / 382.5 MB, free: 2.336 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.541e-05/0.1984, allocations: 7.938 kB / 382.5 MB, free: 2.328 MB / 314.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003133/0.2016, allocations: 1.096 MB / 383.6 MB, free: 1.215 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.31e-05/0.2017, allocations: 41.7 kB / 383.6 MB, free: 1.168 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.002e-05/0.2017, allocations: 20 kB / 383.6 MB, free: 1.148 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003297/0.2021, allocations: 73.64 kB / 383.7 MB, free: 1.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001628/0.2037, allocations: 267.8 kB / 384 MB, free: 0.8086 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002772/0.2065, allocations: 2.583 MB / 386.6 MB, free: 13.96 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001553/0.2081, allocations: 76.03 kB / 386.6 MB, free: 13.88 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001684/0.2083, allocations: 60 kB / 386.7 MB, free: 13.82 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009613/0.2093, allocations: 349.3 kB / 387 MB, free: 13.47 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003281/0.2097, allocations: 130.4 kB / 387.2 MB, free: 13.34 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001796/0.2115, allocations: 0.5646 MB / 387.7 MB, free: 12.76 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-05/0.2115, allocations: 11.94 kB / 387.7 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.2115, allocations: 0 / 387.7 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.2116, allocations: 7.984 kB / 387.7 MB, free: 12.74 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004704/0.2163, allocations: 1.821 MB / 389.6 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.134e-05/0.2163, allocations: 4 kB / 389.6 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008897/0.2172, allocations: 107.8 kB / 389.7 MB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002498/0.2175, allocations: 46.11 kB / 389.7 MB, free: 10.64 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.301e-05/0.2176, allocations: 20 kB / 389.7 MB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002548/0.2201, allocations: 2.56 MB / 392.3 MB, free: 7.801 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.616e-06/0.2202, allocations: 7.938 kB / 392.3 MB, free: 7.793 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002686/0.2229, allocations: 1.125 MB / 393.4 MB, free: 6.488 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006802/0.2236, allocations: 251.4 kB / 393.7 MB, free: 6.223 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002892/0.2239, allocations: 16 kB / 393.7 MB, free: 6.207 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009329/0.2249, allocations: 27.98 kB / 393.7 MB, free: 6.18 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001747/0.2251, allocations: 59.81 kB / 393.8 MB, free: 6.121 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.764e-05/0.2251, allocations: 20 kB / 393.8 MB, free: 6.102 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001744/0.2269, allocations: 0.7758 MB / 394.6 MB, free: 5.324 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.2269, allocations: 0 / 394.6 MB, free: 5.324 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001736/0.2287, allocations: 304 kB / 394.9 MB, free: 5.027 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003561/0.2291, allocations: 135.1 kB / 395 MB, free: 4.883 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002522/0.2316, allocations: 0.9281 MB / 395.9 MB, free: 3.922 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/0.2317, allocations: 3.938 kB / 395.9 MB, free: 3.918 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001185/0.2328, allocations: 463.4 kB / 396.4 MB, free: 3.441 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002466/0.2353, allocations: 312.1 kB / 396.7 MB, free: 3.141 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3354/0.5708, allocations: 3.089 MB / 399.8 MB, free: 48.75 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001376/0.5722, allocations: 1.208 MB / 401 MB, free: 48.04 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004785/0.5727, allocations: 91.97 kB / 401.1 MB, free: 48.03 MB / 330.7 MB Notification: Performance of SimCode: time 1.212e-06/0.5728, allocations: 0 / 401.1 MB, free: 48.03 MB / 330.7 MB Notification: Performance of Templates: time 0.05157/0.6243, allocations: 29.6 MB / 430.7 MB, free: 30.06 MB / 330.7 MB