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_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") Notification: Performance of loadModel(Modelica): time 2/2, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.522e-05/7.505e-05, allocations: 4 kB / 292.2 MB, free: 8.305 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1352, allocations: 50.4 MB / 342.6 MB, free: 5.883 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3994/0.5346, allocations: 118.3 MB / 460.9 MB, free: 8.277 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002521/0.5349, allocations: 82.45 kB / 461 MB, free: 8.234 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1772/0.7121, allocations: 47.24 MB / 0.4963 GB, free: 12.91 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.884e-06/0.7122, allocations: 0 / 0.4963 GB, free: 12.91 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001672/0.7123, allocations: 47.98 kB / 0.4963 GB, free: 12.86 MB / 426.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.004929/0.7173, allocations: 1.922 MB / 0.4982 GB, free: 10.89 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.7173, allocations: 15.97 kB / 0.4982 GB, free: 10.88 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001232/0.7186, allocations: 301 kB / 0.4985 GB, free: 10.58 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003515/0.7221, allocations: 1.26 MB / 0.4997 GB, free: 9.262 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004099/0.7226, allocations: 260.8 kB / 0.5 GB, free: 8.988 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003974/0.723, allocations: 187.9 kB / 0.5002 GB, free: 8.805 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004492/0.7275, allocations: 1.754 MB / 0.5019 GB, free: 6.996 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.119e-05/0.7276, allocations: 7.938 kB / 0.5019 GB, free: 6.988 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002421/0.7278, allocations: 76 kB / 0.502 GB, free: 6.914 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.316e-05/0.7279, allocations: 47.95 kB / 0.502 GB, free: 6.867 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00374/0.7317, allocations: 1.342 MB / 0.5033 GB, free: 5.523 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01532/0.747, allocations: 7.475 MB / 0.5106 GB, free: 13.73 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002754/0.7498, allocations: 1.133 MB / 0.5117 GB, free: 12.52 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008825/0.7507, allocations: 367.1 kB / 0.5121 GB, free: 12.16 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.881e-05/0.7508, allocations: 12.78 kB / 0.5121 GB, free: 12.14 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.495e-05/0.7509, allocations: 43.34 kB / 0.5121 GB, free: 12.09 MB / 442.7 MB Notification: Performance of pre-optimization done (n=84): time 4.235e-06/0.7509, allocations: 0 / 0.5121 GB, free: 12.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=111): time 0.01458/0.7655, allocations: 4.619 MB / 0.5166 GB, free: 7.379 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.001e-05/0.7656, allocations: 94.11 kB / 0.5167 GB, free: 7.27 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002692/0.7683, allocations: 1.19 MB / 0.5179 GB, free: 6.074 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001926/0.7685, allocations: 45.7 kB / 0.5179 GB, free: 6.023 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001015/0.7695, allocations: 0.9786 MB / 0.5189 GB, free: 5.031 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005119/0.7701, allocations: 398.3 kB / 0.5193 GB, free: 4.637 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001321/0.7702, allocations: 32 kB / 0.5193 GB, free: 4.605 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.00023/0.7705, allocations: 365.8 kB / 0.5196 GB, free: 4.242 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00145/0.7719, allocations: 0.543 MB / 0.5202 GB, free: 3.699 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001848/0.7738, allocations: 0.9655 MB / 0.5211 GB, free: 2.539 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00154/0.7754, allocations: 0.5905 MB / 0.5217 GB, free: 1.945 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-05/0.7754, allocations: 4 kB / 0.5217 GB, free: 1.941 MB / 442.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004236/0.7796, allocations: 1.645 MB / 0.5233 GB, free: 292 kB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.2413/1.021, allocations: 5.404 MB / 0.5286 GB, free: 109.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.608e-05/1.021, allocations: 13.34 kB / 0.5286 GB, free: 109.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000258/1.021, allocations: 42.25 kB / 0.5286 GB, free: 109.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002571/1.024, allocations: 438.8 kB / 0.5291 GB, free: 109.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001009/1.025, allocations: 1.295 MB / 0.5303 GB, free: 108.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002089/1.027, allocations: 178.6 kB / 0.5305 GB, free: 108.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002042/1.027, allocations: 64.55 kB / 0.5306 GB, free: 108.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/1.027, allocations: 4.344 kB / 0.5306 GB, free: 108.2 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003698/1.031, allocations: 1.461 MB / 0.532 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.156e-05/1.031, allocations: 13.19 kB / 0.532 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001551/1.031, allocations: 42.39 kB / 0.532 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00214/1.033, allocations: 416.9 kB / 0.5324 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008647/1.034, allocations: 1.289 MB / 0.5337 GB, free: 106.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00184/1.036, allocations: 142.9 kB / 0.5338 GB, free: 106.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002073/1.036, allocations: 66.41 kB / 0.5339 GB, free: 106.9 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: 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.0004595/1.037, allocations: 203.2 kB / 0.5341 GB, free: 106.8 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004523/1.037, allocations: 159.9 kB / 0.5342 GB, free: 106.8 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002919/1.04, allocations: 1.173 MB / 0.5354 GB, free: 106.7 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.654e-05/1.04, allocations: 13.47 kB / 0.5354 GB, free: 106.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.603e-06/1.04, allocations: 1.625 kB / 0.5354 GB, free: 106.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.71e-05/1.04, allocations: 5.578 kB / 0.5354 GB, free: 106.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008575/1.049, allocations: 3.537 MB / 0.5389 GB, free: 106 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.138e-05/1.049, allocations: 9.516 kB / 0.5389 GB, free: 106 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001581/1.051, allocations: 293.5 kB / 0.5391 GB, free: 106 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001496/1.051, allocations: 40.92 kB / 0.5392 GB, free: 106 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001081/1.051, allocations: 36.42 kB / 0.5392 GB, free: 106 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008852/1.052, allocations: 1.292 MB / 0.5405 GB, free: 104.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.741e-05/1.052, allocations: 16.27 kB / 0.5405 GB, free: 104.7 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00366/1.056, allocations: 2.368 MB / 0.5428 GB, free: 103.4 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008346/1.056, allocations: 335.3 kB / 0.5431 GB, free: 103.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002722/1.057, allocations: 35.47 kB / 0.5432 GB, free: 103.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00142/1.058, allocations: 149.3 kB / 0.5433 GB, free: 103.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003384/1.058, allocations: 133.1 kB / 0.5434 GB, free: 103.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001152/1.059, allocations: 40.98 kB / 0.5435 GB, free: 103.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001881/1.06, allocations: 0.895 MB / 0.5443 GB, free: 103.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.83e-07/1.061, allocations: 0 / 0.5443 GB, free: 103.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003105/1.064, allocations: 0.6913 MB / 0.545 GB, free: 103.1 MB / 442.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.0007438/1.064, allocations: 437.7 kB / 0.5454 GB, free: 103 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005145/1.07, allocations: 2.306 MB / 0.5477 GB, free: 102.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.33e-05/1.07, allocations: 2.031 kB / 0.5477 GB, free: 102.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001398/1.071, allocations: 0.5523 MB / 0.5482 GB, free: 102.6 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002126/1.073, allocations: 338.7 kB / 0.5486 GB, free: 102.6 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006585/1.08, allocations: 2.757 MB / 0.5512 GB, free: 101.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001257/1.081, allocations: 1.385 MB / 0.5526 GB, free: 100.7 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002886/1.084, allocations: 350.2 kB / 0.5529 GB, free: 100.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004696/1.084, allocations: 92.5 kB / 0.553 GB, free: 100.6 MB / 442.7 MB Notification: Performance of SimCode: time 2.075e-06/1.084, allocations: 0 / 0.553 GB, free: 100.6 MB / 442.7 MB Notification: Performance of Templates: time 0.05601/1.141, allocations: 23.85 MB / 0.5763 GB, free: 99.25 MB / 442.7 MB