Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.SM_ctrl,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_SM_ctrl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.601/2.601, allocations: 233 MB / 246.1 MB, free: 14.84 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.318e-05/4.324e-05, allocations: 7.984 kB / 302.3 MB, free: 7.387 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1366, allocations: 53.23 MB / 355.5 MB, free: 2.043 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5486/0.6853, allocations: 116 MB / 471.6 MB, free: 1.52 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003085/0.6857, allocations: 87.95 kB / 471.6 MB, free: 1.434 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1578/0.8435, allocations: 34.69 MB / 0.4945 GB, free: 14.44 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.8435, allocations: 0 / 0.4945 GB, free: 14.44 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001283/0.8437, allocations: 31.94 kB / 0.4945 GB, free: 14.41 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 295 * Number of variables: 295 Notification: Performance of Generate backend data structure: time 0.006828/0.8505, allocations: 1.565 MB / 0.496 GB, free: 12.76 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.528e-05/0.8506, allocations: 8.031 kB / 0.496 GB, free: 12.75 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007321/0.8513, allocations: 177.4 kB / 0.4962 GB, free: 12.57 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001057/0.8524, allocations: 171.1 kB / 0.4964 GB, free: 12.4 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005857/0.8583, allocations: 1.241 MB / 0.4976 GB, free: 11.11 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000384/0.8587, allocations: 191.2 kB / 0.4978 GB, free: 10.91 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007794/0.8595, allocations: 123.9 kB / 0.4979 GB, free: 10.79 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005139/0.8647, allocations: 1.667 MB / 0.4995 GB, free: 9.016 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.922e-05/0.8648, allocations: 4 kB / 0.4995 GB, free: 9.012 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002221/0.8651, allocations: 51.97 kB / 0.4996 GB, free: 8.961 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002065/0.8653, allocations: 73.92 kB / 0.4996 GB, free: 8.887 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004166/0.8695, allocations: 1.234 MB / 0.5008 GB, free: 7.652 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0154/0.8849, allocations: 6.158 MB / 0.5069 GB, free: 1.242 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002587/0.8875, allocations: 0.8277 MB / 0.5077 GB, free: 400 kB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00158/0.8891, allocations: 0.5362 MB / 0.5082 GB, free: 15.85 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.322e-05/0.8893, allocations: 8.781 kB / 0.5082 GB, free: 15.84 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00176/0.891, allocations: 0.6768 MB / 0.5089 GB, free: 15.14 MB / 458.7 MB Notification: Performance of pre-optimization done (n=87): time 4.519e-06/0.8911, allocations: 0 / 0.5089 GB, free: 15.14 MB / 458.7 MB Notification: Performance of matching and sorting (n=92): time 0.01081/0.9019, allocations: 3.423 MB / 0.5122 GB, free: 11.59 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001311/0.9021, allocations: 153.3 kB / 0.5123 GB, free: 11.41 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001576/0.9037, allocations: 0.6798 MB / 0.513 GB, free: 10.73 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003259/0.904, allocations: 57.69 kB / 0.5131 GB, free: 10.67 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006721/0.9047, allocations: 0.5302 MB / 0.5136 GB, free: 10.13 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005434/0.9053, allocations: 315.6 kB / 0.5139 GB, free: 9.816 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.9054, allocations: 24.03 kB / 0.5139 GB, free: 9.793 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002804/0.9057, allocations: 410.7 kB / 0.5143 GB, free: 9.383 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001442/0.9071, allocations: 0.5376 MB / 0.5148 GB, free: 8.844 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001651/0.9088, allocations: 0.8445 MB / 0.5156 GB, free: 7.863 MB / 458.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.008096/0.9169, allocations: 2.013 MB / 0.5176 GB, free: 5.82 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-05/0.917, allocations: 4 kB / 0.5176 GB, free: 5.816 MB / 458.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.006693/0.9237, allocations: 2.159 MB / 0.5197 GB, free: 3.625 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.3261/1.25, allocations: 3.799 MB / 0.5234 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.793e-05/1.25, allocations: 9.375 kB / 0.5234 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004162/1.254, allocations: 0.8664 MB / 0.5243 GB, free: 125.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001398/1.255, allocations: 170.1 kB / 0.5245 GB, free: 125.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005818/1.261, allocations: 3.44 MB / 0.5278 GB, free: 123.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001759/1.263, allocations: 92.89 kB / 0.5279 GB, free: 123.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003739/1.264, allocations: 79.89 kB / 0.528 GB, free: 123.3 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/1.264, allocations: 5.812 kB / 0.528 GB, free: 123.3 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006879/1.271, allocations: 2.253 MB / 0.5302 GB, free: 123.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.73e-05/1.271, allocations: 9.219 kB / 0.5302 GB, free: 123.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003884/1.275, allocations: 0.8648 MB / 0.531 GB, free: 123.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001373/1.276, allocations: 170.5 kB / 0.5312 GB, free: 123.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005401/1.281, allocations: 3.425 MB / 0.5345 GB, free: 121.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001664/1.283, allocations: 81 kB / 0.5346 GB, free: 121.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002417/1.283, allocations: 74.53 kB / 0.5347 GB, free: 121.2 MB / 458.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.sm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.sm_ctrl.inverter.modulator.gates[1],sm_ctrl.inverter.modulator.gates[1],$PRE.sm_ctrl.inverter.modulator.gates[2],sm_ctrl.inverter.modulator.gates[2],$PRE.sm_ctrl.inverter.modulator.gates[3],sm_ctrl.inverter.modulator.gates[3],$PRE.sm_ctrl.inverter.modulator.gates[4],sm_ctrl.inverter.modulator.gates[4],$PRE.sm_ctrl.inverter.modulator.gates[5],sm_ctrl.inverter.modulator.gates[5],$PRE.sm_ctrl.inverter.modulator.gates[6],sm_ctrl.inverter.modulator.gates[6],$PRE.sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.sigdel_t[1],$PRE.sm_ctrl.inverter.modulator.sigdel_t[2],sm_ctrl.inverter.modulator.sigdel_t[2],$PRE.sm_ctrl.inverter.modulator.sigdel_t[3],sm_ctrl.inverter.modulator.sigdel_t[3],$PRE.sm_ctrl.inverter.modulator.t0[1],sm_ctrl.inverter.modulator.t0[1],$PRE.sm_ctrl.inverter.modulator.t0[2],sm_ctrl.inverter.modulator.t0[2],$PRE.sm_ctrl.inverter.modulator.t0[3],sm_ctrl.inverter.modulator.t0[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (100): * Single equations (assignments): 97 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {2 30} Notification: Performance of prepare postOptimizeDAE: time 0.0005563/1.284, allocations: 210 kB / 0.5349 GB, free: 121.1 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003505/1.284, allocations: 97.89 kB / 0.535 GB, free: 121.1 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003592/1.288, allocations: 1.225 MB / 0.5362 GB, free: 121 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.327e-05/1.288, allocations: 15.62 kB / 0.5362 GB, free: 121 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-05/1.288, allocations: 2.75 kB / 0.5362 GB, free: 121 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.078e-05/1.288, allocations: 5.375 kB / 0.5362 GB, free: 121 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007272/1.295, allocations: 2.608 MB / 0.5388 GB, free: 120.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.211e-05/1.295, allocations: 0 / 0.5388 GB, free: 120.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00158/1.297, allocations: 152.1 kB / 0.5389 GB, free: 120.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002961/1.297, allocations: 64.44 kB / 0.539 GB, free: 120.4 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002162/1.298, allocations: 29.41 kB / 0.539 GB, free: 120.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00235/1.3, allocations: 2.75 MB / 0.5417 GB, free: 117.9 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/1.3, allocations: 2.516 kB / 0.5417 GB, free: 117.9 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005072/1.305, allocations: 1.888 MB / 0.5435 GB, free: 117.6 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009995/1.306, allocations: 289.6 kB / 0.5438 GB, free: 117.4 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004586/1.307, allocations: 91.28 kB / 0.5439 GB, free: 117.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001859/1.309, allocations: 118.5 kB / 0.544 GB, free: 117.4 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003239/1.309, allocations: 57.55 kB / 0.544 GB, free: 117.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001413/1.309, allocations: 35.58 kB / 0.5441 GB, free: 117.4 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001208/1.31, allocations: 0.5216 MB / 0.5446 GB, free: 117.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.31e-07/1.31, allocations: 1.281 kB / 0.5446 GB, free: 117.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002935/1.313, allocations: 474.7 kB / 0.545 GB, free: 117.3 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (sm_ctrl.motor.phi_el,sm_ctrl.motor.w_el,sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],PI_i_q.I.y) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,sm_ctrl.inverter.modulator.gates[1],sm_ctrl.inverter.modulator.gates[2],sm_ctrl.inverter.modulator.gates[3],sm_ctrl.inverter.modulator.gates[4],sm_ctrl.inverter.modulator.gates[5],sm_ctrl.inverter.modulator.gates[6],sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.sigdel_t[2],sm_ctrl.inverter.modulator.sigdel_t[3],sm_ctrl.inverter.modulator.t0[1],sm_ctrl.inverter.modulator.t0[2],sm_ctrl.inverter.modulator.t0[3],system.initime) * Number of discrete states: 12 (sm_ctrl.inverter.modulator.t0[3],sm_ctrl.inverter.modulator.sigdel_t[3],sm_ctrl.inverter.modulator.gates[5],sm_ctrl.inverter.modulator.gates[6],sm_ctrl.inverter.modulator.t0[2],sm_ctrl.inverter.modulator.sigdel_t[2],sm_ctrl.inverter.modulator.gates[3],sm_ctrl.inverter.modulator.gates[4],sm_ctrl.inverter.modulator.t0[1],sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.gates[1],sm_ctrl.inverter.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 70 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005394/1.319, allocations: 2.721 MB / 0.5477 GB, free: 116.1 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006982/1.326, allocations: 2.753 MB / 0.5504 GB, free: 114.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.475e-06/1.326, allocations: 1.188 kB / 0.5504 GB, free: 114.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001732/1.328, allocations: 0.7279 MB / 0.5511 GB, free: 114.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001911/1.329, allocations: 235 kB / 0.5513 GB, free: 114.5 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007176/1.337, allocations: 2.406 MB / 0.5537 GB, free: 113.5 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001079/1.338, allocations: 1.252 MB / 0.5549 GB, free: 112.7 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002254/1.34, allocations: 396.5 kB / 0.5553 GB, free: 112.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009256/1.341, allocations: 403.9 kB / 0.5557 GB, free: 112.4 MB / 458.7 MB Notification: Performance of SimCode: time 1.172e-06/1.341, allocations: 5.438 kB / 0.5557 GB, free: 112.4 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1001/1.441, allocations: 29.63 MB / 0.5846 GB, free: 106.1 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002754/1.442, allocations: 178.7 kB / 0.5848 GB, free: 105.8 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.702/5.143, allocations: 0 / 0.5848 GB, free: 105.8 MB / 458.7 MB