Running command: translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") Notification: Performance of loadModel(Modelica): time 1.947/1.947, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.117e-05/3.126e-05, allocations: 5.562 kB / 292.1 MB, free: 8.836 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08953/0.08958, allocations: 50.43 MB / 342.6 MB, free: 6.391 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4083/0.4979, allocations: 116.4 MB / 459 MB, free: 10.09 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002585/0.4982, allocations: 92.55 kB / 459.1 MB, free: 10.04 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1474/0.6456, allocations: 39.61 MB / 498.7 MB, free: 6.734 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.33e-06/0.6457, allocations: 0 / 498.7 MB, free: 6.734 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001243/0.6458, allocations: 36 kB / 498.7 MB, free: 6.699 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.003426/0.6492, allocations: 1.518 MB / 0.4885 GB, free: 5.129 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.6493, allocations: 8.031 kB / 0.4885 GB, free: 5.121 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001008/0.6503, allocations: 242.1 kB / 0.4887 GB, free: 4.883 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00277/0.6531, allocations: 1.07 MB / 0.4898 GB, free: 3.77 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001305/0.6533, allocations: 115 kB / 0.4899 GB, free: 3.656 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003033/0.6536, allocations: 151.9 kB / 0.49 GB, free: 3.508 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00343/0.657, allocations: 1.343 MB / 0.4914 GB, free: 2.109 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.658e-05/0.6571, allocations: 4 kB / 0.4914 GB, free: 2.105 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001775/0.6573, allocations: 60 kB / 0.4914 GB, free: 2.047 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.533e-05/0.6573, allocations: 36 kB / 0.4915 GB, free: 2.012 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002446/0.6598, allocations: 0.8685 MB / 0.4923 GB, free: 1.141 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01241/0.6722, allocations: 6.213 MB / 0.4984 GB, free: 10.62 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001473/0.6738, allocations: 0.6168 MB / 0.499 GB, free: 9.953 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004855/0.6743, allocations: 215.4 kB / 0.4992 GB, free: 9.742 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.895e-05/0.6743, allocations: 8.5 kB / 0.4992 GB, free: 9.73 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.741e-05/0.6744, allocations: 39 kB / 0.4992 GB, free: 9.684 MB / 426.7 MB Notification: Performance of pre-optimization done (n=51): time 8.926e-06/0.6744, allocations: 0 / 0.4992 GB, free: 9.684 MB / 426.7 MB Notification: Performance of matching and sorting (n=54): time 0.003308/0.6777, allocations: 1.363 MB / 0.5006 GB, free: 8.266 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.828e-05/0.6778, allocations: 85.5 kB / 0.5006 GB, free: 8.164 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001998/0.6798, allocations: 0.9352 MB / 0.5016 GB, free: 7.215 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.746e-05/0.6799, allocations: 37.7 kB / 0.5016 GB, free: 7.172 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007152/0.6806, allocations: 0.7959 MB / 0.5024 GB, free: 6.367 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002275/0.6809, allocations: 201.1 kB / 0.5026 GB, free: 6.168 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.377e-05/0.6809, allocations: 20 kB / 0.5026 GB, free: 6.148 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002063/0.6812, allocations: 350.7 kB / 0.5029 GB, free: 5.797 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000548/0.6817, allocations: 210 kB / 0.5031 GB, free: 5.59 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009185/0.6827, allocations: 0.5805 MB / 0.5037 GB, free: 4.832 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007717/0.6834, allocations: 319 kB / 0.504 GB, free: 4.523 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.009e-05/0.6835, allocations: 4 kB / 0.504 GB, free: 4.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002028/0.6855, allocations: 0.8237 MB / 0.5048 GB, free: 3.684 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002866/0.6884, allocations: 5.136 MB / 0.5098 GB, free: 14.15 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.948e-05/0.6885, allocations: 16 kB / 0.5098 GB, free: 14.13 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002297/0.6887, allocations: 32.86 kB / 0.5099 GB, free: 14.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001129/0.6898, allocations: 231.6 kB / 0.5101 GB, free: 13.87 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001395/0.6913, allocations: 1.296 MB / 0.5113 GB, free: 12.44 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001111/0.6924, allocations: 51.89 kB / 0.5114 GB, free: 12.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/0.6925, allocations: 51.98 kB / 0.5114 GB, free: 12.34 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.6925, allocations: 4 kB / 0.5114 GB, free: 12.34 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00185/0.6944, allocations: 0.7565 MB / 0.5122 GB, free: 11.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.512e-05/0.6945, allocations: 12 kB / 0.5122 GB, free: 11.56 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001347/0.6946, allocations: 44.83 kB / 0.5122 GB, free: 11.52 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009793/0.6956, allocations: 223.6 kB / 0.5124 GB, free: 11.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001312/0.6969, allocations: 1.288 MB / 0.5137 GB, free: 9.879 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005429/0.6975, allocations: 35.98 kB / 0.5137 GB, free: 9.844 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.672e-05/0.6976, allocations: 48 kB / 0.5138 GB, free: 9.797 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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.0002722/0.6979, allocations: 168.8 kB / 0.5139 GB, free: 9.625 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000337/0.6982, allocations: 114.6 kB / 0.5141 GB, free: 9.512 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001359/0.6996, allocations: 0.5121 MB / 0.5146 GB, free: 8.988 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.6996, allocations: 8 kB / 0.5146 GB, free: 8.98 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.727e-06/0.6997, allocations: 0 / 0.5146 GB, free: 8.98 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/0.6997, allocations: 3.984 kB / 0.5146 GB, free: 8.977 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003953/0.7036, allocations: 1.773 MB / 0.5163 GB, free: 7.125 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.056e-05/0.7037, allocations: 4 kB / 0.5163 GB, free: 7.121 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000728/0.7044, allocations: 111.8 kB / 0.5164 GB, free: 7.012 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000131/0.7046, allocations: 20.84 kB / 0.5164 GB, free: 6.988 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.958e-05/0.7047, allocations: 19.95 kB / 0.5164 GB, free: 6.969 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001318/0.706, allocations: 1.276 MB / 0.5177 GB, free: 5.555 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.538e-06/0.706, allocations: 0 / 0.5177 GB, free: 5.555 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001908/0.7079, allocations: 0.9315 MB / 0.5186 GB, free: 4.551 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005557/0.7085, allocations: 235.6 kB / 0.5188 GB, free: 4.301 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001906/0.7087, allocations: 19.98 kB / 0.5188 GB, free: 4.281 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006882/0.7094, allocations: 43.98 kB / 0.5189 GB, free: 4.238 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.968e-05/0.7095, allocations: 32.39 kB / 0.5189 GB, free: 4.207 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.459e-05/0.7096, allocations: 20.08 kB / 0.5189 GB, free: 4.188 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001535/0.7112, allocations: 0.7061 MB / 0.5196 GB, free: 3.473 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.084e-06/0.7112, allocations: 8 kB / 0.5196 GB, free: 3.465 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002306/0.7135, allocations: 0.5077 MB / 0.5201 GB, free: 2.957 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (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,loadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 52 * 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.000716/0.7142, allocations: 408.4 kB / 0.5205 GB, free: 2.559 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002632/0.7169, allocations: 1.12 MB / 0.5216 GB, free: 1.43 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.596e-06/0.7169, allocations: 0.8125 kB / 0.5216 GB, free: 1.43 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006348/0.7176, allocations: 315.8 kB / 0.5219 GB, free: 1.109 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001639/0.7192, allocations: 248.6 kB / 0.5222 GB, free: 0.8633 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2552/0.9745, allocations: 1.879 MB / 0.524 GB, free: 85.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001159/0.9757, allocations: 1.2 MB / 0.5252 GB, free: 84.79 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004059/0.9761, allocations: 79.88 kB / 0.5252 GB, free: 84.79 MB / 442.7 MB Notification: Performance of SimCode: time 1.648e-06/0.9761, allocations: 1.219 kB / 0.5252 GB, free: 84.79 MB / 442.7 MB Notification: Performance of Templates: time 0.03741/1.014, allocations: 23.05 MB / 0.5477 GB, free: 83.96 MB / 442.7 MB