Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.451/2.451, allocations: 233 MB / 245.6 MB, free: 14.82 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.215e-05/4.217e-05, allocations: 7.984 kB / 301.4 MB, free: 7.867 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1172, allocations: 53.23 MB / 354.6 MB, free: 2.523 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4769/0.5941, allocations: 107.5 MB / 462.1 MB, free: 10.34 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003602/0.5945, allocations: 93.14 kB / 462.2 MB, free: 10.25 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1188/0.7134, allocations: 25.93 MB / 488.1 MB, free: 8 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.7134, allocations: 0 / 488.1 MB, free: 8 kB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001042/0.7135, allocations: 19.98 kB / 488.2 MB, free: 15.98 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.003396/0.7169, allocations: 0.9507 MB / 489.1 MB, free: 14.99 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.847e-05/0.717, allocations: 8.031 kB / 489.1 MB, free: 14.98 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003397/0.7174, allocations: 122.5 kB / 489.2 MB, free: 14.86 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007368/0.7181, allocations: 102.9 kB / 489.3 MB, free: 14.75 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003398/0.7216, allocations: 0.8484 MB / 490.2 MB, free: 13.86 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001775/0.7218, allocations: 83.58 kB / 490.3 MB, free: 13.78 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002548/0.7221, allocations: 71.94 kB / 490.3 MB, free: 13.71 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002448/0.7245, allocations: 0.9331 MB / 491.3 MB, free: 12.72 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.345e-05/0.7246, allocations: 7.938 kB / 491.3 MB, free: 12.71 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001198/0.7247, allocations: 27.98 kB / 491.3 MB, free: 12.68 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001876/0.7249, allocations: 53.28 kB / 491.4 MB, free: 12.63 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002321/0.7273, allocations: 0.7327 MB / 492.1 MB, free: 11.9 MB / 426.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009077/0.7364, allocations: 3.858 MB / 496 MB, free: 7.816 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001206/0.7376, allocations: 404.1 kB / 496.3 MB, free: 7.395 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007617/0.7384, allocations: 274.5 kB / 496.6 MB, free: 7.117 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.941e-05/0.7385, allocations: 4 kB / 496.6 MB, free: 7.113 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.842e-05/0.7386, allocations: 39.16 kB / 496.7 MB, free: 7.066 MB / 426.7 MB Notification: Performance of pre-optimization done (n=37): time 3.026e-06/0.7386, allocations: 0 / 496.7 MB, free: 7.066 MB / 426.7 MB Notification: Performance of matching and sorting (n=55): time 0.01896/0.7576, allocations: 3.665 MB / 0.4886 GB, free: 3.234 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.687e-05/0.7577, allocations: 111.2 kB / 0.4887 GB, free: 3.102 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009069/0.7586, allocations: 452.5 kB / 0.4891 GB, free: 2.652 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001245/0.7588, allocations: 37.7 kB / 0.4892 GB, free: 2.609 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003492/0.7591, allocations: 429.6 kB / 0.4896 GB, free: 2.188 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002857/0.7594, allocations: 197.1 kB / 0.4898 GB, free: 1.992 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.464e-05/0.7595, allocations: 20.03 kB / 0.4898 GB, free: 1.973 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.7597, allocations: 338.8 kB / 0.4901 GB, free: 1.633 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007332/0.7604, allocations: 269.5 kB / 0.4904 GB, free: 1.371 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000915/0.7613, allocations: 499.7 kB / 0.4908 GB, free: 0.7812 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009095/0.7623, allocations: 365.4 kB / 0.4912 GB, free: 432 kB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-06/0.7623, allocations: 0 / 0.4912 GB, free: 432 kB / 426.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.005791/0.7681, allocations: 1.506 MB / 0.4927 GB, free: 14.84 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.281e-05/0.7682, allocations: 14.14 kB / 0.4927 GB, free: 14.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.184e-05/0.7682, allocations: 8 kB / 0.4927 GB, free: 14.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003064/0.7713, allocations: 0.4961 MB / 0.4932 GB, free: 14.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008676/0.7722, allocations: 107.8 kB / 0.4933 GB, free: 14.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01807/0.7903, allocations: 9.944 MB / 0.503 GB, free: 3.574 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009881/0.7913, allocations: 27.98 kB / 0.503 GB, free: 3.547 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.576e-05/0.7915, allocations: 39.92 kB / 0.503 GB, free: 3.508 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (59): * Single equations (assignments): 54 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(3,88.9%) 8,(1,100.0%) 2,(1,100.0%) 3} * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002617/0.7917, allocations: 148.8 kB / 0.5032 GB, free: 3.355 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000188/0.7919, allocations: 59.25 kB / 0.5032 GB, free: 3.297 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005515/0.7975, allocations: 1.429 MB / 0.5046 GB, free: 1.785 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-05/0.7975, allocations: 7.938 kB / 0.5046 GB, free: 1.777 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.579e-05/0.7976, allocations: 4 kB / 0.5047 GB, free: 1.773 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.27e-05/0.7976, allocations: 7.984 kB / 0.5047 GB, free: 1.766 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007697/0.8053, allocations: 2.339 MB / 0.5069 GB, free: 15.29 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.746e-05/0.8054, allocations: 3.938 kB / 0.5069 GB, free: 15.29 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006466/0.806, allocations: 59.97 kB / 0.507 GB, free: 15.23 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002835/0.8089, allocations: 484.2 kB / 0.5075 GB, free: 14.74 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001545/0.8091, allocations: 19.94 kB / 0.5075 GB, free: 14.72 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01688/0.826, allocations: 9.687 MB / 0.5169 GB, free: 4.363 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.552e-06/0.826, allocations: 4 kB / 0.5169 GB, free: 4.359 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006462/0.8325, allocations: 1.985 MB / 0.5189 GB, free: 2.254 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005524/0.8331, allocations: 196.3 kB / 0.5191 GB, free: 2.043 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001381/0.8333, allocations: 12 kB / 0.5191 GB, free: 2.031 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000703/0.834, allocations: 19.98 kB / 0.5191 GB, free: 2.012 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002803/0.8343, allocations: 68.47 kB / 0.5192 GB, free: 1.945 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.167e-05/0.8344, allocations: 16 kB / 0.5192 GB, free: 1.93 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006925/0.8351, allocations: 345.5 kB / 0.5195 GB, free: 1.594 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.8351, allocations: 0 / 0.5195 GB, free: 1.594 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001656/0.8367, allocations: 236 kB / 0.5197 GB, free: 1.363 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (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 (29): * Single equations (assignments): 23 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 8,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {3 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.3104/1.147, allocations: 2.868 MB / 0.5225 GB, free: 130.4 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00388/1.151, allocations: 1.392 MB / 0.5239 GB, free: 129.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.656e-06/1.151, allocations: 0 / 0.5239 GB, free: 129.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002939/1.154, allocations: 1.046 MB / 0.5249 GB, free: 129.3 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001438/1.156, allocations: 156.8 kB / 0.5251 GB, free: 129.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004835/1.16, allocations: 1.538 MB / 0.5266 GB, free: 128.9 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009308/1.161, allocations: 1.065 MB / 0.5276 GB, free: 128.2 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005377/1.162, allocations: 258.4 kB / 0.5279 GB, free: 128.2 MB / 458.7 MB Notification: Performance of SimCode: time 2.334e-06/1.162, allocations: 0 / 0.5279 GB, free: 128.2 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.578/4.74, allocations: 29.88 MB / 0.557 GB, free: 123.9 MB / 458.7 MB