Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadModel(Modelica): time 1.957/1.957, allocations: 225.8 MB / 239.4 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.254e-05/3.264e-05, allocations: 4 kB / 292.7 MB, free: 8.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09019/0.09025, allocations: 50.42 MB / 343.1 MB, free: 5.875 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4303/0.5206, allocations: 99.5 MB / 442.6 MB, free: 11.03 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002524/0.5209, allocations: 81.77 kB / 442.7 MB, free: 10.98 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1062/0.6271, allocations: 27.5 MB / 470.2 MB, free: 3.543 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.025e-06/0.6271, allocations: 4 kB / 470.2 MB, free: 3.539 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.162e-05/0.6272, allocations: 28 kB / 470.2 MB, free: 3.512 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002239/0.6294, allocations: 1.146 MB / 471.3 MB, free: 2.316 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.6295, allocations: 16.03 kB / 471.4 MB, free: 2.301 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008097/0.6303, allocations: 182.3 kB / 471.5 MB, free: 2.121 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002047/0.6324, allocations: 0.8476 MB / 472.4 MB, free: 1.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.407e-05/0.6325, allocations: 70 kB / 472.5 MB, free: 1.164 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001919/0.6327, allocations: 99.91 kB / 472.5 MB, free: 1.066 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002095/0.6348, allocations: 0.9068 MB / 473.5 MB, free: 120 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.378e-05/0.6349, allocations: 4 kB / 473.5 MB, free: 116 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001176/0.635, allocations: 40 kB / 473.5 MB, free: 76 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.195e-05/0.635, allocations: 24 kB / 473.5 MB, free: 52 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001581/0.6366, allocations: 0.5664 MB / 474.1 MB, free: 15.48 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007413/0.6441, allocations: 4.161 MB / 478.2 MB, free: 11.09 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00105/0.6451, allocations: 351.1 kB / 478.6 MB, free: 10.74 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003356/0.6455, allocations: 144.8 kB / 478.7 MB, free: 10.59 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.093e-05/0.6456, allocations: 4 kB / 478.7 MB, free: 10.59 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.193e-05/0.6456, allocations: 34.56 kB / 478.8 MB, free: 10.55 MB / 394.7 MB Notification: Performance of pre-optimization done (n=37): time 3.461e-06/0.6456, allocations: 0 / 478.8 MB, free: 10.55 MB / 394.7 MB Notification: Performance of matching and sorting (n=40): time 0.002389/0.648, allocations: 1.056 MB / 479.8 MB, free: 9.434 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.606e-05/0.6481, allocations: 81.11 kB / 479.9 MB, free: 9.336 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00143/0.6495, allocations: 0.7408 MB / 480.6 MB, free: 8.57 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.719e-05/0.6496, allocations: 33.7 kB / 480.7 MB, free: 8.531 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005876/0.6502, allocations: 0.5991 MB / 481.3 MB, free: 7.922 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000156/0.6504, allocations: 142 kB / 481.4 MB, free: 7.781 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.061e-05/0.6504, allocations: 16 kB / 481.4 MB, free: 7.766 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.6506, allocations: 337.9 kB / 481.8 MB, free: 7.43 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003709/0.651, allocations: 145.6 kB / 481.9 MB, free: 7.289 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006389/0.6517, allocations: 453.1 kB / 482.3 MB, free: 6.699 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005395/0.6522, allocations: 228 kB / 482.6 MB, free: 6.477 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.565e-06/0.6523, allocations: 4 kB / 482.6 MB, free: 6.473 MB / 394.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001575/0.6538, allocations: 0.673 MB / 483.2 MB, free: 5.789 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002867/0.6567, allocations: 4.103 MB / 487.4 MB, free: 1.367 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.229e-05/0.6568, allocations: 12 kB / 487.4 MB, free: 1.355 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002819/0.6571, allocations: 36.84 kB / 487.4 MB, free: 1.316 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001497/0.6586, allocations: 167.7 kB / 487.6 MB, free: 1.152 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002115/0.6608, allocations: 1.288 MB / 488.9 MB, free: 15.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001505/0.6623, allocations: 35.89 kB / 488.9 MB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001173/0.6624, allocations: 36.16 kB / 488.9 MB, free: 15.66 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.6625, allocations: 8 kB / 488.9 MB, free: 15.66 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001694/0.6642, allocations: 0.5713 MB / 489.5 MB, free: 15.08 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.71e-05/0.6642, allocations: 8 kB / 489.5 MB, free: 15.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001417/0.6644, allocations: 40.84 kB / 489.5 MB, free: 15.03 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008249/0.6652, allocations: 167.7 kB / 489.7 MB, free: 14.87 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001301/0.6665, allocations: 1.28 MB / 491 MB, free: 13.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007539/0.6673, allocations: 28 kB / 491 MB, free: 13.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.639e-05/0.6674, allocations: 43.97 kB / 491.1 MB, free: 13.38 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * 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.0002199/0.6677, allocations: 152.8 kB / 491.2 MB, free: 13.23 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001932/0.6679, allocations: 98.73 kB / 491.3 MB, free: 13.13 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001018/0.6689, allocations: 403.6 kB / 491.7 MB, free: 12.73 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.238e-06/0.6689, allocations: 4 kB / 491.7 MB, free: 12.72 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.81e-06/0.6689, allocations: 0 / 491.7 MB, free: 12.72 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.558e-06/0.6689, allocations: 0 / 491.7 MB, free: 12.72 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00271/0.6717, allocations: 1.302 MB / 493 MB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.198e-06/0.6717, allocations: 3.938 kB / 493 MB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005364/0.6723, allocations: 84.11 kB / 493.1 MB, free: 11.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001287/0.6724, allocations: 24.8 kB / 493.1 MB, free: 11.23 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.969e-05/0.6725, allocations: 12 kB / 493.1 MB, free: 11.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001321/0.6738, allocations: 1.272 MB / 494.4 MB, free: 9.809 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.944e-06/0.6738, allocations: 0 / 494.4 MB, free: 9.809 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001434/0.6753, allocations: 0.7371 MB / 495.1 MB, free: 8.984 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004229/0.6757, allocations: 200 kB / 495.3 MB, free: 8.77 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001505/0.6759, allocations: 8 kB / 495.3 MB, free: 8.762 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005305/0.6764, allocations: 23.98 kB / 495.4 MB, free: 8.738 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.863e-05/0.6765, allocations: 23.91 kB / 495.4 MB, free: 8.715 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.425e-05/0.6766, allocations: 19.94 kB / 495.4 MB, free: 8.695 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001169/0.6778, allocations: 0.5666 MB / 496 MB, free: 8.113 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.68e-07/0.6778, allocations: 0 / 496 MB, free: 8.113 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001754/0.6795, allocations: 383.9 kB / 496.3 MB, free: 7.738 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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.0005267/0.6801, allocations: 300.7 kB / 496.6 MB, free: 7.438 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001983/0.6821, allocations: 0.9043 MB / 497.5 MB, free: 6.516 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.8e-06/0.6821, allocations: 4 kB / 497.6 MB, free: 6.512 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004939/0.6826, allocations: 261.8 kB / 497.8 MB, free: 6.246 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001212/0.6839, allocations: 215.9 kB / 498 MB, free: 6.035 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003189/0.6871, allocations: 1.334 MB / 499.4 MB, free: 4.648 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009277/0.688, allocations: 1.05 MB / 0.4887 GB, free: 3.57 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001112/0.6891, allocations: 159.4 kB / 0.4888 GB, free: 3.41 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001382/0.6893, allocations: 47.44 kB / 0.4889 GB, free: 3.363 MB / 410.7 MB Notification: Performance of SimCode: time 1.634e-06/0.6893, allocations: 0 / 0.4889 GB, free: 3.363 MB / 410.7 MB Notification: Performance of Templates: time 0.03451/0.7238, allocations: 13.17 MB / 0.5017 GB, free: 6.316 MB / 426.7 MB