Running command: translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") Notification: Performance of loadModel(Modelica): time 1.924/1.924, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.749e-05/2.752e-05, allocations: 4 kB / 292.1 MB, free: 8.828 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09031/0.09035, allocations: 50.42 MB / 342.6 MB, free: 6.395 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4708/0.5612, allocations: 118.4 MB / 460.9 MB, free: 8.227 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002574/0.5615, allocations: 81.75 kB / 461 MB, free: 8.184 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.179/0.7405, allocations: 47.24 MB / 0.4963 GB, free: 13.2 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.7406, allocations: 0 / 0.4963 GB, free: 13.2 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001549/0.7408, allocations: 47.98 kB / 0.4964 GB, free: 13.15 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.004604/0.7454, allocations: 1.926 MB / 0.4983 GB, free: 11.17 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.7454, allocations: 12.03 kB / 0.4983 GB, free: 11.16 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00117/0.7466, allocations: 297 kB / 0.4986 GB, free: 10.87 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003348/0.75, allocations: 1.256 MB / 0.4998 GB, free: 9.555 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003959/0.7504, allocations: 260.8 kB / 0.5 GB, free: 9.281 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003845/0.7508, allocations: 195.9 kB / 0.5002 GB, free: 9.09 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004334/0.7552, allocations: 1.746 MB / 0.5019 GB, free: 7.289 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-05/0.7553, allocations: 7.938 kB / 0.5019 GB, free: 7.281 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002328/0.7555, allocations: 76 kB / 0.502 GB, free: 7.207 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.124e-05/0.7556, allocations: 47.95 kB / 0.5021 GB, free: 7.16 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003714/0.7593, allocations: 1.342 MB / 0.5034 GB, free: 5.816 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01521/0.7745, allocations: 7.487 MB / 0.5107 GB, free: 14.01 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002686/0.7773, allocations: 1.122 MB / 0.5118 GB, free: 12.81 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008723/0.7782, allocations: 371.2 kB / 0.5121 GB, free: 12.45 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.049e-05/0.7783, allocations: 12.72 kB / 0.5121 GB, free: 12.43 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.192e-05/0.7783, allocations: 47.34 kB / 0.5122 GB, free: 12.38 MB / 442.7 MB Notification: Performance of pre-optimization done (n=84): time 4.214e-06/0.7783, allocations: 0 / 0.5122 GB, free: 12.38 MB / 442.7 MB Notification: Performance of matching and sorting (n=111): time 0.01424/0.7926, allocations: 4.614 MB / 0.5167 GB, free: 7.664 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.237e-05/0.7927, allocations: 90.11 kB / 0.5168 GB, free: 7.559 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002558/0.7953, allocations: 1.19 MB / 0.5179 GB, free: 6.363 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001351/0.7954, allocations: 49.7 kB / 0.518 GB, free: 6.309 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008826/0.7963, allocations: 0.9366 MB / 0.5189 GB, free: 5.359 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004523/0.7968, allocations: 402.3 kB / 0.5193 GB, free: 4.961 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000135/0.7969, allocations: 32 kB / 0.5193 GB, free: 4.93 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002389/0.7972, allocations: 370.8 kB / 0.5197 GB, free: 4.559 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001402/0.7986, allocations: 0.5468 MB / 0.5202 GB, free: 4.012 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001815/0.8004, allocations: 0.9655 MB / 0.5211 GB, free: 2.852 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001967/0.8024, allocations: 0.5866 MB / 0.5217 GB, free: 2.262 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-05/0.8025, allocations: 4 kB / 0.5217 GB, free: 2.258 MB / 442.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004947/0.8074, allocations: 1.548 MB / 0.5232 GB, free: 0.6992 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.2427/1.05, allocations: 5.305 MB / 0.5284 GB, free: 110.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-05/1.05, allocations: 14.11 kB / 0.5284 GB, free: 110.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002653/1.05, allocations: 47.28 kB / 0.5285 GB, free: 110 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002638/1.053, allocations: 436.4 kB / 0.5289 GB, free: 110 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009894/1.054, allocations: 1.298 MB / 0.5302 GB, free: 108.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002256/1.056, allocations: 171.1 kB / 0.5303 GB, free: 108.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002046/1.057, allocations: 63.84 kB / 0.5304 GB, free: 108.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/1.057, allocations: 8.281 kB / 0.5304 GB, free: 108.8 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003636/1.06, allocations: 1.456 MB / 0.5318 GB, free: 108.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.772e-05/1.06, allocations: 13.75 kB / 0.5318 GB, free: 108.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000135/1.061, allocations: 44.98 kB / 0.5319 GB, free: 108.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002242/1.063, allocations: 414.8 kB / 0.5323 GB, free: 108.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008579/1.064, allocations: 1.291 MB / 0.5335 GB, free: 107.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001379/1.065, allocations: 140.5 kB / 0.5337 GB, free: 107.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001731/1.065, allocations: 66.44 kB / 0.5337 GB, free: 107.5 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.0004333/1.066, allocations: 201.1 kB / 0.5339 GB, free: 107.4 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004403/1.066, allocations: 159.8 kB / 0.5341 GB, free: 107.4 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003146/1.069, allocations: 1.169 MB / 0.5352 GB, free: 107.3 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-05/1.069, allocations: 17.31 kB / 0.5352 GB, free: 107.3 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.44e-06/1.069, allocations: 1.922 kB / 0.5352 GB, free: 107.3 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.677e-05/1.069, allocations: 8.734 kB / 0.5352 GB, free: 107.3 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009384/1.079, allocations: 3.532 MB / 0.5387 GB, free: 106.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.156e-05/1.079, allocations: 13.41 kB / 0.5387 GB, free: 106.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001609/1.08, allocations: 290.7 kB / 0.539 GB, free: 106.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000152/1.081, allocations: 36.08 kB / 0.539 GB, free: 106.6 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001218/1.081, allocations: 34.39 kB / 0.539 GB, free: 106.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008778/1.082, allocations: 1.295 MB / 0.5403 GB, free: 105.4 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.608e-05/1.082, allocations: 15.72 kB / 0.5403 GB, free: 105.4 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003667/1.085, allocations: 2.367 MB / 0.5426 GB, free: 104 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008718/1.086, allocations: 337.4 kB / 0.5429 GB, free: 103.9 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002686/1.087, allocations: 36.64 kB / 0.543 GB, free: 103.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001403/1.088, allocations: 155.2 kB / 0.5431 GB, free: 103.9 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003374/1.088, allocations: 134.4 kB / 0.5433 GB, free: 103.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001129/1.088, allocations: 38.31 kB / 0.5433 GB, free: 103.9 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00186/1.09, allocations: 0.8933 MB / 0.5442 GB, free: 103.8 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.97e-07/1.09, allocations: 0 / 0.5442 GB, free: 103.8 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003076/1.093, allocations: 0.6915 MB / 0.5448 GB, free: 103.8 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.0007411/1.094, allocations: 442.7 kB / 0.5453 GB, free: 103.7 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00498/1.099, allocations: 2.258 MB / 0.5475 GB, free: 103.4 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.221e-05/1.099, allocations: 2.281 kB / 0.5475 GB, free: 103.4 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00135/1.101, allocations: 0.5518 MB / 0.548 GB, free: 103.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002055/1.103, allocations: 331.8 kB / 0.5483 GB, free: 103.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006565/1.109, allocations: 2.792 MB / 0.5511 GB, free: 102.1 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001189/1.111, allocations: 1.38 MB / 0.5524 GB, free: 101.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000803/1.111, allocations: 113.8 kB / 0.5525 GB, free: 101.3 MB / 442.7 MB Notification: Performance of SimCode: time 1.732e-06/1.111, allocations: 3.938 kB / 0.5525 GB, free: 101.3 MB / 442.7 MB Notification: Performance of Templates: time 0.04326/1.155, allocations: 31.5 MB / 0.5833 GB, free: 99.6 MB / 442.7 MB