Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.5/2.5, allocations: 233 MB / 246.1 MB, free: 15 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.912e-05/3.922e-05, allocations: 4 kB / 302.3 MB, free: 7.602 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1223, allocations: 53.23 MB / 355.5 MB, free: 2.258 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4912/0.6135, allocations: 95 MB / 450.5 MB, free: 6.734 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004701/0.614, allocations: 91.94 kB / 450.6 MB, free: 6.645 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06658/0.6806, allocations: 12.96 MB / 463.6 MB, free: 9.555 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.6807, allocations: 0 / 463.6 MB, free: 9.555 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.63e-05/0.6808, allocations: 12 kB / 463.6 MB, free: 9.543 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001735/0.6825, allocations: 0.6764 MB / 464.3 MB, free: 8.816 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.46e-05/0.6826, allocations: 12.03 kB / 464.3 MB, free: 8.805 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001568/0.6827, allocations: 82.52 kB / 464.4 MB, free: 8.715 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001515/0.6829, allocations: 55.34 kB / 464.4 MB, free: 8.66 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002493/0.6854, allocations: 0.6741 MB / 465.1 MB, free: 7.945 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001386/0.6856, allocations: 62.69 kB / 465.1 MB, free: 7.879 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001215/0.6857, allocations: 44 kB / 465.2 MB, free: 7.836 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/0.687, allocations: 488.8 kB / 465.7 MB, free: 7.312 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.452e-05/0.687, allocations: 7.891 kB / 465.7 MB, free: 7.305 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.942e-05/0.6871, allocations: 24.94 kB / 465.7 MB, free: 7.281 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.055e-05/0.6872, allocations: 8 kB / 465.7 MB, free: 7.273 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008419/0.688, allocations: 293.4 kB / 466 MB, free: 6.988 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004117/0.6921, allocations: 2.003 MB / 468 MB, free: 4.871 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005647/0.6928, allocations: 200.3 kB / 468.2 MB, free: 4.648 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002103/0.693, allocations: 79.86 kB / 468.3 MB, free: 4.562 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.532e-05/0.6931, allocations: 11.98 kB / 468.3 MB, free: 4.551 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.9e-05/0.6931, allocations: 38.5 kB / 468.3 MB, free: 4.504 MB / 394.7 MB Notification: Performance of pre-optimization done (n=20): time 2.975e-06/0.6931, allocations: 0 / 468.3 MB, free: 4.504 MB / 394.7 MB Notification: Performance of matching and sorting (n=23): time 0.002491/0.6956, allocations: 0.9483 MB / 469.3 MB, free: 3.469 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.085e-05/0.6958, allocations: 115 kB / 469.4 MB, free: 3.332 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000511/0.6963, allocations: 283.5 kB / 469.7 MB, free: 3.047 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.739e-05/0.6963, allocations: 25.7 kB / 469.7 MB, free: 3.016 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002539/0.6966, allocations: 275.6 kB / 470 MB, free: 2.738 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.6967, allocations: 82.84 kB / 470 MB, free: 2.656 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.32e-05/0.6968, allocations: 8 kB / 470 MB, free: 2.648 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.6969, allocations: 342.8 kB / 470.4 MB, free: 2.305 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002246/0.6972, allocations: 76.03 kB / 470.5 MB, free: 2.23 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003448/0.6975, allocations: 201.8 kB / 470.6 MB, free: 1.973 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001108/0.6987, allocations: 289.2 kB / 470.9 MB, free: 1.672 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.6987, allocations: 0 / 470.9 MB, free: 1.672 MB / 394.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001245/0.6999, allocations: 385.4 kB / 471.3 MB, free: 1.285 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.567e-05/0.7, allocations: 8.594 kB / 471.3 MB, free: 1.277 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/0.7, allocations: 4 kB / 471.3 MB, free: 1.273 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005714/0.7006, allocations: 92.67 kB / 471.4 MB, free: 1.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000485/0.7011, allocations: 63.91 kB / 471.5 MB, free: 1.117 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003137/0.7042, allocations: 1.789 MB / 473.3 MB, free: 15.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004624/0.7048, allocations: 15.91 kB / 473.3 MB, free: 15.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.293e-05/0.7048, allocations: 20 kB / 473.3 MB, free: 15.16 MB / 410.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (35): * Single equations (assignments): 34 * 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: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001637/0.705, allocations: 120.9 kB / 473.4 MB, free: 15.04 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001064/0.7051, allocations: 39.61 kB / 473.5 MB, free: 15 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001237/0.7052, allocations: 47.05 kB / 473.5 MB, free: 14.95 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.7053, allocations: 4.188 kB / 473.5 MB, free: 14.95 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.7053, allocations: 0 / 473.5 MB, free: 14.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.7053, allocations: 4 kB / 473.5 MB, free: 14.94 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001751/0.7071, allocations: 0.7589 MB / 474.3 MB, free: 14.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.775e-06/0.7071, allocations: 4 kB / 474.3 MB, free: 14.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005395/0.7077, allocations: 59.84 kB / 474.3 MB, free: 14.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001398/0.7078, allocations: 24.84 kB / 474.4 MB, free: 14.02 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.526e-05/0.7078, allocations: 0 / 474.4 MB, free: 14.02 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001359/0.7092, allocations: 1.284 MB / 475.6 MB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.7093, allocations: 0 / 475.6 MB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009638/0.7102, allocations: 499.5 kB / 476.1 MB, free: 12.09 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002068/0.7105, allocations: 124.6 kB / 476.2 MB, free: 11.95 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.223e-05/0.7105, allocations: 8 kB / 476.3 MB, free: 11.94 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003673/0.7109, allocations: 11.98 kB / 476.3 MB, free: 11.93 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.883e-05/0.711, allocations: 20.02 kB / 476.3 MB, free: 11.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.511e-05/0.711, allocations: 12 kB / 476.3 MB, free: 11.89 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003819/0.7114, allocations: 222.2 kB / 476.5 MB, free: 11.68 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7114, allocations: 0 / 476.5 MB, free: 11.68 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008045/0.7123, allocations: 92 kB / 476.6 MB, free: 11.59 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (dcm_pm.motor.phi_el,dcm_pm.motor.w_el,dcm_pm.motor.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * 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: 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.00153/0.7138, allocations: 1.199 MB / 477.8 MB, free: 10.35 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001033/0.7149, allocations: 353.2 kB / 478.1 MB, free: 9.996 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.7149, allocations: 1.188 kB / 478.1 MB, free: 9.996 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000434/0.7153, allocations: 209.7 kB / 478.4 MB, free: 9.781 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009242/0.7163, allocations: 89.09 kB / 478.4 MB, free: 9.695 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002553/0.7189, allocations: 0.7794 MB / 479.2 MB, free: 8.871 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006224/0.7195, allocations: 0.8548 MB / 480.1 MB, free: 7.992 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003844/0.7199, allocations: 55.25 kB / 480.1 MB, free: 7.941 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002796/0.7202, allocations: 139.4 kB / 480.3 MB, free: 7.805 MB / 410.7 MB Notification: Performance of SimCode: time 1.303e-06/0.7202, allocations: 0 / 480.3 MB, free: 7.805 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03901/0.7592, allocations: 8.16 MB / 488.4 MB, free: 15.73 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003096/0.7596, allocations: 177.7 kB / 488.6 MB, free: 15.51 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.7/3.46, allocations: 4 kB / 488.6 MB, free: 15.5 MB / 426.7 MB