Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.986/1.986, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.234e-05/3.233e-05, allocations: 9.547 kB / 292.2 MB, free: 8.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1067, allocations: 50.42 MB / 342.6 MB, free: 6.289 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5271/0.6338, allocations: 117.2 MB / 459.8 MB, free: 9.316 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000375/0.6343, allocations: 89 kB / 459.9 MB, free: 9.27 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1691/0.8034, allocations: 42.82 MB / 0.491 GB, free: 2.719 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.8034, allocations: 0 / 0.491 GB, free: 2.719 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001799/0.8036, allocations: 48.12 kB / 0.491 GB, free: 2.672 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.005255/0.8089, allocations: 1.695 MB / 0.4927 GB, free: 0.9258 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.676e-05/0.809, allocations: 8.031 kB / 0.4927 GB, free: 0.918 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006367/0.8096, allocations: 232.5 kB / 0.4929 GB, free: 0.6797 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001264/0.8109, allocations: 277.3 kB / 0.4931 GB, free: 416 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003778/0.8147, allocations: 1.154 MB / 0.4943 GB, free: 15.2 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001457/0.8149, allocations: 127.3 kB / 0.4944 GB, free: 15.07 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004014/0.8153, allocations: 171.9 kB / 0.4946 GB, free: 14.9 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004186/0.8195, allocations: 1.478 MB / 0.496 GB, free: 13.36 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.282e-05/0.8196, allocations: 11.84 kB / 0.496 GB, free: 13.35 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002181/0.8199, allocations: 68 kB / 0.4961 GB, free: 13.29 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.103e-05/0.8199, allocations: 40 kB / 0.4961 GB, free: 13.25 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003201/0.8231, allocations: 0.955 MB / 0.4971 GB, free: 12.29 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0155/0.8387, allocations: 6.759 MB / 0.5037 GB, free: 5.219 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002566/0.8413, allocations: 0.8841 MB / 0.5045 GB, free: 4.27 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006408/0.842, allocations: 262.5 kB / 0.5048 GB, free: 4.012 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.037e-05/0.8421, allocations: 9.266 kB / 0.5048 GB, free: 4.004 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.238e-05/0.8421, allocations: 43.12 kB / 0.5048 GB, free: 3.949 MB / 426.7 MB Notification: Performance of pre-optimization done (n=61): time 3.727e-06/0.8421, allocations: 0 / 0.5048 GB, free: 3.949 MB / 426.7 MB Notification: Performance of matching and sorting (n=64): time 0.004218/0.8464, allocations: 1.546 MB / 0.5063 GB, free: 2.355 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.485e-05/0.8465, allocations: 85.61 kB / 0.5064 GB, free: 2.254 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002478/0.849, allocations: 1.058 MB / 0.5074 GB, free: 1.184 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001633/0.8492, allocations: 37.7 kB / 0.5075 GB, free: 1.141 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007935/0.85, allocations: 0.87 MB / 0.5083 GB, free: 268 kB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002995/0.8503, allocations: 240.6 kB / 0.5086 GB, free: 24 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.45e-05/0.8504, allocations: 20 kB / 0.5086 GB, free: 4 kB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001903/0.8506, allocations: 358.7 kB / 0.5089 GB, free: 15.64 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007259/0.8513, allocations: 242.6 kB / 0.5091 GB, free: 15.41 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001045/0.8524, allocations: 0.6315 MB / 0.5098 GB, free: 14.59 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000969/0.8534, allocations: 354.1 kB / 0.5101 GB, free: 14.24 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-05/0.8534, allocations: 4 kB / 0.5101 GB, free: 14.24 MB / 442.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002478/0.8559, allocations: 0.9306 MB / 0.511 GB, free: 13.3 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002244/0.8582, allocations: 5.311 MB / 0.5162 GB, free: 7.574 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.021e-05/0.8582, allocations: 16 kB / 0.5162 GB, free: 7.559 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002936/0.8586, allocations: 44.84 kB / 0.5163 GB, free: 7.512 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001944/0.8605, allocations: 275.5 kB / 0.5165 GB, free: 7.242 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00135/0.8619, allocations: 1.295 MB / 0.5178 GB, free: 5.809 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00162/0.8635, allocations: 68.12 kB / 0.5179 GB, free: 5.742 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001358/0.8637, allocations: 55.98 kB / 0.5179 GB, free: 5.688 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.8637, allocations: 4 kB / 0.5179 GB, free: 5.684 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002322/0.866, allocations: 0.8439 MB / 0.5187 GB, free: 4.836 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.401e-05/0.8661, allocations: 20.12 kB / 0.5188 GB, free: 4.816 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001535/0.8663, allocations: 44.78 kB / 0.5188 GB, free: 4.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001682/0.868, allocations: 255.6 kB / 0.519 GB, free: 4.52 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001224/0.8692, allocations: 1.285 MB / 0.5203 GB, free: 3.105 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008643/0.8701, allocations: 51.89 kB / 0.5203 GB, free: 3.055 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001048/0.8702, allocations: 48 kB / 0.5204 GB, free: 3.008 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.0003485/0.8706, allocations: 188.6 kB / 0.5206 GB, free: 2.816 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004518/0.8711, allocations: 134.4 kB / 0.5207 GB, free: 2.684 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002134/0.8732, allocations: 0.5917 MB / 0.5213 GB, free: 2.074 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.299e-05/0.8733, allocations: 11.94 kB / 0.5213 GB, free: 2.062 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.8733, allocations: 0 / 0.5213 GB, free: 2.062 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.28e-05/0.8733, allocations: 7.938 kB / 0.5213 GB, free: 2.055 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2977/1.171, allocations: 1.995 MB / 0.5232 GB, free: 116 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.762e-05/1.171, allocations: 2.062 kB / 0.5232 GB, free: 116 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001995/1.173, allocations: 146.7 kB / 0.5234 GB, free: 116 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002289/1.173, allocations: 22.97 kB / 0.5234 GB, free: 116 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001299/1.173, allocations: 20.81 kB / 0.5234 GB, free: 116 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001428/1.175, allocations: 1.266 MB / 0.5247 GB, free: 114.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.118e-05/1.175, allocations: 4.875 kB / 0.5247 GB, free: 114.8 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003813/1.179, allocations: 1.065 MB / 0.5257 GB, free: 114.4 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001173/1.18, allocations: 267.9 kB / 0.526 GB, free: 114.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004094/1.18, allocations: 19.67 kB / 0.526 GB, free: 114.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001744/1.182, allocations: 58.45 kB / 0.526 GB, free: 114.4 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002412/1.183, allocations: 48.66 kB / 0.5261 GB, free: 114.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.877e-05/1.183, allocations: 18.5 kB / 0.5261 GB, free: 114.4 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003116/1.186, allocations: 0.7932 MB / 0.5269 GB, free: 114.2 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.363e-06/1.186, allocations: 3.688 kB / 0.5269 GB, free: 114.2 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004444/1.19, allocations: 0.5469 MB / 0.5274 GB, free: 114.2 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.004776/1.195, allocations: 2.379 MB / 0.5297 GB, free: 112.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00478/1.2, allocations: 1.262 MB / 0.531 GB, free: 112.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.279e-05/1.2, allocations: 1.031 kB / 0.531 GB, free: 112.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00123/1.201, allocations: 356 kB / 0.5313 GB, free: 112.6 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003488/1.205, allocations: 291.7 kB / 0.5316 GB, free: 112.6 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01132/1.216, allocations: 2.391 MB / 0.5339 GB, free: 111.8 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001649/1.218, allocations: 1.27 MB / 0.5352 GB, free: 111.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001835/1.22, allocations: 0.6543 MB / 0.5358 GB, free: 111.1 MB / 442.7 MB Notification: Performance of SimCode: time 1.964e-06/1.22, allocations: 0.6562 kB / 0.5358 GB, free: 111.1 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.908/4.128, allocations: 32.89 MB / 0.5679 GB, free: 109.1 MB / 442.7 MB