Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.966/1.966, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.166e-05/3.178e-05, allocations: 8 kB / 292.2 MB, free: 8.723 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1069, allocations: 50.42 MB / 342.6 MB, free: 6.285 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5178/0.6248, allocations: 118.4 MB / 461 MB, free: 7.809 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000292/0.6252, allocations: 83.86 kB / 461.1 MB, free: 7.766 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1921/0.8173, allocations: 47.23 MB / 0.4964 GB, free: 13 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.8173, allocations: 0 / 0.4964 GB, free: 13 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002003/0.8176, allocations: 51.92 kB / 0.4965 GB, free: 12.95 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.006505/0.8241, allocations: 1.926 MB / 0.4984 GB, free: 10.97 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.452e-05/0.8241, allocations: 12.03 kB / 0.4984 GB, free: 10.96 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007128/0.8249, allocations: 262 kB / 0.4986 GB, free: 10.7 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001392/0.8263, allocations: 309 kB / 0.4989 GB, free: 10.39 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003981/0.8303, allocations: 1.256 MB / 0.5001 GB, free: 9.078 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004741/0.8308, allocations: 268.8 kB / 0.5004 GB, free: 8.797 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005294/0.8313, allocations: 191.9 kB / 0.5006 GB, free: 8.609 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005102/0.8365, allocations: 1.746 MB / 0.5023 GB, free: 6.809 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.888e-05/0.8366, allocations: 11.84 kB / 0.5023 GB, free: 6.797 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002628/0.8369, allocations: 76 kB / 0.5024 GB, free: 6.723 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.702e-05/0.8369, allocations: 51.95 kB / 0.5024 GB, free: 6.672 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004417/0.8414, allocations: 1.339 MB / 0.5037 GB, free: 5.332 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0179/0.8593, allocations: 7.471 MB / 0.511 GB, free: 13.54 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003338/0.8627, allocations: 1.126 MB / 0.5121 GB, free: 12.34 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001039/0.8638, allocations: 371.2 kB / 0.5125 GB, free: 11.97 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001031/0.8639, allocations: 12.78 kB / 0.5125 GB, free: 11.96 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.025e-05/0.864, allocations: 43.33 kB / 0.5125 GB, free: 11.91 MB / 442.7 MB Notification: Performance of pre-optimization done (n=84): time 3.828e-06/0.864, allocations: 0 / 0.5125 GB, free: 11.91 MB / 442.7 MB Notification: Performance of matching and sorting (n=111): time 0.01864/0.8826, allocations: 4.622 MB / 0.517 GB, free: 7.188 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.02e-05/0.8827, allocations: 86.11 kB / 0.5171 GB, free: 7.086 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002894/0.8856, allocations: 1.194 MB / 0.5183 GB, free: 5.887 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002487/0.8859, allocations: 49.7 kB / 0.5183 GB, free: 5.832 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009089/0.8868, allocations: 0.9366 MB / 0.5193 GB, free: 4.883 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005575/0.8874, allocations: 398.3 kB / 0.5196 GB, free: 4.488 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001527/0.8876, allocations: 32 kB / 0.5197 GB, free: 4.457 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000201/0.8878, allocations: 370.8 kB / 0.52 GB, free: 4.086 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001609/0.8894, allocations: 0.539 MB / 0.5205 GB, free: 3.547 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002042/0.8915, allocations: 0.9694 MB / 0.5215 GB, free: 2.383 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001655/0.8932, allocations: 0.5866 MB / 0.5221 GB, free: 1.793 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-05/0.8932, allocations: 4 kB / 0.5221 GB, free: 1.789 MB / 442.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.00443/0.8976, allocations: 1.556 MB / 0.5236 GB, free: 228 kB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.295/1.193, allocations: 5.305 MB / 0.5288 GB, free: 109.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.904e-05/1.193, allocations: 14.12 kB / 0.5288 GB, free: 109.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003428/1.193, allocations: 44.09 kB / 0.5288 GB, free: 109.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003919/1.197, allocations: 446.1 kB / 0.5293 GB, free: 109.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001177/1.198, allocations: 1.293 MB / 0.5305 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00312/1.201, allocations: 174.3 kB / 0.5307 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002778/1.202, allocations: 64.77 kB / 0.5307 GB, free: 108.1 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/1.202, allocations: 3.812 kB / 0.5307 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004622/1.206, allocations: 1.457 MB / 0.5322 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.268e-05/1.207, allocations: 16.84 kB / 0.5322 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001546/1.207, allocations: 42.28 kB / 0.5322 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003457/1.21, allocations: 410.9 kB / 0.5326 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009824/1.211, allocations: 1.289 MB / 0.5339 GB, free: 106.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00222/1.214, allocations: 149.2 kB / 0.534 GB, free: 106.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002253/1.214, allocations: 65.5 kB / 0.5341 GB, free: 106.9 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.0005595/1.214, allocations: 198.8 kB / 0.5343 GB, free: 106.8 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005313/1.215, allocations: 160 kB / 0.5344 GB, free: 106.8 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003442/1.218, allocations: 1.17 MB / 0.5356 GB, free: 106.7 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.063e-05/1.218, allocations: 14 kB / 0.5356 GB, free: 106.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/1.218, allocations: 6.766 kB / 0.5356 GB, free: 106.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.968e-05/1.218, allocations: 5.109 kB / 0.5356 GB, free: 106.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01099/1.229, allocations: 3.539 MB / 0.539 GB, free: 106 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-05/1.23, allocations: 10.14 kB / 0.5391 GB, free: 106 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00249/1.232, allocations: 287.8 kB / 0.5393 GB, free: 106 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002063/1.232, allocations: 36.19 kB / 0.5394 GB, free: 106 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001815/1.232, allocations: 40 kB / 0.5394 GB, free: 106 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009788/1.233, allocations: 1.291 MB / 0.5407 GB, free: 104.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.638e-05/1.234, allocations: 16.22 kB / 0.5407 GB, free: 104.7 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004478/1.238, allocations: 2.365 MB / 0.543 GB, free: 103.3 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001343/1.239, allocations: 336.4 kB / 0.5433 GB, free: 103.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005233/1.24, allocations: 31.53 kB / 0.5433 GB, free: 103.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002448/1.242, allocations: 153.7 kB / 0.5435 GB, free: 103.2 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005213/1.243, allocations: 135.7 kB / 0.5436 GB, free: 103.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001309/1.243, allocations: 40.02 kB / 0.5437 GB, free: 103.2 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002371/1.246, allocations: 0.8968 MB / 0.5445 GB, free: 103.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.02e-07/1.246, allocations: 0 / 0.5445 GB, free: 103.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004215/1.25, allocations: 0.6898 MB / 0.5452 GB, free: 103.1 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.006031/1.256, allocations: 6.011 MB / 0.5511 GB, free: 98.47 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006392/1.262, allocations: 2.258 MB / 0.5533 GB, free: 98.19 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.818e-05/1.262, allocations: 2.75 kB / 0.5533 GB, free: 98.19 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001677/1.264, allocations: 0.5449 MB / 0.5538 GB, free: 98.05 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003104/1.267, allocations: 332.1 kB / 0.5541 GB, free: 98.04 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01048/1.278, allocations: 3.089 MB / 0.5571 GB, free: 96.79 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001159/1.279, allocations: 1.382 MB / 0.5585 GB, free: 96.05 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001758/1.281, allocations: 0.759 MB / 0.5592 GB, free: 96.04 MB / 442.7 MB Notification: Performance of SimCode: time 1.413e-06/1.281, allocations: 3.938 kB / 0.5592 GB, free: 96.04 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.167/4.448, allocations: 39.64 MB / 0.5979 GB, free: 86.97 MB / 442.7 MB