Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadModel(Modelica): time 2.352/2.352, allocations: 224.7 MB / 241.1 MB, free: 1.699 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.947e-05/2.929e-05, allocations: 0 / 294.6 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.11, allocations: 50.41 MB / 345 MB, free: 8.965 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01547/0.1255, allocations: 9.333 MB / 354.3 MB, free: 15.59 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007499/0.1331, allocations: 2.94 MB / 357.3 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001764/0.1349, allocations: 51.94 kB / 357.3 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001982/0.137, allocations: 457.2 kB / 357.8 MB, free: 12.15 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003253/0.1403, allocations: 0.6893 MB / 358.4 MB, free: 11.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001392/0.1417, allocations: 247.7 kB / 358.7 MB, free: 11.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004027/0.1457, allocations: 1.35 MB / 360 MB, free: 9.859 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001107/0.1469, allocations: 490.7 kB / 360.5 MB, free: 9.379 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001193/0.1481, allocations: 0.5842 MB / 361.1 MB, free: 8.793 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001232/0.1493, allocations: 0.6655 MB / 361.8 MB, free: 8.125 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005834/0.1499, allocations: 108 kB / 361.9 MB, free: 8.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002835/0.1503, allocations: 76 kB / 361.9 MB, free: 7.945 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002928/0.1506, allocations: 258.8 kB / 362.2 MB, free: 7.691 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005385/0.1511, allocations: 183.9 kB / 362.4 MB, free: 7.512 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003218/0.1543, allocations: 2.13 MB / 364.5 MB, free: 5.375 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.1544, allocations: 0 / 364.5 MB, free: 5.375 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.186e-06/0.1544, allocations: 0 / 364.5 MB, free: 5.375 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.355e-05/0.1545, allocations: 0 / 364.5 MB, free: 5.375 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004252/0.1587, allocations: 1.636 MB / 366.1 MB, free: 3.684 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.1588, allocations: 12.03 kB / 366.2 MB, free: 3.672 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001031/0.1599, allocations: 253.4 kB / 366.4 MB, free: 3.422 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00298/0.1629, allocations: 1.072 MB / 367.5 MB, free: 2.293 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000132/0.163, allocations: 111.1 kB / 367.6 MB, free: 2.184 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003594/0.1634, allocations: 159.8 kB / 367.7 MB, free: 2.027 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004294/0.1677, allocations: 1.473 MB / 369.2 MB, free: 0.4922 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.75e-05/0.1678, allocations: 12 kB / 369.2 MB, free: 492 kB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000205/0.168, allocations: 60 kB / 369.3 MB, free: 432 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-05/0.1681, allocations: 44 kB / 369.3 MB, free: 388 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003732/0.1718, allocations: 1.014 MB / 370.3 MB, free: 15.36 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01343/0.1853, allocations: 6.171 MB / 376.5 MB, free: 8.887 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002056/0.1875, allocations: 0.5569 MB / 377.1 MB, free: 8.316 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.924e-05/0.1876, allocations: 4.562 kB / 377.1 MB, free: 8.312 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.794e-05/0.1876, allocations: 39.12 kB / 377.1 MB, free: 8.266 MB / 314.7 MB Notification: Performance of pre-optimization done (n=66): time 3.567e-06/0.1876, allocations: 0 / 377.1 MB, free: 8.266 MB / 314.7 MB Notification: Performance of matching and sorting (n=72): time 0.00762/0.1953, allocations: 2.276 MB / 379.4 MB, free: 5.902 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.324e-05/0.1954, allocations: 111.5 kB / 379.5 MB, free: 5.766 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002235/0.1976, allocations: 1.037 MB / 380.5 MB, free: 4.719 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001352/0.1978, allocations: 41.7 kB / 380.6 MB, free: 4.672 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007807/0.1986, allocations: 0.8274 MB / 381.4 MB, free: 3.836 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003329/0.199, allocations: 264.3 kB / 381.7 MB, free: 3.574 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.848e-05/0.199, allocations: 20 kB / 381.7 MB, free: 3.555 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.1992, allocations: 354.8 kB / 382 MB, free: 3.199 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009936/0.2002, allocations: 270.5 kB / 382.3 MB, free: 2.934 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001359/0.2016, allocations: 0.7186 MB / 383 MB, free: 2 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001242/0.2029, allocations: 395 kB / 383.4 MB, free: 1.613 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.16e-05/0.2029, allocations: 7.938 kB / 383.4 MB, free: 1.605 MB / 314.7 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.003477/0.2064, allocations: 1.124 MB / 384.5 MB, free: 476 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.576e-05/0.2065, allocations: 12 kB / 384.5 MB, free: 464 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.066e-05/0.2065, allocations: 16 kB / 384.6 MB, free: 448 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000617/0.2071, allocations: 122.9 kB / 384.7 MB, free: 316 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001687/0.2088, allocations: 255.6 kB / 384.9 MB, free: 60 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005008/0.2139, allocations: 4.192 MB / 389.1 MB, free: 11.47 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001461/0.2154, allocations: 55.89 kB / 389.2 MB, free: 11.41 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001397/0.2156, allocations: 56.05 kB / 389.2 MB, free: 11.36 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 135 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.000895/0.2165, allocations: 353.4 kB / 389.6 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003157/0.2168, allocations: 142.3 kB / 389.7 MB, free: 10.86 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002757/0.2196, allocations: 0.7789 MB / 390.5 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-05/0.2196, allocations: 8 kB / 390.5 MB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.079e-05/0.2196, allocations: 4 kB / 390.5 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/0.2197, allocations: 7.922 kB / 390.5 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006148/0.2258, allocations: 2.185 MB / 392.7 MB, free: 7.746 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.089e-05/0.2259, allocations: 4 kB / 392.7 MB, free: 7.742 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001154/0.227, allocations: 131.8 kB / 392.8 MB, free: 7.613 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006078/0.2277, allocations: 106.7 kB / 392.9 MB, free: 7.5 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.175e-05/0.2278, allocations: 23.98 kB / 392.9 MB, free: 7.477 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005479/0.2333, allocations: 4.325 MB / 397.3 MB, free: 2.746 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.014e-05/0.2333, allocations: 7.984 kB / 397.3 MB, free: 2.738 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003891/0.2372, allocations: 1.429 MB / 398.7 MB, free: 1.133 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007378/0.238, allocations: 259.4 kB / 399 MB, free: 0.8594 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000291/0.2383, allocations: 19.94 kB / 399 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001024/0.2394, allocations: 39.97 kB / 399 MB, free: 0.8008 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001894/0.2396, allocations: 64.44 kB / 399.1 MB, free: 0.7383 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.46e-05/0.2397, allocations: 24 kB / 399.1 MB, free: 0.7148 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.28/0.5197, allocations: 0.772 MB / 399.9 MB, free: 48.11 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.42e-07/0.5197, allocations: 1.406 kB / 399.9 MB, free: 48.11 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002089/0.5218, allocations: 319.9 kB / 400.2 MB, free: 48.11 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004266/0.5223, allocations: 138 kB / 400.3 MB, free: 48.03 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003484/0.5258, allocations: 1.098 MB / 401.4 MB, free: 47.68 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.186e-06/0.5259, allocations: 0.875 kB / 401.4 MB, free: 47.68 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001668/0.5275, allocations: 0.6796 MB / 402.1 MB, free: 47.33 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002689/0.5303, allocations: 328.8 kB / 402.4 MB, free: 47.32 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008426/0.5387, allocations: 3.473 MB / 405.9 MB, free: 45.43 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001119/0.5399, allocations: 1.246 MB / 407.1 MB, free: 44.7 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004754/0.5404, allocations: 93.3 kB / 407.2 MB, free: 44.7 MB / 330.7 MB Notification: Performance of SimCode: time 1.243e-06/0.5404, allocations: 0 / 407.2 MB, free: 44.7 MB / 330.7 MB Notification: Performance of Templates: time 0.05826/0.5987, allocations: 38.01 MB / 445.2 MB, free: 15.55 MB / 330.7 MB