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_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") Notification: Performance of loadModel(Modelica): time 2.114/2.114, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.576e-05/2.583e-05, allocations: 7.562 kB / 292.7 MB, free: 8.316 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0879/0.08794, allocations: 50.41 MB / 343.1 MB, free: 5.887 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4447/0.5327, allocations: 118.3 MB / 461.4 MB, free: 8.297 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002851/0.533, allocations: 85.81 kB / 461.5 MB, free: 8.254 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1825/0.7155, allocations: 47.23 MB / 0.4968 GB, free: 12.91 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.7156, allocations: 0 / 0.4968 GB, free: 12.91 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001513/0.7157, allocations: 47.98 kB / 0.4968 GB, free: 12.87 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.00439/0.7201, allocations: 1.922 MB / 0.4987 GB, free: 10.89 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.7202, allocations: 12.03 kB / 0.4987 GB, free: 10.88 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001055/0.7213, allocations: 301 kB / 0.499 GB, free: 10.59 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004923/0.7262, allocations: 1.26 MB / 0.5003 GB, free: 9.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008203/0.7271, allocations: 260.8 kB / 0.5005 GB, free: 8.996 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008277/0.7279, allocations: 195.9 kB / 0.5007 GB, free: 8.805 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009533/0.7375, allocations: 1.746 MB / 0.5024 GB, free: 7.004 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001426/0.7377, allocations: 7.938 kB / 0.5024 GB, free: 6.996 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005231/0.7382, allocations: 76 kB / 0.5025 GB, free: 6.922 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001112/0.7384, allocations: 51.94 kB / 0.5025 GB, free: 6.871 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008246/0.7466, allocations: 1.335 MB / 0.5038 GB, free: 5.535 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03076/0.7774, allocations: 7.483 MB / 0.5111 GB, free: 13.73 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005803/0.7833, allocations: 1.122 MB / 0.5122 GB, free: 12.53 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001952/0.7853, allocations: 367.1 kB / 0.5126 GB, free: 12.17 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001651/0.7855, allocations: 20.73 kB / 0.5126 GB, free: 12.15 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.773e-05/0.7856, allocations: 47.34 kB / 0.5126 GB, free: 12.09 MB / 442.7 MB Notification: Performance of pre-optimization done (n=84): time 8.955e-06/0.7856, allocations: 0 / 0.5126 GB, free: 12.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=111): time 0.01672/0.8024, allocations: 4.606 MB / 0.5171 GB, free: 7.387 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.045e-05/0.8025, allocations: 94.11 kB / 0.5172 GB, free: 7.277 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002635/0.8051, allocations: 1.194 MB / 0.5184 GB, free: 6.078 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001457/0.8053, allocations: 49.7 kB / 0.5184 GB, free: 6.023 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009902/0.8063, allocations: 0.9747 MB / 0.5194 GB, free: 5.035 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004605/0.8068, allocations: 394.3 kB / 0.5198 GB, free: 4.645 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001274/0.8069, allocations: 39.94 kB / 0.5198 GB, free: 4.605 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002244/0.8072, allocations: 357.9 kB / 0.5202 GB, free: 4.25 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001391/0.8086, allocations: 0.543 MB / 0.5207 GB, free: 3.707 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002134/0.8107, allocations: 0.9694 MB / 0.5216 GB, free: 2.543 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001489/0.8122, allocations: 0.5827 MB / 0.5222 GB, free: 1.957 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.327e-05/0.8123, allocations: 4 kB / 0.5222 GB, free: 1.953 MB / 442.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004229/0.8165, allocations: 1.649 MB / 0.5238 GB, free: 300 kB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.295/1.112, allocations: 5.402 MB / 0.5291 GB, free: 109.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.67e-05/1.112, allocations: 13.75 kB / 0.5291 GB, free: 109.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002577/1.112, allocations: 45.83 kB / 0.5291 GB, free: 109.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002734/1.115, allocations: 435.4 kB / 0.5296 GB, free: 109.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001012/1.116, allocations: 1.303 MB / 0.5308 GB, free: 108.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002357/1.118, allocations: 176 kB / 0.531 GB, free: 108.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002047/1.118, allocations: 62.2 kB / 0.5311 GB, free: 108.6 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/1.118, allocations: 4.719 kB / 0.5311 GB, free: 108.6 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003876/1.122, allocations: 1.46 MB / 0.5325 GB, free: 108.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.805e-05/1.122, allocations: 15.12 kB / 0.5325 GB, free: 108.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001572/1.122, allocations: 46.2 kB / 0.5325 GB, free: 108.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002518/1.125, allocations: 410.5 kB / 0.5329 GB, free: 108.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009125/1.126, allocations: 1.295 MB / 0.5342 GB, free: 107.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002028/1.128, allocations: 147.5 kB / 0.5343 GB, free: 107.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001934/1.128, allocations: 64.27 kB / 0.5344 GB, free: 107.3 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.0004474/1.129, allocations: 194.7 kB / 0.5346 GB, free: 107.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003779/1.129, allocations: 160.9 kB / 0.5347 GB, free: 107.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003024/1.132, allocations: 1.176 MB / 0.5359 GB, free: 107.1 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.619e-05/1.132, allocations: 11.41 kB / 0.5359 GB, free: 107.1 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.807e-06/1.132, allocations: 3.969 kB / 0.5359 GB, free: 107.1 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.565e-05/1.132, allocations: 5.203 kB / 0.5359 GB, free: 107.1 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008875/1.141, allocations: 3.539 MB / 0.5394 GB, free: 106.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.162e-05/1.141, allocations: 9.75 kB / 0.5394 GB, free: 106.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001642/1.143, allocations: 294.8 kB / 0.5397 GB, free: 106.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001425/1.143, allocations: 35.08 kB / 0.5397 GB, free: 106.4 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001069/1.143, allocations: 34.98 kB / 0.5397 GB, free: 106.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008468/1.144, allocations: 1.298 MB / 0.541 GB, free: 105.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.608e-05/1.144, allocations: 15.84 kB / 0.541 GB, free: 105.2 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003497/1.147, allocations: 2.366 MB / 0.5433 GB, free: 103.8 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008446/1.148, allocations: 336.8 kB / 0.5436 GB, free: 103.7 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002809/1.149, allocations: 35.89 kB / 0.5437 GB, free: 103.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001463/1.15, allocations: 147.9 kB / 0.5438 GB, free: 103.7 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003455/1.15, allocations: 137.2 kB / 0.5439 GB, free: 103.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001121/1.151, allocations: 39.95 kB / 0.544 GB, free: 103.7 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00186/1.152, allocations: 0.892 MB / 0.5449 GB, free: 103.6 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.37e-07/1.152, allocations: 1 kB / 0.5449 GB, free: 103.6 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002953/1.155, allocations: 0.693 MB / 0.5455 GB, free: 103.6 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.0007274/1.156, allocations: 432.7 kB / 0.5459 GB, free: 103.4 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004976/1.161, allocations: 2.314 MB / 0.5482 GB, free: 103.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.093e-05/1.161, allocations: 3.109 kB / 0.5482 GB, free: 103.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001288/1.162, allocations: 0.5465 MB / 0.5487 GB, free: 103 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00198/1.164, allocations: 339.7 kB / 0.5491 GB, free: 103 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006381/1.171, allocations: 2.758 MB / 0.5518 GB, free: 101.9 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001185/1.172, allocations: 1.385 MB / 0.5531 GB, free: 101.1 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002712/1.175, allocations: 346.7 kB / 0.5534 GB, free: 101 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004869/1.175, allocations: 92.47 kB / 0.5535 GB, free: 101 MB / 442.7 MB Notification: Performance of SimCode: time 1.657e-06/1.175, allocations: 4 kB / 0.5535 GB, free: 101 MB / 442.7 MB Notification: Performance of Templates: time 0.05411/1.229, allocations: 23.86 MB / 0.5768 GB, free: 99.66 MB / 442.7 MB