Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.846/1.846, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.297e-05/2.306e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2936/0.2936, allocations: 44.49 MB / 294.2 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.209/0.5027, allocations: 124.6 MB / 418.8 MB, free: 5.246 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003138/0.5031, allocations: 83.95 kB / 418.8 MB, free: 5.164 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5721/1.075, allocations: 94.09 MB / 0.5009 GB, free: 38.89 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.013e-06/1.075, allocations: 4 kB / 0.5009 GB, free: 38.89 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.00033/1.076, allocations: 91.88 kB / 0.501 GB, free: 38.8 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 949 * Number of variables: 949 Notification: Performance of Generate backend data structure: time 0.01348/1.089, allocations: 3.713 MB / 0.5046 GB, free: 35.04 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/1.089, allocations: 12.03 kB / 0.5046 GB, free: 35.02 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00699/1.096, allocations: 0.8965 MB / 0.5055 GB, free: 34.12 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01205/1.108, allocations: 3.585 MB / 0.509 GB, free: 30.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001506/1.108, allocations: 116 kB / 0.5091 GB, free: 30.38 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007884/1.109, allocations: 219.9 kB / 0.5093 GB, free: 30.17 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009917/1.119, allocations: 3.467 MB / 0.5127 GB, free: 26.7 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01231/1.132, allocations: 4.003 MB / 0.5166 GB, free: 22.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001471/1.132, allocations: 4 kB / 0.5166 GB, free: 22.56 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000612/1.132, allocations: 3.953 kB / 0.5166 GB, free: 22.56 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001818/1.133, allocations: 151.2 kB / 0.5168 GB, free: 22.41 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03574/1.168, allocations: 15.09 MB / 0.5315 GB, free: 6.922 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009584/1.178, allocations: 7.672 MB / 0.539 GB, free: 14.39 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004518/1.183, allocations: 1.633 MB / 0.5406 GB, free: 12.76 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01387/1.196, allocations: 4.876 MB / 0.5454 GB, free: 7.711 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.135e-05/1.197, allocations: 52.56 kB / 0.5454 GB, free: 7.652 MB / 378.7 MB Notification: Performance of pre-optimization done (n=172): time 4.439e-06/1.197, allocations: 4 kB / 0.5454 GB, free: 7.648 MB / 378.7 MB Notification: Performance of matching and sorting (n=175): time 0.01632/1.213, allocations: 5.194 MB / 0.5505 GB, free: 2.336 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001213/1.213, allocations: 180.2 kB / 0.5507 GB, free: 2.125 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003716/1.217, allocations: 1.55 MB / 0.5522 GB, free: 0.543 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003935/1.217, allocations: 25.7 kB / 0.5522 GB, free: 0.5117 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2736/1.491, allocations: 1.6 MB / 0.5538 GB, free: 60.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008811/1.492, allocations: 0.5682 MB / 0.5543 GB, free: 60.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000165/1.492, allocations: 0 / 0.5543 GB, free: 60.61 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001746/1.492, allocations: 395.6 kB / 0.5547 GB, free: 60.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001934/1.494, allocations: 0.7558 MB / 0.5554 GB, free: 60.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002271/1.496, allocations: 1.371 MB / 0.5568 GB, free: 59.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003396/1.5, allocations: 1.147 MB / 0.5579 GB, free: 59.56 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.524e-05/1.5, allocations: 5.031 kB / 0.5579 GB, free: 59.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=280) (initialization): time 0.007654/1.508, allocations: 2.714 MB / 0.5606 GB, free: 59.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001536/1.509, allocations: 7.237 MB / 0.5676 GB, free: 51.78 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001053/1.509, allocations: 19.12 kB / 0.5676 GB, free: 51.78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001799/1.511, allocations: 460 kB / 0.5681 GB, free: 51.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00362/1.515, allocations: 482.9 kB / 0.5685 GB, free: 51.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008919/1.524, allocations: 7.783 MB / 0.5761 GB, free: 46.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00284/1.527, allocations: 50.64 kB / 0.5762 GB, free: 46.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003953/1.527, allocations: 94.27 kB / 0.5763 GB, free: 46.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/1.527, allocations: 3.188 kB / 0.5763 GB, free: 46.62 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006765/1.534, allocations: 2.575 MB / 0.5788 GB, free: 46.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.591e-05/1.534, allocations: 25.72 kB / 0.5788 GB, free: 46.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001349/1.535, allocations: 460.2 kB / 0.5793 GB, free: 46.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003361/1.539, allocations: 472.5 kB / 0.5797 GB, free: 46.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008699/1.547, allocations: 7.813 MB / 0.5873 GB, free: 41.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001783/1.549, allocations: 40.73 kB / 0.5874 GB, free: 41.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002197/1.55, allocations: 89.72 kB / 0.5875 GB, free: 41.28 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 83 * Number of states: 0 () * Number of discrete variables: 6 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (248): * Single equations (assignments): 241 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0005945/1.55, allocations: 159.9 kB / 0.5876 GB, free: 41.18 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006546/1.557, allocations: 2.55 MB / 0.5901 GB, free: 40.73 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006871/1.557, allocations: 237.1 kB / 0.5903 GB, free: 40.61 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006693/1.564, allocations: 2.652 MB / 0.5929 GB, free: 40.23 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.202e-05/1.564, allocations: 18.23 kB / 0.5929 GB, free: 40.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.15e-05/1.564, allocations: 7.891 kB / 0.593 GB, free: 40.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.644e-05/1.564, allocations: 14.23 kB / 0.593 GB, free: 40.23 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01274/1.577, allocations: 5.323 MB / 0.5982 GB, free: 39.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.255e-05/1.577, allocations: 4.438 kB / 0.5982 GB, free: 39.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002106/1.579, allocations: 242.8 kB / 0.5984 GB, free: 39.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002412/1.582, allocations: 0.6389 MB / 0.599 GB, free: 39.51 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002399/1.582, allocations: 13.81 kB / 0.599 GB, free: 39.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01435/1.596, allocations: 12.07 MB / 0.6108 GB, free: 31.81 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.486e-06/1.596, allocations: 3.688 kB / 0.6108 GB, free: 31.81 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008488/1.605, allocations: 3.838 MB / 0.6146 GB, free: 31 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001634/1.607, allocations: 484.7 kB / 0.615 GB, free: 30.79 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005612/1.607, allocations: 8.625 kB / 0.615 GB, free: 30.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001899/1.609, allocations: 60.94 kB / 0.6151 GB, free: 30.79 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004668/1.61, allocations: 134.9 kB / 0.6152 GB, free: 30.78 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001413/1.61, allocations: 47.47 kB / 0.6153 GB, free: 30.78 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002347/1.612, allocations: 1.152 MB / 0.6164 GB, free: 30.64 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.02e-07/1.612, allocations: 0 / 0.6164 GB, free: 30.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00644/1.619, allocations: 1.162 MB / 0.6175 GB, free: 30.64 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 12 (smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,speed.phi,speed.w,voltageController.I.y,capacitor1.v,capacitor2.v,filter.x[1],filter.x[2]) * Number of discrete variables: 6 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 116 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 15} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.009172/1.628, allocations: 5.162 MB / 0.6226 GB, free: 28.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00849/1.636, allocations: 4.351 MB / 0.6268 GB, free: 26.03 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.05e-05/1.636, allocations: 3.5 kB / 0.6268 GB, free: 26.03 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003678/1.64, allocations: 1.834 MB / 0.6286 GB, free: 24.92 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003873/1.644, allocations: 493 kB / 0.6291 GB, free: 24.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01715/1.661, allocations: 6.14 MB / 0.6351 GB, free: 22.29 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002687/1.664, allocations: 2.525 MB / 0.6376 GB, free: 21.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002677/1.667, allocations: 1.362 MB / 0.6389 GB, free: 20.1 MB / 378.7 MB Notification: Performance of SimCode: time 2.224e-06/1.667, allocations: 0 / 0.6389 GB, free: 20.1 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.737/6.404, allocations: 155.3 MB / 0.7906 GB, free: 48.56 MB / 410.7 MB