Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.379/2.379, allocations: 233 MB / 245.6 MB, free: 14.82 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.055e-05/4.063e-05, allocations: 11.92 kB / 301.4 MB, free: 7.879 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1209, allocations: 53.23 MB / 354.6 MB, free: 2.535 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4632/0.5841, allocations: 95 MB / 449.6 MB, free: 7.008 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000356/0.5846, allocations: 87.95 kB / 449.7 MB, free: 6.922 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06178/0.6463, allocations: 12.97 MB / 462.6 MB, free: 9.824 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.6464, allocations: 0 / 462.6 MB, free: 9.824 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.121e-05/0.6465, allocations: 12 kB / 462.7 MB, free: 9.812 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.001651/0.6481, allocations: 0.6729 MB / 463.3 MB, free: 9.09 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.6482, allocations: 11.97 kB / 463.3 MB, free: 9.078 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001476/0.6483, allocations: 86.53 kB / 463.4 MB, free: 8.984 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001418/0.6485, allocations: 59.33 kB / 463.5 MB, free: 8.926 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00222/0.6507, allocations: 0.6663 MB / 464.1 MB, free: 8.219 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001307/0.6509, allocations: 58.7 kB / 464.2 MB, free: 8.156 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001131/0.651, allocations: 48.52 kB / 464.3 MB, free: 8.109 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001172/0.6522, allocations: 492.2 kB / 464.7 MB, free: 7.582 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.102e-05/0.6522, allocations: 7.922 kB / 464.7 MB, free: 7.574 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.091e-05/0.6523, allocations: 16 kB / 464.8 MB, free: 7.559 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.752e-05/0.6523, allocations: 12 kB / 464.8 MB, free: 7.547 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008277/0.6532, allocations: 297.4 kB / 465.1 MB, free: 7.258 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005395/0.6586, allocations: 1.992 MB / 467.1 MB, free: 5.152 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007999/0.6595, allocations: 200.4 kB / 467.2 MB, free: 4.93 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003331/0.6598, allocations: 86.56 kB / 467.3 MB, free: 4.836 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.588e-05/0.6599, allocations: 8.5 kB / 467.3 MB, free: 4.828 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.69e-05/0.66, allocations: 42.56 kB / 467.4 MB, free: 4.777 MB / 394.7 MB Notification: Performance of pre-optimization done (n=20): time 5.27e-06/0.66, allocations: 0 / 467.4 MB, free: 4.777 MB / 394.7 MB Notification: Performance of matching and sorting (n=23): time 0.004779/0.6648, allocations: 0.9418 MB / 468.3 MB, free: 3.746 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00011/0.665, allocations: 115 kB / 468.4 MB, free: 3.609 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007158/0.6657, allocations: 279.5 kB / 468.7 MB, free: 3.328 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.22e-05/0.6658, allocations: 39.27 kB / 468.7 MB, free: 3.285 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003649/0.6661, allocations: 318 kB / 469.1 MB, free: 2.969 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001384/0.6663, allocations: 82.83 kB / 469.1 MB, free: 2.887 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.398e-05/0.6664, allocations: 8 kB / 469.1 MB, free: 2.879 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.6665, allocations: 326.8 kB / 469.5 MB, free: 2.551 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002186/0.6667, allocations: 71.92 kB / 469.5 MB, free: 2.48 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003146/0.6671, allocations: 199.9 kB / 469.7 MB, free: 2.227 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001069/0.6682, allocations: 301.2 kB / 470 MB, free: 1.914 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.628e-06/0.6682, allocations: 0 / 470 MB, free: 1.914 MB / 394.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001109/0.6693, allocations: 362 kB / 470.4 MB, free: 1.551 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.6693, allocations: 4 kB / 470.4 MB, free: 1.547 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.439e-05/0.6694, allocations: 8 kB / 470.4 MB, free: 1.539 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005404/0.6699, allocations: 86.23 kB / 470.5 MB, free: 1.453 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004694/0.6704, allocations: 72.16 kB / 470.5 MB, free: 1.383 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002902/0.6733, allocations: 1.782 MB / 472.3 MB, free: 15.47 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004204/0.6738, allocations: 20 kB / 472.3 MB, free: 15.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.538e-05/0.6738, allocations: 20.05 kB / 472.4 MB, free: 15.43 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.0001729/0.674, allocations: 130.9 kB / 472.5 MB, free: 15.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001021/0.6741, allocations: 31.62 kB / 472.5 MB, free: 15.27 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001289/0.6743, allocations: 39.05 kB / 472.6 MB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.052e-06/0.6743, allocations: 4 kB / 472.6 MB, free: 15.22 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/0.6743, allocations: 4 kB / 472.6 MB, free: 15.22 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.245e-06/0.6743, allocations: 3.984 kB / 472.6 MB, free: 15.21 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001632/0.6759, allocations: 0.7689 MB / 473.3 MB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.676, allocations: 0 / 473.3 MB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005235/0.6765, allocations: 51.91 kB / 473.4 MB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001322/0.6767, allocations: 20.86 kB / 473.4 MB, free: 14.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.214e-05/0.6767, allocations: 11.98 kB / 473.4 MB, free: 14.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001314/0.678, allocations: 1.284 MB / 474.7 MB, free: 12.88 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.678, allocations: 0 / 474.7 MB, free: 12.88 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000891/0.6789, allocations: 499.3 kB / 475.2 MB, free: 12.35 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001867/0.6791, allocations: 128.8 kB / 475.3 MB, free: 12.21 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.906e-05/0.6792, allocations: 0 / 475.3 MB, free: 12.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003465/0.6796, allocations: 15.98 kB / 475.3 MB, free: 12.19 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.34e-05/0.6797, allocations: 19.97 kB / 475.4 MB, free: 12.17 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.214e-05/0.6797, allocations: 4 kB / 475.4 MB, free: 12.17 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003769/0.6801, allocations: 222.2 kB / 475.6 MB, free: 11.95 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.6801, allocations: 0 / 475.6 MB, free: 11.95 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008056/0.6809, allocations: 92 kB / 475.7 MB, free: 11.86 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.001474/0.6824, allocations: 1.206 MB / 476.9 MB, free: 10.61 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001034/0.6835, allocations: 353.8 kB / 477.2 MB, free: 10.26 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.6835, allocations: 0 / 477.2 MB, free: 10.26 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004269/0.6839, allocations: 204.7 kB / 477.4 MB, free: 10.05 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009431/0.6849, allocations: 98.41 kB / 477.5 MB, free: 9.957 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002449/0.6874, allocations: 0.8067 MB / 478.3 MB, free: 9.098 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005878/0.688, allocations: 0.8509 MB / 479.2 MB, free: 8.223 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002908/0.6883, allocations: 151.3 kB / 479.3 MB, free: 8.074 MB / 410.7 MB Notification: Performance of SimCode: time 1.062e-06/0.6883, allocations: 0 / 479.3 MB, free: 8.074 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.875/3.564, allocations: 8.886 MB / 488.2 MB, free: 15.2 MB / 426.7 MB