Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.002/2.002, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.224e-05/3.24e-05, allocations: 0 / 292.2 MB, free: 8.738 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1066, allocations: 50.41 MB / 342.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.488/0.5947, allocations: 116.5 MB / 459.1 MB, free: 9.676 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003048/0.595, allocations: 85.33 kB / 459.2 MB, free: 9.633 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1628/0.7578, allocations: 39.61 MB / 498.8 MB, free: 6.562 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.7579, allocations: 0 / 498.8 MB, free: 6.562 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001456/0.7581, allocations: 36 kB / 498.8 MB, free: 6.527 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.004647/0.7627, allocations: 1.525 MB / 0.4886 GB, free: 4.953 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.894e-05/0.7628, allocations: 8.031 kB / 0.4886 GB, free: 4.945 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005698/0.7634, allocations: 212 kB / 0.4888 GB, free: 4.727 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001245/0.7646, allocations: 253.5 kB / 0.4891 GB, free: 4.477 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003388/0.768, allocations: 1.063 MB / 0.4901 GB, free: 3.371 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001307/0.7682, allocations: 115 kB / 0.4902 GB, free: 3.258 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004081/0.7686, allocations: 151.9 kB / 0.4904 GB, free: 3.109 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003744/0.7724, allocations: 1.343 MB / 0.4917 GB, free: 1.711 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.463e-05/0.7725, allocations: 8 kB / 0.4917 GB, free: 1.703 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002036/0.7727, allocations: 60 kB / 0.4917 GB, free: 1.645 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.365e-05/0.7728, allocations: 36 kB / 0.4918 GB, free: 1.609 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002739/0.7755, allocations: 0.8607 MB / 0.4926 GB, free: 0.7461 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01393/0.7895, allocations: 6.213 MB / 0.4987 GB, free: 10.22 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001716/0.7913, allocations: 0.6216 MB / 0.4993 GB, free: 9.555 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005771/0.7919, allocations: 210.2 kB / 0.4995 GB, free: 9.348 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.91e-05/0.7919, allocations: 8.438 kB / 0.4995 GB, free: 9.336 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.604e-05/0.792, allocations: 35 kB / 0.4995 GB, free: 9.293 MB / 426.7 MB Notification: Performance of pre-optimization done (n=51): time 2.856e-06/0.792, allocations: 7.938 kB / 0.4995 GB, free: 9.285 MB / 426.7 MB Notification: Performance of matching and sorting (n=54): time 0.003701/0.7957, allocations: 1.36 MB / 0.5009 GB, free: 7.871 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.054e-05/0.7958, allocations: 85.5 kB / 0.5009 GB, free: 7.77 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002188/0.798, allocations: 0.9391 MB / 0.5019 GB, free: 6.816 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.341e-05/0.7982, allocations: 37.7 kB / 0.5019 GB, free: 6.773 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007554/0.7989, allocations: 0.792 MB / 0.5027 GB, free: 5.973 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002448/0.7992, allocations: 201.1 kB / 0.5029 GB, free: 5.773 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.599e-05/0.7993, allocations: 24 kB / 0.5029 GB, free: 5.75 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.7994, allocations: 350.7 kB / 0.5032 GB, free: 5.398 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006043/0.8001, allocations: 206 kB / 0.5034 GB, free: 5.195 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009688/0.801, allocations: 0.5845 MB / 0.504 GB, free: 4.434 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008107/0.8019, allocations: 315.1 kB / 0.5043 GB, free: 4.129 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.638e-05/0.8019, allocations: 4 kB / 0.5043 GB, free: 4.125 MB / 426.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002183/0.8041, allocations: 0.8242 MB / 0.5051 GB, free: 3.289 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002363/0.8065, allocations: 5.136 MB / 0.5101 GB, free: 13.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.099e-05/0.8066, allocations: 16 kB / 0.5101 GB, free: 13.74 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002918/0.8069, allocations: 40.84 kB / 0.5102 GB, free: 13.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00166/0.8086, allocations: 235.6 kB / 0.5104 GB, free: 13.46 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001316/0.8099, allocations: 1.288 MB / 0.5116 GB, free: 12.04 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001366/0.8113, allocations: 55.88 kB / 0.5117 GB, free: 11.99 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/0.8114, allocations: 56.06 kB / 0.5118 GB, free: 11.93 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/0.8114, allocations: 4 kB / 0.5118 GB, free: 11.93 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001962/0.8134, allocations: 0.7483 MB / 0.5125 GB, free: 11.18 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.002e-05/0.8134, allocations: 12 kB / 0.5125 GB, free: 11.16 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001492/0.8136, allocations: 40.81 kB / 0.5125 GB, free: 11.12 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00138/0.815, allocations: 224.3 kB / 0.5127 GB, free: 10.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001231/0.8162, allocations: 1.288 MB / 0.514 GB, free: 9.484 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006521/0.8169, allocations: 40.16 kB / 0.514 GB, free: 9.445 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001035/0.817, allocations: 44 kB / 0.5141 GB, free: 9.402 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.0002959/0.8173, allocations: 164.6 kB / 0.5142 GB, free: 9.234 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003883/0.8177, allocations: 126.5 kB / 0.5144 GB, free: 9.109 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001513/0.8193, allocations: 0.5122 MB / 0.5149 GB, free: 8.586 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.189e-05/0.8193, allocations: 4 kB / 0.5149 GB, free: 8.582 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.8193, allocations: 4 kB / 0.5149 GB, free: 8.578 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.455e-06/0.8193, allocations: 0 / 0.5149 GB, free: 8.578 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004331/0.8237, allocations: 1.773 MB / 0.5166 GB, free: 6.727 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.026e-05/0.8237, allocations: 4 kB / 0.5166 GB, free: 6.723 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/0.8248, allocations: 107.9 kB / 0.5167 GB, free: 6.617 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000144/0.8249, allocations: 21.08 kB / 0.5167 GB, free: 6.594 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.011e-05/0.825, allocations: 23.94 kB / 0.5168 GB, free: 6.57 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001231/0.8263, allocations: 1.276 MB / 0.518 GB, free: 5.156 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.8263, allocations: 0 / 0.518 GB, free: 5.156 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001994/0.8283, allocations: 0.9237 MB / 0.5189 GB, free: 4.16 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005974/0.8289, allocations: 247.6 kB / 0.5191 GB, free: 3.898 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002081/0.8291, allocations: 15.98 kB / 0.5192 GB, free: 3.883 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009133/0.83, allocations: 35.97 kB / 0.5192 GB, free: 3.848 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/0.8302, allocations: 44.42 kB / 0.5192 GB, free: 3.805 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.097e-05/0.8302, allocations: 19.95 kB / 0.5192 GB, free: 3.785 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001611/0.8319, allocations: 0.706 MB / 0.5199 GB, free: 3.07 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.8319, allocations: 0 / 0.5199 GB, free: 3.07 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002562/0.8345, allocations: 0.5077 MB / 0.5204 GB, free: 2.562 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.003179/0.8377, allocations: 2.249 MB / 0.5226 GB, free: 252 kB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.313/1.151, allocations: 1.117 MB / 0.5237 GB, free: 119.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.013e-05/1.151, allocations: 1.406 kB / 0.5237 GB, free: 119.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000718/1.151, allocations: 309.8 kB / 0.524 GB, free: 119.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002294/1.154, allocations: 255.9 kB / 0.5243 GB, free: 119.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006971/1.161, allocations: 2.11 MB / 0.5263 GB, free: 119 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009708/1.162, allocations: 1.201 MB / 0.5275 GB, free: 118.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001198/1.163, allocations: 0.5602 MB / 0.528 GB, free: 118.3 MB / 442.7 MB Notification: Performance of SimCode: time 2.304e-06/1.163, allocations: 4.5 kB / 0.528 GB, free: 118.3 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.834/3.997, allocations: 29.58 MB / 0.5569 GB, free: 116.6 MB / 442.7 MB