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.797/1.797, allocations: 194.9 MB / 208.4 MB, free: 3.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.131e-05/3.135e-05, allocations: 7.984 kB / 255.4 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08767/0.08772, allocations: 44.51 MB / 299.9 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4843/0.572, allocations: 125.2 MB / 425.2 MB, free: 2.848 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003634/0.5725, allocations: 83.23 kB / 425.2 MB, free: 2.836 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3657/0.9382, allocations: 95.3 MB / 0.5083 GB, free: 11.64 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.9383, allocations: 3.938 kB / 0.5083 GB, free: 11.64 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003705/0.9386, allocations: 91.88 kB / 0.5084 GB, free: 11.55 MB / 410.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.01476/0.9534, allocations: 3.71 MB / 0.5121 GB, free: 7.777 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/0.9535, allocations: 8.031 kB / 0.5121 GB, free: 7.77 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00157/0.9551, allocations: 0.4983 MB / 0.5125 GB, free: 7.262 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007188/0.9623, allocations: 0.9005 MB / 0.5134 GB, free: 6.355 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01366/0.976, allocations: 3.584 MB / 0.5169 GB, free: 2.719 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003339/0.9763, allocations: 275.3 kB / 0.5172 GB, free: 2.449 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001279/0.9776, allocations: 363.9 kB / 0.5175 GB, free: 2.094 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2793/1.257, allocations: 4.533 MB / 0.522 GB, free: 67.82 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000141/1.257, allocations: 6.281 kB / 0.522 GB, free: 67.82 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005964/1.258, allocations: 153.3 kB / 0.5221 GB, free: 67.82 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002848/1.258, allocations: 151.2 kB / 0.5223 GB, free: 67.81 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01224/1.27, allocations: 3.688 MB / 0.5259 GB, free: 67.78 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0413/1.312, allocations: 15.78 MB / 0.5413 GB, free: 64.54 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01024/1.322, allocations: 7.778 MB / 0.5489 GB, free: 59.22 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00404/1.326, allocations: 1.708 MB / 0.5505 GB, free: 59.2 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01184/1.338, allocations: 5.033 MB / 0.5554 GB, free: 58.12 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.418e-05/1.338, allocations: 57.09 kB / 0.5555 GB, free: 58.09 MB / 410.7 MB Notification: Performance of pre-optimization done (n=172): time 4.378e-06/1.338, allocations: 0 / 0.5555 GB, free: 58.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=175): time 0.01162/1.35, allocations: 5.034 MB / 0.5604 GB, free: 56.91 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.921e-05/1.35, allocations: 177.8 kB / 0.5606 GB, free: 56.72 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003756/1.353, allocations: 1.894 MB / 0.5624 GB, free: 56.5 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003108/1.354, allocations: 53.83 kB / 0.5625 GB, free: 56.46 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001057/1.355, allocations: 1.579 MB / 0.564 GB, free: 55.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005989/1.355, allocations: 0.5927 MB / 0.5646 GB, free: 55.43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001618/1.356, allocations: 44.78 kB / 0.5647 GB, free: 55.43 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001491/1.356, allocations: 394.4 kB / 0.565 GB, free: 55.11 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0019/1.358, allocations: 0.7972 MB / 0.5658 GB, free: 55.11 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002202/1.36, allocations: 1.424 MB / 0.5672 GB, free: 54.26 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002232/1.362, allocations: 1.051 MB / 0.5682 GB, free: 53.86 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.309e-05/1.362, allocations: 3.938 kB / 0.5682 GB, free: 53.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=280) (initialization): time 0.006016/1.368, allocations: 2.79 MB / 0.571 GB, free: 52.81 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0015/1.37, allocations: 7.231 MB / 0.578 GB, free: 45.15 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.336e-05/1.37, allocations: 20.38 kB / 0.578 GB, free: 45.15 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001712/1.372, allocations: 473.5 kB / 0.5785 GB, free: 45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003443/1.375, allocations: 477.1 kB / 0.5789 GB, free: 44.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00908/1.384, allocations: 8.047 MB / 0.5868 GB, free: 38.49 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002858/1.387, allocations: 101.1 kB / 0.5869 GB, free: 38.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002191/1.387, allocations: 96.08 kB / 0.587 GB, free: 38.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.065e-05/1.387, allocations: 3.875 kB / 0.587 GB, free: 38.43 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005927/1.393, allocations: 2.697 MB / 0.5896 GB, free: 37.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-05/1.393, allocations: 21.75 kB / 0.5896 GB, free: 37.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001386/1.395, allocations: 463.8 kB / 0.5901 GB, free: 37.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003162/1.398, allocations: 470.7 kB / 0.5905 GB, free: 37.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008975/1.407, allocations: 8.113 MB / 0.5985 GB, free: 30.76 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001703/1.409, allocations: 83.62 kB / 0.5985 GB, free: 30.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001994/1.409, allocations: 91.34 kB / 0.5986 GB, free: 30.71 MB / 410.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.0005703/1.409, allocations: 241.7 kB / 0.5989 GB, free: 30.53 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006981/1.41, allocations: 250.6 kB / 0.5991 GB, free: 30.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006538/1.417, allocations: 2.709 MB / 0.6017 GB, free: 29.18 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.965e-05/1.417, allocations: 16.91 kB / 0.6018 GB, free: 29.18 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.989e-06/1.417, allocations: 3.531 kB / 0.6018 GB, free: 29.18 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.96e-05/1.417, allocations: 7.594 kB / 0.6018 GB, free: 29.18 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0129/1.43, allocations: 5.833 MB / 0.6075 GB, free: 26.56 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.117e-05/1.43, allocations: 3.375 kB / 0.6075 GB, free: 26.56 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002065/1.432, allocations: 251.5 kB / 0.6077 GB, free: 26.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00238/1.434, allocations: 0.6414 MB / 0.6083 GB, free: 26.33 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001617/1.434, allocations: 44.61 kB / 0.6084 GB, free: 26.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01497/1.449, allocations: 12.53 MB / 0.6206 GB, free: 16.14 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/1.449, allocations: 0 / 0.6206 GB, free: 16.14 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008191/1.458, allocations: 3.903 MB / 0.6244 GB, free: 14.14 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001648/1.459, allocations: 0.4935 MB / 0.6249 GB, free: 13.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005086/1.46, allocations: 46.81 kB / 0.6249 GB, free: 13.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002056/1.462, allocations: 82.86 kB / 0.625 GB, free: 13.74 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004209/1.462, allocations: 139 kB / 0.6252 GB, free: 13.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00014/1.462, allocations: 48.02 kB / 0.6252 GB, free: 13.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002972/1.465, allocations: 1.436 MB / 0.6266 GB, free: 13.11 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.352e-06/1.466, allocations: 0 / 0.6266 GB, free: 13.11 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005887/1.471, allocations: 1.322 MB / 0.6279 GB, free: 12.98 MB / 410.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.009604/1.481, allocations: 5.278 MB / 0.633 GB, free: 25.94 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009034/1.49, allocations: 4.62 MB / 0.6376 GB, free: 23.42 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.877e-06/1.49, allocations: 0 / 0.6376 GB, free: 23.42 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003845/1.494, allocations: 1.92 MB / 0.6394 GB, free: 22.22 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004236/1.498, allocations: 0.6262 MB / 0.64 GB, free: 22.04 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01664/1.515, allocations: 6.364 MB / 0.6463 GB, free: 18.61 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002691/1.518, allocations: 2.521 MB / 0.6487 GB, free: 16.65 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002592/1.52, allocations: 1.377 MB / 0.6501 GB, free: 15.38 MB / 426.7 MB Notification: Performance of SimCode: time 1.262e-06/1.52, allocations: 4 kB / 0.6501 GB, free: 15.38 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.601/6.122, allocations: 158.2 MB / 0.8046 GB, free: 11.55 MB / 426.7 MB