Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.SM_ctrl,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_SM_ctrl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.49/2.49, allocations: 233 MB / 246.1 MB, free: 14.85 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.746e-05/3.755e-05, allocations: 0 / 302.3 MB, free: 7.391 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1327/0.1328, allocations: 53.24 MB / 355.5 MB, free: 2.035 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5129/0.6457, allocations: 116 MB / 471.6 MB, free: 1.527 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003504/0.6461, allocations: 91.95 kB / 471.6 MB, free: 1.438 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1541/0.8003, allocations: 34.69 MB / 0.4945 GB, free: 14.45 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.8004, allocations: 0 / 0.4945 GB, free: 14.45 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001107/0.8005, allocations: 28 kB / 0.4945 GB, free: 14.43 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.006047/0.8065, allocations: 1.565 MB / 0.496 GB, free: 12.78 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.381e-05/0.8066, allocations: 11.97 kB / 0.496 GB, free: 12.77 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007129/0.8073, allocations: 181.4 kB / 0.4962 GB, free: 12.58 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000913/0.8083, allocations: 163.2 kB / 0.4964 GB, free: 12.42 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005607/0.8139, allocations: 1.257 MB / 0.4976 GB, free: 11.11 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003989/0.8144, allocations: 191.2 kB / 0.4978 GB, free: 10.91 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007641/0.8151, allocations: 115.9 kB / 0.4979 GB, free: 10.79 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005235/0.8204, allocations: 1.671 MB / 0.4995 GB, free: 9.02 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.801e-05/0.8205, allocations: 11.88 kB / 0.4995 GB, free: 9.008 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002193/0.8208, allocations: 44 kB / 0.4996 GB, free: 8.965 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002363/0.821, allocations: 73.97 kB / 0.4996 GB, free: 8.891 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004207/0.8252, allocations: 1.23 MB / 0.5008 GB, free: 7.66 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01528/0.8406, allocations: 6.169 MB / 0.5069 GB, free: 1.238 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002492/0.8431, allocations: 0.8155 MB / 0.5077 GB, free: 408 kB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001583/0.8447, allocations: 0.532 MB / 0.5082 GB, free: 15.86 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.825e-05/0.8449, allocations: 17.42 kB / 0.5082 GB, free: 15.84 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001754/0.8466, allocations: 0.673 MB / 0.5089 GB, free: 15.14 MB / 458.7 MB Notification: Performance of pre-optimization done (n=87): time 4.809e-06/0.8467, allocations: 0 / 0.5089 GB, free: 15.14 MB / 458.7 MB Notification: Performance of matching and sorting (n=92): time 0.01011/0.8568, allocations: 3.426 MB / 0.5122 GB, free: 11.6 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001307/0.857, allocations: 161.2 kB / 0.5124 GB, free: 11.41 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001505/0.8585, allocations: 0.6759 MB / 0.513 GB, free: 10.73 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002886/0.8588, allocations: 49.7 kB / 0.5131 GB, free: 10.68 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006604/0.8595, allocations: 0.5379 MB / 0.5136 GB, free: 10.13 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005508/0.8601, allocations: 315.6 kB / 0.5139 GB, free: 9.816 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.803e-05/0.8602, allocations: 24.03 kB / 0.5139 GB, free: 9.793 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002764/0.8605, allocations: 410.7 kB / 0.5143 GB, free: 9.383 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001379/0.8619, allocations: 0.5337 MB / 0.5148 GB, free: 8.848 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00168/0.8636, allocations: 0.8445 MB / 0.5156 GB, free: 7.867 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.00855/0.8721, allocations: 2.005 MB / 0.5176 GB, free: 5.832 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.405e-05/0.8722, allocations: 4 kB / 0.5176 GB, free: 5.828 MB / 458.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.006935/0.8791, allocations: 2.163 MB / 0.5197 GB, free: 3.633 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.334/1.213, allocations: 3.806 MB / 0.5234 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.546e-05/1.213, allocations: 9.875 kB / 0.5234 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004017/1.217, allocations: 0.8657 MB / 0.5243 GB, free: 125.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001347/1.219, allocations: 172.6 kB / 0.5245 GB, free: 125.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005384/1.224, allocations: 3.437 MB / 0.5278 GB, free: 123.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001686/1.226, allocations: 94.19 kB / 0.5279 GB, free: 123.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000254/1.226, allocations: 73.31 kB / 0.528 GB, free: 123.3 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/1.226, allocations: 4.219 kB / 0.528 GB, free: 123.3 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006485/1.233, allocations: 2.252 MB / 0.5302 GB, free: 123.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.922e-05/1.233, allocations: 15.16 kB / 0.5302 GB, free: 123.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003821/1.237, allocations: 0.8628 MB / 0.531 GB, free: 123.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001338/1.238, allocations: 171.1 kB / 0.5312 GB, free: 123.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005003/1.243, allocations: 3.424 MB / 0.5345 GB, free: 121.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001592/1.245, allocations: 88.25 kB / 0.5346 GB, free: 121.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002552/1.245, allocations: 70.94 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.0005427/1.246, allocations: 202.3 kB / 0.5349 GB, free: 121.1 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003491/1.246, allocations: 100.7 kB / 0.535 GB, free: 121.1 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003358/1.249, allocations: 1.225 MB / 0.5362 GB, free: 121 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.556e-05/1.249, allocations: 15.78 kB / 0.5362 GB, free: 121 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.327e-06/1.249, allocations: 2.938 kB / 0.5362 GB, free: 121 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.638e-05/1.249, allocations: 6.422 kB / 0.5362 GB, free: 121 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007032/1.256, allocations: 2.607 MB / 0.5387 GB, free: 120.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-05/1.257, allocations: 0 / 0.5387 GB, free: 120.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00158/1.258, allocations: 156.3 kB / 0.5389 GB, free: 120.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003077/1.258, allocations: 53 kB / 0.5389 GB, free: 120.4 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001864/1.259, allocations: 31.34 kB / 0.539 GB, free: 120.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00226/1.261, allocations: 2.755 MB / 0.5417 GB, free: 117.9 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/1.261, allocations: 4.312 kB / 0.5417 GB, free: 117.9 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004894/1.266, allocations: 1.892 MB / 0.5435 GB, free: 117.6 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000919/1.267, allocations: 287.8 kB / 0.5438 GB, free: 117.4 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004196/1.267, allocations: 93.84 kB / 0.5439 GB, free: 117.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001689/1.269, allocations: 112.1 kB / 0.544 GB, free: 117.4 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002548/1.269, allocations: 58.22 kB / 0.544 GB, free: 117.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001183/1.269, allocations: 39.41 kB / 0.5441 GB, free: 117.4 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001193/1.271, allocations: 0.5178 MB / 0.5446 GB, free: 117.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.271, allocations: 0 / 0.5446 GB, free: 117.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002962/1.274, allocations: 478.3 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.005452/1.279, allocations: 2.714 MB / 0.5477 GB, free: 116.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008339/1.288, allocations: 2.753 MB / 0.5504 GB, free: 115 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.227e-06/1.288, allocations: 2.688 kB / 0.5504 GB, free: 115 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002236/1.29, allocations: 0.7249 MB / 0.5511 GB, free: 114.6 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002621/1.293, allocations: 236.1 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.01022/1.303, allocations: 2.412 MB / 0.5537 GB, free: 113.6 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00154/1.304, allocations: 1.25 MB / 0.5549 GB, free: 112.8 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003043/1.307, allocations: 399.4 kB / 0.5553 GB, free: 112.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001225/1.309, allocations: 401.7 kB / 0.5557 GB, free: 112.4 MB / 458.7 MB Notification: Performance of SimCode: time 1.803e-06/1.309, allocations: 0 / 0.5557 GB, free: 112.4 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09939/1.408, allocations: 29.62 MB / 0.5846 GB, free: 106 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002345/1.408, allocations: 171.1 kB / 0.5847 GB, free: 105.8 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.476/4.885, allocations: 0 / 0.5847 GB, free: 105.8 MB / 458.7 MB