Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.412/2.412, allocations: 233 MB / 246.1 MB, free: 14.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.357e-05/4.379e-05, allocations: 7.938 kB / 302.3 MB, free: 7.379 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1186, allocations: 53.23 MB / 355.5 MB, free: 2.035 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4626/0.5813, allocations: 94.26 MB / 449.8 MB, free: 7.426 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003588/0.5817, allocations: 87.95 kB / 449.9 MB, free: 7.34 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04872/0.6304, allocations: 11.36 MB / 461.2 MB, free: 11.87 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.6305, allocations: 0 / 461.2 MB, free: 11.87 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.952e-05/0.6305, allocations: 12 kB / 461.2 MB, free: 11.86 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.00153/0.6321, allocations: 0.6218 MB / 461.9 MB, free: 11.19 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.6322, allocations: 11.97 kB / 461.9 MB, free: 11.18 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001477/0.6323, allocations: 78.53 kB / 462 MB, free: 11.09 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001305/0.6325, allocations: 51.44 kB / 462 MB, free: 11.04 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001872/0.6343, allocations: 0.5493 MB / 462.6 MB, free: 10.45 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000129/0.6345, allocations: 58.48 kB / 462.6 MB, free: 10.39 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.712e-05/0.6346, allocations: 36.52 kB / 462.6 MB, free: 10.36 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000981/0.6356, allocations: 421.4 kB / 463.1 MB, free: 9.898 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.745e-05/0.6357, allocations: 3.906 kB / 463.1 MB, free: 9.895 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.811e-05/0.6357, allocations: 19.94 kB / 463.1 MB, free: 9.875 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.633e-05/0.6358, allocations: 9.875 kB / 463.1 MB, free: 9.867 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000701/0.6365, allocations: 241 kB / 463.3 MB, free: 9.633 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003451/0.6399, allocations: 1.866 MB / 465.2 MB, free: 7.648 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004278/0.6404, allocations: 175.6 kB / 465.4 MB, free: 7.449 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001787/0.6406, allocations: 75.12 kB / 465.4 MB, free: 7.367 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.797e-05/0.6406, allocations: 0 / 465.4 MB, free: 7.367 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.366e-05/0.6407, allocations: 34.56 kB / 465.5 MB, free: 7.324 MB / 394.7 MB Notification: Performance of pre-optimization done (n=18): time 2.234e-06/0.6407, allocations: 0 / 465.5 MB, free: 7.324 MB / 394.7 MB Notification: Performance of matching and sorting (n=20): time 0.001999/0.6427, allocations: 0.8438 MB / 466.3 MB, free: 6.395 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.254e-05/0.6428, allocations: 106.7 kB / 466.4 MB, free: 6.266 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004666/0.6433, allocations: 274.7 kB / 466.7 MB, free: 5.988 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.92e-05/0.6433, allocations: 29.7 kB / 466.7 MB, free: 5.953 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002109/0.6436, allocations: 243.5 kB / 467 MB, free: 5.707 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.764e-05/0.6437, allocations: 70.98 kB / 467 MB, free: 5.637 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.294e-05/0.6437, allocations: 4 kB / 467 MB, free: 5.633 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.6439, allocations: 346.8 kB / 467.4 MB, free: 5.285 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002051/0.6441, allocations: 72.06 kB / 467.4 MB, free: 5.215 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003258/0.6444, allocations: 204.2 kB / 467.6 MB, free: 4.953 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002756/0.6447, allocations: 100.2 kB / 467.7 MB, free: 4.859 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.6447, allocations: 0 / 467.7 MB, free: 4.859 MB / 394.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007543/0.6455, allocations: 311.7 kB / 468 MB, free: 4.551 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/0.6455, allocations: 8 kB / 468 MB, free: 4.543 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/0.6456, allocations: 4 kB / 468 MB, free: 4.539 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.813e-05/0.6456, allocations: 8.562 kB / 468.1 MB, free: 4.531 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006243/0.6462, allocations: 87.88 kB / 468.1 MB, free: 4.445 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.179e-05/0.6463, allocations: 11.94 kB / 468.2 MB, free: 4.434 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003491/0.6466, allocations: 15.91 kB / 468.2 MB, free: 4.418 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.661e-05/0.6467, allocations: 16 kB / 468.2 MB, free: 4.402 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001369/0.6468, allocations: 128.8 kB / 468.3 MB, free: 4.27 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.721e-05/0.6469, allocations: 31.62 kB / 468.3 MB, free: 4.238 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005436/0.6475, allocations: 196.5 kB / 468.5 MB, free: 4.039 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.6475, allocations: 4 kB / 468.5 MB, free: 4.035 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.6475, allocations: 0 / 468.5 MB, free: 4.035 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/0.6476, allocations: 3.984 kB / 468.5 MB, free: 4.031 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001338/0.6489, allocations: 0.6218 MB / 469.2 MB, free: 3.352 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.6489, allocations: 0 / 469.2 MB, free: 3.352 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005151/0.6495, allocations: 49.27 kB / 469.2 MB, free: 3.305 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.267e-06/0.6495, allocations: 4 kB / 469.2 MB, free: 3.301 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.965e-05/0.6495, allocations: 11.94 kB / 469.2 MB, free: 3.289 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.12e-05/0.6495, allocations: 7.984 kB / 469.2 MB, free: 3.281 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.6495, allocations: 0 / 469.2 MB, free: 3.281 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007829/0.6503, allocations: 484.8 kB / 469.7 MB, free: 2.77 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001223/0.6505, allocations: 104.7 kB / 469.8 MB, free: 2.648 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.453e-05/0.6506, allocations: 11.94 kB / 469.8 MB, free: 2.637 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003179/0.6509, allocations: 12.03 kB / 469.8 MB, free: 2.625 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.904e-05/0.651, allocations: 11.98 kB / 469.8 MB, free: 2.613 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.123e-05/0.651, allocations: 4 kB / 469.8 MB, free: 2.609 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003363/0.6514, allocations: 214.2 kB / 470.1 MB, free: 2.398 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6514, allocations: 4 kB / 470.1 MB, free: 2.395 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006468/0.652, allocations: 75.98 kB / 470.1 MB, free: 2.32 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.motor.phi_el,machine.motor.w_el) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001268/0.6533, allocations: 1.246 MB / 471.4 MB, free: 1.031 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005485/0.6539, allocations: 171.8 kB / 471.5 MB, free: 0.8633 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.6539, allocations: 4 kB / 471.6 MB, free: 0.8594 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002247/0.6541, allocations: 83.84 kB / 471.6 MB, free: 0.7773 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000887/0.655, allocations: 95.11 kB / 471.7 MB, free: 0.6875 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002465/0.6575, allocations: 0.7837 MB / 472.5 MB, free: 15.86 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004974/0.658, allocations: 0.8226 MB / 473.3 MB, free: 15 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003845/0.6584, allocations: 51.27 kB / 473.4 MB, free: 14.95 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002471/0.6587, allocations: 123.4 kB / 473.5 MB, free: 14.84 MB / 410.7 MB Notification: Performance of SimCode: time 2.775e-06/0.6587, allocations: 0 / 473.5 MB, free: 14.84 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03518/0.6939, allocations: 6.861 MB / 480.4 MB, free: 8.055 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003336/0.6943, allocations: 152.8 kB / 480.5 MB, free: 7.828 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.846/3.54, allocations: 0 / 480.5 MB, free: 7.828 MB / 410.7 MB