Running command: translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.iMotFilter.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w|preFilter.y|slewRateLimiter.y|speedController.integrator.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") Notification: Performance of loadModel(Modelica): time 2.01/2.01, allocations: 225.8 MB / 238.8 MB, free: 11.15 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.124e-05/3.126e-05, allocations: 8 kB / 292.2 MB, free: 8.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09068/0.09073, allocations: 50.42 MB / 342.6 MB, free: 5.887 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4898/0.5805, allocations: 117.1 MB / 459.7 MB, free: 9.457 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000258/0.5808, allocations: 84.69 kB / 459.8 MB, free: 9.414 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1714/0.7523, allocations: 42.84 MB / 0.4908 GB, free: 2.508 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.086e-06/0.7523, allocations: 0 / 0.4908 GB, free: 2.508 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001344/0.7525, allocations: 40 kB / 0.4909 GB, free: 2.469 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 417 * Number of variables: 417 Notification: Performance of Generate backend data structure: time 0.003516/0.756, allocations: 1.687 MB / 0.4925 GB, free: 0.7305 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.756, allocations: 12.03 kB / 0.4925 GB, free: 0.7188 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009696/0.757, allocations: 273.3 kB / 0.4928 GB, free: 460 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00277/0.7598, allocations: 1.162 MB / 0.4939 GB, free: 15.23 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001453/0.76, allocations: 127.3 kB / 0.4941 GB, free: 15.11 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003194/0.7603, allocations: 167.9 kB / 0.4942 GB, free: 14.94 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003522/0.7638, allocations: 1.482 MB / 0.4957 GB, free: 13.4 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.045e-05/0.7639, allocations: 7.891 kB / 0.4957 GB, free: 13.39 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001915/0.7641, allocations: 68 kB / 0.4957 GB, free: 13.32 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.928e-05/0.7642, allocations: 40 kB / 0.4958 GB, free: 13.29 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002596/0.7668, allocations: 0.9472 MB / 0.4967 GB, free: 12.34 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01242/0.7792, allocations: 6.762 MB / 0.5033 GB, free: 5.262 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002093/0.7814, allocations: 0.8842 MB / 0.5042 GB, free: 4.312 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000567/0.782, allocations: 254.5 kB / 0.5044 GB, free: 4.062 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.171e-05/0.782, allocations: 12.48 kB / 0.5044 GB, free: 4.051 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.865e-05/0.7821, allocations: 43.12 kB / 0.5045 GB, free: 3.996 MB / 426.7 MB Notification: Performance of pre-optimization done (n=61): time 3.509e-06/0.7821, allocations: 0 / 0.5045 GB, free: 3.996 MB / 426.7 MB Notification: Performance of matching and sorting (n=64): time 0.003618/0.7857, allocations: 1.538 MB / 0.506 GB, free: 2.41 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.002e-05/0.7858, allocations: 85.67 kB / 0.506 GB, free: 2.309 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002209/0.788, allocations: 1.058 MB / 0.5071 GB, free: 1.238 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.348e-05/0.7881, allocations: 37.7 kB / 0.5071 GB, free: 1.195 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008984/0.7891, allocations: 0.9081 MB / 0.508 GB, free: 284 kB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002643/0.7893, allocations: 236.6 kB / 0.5082 GB, free: 44 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.211e-05/0.7894, allocations: 20 kB / 0.5082 GB, free: 24 kB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002302/0.7897, allocations: 349.9 kB / 0.5086 GB, free: 15.68 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00063/0.7903, allocations: 238.6 kB / 0.5088 GB, free: 15.45 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001012/0.7913, allocations: 0.6354 MB / 0.5094 GB, free: 14.62 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008428/0.7922, allocations: 354.1 kB / 0.5098 GB, free: 14.28 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.063e-05/0.7922, allocations: 4 kB / 0.5098 GB, free: 14.27 MB / 442.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002522/0.7948, allocations: 1.019 MB / 0.5108 GB, free: 13.24 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002974/0.7978, allocations: 5.371 MB / 0.516 GB, free: 7.512 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.871e-05/0.7978, allocations: 12 kB / 0.516 GB, free: 7.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002211/0.798, allocations: 44.86 kB / 0.5161 GB, free: 7.453 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001306/0.7994, allocations: 279.5 kB / 0.5163 GB, free: 7.18 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001394/0.8008, allocations: 1.291 MB / 0.5176 GB, free: 5.75 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001207/0.802, allocations: 72.08 kB / 0.5177 GB, free: 5.68 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001162/0.8021, allocations: 52 kB / 0.5177 GB, free: 5.629 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.8022, allocations: 4 kB / 0.5177 GB, free: 5.625 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002022/0.8042, allocations: 0.8555 MB / 0.5186 GB, free: 4.766 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.265e-05/0.8042, allocations: 15.94 kB / 0.5186 GB, free: 4.75 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001444/0.8044, allocations: 40.84 kB / 0.5186 GB, free: 4.707 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001084/0.8055, allocations: 251.6 kB / 0.5188 GB, free: 4.461 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001356/0.8069, allocations: 1.292 MB / 0.5201 GB, free: 3.039 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001156/0.808, allocations: 48.14 kB / 0.5202 GB, free: 2.992 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001113/0.8082, allocations: 56 kB / 0.5202 GB, free: 2.938 MB / 442.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: 3 (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 (140): * Single equations (assignments): 139 * 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.0003177/0.8085, allocations: 189.3 kB / 0.5204 GB, free: 2.746 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002705/0.8088, allocations: 134.3 kB / 0.5205 GB, free: 2.613 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001542/0.8103, allocations: 0.5917 MB / 0.5211 GB, free: 2.004 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.227e-05/0.8104, allocations: 8 kB / 0.5211 GB, free: 1.996 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.8104, allocations: 0 / 0.5211 GB, free: 1.996 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.408e-05/0.8104, allocations: 11.88 kB / 0.5211 GB, free: 1.984 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2455/1.056, allocations: 1.995 MB / 0.5231 GB, free: 116.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-05/1.056, allocations: 3.938 kB / 0.5231 GB, free: 116.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009442/1.057, allocations: 140.4 kB / 0.5232 GB, free: 116.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001394/1.057, allocations: 23.91 kB / 0.5232 GB, free: 116.2 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-05/1.057, allocations: 18.25 kB / 0.5232 GB, free: 116.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008954/1.058, allocations: 1.276 MB / 0.5245 GB, free: 115 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.104e-06/1.058, allocations: 7.594 kB / 0.5245 GB, free: 115 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002227/1.06, allocations: 1.059 MB / 0.5255 GB, free: 114.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006132/1.061, allocations: 266.2 kB / 0.5258 GB, free: 114.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002254/1.061, allocations: 17.56 kB / 0.5258 GB, free: 114.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009047/1.062, allocations: 57.5 kB / 0.5258 GB, free: 114.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001461/1.062, allocations: 50.8 kB / 0.5259 GB, free: 114.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.108e-05/1.062, allocations: 20.86 kB / 0.5259 GB, free: 114.6 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001674/1.064, allocations: 0.7948 MB / 0.5267 GB, free: 114.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.2e-07/1.064, allocations: 0 / 0.5267 GB, free: 114.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002388/1.067, allocations: 0.5464 MB / 0.5272 GB, free: 114.4 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 13 (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,preFilter.y,slewRateLimiter.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 62 * 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.0006521/1.067, allocations: 412.8 kB / 0.5276 GB, free: 114.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00275/1.07, allocations: 1.304 MB / 0.5289 GB, free: 114.1 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.952e-06/1.07, allocations: 1.219 kB / 0.5289 GB, free: 114.1 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007051/1.071, allocations: 354.4 kB / 0.5292 GB, free: 114 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001811/1.073, allocations: 296.1 kB / 0.5295 GB, free: 114 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004926/1.078, allocations: 2.116 MB / 0.5316 GB, free: 113.3 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001112/1.079, allocations: 1.271 MB / 0.5328 GB, free: 112.6 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001712/1.08, allocations: 226.2 kB / 0.533 GB, free: 112.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002249/1.081, allocations: 70.58 kB / 0.5331 GB, free: 112.6 MB / 442.7 MB Notification: Performance of SimCode: time 1.764e-06/1.081, allocations: 1.5 kB / 0.5331 GB, free: 112.6 MB / 442.7 MB Notification: Performance of Templates: time 0.04829/1.129, allocations: 18.79 MB / 0.5515 GB, free: 111.5 MB / 442.7 MB