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_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadModel(Modelica): time 1.875/1.875, allocations: 205.8 MB / 218.9 MB, free: 9.273 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.679e-05/2.689e-05, allocations: 4 kB / 269.4 MB, free: 6.395 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08354/0.08359, allocations: 47.57 MB / 316.9 MB, free: 6.734 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.362/0.4457, allocations: 98.24 MB / 415.2 MB, free: 6.148 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002657/0.446, allocations: 84.77 kB / 415.3 MB, free: 6.105 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1063/0.5523, allocations: 27.57 MB / 442.8 MB, free: 14.87 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.975e-06/0.5524, allocations: 3.984 kB / 442.8 MB, free: 14.86 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.983e-05/0.5525, allocations: 28 kB / 442.9 MB, free: 14.84 MB / 362.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.002221/0.5547, allocations: 1.152 MB / 444 MB, free: 13.71 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.5548, allocations: 8.031 kB / 444 MB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008074/0.5556, allocations: 186.3 kB / 444.2 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002024/0.5576, allocations: 0.8477 MB / 445.1 MB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.338e-05/0.5577, allocations: 71.81 kB / 445.1 MB, free: 12.77 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001806/0.5579, allocations: 95.25 kB / 445.2 MB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001952/0.5599, allocations: 0.8976 MB / 446.1 MB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.745e-05/0.56, allocations: 7.906 kB / 446.1 MB, free: 12.06 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001065/0.5601, allocations: 39.38 kB / 446.2 MB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.065e-05/0.5601, allocations: 24 kB / 446.2 MB, free: 12.03 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001455/0.5616, allocations: 0.5819 MB / 446.8 MB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007073/0.5687, allocations: 4.156 MB / 450.9 MB, free: 8.109 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001029/0.5697, allocations: 353 kB / 451.3 MB, free: 7.875 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003123/0.5701, allocations: 145.9 kB / 451.4 MB, free: 7.785 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.068e-05/0.5701, allocations: 4 kB / 451.4 MB, free: 7.781 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.908e-05/0.5702, allocations: 41.42 kB / 451.5 MB, free: 7.734 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 3.482e-06/0.5702, allocations: 0 / 451.5 MB, free: 7.734 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.002444/0.5727, allocations: 1.062 MB / 452.5 MB, free: 6.797 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.432e-05/0.5727, allocations: 81.11 kB / 452.6 MB, free: 6.699 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001413/0.5742, allocations: 0.7448 MB / 453.3 MB, free: 6.121 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.393e-05/0.5742, allocations: 31.83 kB / 453.4 MB, free: 6.09 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005355/0.5748, allocations: 0.5938 MB / 454 MB, free: 5.668 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001533/0.5749, allocations: 147.9 kB / 454.1 MB, free: 5.543 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.507e-05/0.575, allocations: 18.94 kB / 454.1 MB, free: 5.535 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001851/0.5752, allocations: 336.2 kB / 454.5 MB, free: 5.215 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003512/0.5756, allocations: 148 kB / 454.6 MB, free: 5.125 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006206/0.5762, allocations: 451.7 kB / 455 MB, free: 4.609 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005122/0.5767, allocations: 228.8 kB / 455.3 MB, free: 4.457 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.059e-06/0.5767, allocations: 4 kB / 455.3 MB, free: 4.453 MB / 362.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001622/0.5784, allocations: 0.6784 MB / 455.9 MB, free: 3.785 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002275/0.5807, allocations: 4.097 MB / 460 MB, free: 15.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.089e-05/0.5807, allocations: 8 kB / 460 MB, free: 15.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002058/0.5809, allocations: 40.84 kB / 460.1 MB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008297/0.5818, allocations: 163.7 kB / 460.2 MB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001373/0.5832, allocations: 1.288 MB / 461.5 MB, free: 13.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000813/0.584, allocations: 36.14 kB / 461.6 MB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.976e-05/0.5841, allocations: 39.95 kB / 461.6 MB, free: 13.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.863e-06/0.5841, allocations: 4 kB / 461.6 MB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001331/0.5855, allocations: 0.5634 MB / 462.2 MB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.614e-05/0.5855, allocations: 8 kB / 462.2 MB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001271/0.5856, allocations: 36.84 kB / 462.2 MB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007471/0.5864, allocations: 167.7 kB / 462.4 MB, free: 12.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001291/0.5877, allocations: 1.285 MB / 463.7 MB, free: 11.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006994/0.5884, allocations: 32 kB / 463.7 MB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.356e-05/0.5885, allocations: 40 kB / 463.7 MB, free: 11.39 MB / 378.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.0002217/0.5887, allocations: 164.7 kB / 463.9 MB, free: 11.23 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001906/0.5889, allocations: 94.78 kB / 464 MB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001008/0.59, allocations: 395.4 kB / 464.4 MB, free: 10.74 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.598e-06/0.59, allocations: 4 kB / 464.4 MB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.869e-06/0.59, allocations: 0 / 464.4 MB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.539e-06/0.59, allocations: 0 / 464.4 MB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002674/0.5927, allocations: 1.301 MB / 465.7 MB, free: 9.352 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.951e-06/0.5927, allocations: 7.891 kB / 465.7 MB, free: 9.344 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005072/0.5933, allocations: 80.12 kB / 465.8 MB, free: 9.266 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001184/0.5934, allocations: 20.84 kB / 465.8 MB, free: 9.242 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.275e-05/0.5935, allocations: 12 kB / 465.8 MB, free: 9.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001271/0.5947, allocations: 1.272 MB / 467.1 MB, free: 7.824 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.315e-06/0.5948, allocations: 0 / 467.1 MB, free: 7.824 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001372/0.5961, allocations: 0.7568 MB / 467.8 MB, free: 6.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004066/0.5966, allocations: 204 kB / 468 MB, free: 6.762 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00014/0.5967, allocations: 8 kB / 468 MB, free: 6.754 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005072/0.5972, allocations: 19.92 kB / 468.1 MB, free: 6.734 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.622e-05/0.5974, allocations: 35.92 kB / 468.1 MB, free: 6.699 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.716e-05/0.5974, allocations: 12 kB / 468.1 MB, free: 6.688 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001134/0.5985, allocations: 0.5629 MB / 468.7 MB, free: 6.109 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.35e-07/0.5986, allocations: 0 / 468.7 MB, free: 6.109 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001701/0.6003, allocations: 383.9 kB / 469 MB, free: 5.734 MB / 378.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.000537/0.6008, allocations: 316.2 kB / 469.4 MB, free: 5.418 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001925/0.6028, allocations: 0.9073 MB / 470.3 MB, free: 4.492 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.16e-06/0.6028, allocations: 4.062 kB / 470.3 MB, free: 4.488 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005023/0.6033, allocations: 261.6 kB / 470.5 MB, free: 4.223 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001298/0.6046, allocations: 219.8 kB / 470.7 MB, free: 4.008 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003235/0.6079, allocations: 1.322 MB / 472.1 MB, free: 2.633 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000906/0.6088, allocations: 1.057 MB / 473.1 MB, free: 1.547 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001098/0.6099, allocations: 159.4 kB / 473.3 MB, free: 1.387 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001417/0.6101, allocations: 47.44 kB / 473.3 MB, free: 1.34 MB / 378.7 MB Notification: Performance of SimCode: time 1.669e-06/0.6101, allocations: 0 / 473.3 MB, free: 1.34 MB / 378.7 MB Notification: Performance of Templates: time 0.03466/0.6448, allocations: 13.19 MB / 486.5 MB, free: 4.195 MB / 394.7 MB