Running command: translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") Notification: Performance of loadModel(Modelica): time 1.896/1.896, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.982e-05/3e-05, allocations: 0 / 292.1 MB, free: 8.836 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09373/0.09379, allocations: 50.42 MB / 342.6 MB, free: 6.402 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4104/0.5042, allocations: 117.2 MB / 459.7 MB, free: 9.352 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002576/0.5045, allocations: 81.95 kB / 459.8 MB, free: 9.309 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1608/0.6653, allocations: 42.83 MB / 0.4909 GB, free: 2.781 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.201e-06/0.6654, allocations: 4 kB / 0.4909 GB, free: 2.777 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001432/0.6655, allocations: 44 kB / 0.4909 GB, free: 2.734 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.003887/0.6694, allocations: 1.695 MB / 0.4926 GB, free: 0.9883 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.6695, allocations: 8.031 kB / 0.4926 GB, free: 0.9805 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001113/0.6706, allocations: 277.3 kB / 0.4929 GB, free: 0.707 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003126/0.6738, allocations: 1.15 MB / 0.494 GB, free: 15.5 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001469/0.6739, allocations: 123.3 kB / 0.4941 GB, free: 15.38 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003385/0.6743, allocations: 171.9 kB / 0.4943 GB, free: 15.21 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003695/0.678, allocations: 1.482 MB / 0.4957 GB, free: 13.66 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.159e-05/0.6781, allocations: 7.906 kB / 0.4957 GB, free: 13.66 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002041/0.6783, allocations: 68 kB / 0.4958 GB, free: 13.59 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-05/0.6784, allocations: 44 kB / 0.4958 GB, free: 13.55 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002709/0.6811, allocations: 0.9433 MB / 0.4967 GB, free: 12.6 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01359/0.6947, allocations: 6.762 MB / 0.5033 GB, free: 5.531 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002115/0.6969, allocations: 0.8841 MB / 0.5042 GB, free: 4.582 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005788/0.6975, allocations: 254.5 kB / 0.5045 GB, free: 4.332 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.476e-05/0.6975, allocations: 16.48 kB / 0.5045 GB, free: 4.316 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.784e-05/0.6976, allocations: 47.12 kB / 0.5045 GB, free: 4.258 MB / 426.7 MB Notification: Performance of pre-optimization done (n=61): time 3.735e-06/0.6976, allocations: 0 / 0.5045 GB, free: 4.258 MB / 426.7 MB Notification: Performance of matching and sorting (n=64): time 0.003739/0.7013, allocations: 1.538 MB / 0.506 GB, free: 2.672 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.341e-05/0.7015, allocations: 85.67 kB / 0.5061 GB, free: 2.57 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002276/0.7037, allocations: 1.054 MB / 0.5071 GB, free: 1.504 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.565e-05/0.7038, allocations: 41.7 kB / 0.5072 GB, free: 1.457 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008117/0.7047, allocations: 0.8739 MB / 0.508 GB, free: 0.5742 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002728/0.705, allocations: 232.7 kB / 0.5082 GB, free: 352 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.54e-05/0.705, allocations: 24 kB / 0.5083 GB, free: 328 kB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002379/0.7053, allocations: 354.8 kB / 0.5086 GB, free: 15.96 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006406/0.7059, allocations: 238.6 kB / 0.5088 GB, free: 15.73 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001025/0.707, allocations: 0.6393 MB / 0.5095 GB, free: 14.91 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008734/0.7079, allocations: 354.1 kB / 0.5098 GB, free: 14.56 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.121e-05/0.7079, allocations: 4 kB / 0.5098 GB, free: 14.55 MB / 442.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002287/0.7102, allocations: 0.9422 MB / 0.5107 GB, free: 13.6 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002968/0.7132, allocations: 5.303 MB / 0.5159 GB, free: 7.887 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.549e-05/0.7133, allocations: 16 kB / 0.5159 GB, free: 7.871 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002353/0.7135, allocations: 40.86 kB / 0.5159 GB, free: 7.828 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001367/0.7149, allocations: 275.5 kB / 0.5162 GB, free: 7.559 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00142/0.7163, allocations: 1.288 MB / 0.5175 GB, free: 6.133 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001379/0.7177, allocations: 83.97 kB / 0.5175 GB, free: 6.051 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001666/0.7179, allocations: 48 kB / 0.5176 GB, free: 6.004 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.718, allocations: 5.406 kB / 0.5176 GB, free: 6 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002177/0.7201, allocations: 0.8477 MB / 0.5184 GB, free: 5.148 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.473e-05/0.7202, allocations: 20.03 kB / 0.5184 GB, free: 5.129 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001389/0.7203, allocations: 40.84 kB / 0.5185 GB, free: 5.086 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001135/0.7215, allocations: 251.6 kB / 0.5187 GB, free: 4.84 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001315/0.7228, allocations: 1.289 MB / 0.52 GB, free: 3.422 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006592/0.7235, allocations: 59.88 kB / 0.52 GB, free: 3.363 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000115/0.7236, allocations: 52 kB / 0.5201 GB, free: 3.312 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.0003181/0.724, allocations: 180.6 kB / 0.5203 GB, free: 3.129 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004043/0.7244, allocations: 130.4 kB / 0.5204 GB, free: 3 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001625/0.726, allocations: 0.5956 MB / 0.521 GB, free: 2.387 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.297e-05/0.7261, allocations: 8 kB / 0.521 GB, free: 2.379 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.7261, allocations: 0 / 0.521 GB, free: 2.379 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.412e-05/0.7261, allocations: 11.88 kB / 0.521 GB, free: 2.367 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004956/0.7311, allocations: 2.003 MB / 0.5229 GB, free: 284 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/0.7311, allocations: 0 / 0.5229 GB, free: 284 kB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009148/0.7321, allocations: 139.9 kB / 0.5231 GB, free: 144 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000139/0.7322, allocations: 36.94 kB / 0.5231 GB, free: 104 kB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.248e-05/0.7323, allocations: 16 kB / 0.5231 GB, free: 88 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2921/1.024, allocations: 1.258 MB / 0.5244 GB, free: 115.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.823e-06/1.025, allocations: 3.359 kB / 0.5244 GB, free: 115.2 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002272/1.027, allocations: 1.062 MB / 0.5254 GB, free: 114.9 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006666/1.027, allocations: 264.3 kB / 0.5256 GB, free: 114.8 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002293/1.028, allocations: 16.2 kB / 0.5257 GB, free: 114.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009052/1.029, allocations: 63.02 kB / 0.5257 GB, free: 114.8 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001383/1.029, allocations: 47.95 kB / 0.5258 GB, free: 114.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.432e-05/1.029, allocations: 18.86 kB / 0.5258 GB, free: 114.8 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001716/1.031, allocations: 0.7941 MB / 0.5266 GB, free: 114.7 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.98e-07/1.031, allocations: 0 / 0.5266 GB, free: 114.7 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00269/1.033, allocations: 0.55 MB / 0.5271 GB, free: 114.7 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.0006659/1.034, allocations: 406.2 kB / 0.5275 GB, free: 114.5 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002733/1.037, allocations: 1.263 MB / 0.5287 GB, free: 114.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.75e-06/1.037, allocations: 1.062 kB / 0.5287 GB, free: 114.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007089/1.038, allocations: 354.9 kB / 0.5291 GB, free: 114.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001854/1.039, allocations: 307.5 kB / 0.5294 GB, free: 114.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005038/1.044, allocations: 2.13 MB / 0.5314 GB, free: 113.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00112/1.046, allocations: 1.272 MB / 0.5327 GB, free: 112.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000476/1.046, allocations: 91.5 kB / 0.5328 GB, free: 112.8 MB / 442.7 MB Notification: Performance of SimCode: time 1.79e-06/1.046, allocations: 1.188 kB / 0.5328 GB, free: 112.8 MB / 442.7 MB Notification: Performance of Templates: time 0.03912/1.085, allocations: 25.67 MB / 0.5578 GB, free: 111.5 MB / 442.7 MB