Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.448/2.448, allocations: 233 MB / 246.1 MB, free: 14.84 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.091e-05/4.099e-05, allocations: 4 kB / 302.3 MB, free: 7.398 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1332, allocations: 53.24 MB / 355.5 MB, free: 2.039 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4744/0.6077, allocations: 94.99 MB / 450.5 MB, free: 6.598 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003293/0.6081, allocations: 88.78 kB / 450.6 MB, free: 6.512 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05601/0.6641, allocations: 12.97 MB / 463.6 MB, free: 9.418 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.6642, allocations: 4 kB / 463.6 MB, free: 9.414 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.181e-05/0.6642, allocations: 12 kB / 463.6 MB, free: 9.402 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.001629/0.6659, allocations: 0.669 MB / 464.3 MB, free: 8.684 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.6659, allocations: 12.02 kB / 464.3 MB, free: 8.672 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001497/0.6661, allocations: 82.53 kB / 464.4 MB, free: 8.582 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001618/0.6663, allocations: 59.28 kB / 464.4 MB, free: 8.523 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002272/0.6685, allocations: 0.6664 MB / 465.1 MB, free: 7.816 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001438/0.6687, allocations: 70.62 kB / 465.2 MB, free: 7.742 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001183/0.6689, allocations: 44.52 kB / 465.2 MB, free: 7.699 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001162/0.67, allocations: 492.2 kB / 465.7 MB, free: 7.172 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.921e-05/0.6701, allocations: 0 / 465.7 MB, free: 7.172 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.354e-05/0.6702, allocations: 16 kB / 465.7 MB, free: 7.156 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.581e-05/0.6702, allocations: 12 kB / 465.7 MB, free: 7.145 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008339/0.6711, allocations: 301.3 kB / 466 MB, free: 6.852 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003699/0.6748, allocations: 1.992 MB / 468 MB, free: 4.746 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000499/0.6753, allocations: 195.7 kB / 468.2 MB, free: 4.527 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002194/0.6756, allocations: 93.16 kB / 468.3 MB, free: 4.43 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.622e-05/0.6756, allocations: 0 / 468.3 MB, free: 4.43 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.901e-05/0.6756, allocations: 46.5 kB / 468.3 MB, free: 4.375 MB / 394.7 MB Notification: Performance of pre-optimization done (n=20): time 2.675e-06/0.6757, allocations: 0 / 468.3 MB, free: 4.375 MB / 394.7 MB Notification: Performance of matching and sorting (n=23): time 0.002322/0.678, allocations: 0.9511 MB / 469.3 MB, free: 3.34 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.975e-05/0.6781, allocations: 111 kB / 469.4 MB, free: 3.207 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000543/0.6787, allocations: 287.5 kB / 469.7 MB, free: 2.918 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.482e-05/0.6787, allocations: 33.7 kB / 469.7 MB, free: 2.879 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002424/0.679, allocations: 271.6 kB / 470 MB, free: 2.605 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001035/0.6791, allocations: 78.84 kB / 470 MB, free: 2.527 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.474e-05/0.6791, allocations: 8 kB / 470 MB, free: 2.52 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.6793, allocations: 346.8 kB / 470.4 MB, free: 2.172 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000225/0.6795, allocations: 64 kB / 470.4 MB, free: 2.109 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003252/0.6799, allocations: 207.8 kB / 470.6 MB, free: 1.848 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00113/0.681, allocations: 301.2 kB / 470.9 MB, free: 1.535 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.6811, allocations: 0 / 470.9 MB, free: 1.535 MB / 394.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001261/0.6823, allocations: 381.6 kB / 471.3 MB, free: 1.152 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.561e-05/0.6824, allocations: 8 kB / 471.3 MB, free: 1.145 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/0.6824, allocations: 4 kB / 471.3 MB, free: 1.141 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005487/0.683, allocations: 89.2 kB / 471.4 MB, free: 1.051 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004882/0.6835, allocations: 63.91 kB / 471.5 MB, free: 0.9883 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003004/0.6865, allocations: 1.781 MB / 473.3 MB, free: 15.08 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000484/0.687, allocations: 27.97 kB / 473.3 MB, free: 15.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.936e-05/0.6871, allocations: 12 kB / 473.3 MB, free: 15.04 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.0001643/0.6873, allocations: 133 kB / 473.4 MB, free: 14.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.6874, allocations: 31.62 kB / 473.5 MB, free: 14.87 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001368/0.6875, allocations: 47.05 kB / 473.5 MB, free: 14.82 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.6875, allocations: 7.938 kB / 473.5 MB, free: 14.82 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/0.6876, allocations: 4 kB / 473.5 MB, free: 14.81 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.6876, allocations: 4 kB / 473.5 MB, free: 14.81 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001796/0.6894, allocations: 0.765 MB / 474.3 MB, free: 13.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.6894, allocations: 0 / 474.3 MB, free: 13.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005425/0.69, allocations: 51.97 kB / 474.3 MB, free: 13.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001372/0.6901, allocations: 20.8 kB / 474.4 MB, free: 13.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.712e-05/0.6902, allocations: 8 kB / 474.4 MB, free: 13.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001227/0.6915, allocations: 1.276 MB / 475.6 MB, free: 12.48 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.83e-06/0.6915, allocations: 0 / 475.6 MB, free: 12.48 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009271/0.6924, allocations: 0.4994 MB / 476.1 MB, free: 11.95 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000204/0.6926, allocations: 124.6 kB / 476.3 MB, free: 11.81 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.368e-05/0.6927, allocations: 4 kB / 476.3 MB, free: 11.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00036/0.6931, allocations: 11.98 kB / 476.3 MB, free: 11.79 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.969e-05/0.6932, allocations: 15.98 kB / 476.3 MB, free: 11.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.855e-05/0.6932, allocations: 11.98 kB / 476.3 MB, free: 11.77 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003821/0.6936, allocations: 222.2 kB / 476.5 MB, free: 11.55 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6936, allocations: 4 kB / 476.5 MB, free: 11.54 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000816/0.6945, allocations: 88 kB / 476.6 MB, free: 11.46 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.001389/0.6959, allocations: 1.196 MB / 477.8 MB, free: 10.22 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001028/0.6969, allocations: 361.3 kB / 478.2 MB, free: 9.859 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.697, allocations: 0 / 478.2 MB, free: 9.859 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004116/0.6974, allocations: 195 kB / 478.3 MB, free: 9.66 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009267/0.6983, allocations: 103.8 kB / 478.4 MB, free: 9.562 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00249/0.7008, allocations: 0.7773 MB / 479.2 MB, free: 8.738 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005706/0.7015, allocations: 0.8509 MB / 480.1 MB, free: 7.863 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003801/0.7018, allocations: 55.27 kB / 480.1 MB, free: 7.812 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002808/0.7021, allocations: 135.4 kB / 480.3 MB, free: 7.68 MB / 410.7 MB Notification: Performance of SimCode: time 1.543e-06/0.7022, allocations: 7.938 kB / 480.3 MB, free: 7.672 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04159/0.7438, allocations: 8.169 MB / 488.4 MB, free: 15.59 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003131/0.7441, allocations: 189.2 kB / 488.6 MB, free: 15.36 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.584/3.328, allocations: 0 / 488.6 MB, free: 15.36 MB / 426.7 MB