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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadModel(Modelica): time 1.885/1.885, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.692e-05/3.701e-05, allocations: 4 kB / 292.2 MB, free: 8.332 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1737/0.1738, allocations: 50.41 MB / 342.6 MB, free: 5.906 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3783/0.5521, allocations: 99.5 MB / 442.1 MB, free: 10.98 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002575/0.5524, allocations: 81.83 kB / 442.1 MB, free: 10.94 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.105/0.6574, allocations: 27.5 MB / 469.7 MB, free: 3.551 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.6575, allocations: 0 / 469.7 MB, free: 3.551 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.339e-05/0.6575, allocations: 24 kB / 469.7 MB, free: 3.527 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.002289/0.6599, allocations: 1.154 MB / 470.8 MB, free: 2.324 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.497e-05/0.6599, allocations: 8.031 kB / 470.8 MB, free: 2.316 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001374/0.6613, allocations: 186.4 kB / 471 MB, free: 2.133 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00364/0.665, allocations: 0.8398 MB / 471.9 MB, free: 1.25 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001251/0.6651, allocations: 77.94 kB / 471.9 MB, free: 1.176 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003255/0.6655, allocations: 103.9 kB / 472 MB, free: 1.074 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003412/0.6689, allocations: 0.8991 MB / 472.9 MB, free: 136 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.264e-05/0.669, allocations: 0 / 472.9 MB, free: 136 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001962/0.6692, allocations: 40 kB / 473 MB, free: 96 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.901e-05/0.6693, allocations: 24 kB / 473 MB, free: 72 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002663/0.672, allocations: 0.5702 MB / 473.6 MB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008542/0.6806, allocations: 4.161 MB / 477.7 MB, free: 11.1 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001058/0.6816, allocations: 348.4 kB / 478.1 MB, free: 10.75 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003294/0.682, allocations: 140.9 kB / 478.2 MB, free: 10.61 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.722e-05/0.682, allocations: 4 kB / 478.2 MB, free: 10.61 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.393e-05/0.6821, allocations: 42.5 kB / 478.3 MB, free: 10.56 MB / 394.7 MB Notification: Performance of pre-optimization done (n=37): time 3.452e-06/0.6821, allocations: 0 / 478.3 MB, free: 10.56 MB / 394.7 MB Notification: Performance of matching and sorting (n=40): time 0.002402/0.6845, allocations: 1.044 MB / 479.3 MB, free: 9.457 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.044e-05/0.6846, allocations: 85.11 kB / 479.4 MB, free: 9.355 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001465/0.6861, allocations: 0.7408 MB / 480.1 MB, free: 8.59 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.605e-05/0.6862, allocations: 33.7 kB / 480.2 MB, free: 8.551 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006025/0.6868, allocations: 0.5992 MB / 480.8 MB, free: 7.941 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001569/0.6869, allocations: 142 kB / 480.9 MB, free: 7.801 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.203e-05/0.687, allocations: 16 kB / 480.9 MB, free: 7.785 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001882/0.6872, allocations: 334 kB / 481.2 MB, free: 7.453 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003684/0.6876, allocations: 141.6 kB / 481.4 MB, free: 7.316 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006564/0.6882, allocations: 457.1 kB / 481.8 MB, free: 6.727 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005288/0.6888, allocations: 236 kB / 482 MB, free: 6.496 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.946e-06/0.6888, allocations: 0 / 482 MB, free: 6.496 MB / 394.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001581/0.6904, allocations: 0.6694 MB / 482.7 MB, free: 5.816 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002243/0.6927, allocations: 4.095 MB / 486.8 MB, free: 1.402 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.25e-05/0.6927, allocations: 15.94 kB / 486.8 MB, free: 1.387 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001795/0.6929, allocations: 36.86 kB / 486.9 MB, free: 1.348 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000838/0.6938, allocations: 167.7 kB / 487 MB, free: 1.184 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001363/0.6951, allocations: 1.303 MB / 488.3 MB, free: 15.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007253/0.6959, allocations: 35.91 kB / 488.4 MB, free: 15.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.33e-05/0.696, allocations: 35.98 kB / 488.4 MB, free: 15.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.083e-05/0.696, allocations: 4 kB / 488.4 MB, free: 15.68 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001326/0.6973, allocations: 0.5628 MB / 489 MB, free: 15.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.814e-05/0.6974, allocations: 12.91 kB / 489 MB, free: 15.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001331/0.6975, allocations: 40.84 kB / 489 MB, free: 15.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007613/0.6983, allocations: 167.7 kB / 489.2 MB, free: 14.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001255/0.6996, allocations: 1.284 MB / 490.5 MB, free: 13.47 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006111/0.7002, allocations: 31.98 kB / 490.5 MB, free: 13.44 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.2e-05/0.7003, allocations: 32 kB / 490.5 MB, free: 13.41 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.0002017/0.7005, allocations: 156.6 kB / 490.7 MB, free: 13.25 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001857/0.7007, allocations: 98.73 kB / 490.8 MB, free: 13.15 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001005/0.7017, allocations: 399.8 kB / 491.2 MB, free: 12.75 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.729e-06/0.7017, allocations: 4 kB / 491.2 MB, free: 12.75 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.985e-06/0.7018, allocations: 0 / 491.2 MB, free: 12.75 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.25e-05/0.7018, allocations: 3.984 kB / 491.2 MB, free: 12.75 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002794/0.7046, allocations: 1.302 MB / 492.5 MB, free: 11.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.325e-06/0.7046, allocations: 7.875 kB / 492.5 MB, free: 11.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005303/0.7051, allocations: 79.89 kB / 492.6 MB, free: 11.28 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001144/0.7053, allocations: 24.84 kB / 492.6 MB, free: 11.25 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.922e-05/0.7054, allocations: 12.22 kB / 492.6 MB, free: 11.24 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001254/0.7066, allocations: 1.268 MB / 493.9 MB, free: 9.836 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.981e-06/0.7067, allocations: 12.09 kB / 493.9 MB, free: 9.824 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001321/0.708, allocations: 0.7331 MB / 494.6 MB, free: 9.004 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003771/0.7084, allocations: 196 kB / 494.8 MB, free: 8.793 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001378/0.7085, allocations: 12 kB / 494.8 MB, free: 8.781 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004979/0.7091, allocations: 20.11 kB / 494.8 MB, free: 8.762 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.911e-05/0.7091, allocations: 31.97 kB / 494.9 MB, free: 8.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.567e-05/0.7092, allocations: 11.98 kB / 494.9 MB, free: 8.719 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00112/0.7103, allocations: 0.5588 MB / 495.4 MB, free: 8.145 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.81e-07/0.7103, allocations: 0 / 495.4 MB, free: 8.145 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001651/0.712, allocations: 395.9 kB / 495.8 MB, free: 7.758 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.0005356/0.7126, allocations: 308 kB / 496.1 MB, free: 7.449 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001924/0.7145, allocations: 0.9035 MB / 497 MB, free: 6.527 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.074e-06/0.7145, allocations: 0 / 497 MB, free: 6.527 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004904/0.715, allocations: 259 kB / 497.3 MB, free: 6.266 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001218/0.7163, allocations: 221.1 kB / 497.5 MB, free: 6.055 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003127/0.7194, allocations: 1.33 MB / 498.8 MB, free: 4.672 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009341/0.7204, allocations: 1.046 MB / 499.9 MB, free: 3.598 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001085/0.7215, allocations: 167.4 kB / 0.4883 GB, free: 3.43 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001428/0.7216, allocations: 47.44 kB / 0.4884 GB, free: 3.383 MB / 410.7 MB Notification: Performance of SimCode: time 1.486e-06/0.7216, allocations: 0 / 0.4884 GB, free: 3.383 MB / 410.7 MB Notification: Performance of Templates: time 0.03765/0.7593, allocations: 13.17 MB / 0.5012 GB, free: 6.336 MB / 426.7 MB