Running command: translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.iMotFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w|speedController.integrator.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") Notification: Performance of loadModel(Modelica): time 1.874/1.874, allocations: 205.8 MB / 218.9 MB, free: 9.355 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.032e-05/4.049e-05, allocations: 4 kB / 269.4 MB, free: 6.414 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1344, allocations: 47.58 MB / 316.9 MB, free: 6.754 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3859/0.5204, allocations: 117.2 MB / 434.2 MB, free: 3.309 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002749/0.5207, allocations: 83.19 kB / 434.3 MB, free: 3.266 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1798/0.7006, allocations: 47.08 MB / 481.3 MB, free: 11.04 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.373e-06/0.7006, allocations: 0 / 481.3 MB, free: 11.04 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001524/0.7008, allocations: 44 kB / 481.4 MB, free: 10.99 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 473 * Number of variables: 473 Notification: Performance of Generate backend data structure: time 0.004509/0.7053, allocations: 1.933 MB / 483.3 MB, free: 9.008 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.7054, allocations: 8.031 kB / 483.3 MB, free: 9 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001073/0.7065, allocations: 297 kB / 483.6 MB, free: 8.707 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003154/0.7096, allocations: 1.261 MB / 484.9 MB, free: 7.391 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003947/0.71, allocations: 260.8 kB / 485.1 MB, free: 7.117 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003806/0.7104, allocations: 195.9 kB / 485.3 MB, free: 6.926 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004259/0.7147, allocations: 1.75 MB / 487.1 MB, free: 5.121 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.514e-05/0.7148, allocations: 4 kB / 487.1 MB, free: 5.117 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002459/0.7151, allocations: 76 kB / 487.1 MB, free: 5.043 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.537e-05/0.7151, allocations: 48 kB / 487.2 MB, free: 4.996 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003601/0.7187, allocations: 1.335 MB / 488.5 MB, free: 3.66 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01525/0.734, allocations: 7.487 MB / 496 MB, free: 11.85 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002662/0.7367, allocations: 1.126 MB / 497.1 MB, free: 10.65 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008672/0.7376, allocations: 363.2 kB / 497.5 MB, free: 10.29 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.219e-05/0.7377, allocations: 16.78 kB / 497.5 MB, free: 10.28 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.976e-05/0.7378, allocations: 43.34 kB / 497.6 MB, free: 10.22 MB / 410.7 MB Notification: Performance of pre-optimization done (n=84): time 4.159e-06/0.7378, allocations: 0 / 497.6 MB, free: 10.22 MB / 410.7 MB Notification: Performance of matching and sorting (n=111): time 0.01436/0.7522, allocations: 4.63 MB / 0.4904 GB, free: 5.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.009e-05/0.7523, allocations: 90.11 kB / 0.4905 GB, free: 5.395 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002719/0.755, allocations: 1.206 MB / 0.4917 GB, free: 4.184 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001859/0.7552, allocations: 45.7 kB / 0.4917 GB, free: 4.133 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001011/0.7563, allocations: 0.9865 MB / 0.4927 GB, free: 3.133 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00049/0.7568, allocations: 390.4 kB / 0.4931 GB, free: 2.746 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/0.7569, allocations: 32 kB / 0.4931 GB, free: 2.715 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002378/0.7572, allocations: 365.9 kB / 0.4934 GB, free: 2.352 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001395/0.7586, allocations: 0.543 MB / 0.494 GB, free: 1.809 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001821/0.7604, allocations: 0.9733 MB / 0.4949 GB, free: 0.6406 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001479/0.7619, allocations: 0.5866 MB / 0.4955 GB, free: 52 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.141e-05/0.7619, allocations: 4 kB / 0.4955 GB, free: 48 kB / 410.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004202/0.7661, allocations: 1.645 MB / 0.4971 GB, free: 14.39 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002961/0.7691, allocations: 5.412 MB / 0.5024 GB, free: 8.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.772e-05/0.7692, allocations: 12 kB / 0.5024 GB, free: 8.648 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002123/0.7694, allocations: 48.84 kB / 0.5024 GB, free: 8.598 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00247/0.7719, allocations: 435.4 kB / 0.5029 GB, free: 8.172 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00141/0.7733, allocations: 1.296 MB / 0.5041 GB, free: 6.742 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002075/0.7754, allocations: 175.9 kB / 0.5043 GB, free: 6.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001983/0.7756, allocations: 64 kB / 0.5044 GB, free: 6.508 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/0.7757, allocations: 4 kB / 0.5044 GB, free: 6.504 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003627/0.7793, allocations: 1.457 MB / 0.5058 GB, free: 5.043 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.753e-05/0.7794, allocations: 12.94 kB / 0.5058 GB, free: 5.031 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001558/0.7795, allocations: 48.78 kB / 0.5058 GB, free: 4.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002155/0.7817, allocations: 411.4 kB / 0.5062 GB, free: 4.578 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001331/0.783, allocations: 1.296 MB / 0.5075 GB, free: 3.152 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001862/0.7849, allocations: 151.8 kB / 0.5076 GB, free: 3.004 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001859/0.7851, allocations: 60 kB / 0.5077 GB, free: 2.945 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 6 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase,speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 193 * 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.0004532/0.7856, allocations: 204.4 kB / 0.5079 GB, free: 2.738 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000377/0.786, allocations: 166 kB / 0.5081 GB, free: 2.574 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003066/0.7891, allocations: 1.171 MB / 0.5092 GB, free: 1.387 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.916e-05/0.7891, allocations: 12 kB / 0.5092 GB, free: 1.375 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.959e-06/0.7891, allocations: 4 kB / 0.5092 GB, free: 1.371 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.58e-05/0.7892, allocations: 3.984 kB / 0.5092 GB, free: 1.367 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2356/1.025, allocations: 3.533 MB / 0.5127 GB, free: 113.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.709e-05/1.025, allocations: 10.31 kB / 0.5127 GB, free: 113.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001896/1.027, allocations: 291.2 kB / 0.513 GB, free: 113.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001631/1.027, allocations: 36.09 kB / 0.513 GB, free: 113.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001282/1.027, allocations: 34.8 kB / 0.513 GB, free: 113.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008949/1.028, allocations: 1.288 MB / 0.5143 GB, free: 111.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.751e-05/1.028, allocations: 14.22 kB / 0.5143 GB, free: 111.9 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003732/1.032, allocations: 2.376 MB / 0.5166 GB, free: 110.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008117/1.033, allocations: 337.5 kB / 0.5169 GB, free: 110.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003029/1.033, allocations: 37.98 kB / 0.517 GB, free: 110.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001572/1.034, allocations: 148.8 kB / 0.5171 GB, free: 110.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003283/1.035, allocations: 134.2 kB / 0.5172 GB, free: 110.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000115/1.035, allocations: 40.67 kB / 0.5173 GB, free: 110.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001861/1.037, allocations: 0.9006 MB / 0.5182 GB, free: 110.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.34e-07/1.037, allocations: 0 / 0.5182 GB, free: 110.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0031/1.04, allocations: 0.6898 MB / 0.5188 GB, free: 110.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 11 (loadInertia.phi,loadInertia.w,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,currentController.integrator.y,speedController.integrator.y) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 109 * 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.0007419/1.041, allocations: 437.8 kB / 0.5193 GB, free: 110.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004953/1.046, allocations: 2.307 MB / 0.5215 GB, free: 110 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.403e-05/1.046, allocations: 2.938 kB / 0.5215 GB, free: 110 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001379/1.047, allocations: 0.5497 MB / 0.522 GB, free: 109.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002087/1.049, allocations: 330.3 kB / 0.5224 GB, free: 109.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006761/1.056, allocations: 2.76 MB / 0.5251 GB, free: 108.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001323/1.057, allocations: 1.393 MB / 0.5264 GB, free: 108.2 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00314/1.061, allocations: 356 kB / 0.5268 GB, free: 108.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004949/1.061, allocations: 86.78 kB / 0.5268 GB, free: 108.1 MB / 426.7 MB Notification: Performance of SimCode: time 1.795e-06/1.061, allocations: 3.609 kB / 0.5268 GB, free: 108.1 MB / 426.7 MB Notification: Performance of Templates: time 0.05735/1.118, allocations: 23.92 MB / 0.5502 GB, free: 106.6 MB / 426.7 MB