Running command: translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,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",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") Notification: Performance of loadModel(Modelica): time 1.997/1.997, allocations: 225.8 MB / 239.4 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.86e-05/2.879e-05, allocations: 4 kB / 292.7 MB, free: 8.355 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1285, allocations: 50.41 MB / 343.1 MB, free: 5.918 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4553/0.5839, allocations: 116.4 MB / 459.5 MB, free: 10.21 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00026/0.5842, allocations: 84.08 kB / 459.5 MB, free: 10.17 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1454/0.7295, allocations: 39.6 MB / 499.1 MB, free: 6.535 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.266e-06/0.7296, allocations: 3.938 kB / 499.1 MB, free: 6.531 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001185/0.7297, allocations: 36 kB / 499.2 MB, free: 6.496 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.003176/0.7329, allocations: 1.518 MB / 0.489 GB, free: 4.926 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.733, allocations: 8.031 kB / 0.489 GB, free: 4.918 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001023/0.734, allocations: 250.1 kB / 0.4892 GB, free: 4.672 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002746/0.7368, allocations: 1.07 MB / 0.4903 GB, free: 3.559 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001226/0.7369, allocations: 111 kB / 0.4904 GB, free: 3.449 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002969/0.7372, allocations: 151.9 kB / 0.4905 GB, free: 3.301 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00327/0.7405, allocations: 1.347 MB / 0.4918 GB, free: 1.898 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.567e-05/0.7406, allocations: 4 kB / 0.4918 GB, free: 1.895 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001741/0.7408, allocations: 64 kB / 0.4919 GB, free: 1.832 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.402e-05/0.7408, allocations: 36 kB / 0.4919 GB, free: 1.797 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002365/0.7432, allocations: 0.8568 MB / 0.4928 GB, free: 0.9375 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0117/0.7549, allocations: 6.221 MB / 0.4988 GB, free: 10.41 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001432/0.7564, allocations: 0.6237 MB / 0.4994 GB, free: 9.734 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004706/0.7569, allocations: 210.2 kB / 0.4996 GB, free: 9.527 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.641e-05/0.7569, allocations: 8.438 kB / 0.4996 GB, free: 9.516 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.615e-05/0.757, allocations: 38.94 kB / 0.4997 GB, free: 9.469 MB / 426.7 MB Notification: Performance of pre-optimization done (n=51): time 5.779e-06/0.757, allocations: 0 / 0.4997 GB, free: 9.469 MB / 426.7 MB Notification: Performance of matching and sorting (n=54): time 0.003199/0.7602, allocations: 1.359 MB / 0.501 GB, free: 8.055 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.676e-05/0.7603, allocations: 85.5 kB / 0.5011 GB, free: 7.953 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001968/0.7623, allocations: 0.9391 MB / 0.502 GB, free: 7 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.347e-05/0.7624, allocations: 37.7 kB / 0.502 GB, free: 6.957 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007919/0.7632, allocations: 0.8014 MB / 0.5028 GB, free: 6.145 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002233/0.7634, allocations: 201.1 kB / 0.503 GB, free: 5.945 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.665e-05/0.7635, allocations: 24 kB / 0.503 GB, free: 5.922 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.7637, allocations: 345.9 kB / 0.5034 GB, free: 5.578 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005324/0.7642, allocations: 202 kB / 0.5036 GB, free: 5.379 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009035/0.7651, allocations: 0.5922 MB / 0.5041 GB, free: 4.609 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007438/0.7659, allocations: 311.1 kB / 0.5044 GB, free: 4.309 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.109e-05/0.7659, allocations: 4 kB / 0.5044 GB, free: 4.305 MB / 426.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002177/0.7681, allocations: 0.9006 MB / 0.5053 GB, free: 3.391 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002843/0.771, allocations: 5.145 MB / 0.5104 GB, free: 13.85 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.438e-05/0.771, allocations: 12 kB / 0.5104 GB, free: 13.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001998/0.7712, allocations: 40.84 kB / 0.5104 GB, free: 13.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/0.7723, allocations: 231.6 kB / 0.5106 GB, free: 13.57 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001383/0.7737, allocations: 1.292 MB / 0.5119 GB, free: 12.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00103/0.7747, allocations: 51.89 kB / 0.5119 GB, free: 12.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001018/0.7748, allocations: 48 kB / 0.512 GB, free: 12.05 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.959e-06/0.7749, allocations: 8.094 kB / 0.512 GB, free: 12.04 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00178/0.7767, allocations: 0.7523 MB / 0.5127 GB, free: 11.28 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.559e-05/0.7767, allocations: 16 kB / 0.5127 GB, free: 11.27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001339/0.7768, allocations: 40.8 kB / 0.5128 GB, free: 11.22 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009405/0.7778, allocations: 220.1 kB / 0.513 GB, free: 11.01 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001268/0.7791, allocations: 1.295 MB / 0.5143 GB, free: 9.582 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008681/0.78, allocations: 40.14 kB / 0.5143 GB, free: 9.543 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.892e-05/0.7801, allocations: 52 kB / 0.5143 GB, free: 9.492 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.0002486/0.7804, allocations: 164.4 kB / 0.5145 GB, free: 9.328 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002374/0.7806, allocations: 118.6 kB / 0.5146 GB, free: 9.211 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001312/0.7819, allocations: 0.5121 MB / 0.5151 GB, free: 8.688 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.084e-05/0.782, allocations: 8 kB / 0.5151 GB, free: 8.68 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.192e-06/0.782, allocations: 0 / 0.5151 GB, free: 8.68 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.717e-06/0.782, allocations: 7.984 kB / 0.5151 GB, free: 8.672 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00373/0.7857, allocations: 1.765 MB / 0.5168 GB, free: 6.828 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.973e-06/0.7858, allocations: 4 kB / 0.5169 GB, free: 6.824 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006756/0.7864, allocations: 111.9 kB / 0.517 GB, free: 6.715 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001268/0.7866, allocations: 24.83 kB / 0.517 GB, free: 6.688 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.266e-05/0.7867, allocations: 24.17 kB / 0.517 GB, free: 6.664 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001259/0.7879, allocations: 1.268 MB / 0.5182 GB, free: 5.258 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.63e-06/0.788, allocations: 4.156 kB / 0.5182 GB, free: 5.254 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001751/0.7897, allocations: 0.9275 MB / 0.5192 GB, free: 4.254 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005171/0.7903, allocations: 239.6 kB / 0.5194 GB, free: 4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001758/0.7905, allocations: 20 kB / 0.5194 GB, free: 3.98 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006612/0.7911, allocations: 35.97 kB / 0.5194 GB, free: 3.945 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.334e-05/0.7912, allocations: 36.39 kB / 0.5195 GB, free: 3.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.7e-05/0.7913, allocations: 20 kB / 0.5195 GB, free: 3.891 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001455/0.7928, allocations: 0.7021 MB / 0.5202 GB, free: 3.18 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.59e-07/0.7928, allocations: 4 kB / 0.5202 GB, free: 3.176 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002187/0.795, allocations: 0.5077 MB / 0.5207 GB, free: 2.668 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.0006774/0.7957, allocations: 421.4 kB / 0.5211 GB, free: 2.254 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002468/0.7982, allocations: 1.154 MB / 0.5222 GB, free: 1.09 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.571e-06/0.7982, allocations: 8.062 kB / 0.5222 GB, free: 1.082 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005942/0.7988, allocations: 311.2 kB / 0.5225 GB, free: 0.7656 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00136/0.8002, allocations: 249 kB / 0.5227 GB, free: 0.5195 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2372/1.037, allocations: 1.85 MB / 0.5246 GB, free: 119.7 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00103/1.038, allocations: 1.202 MB / 0.5257 GB, free: 119 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001492/1.04, allocations: 200.6 kB / 0.5259 GB, free: 119 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001918/1.04, allocations: 64.38 kB / 0.526 GB, free: 119 MB / 442.7 MB Notification: Performance of SimCode: time 2.904e-06/1.04, allocations: 0 / 0.526 GB, free: 119 MB / 442.7 MB Notification: Performance of Templates: time 0.04236/1.083, allocations: 16.84 MB / 0.5424 GB, free: 118.2 MB / 442.7 MB