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.817/1.817, allocations: 194.9 MB / 208.4 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.74e-05/3.742e-05, allocations: 4 kB / 255.5 MB, free: 3.074 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09054/0.09061, allocations: 44.5 MB / 300 MB, free: 6.516 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4848/0.5754, allocations: 125.2 MB / 425.2 MB, free: 2.875 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002709/0.5757, allocations: 87.55 kB / 425.3 MB, free: 2.863 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3745/0.9503, allocations: 95.3 MB / 0.5084 GB, free: 11.57 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.9503, allocations: 0 / 0.5084 GB, free: 11.57 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004681/0.9508, allocations: 95.86 kB / 0.5085 GB, free: 11.48 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.01632/0.9672, allocations: 3.702 MB / 0.5121 GB, free: 7.711 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.443e-05/0.9672, allocations: 12.03 kB / 0.5121 GB, free: 7.699 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002001/0.9692, allocations: 0.5022 MB / 0.5126 GB, free: 7.188 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00802/0.9773, allocations: 0.9005 MB / 0.5135 GB, free: 6.281 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01486/0.9922, allocations: 3.58 MB / 0.517 GB, free: 2.648 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00043/0.9927, allocations: 275.3 kB / 0.5172 GB, free: 2.379 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001669/0.9944, allocations: 367.9 kB / 0.5176 GB, free: 2.02 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3321/1.326, allocations: 4.483 MB / 0.5219 GB, free: 68.08 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001444/1.327, allocations: 4.406 kB / 0.522 GB, free: 68.08 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006232/1.327, allocations: 154.2 kB / 0.5221 GB, free: 68.08 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002407/1.328, allocations: 156.7 kB / 0.5222 GB, free: 68.07 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01167/1.339, allocations: 3.634 MB / 0.5258 GB, free: 68.06 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03936/1.379, allocations: 15.78 MB / 0.5412 GB, free: 64.82 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009866/1.389, allocations: 7.75 MB / 0.5488 GB, free: 59.5 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004094/1.393, allocations: 1.713 MB / 0.5504 GB, free: 59.48 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01208/1.405, allocations: 5.031 MB / 0.5554 GB, free: 58.41 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.262e-05/1.405, allocations: 57.62 kB / 0.5554 GB, free: 58.38 MB / 410.7 MB Notification: Performance of pre-optimization done (n=172): time 4.889e-06/1.405, allocations: 0 / 0.5554 GB, free: 58.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=175): time 0.01177/1.417, allocations: 5.036 MB / 0.5603 GB, free: 57.2 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.435e-05/1.417, allocations: 171.8 kB / 0.5605 GB, free: 57.01 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003835/1.421, allocations: 1.889 MB / 0.5623 GB, free: 56.78 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003631/1.421, allocations: 60.55 kB / 0.5624 GB, free: 56.75 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001082/1.422, allocations: 1.576 MB / 0.5639 GB, free: 56.09 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006828/1.423, allocations: 0.5918 MB / 0.5645 GB, free: 55.71 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001697/1.423, allocations: 46.97 kB / 0.5646 GB, free: 55.71 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001554/1.423, allocations: 394.8 kB / 0.5649 GB, free: 55.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001907/1.425, allocations: 0.7977 MB / 0.5657 GB, free: 55.39 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002217/1.427, allocations: 1.414 MB / 0.5671 GB, free: 54.49 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00231/1.43, allocations: 1.045 MB / 0.5681 GB, free: 54.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.635e-05/1.43, allocations: 7.406 kB / 0.5681 GB, free: 54.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=280) (initialization): time 0.00619/1.436, allocations: 2.742 MB / 0.5708 GB, free: 53.06 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001499/1.438, allocations: 7.231 MB / 0.5779 GB, free: 45.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.158e-05/1.438, allocations: 22.84 kB / 0.5779 GB, free: 45.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001738/1.439, allocations: 467.3 kB / 0.5783 GB, free: 45.24 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003507/1.443, allocations: 478.8 kB / 0.5788 GB, free: 45.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009307/1.452, allocations: 8.05 MB / 0.5867 GB, free: 38.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002946/1.455, allocations: 100.9 kB / 0.5867 GB, free: 38.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003389/1.456, allocations: 98.44 kB / 0.5868 GB, free: 38.66 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/1.456, allocations: 3.656 kB / 0.5868 GB, free: 38.66 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006772/1.462, allocations: 2.643 MB / 0.5894 GB, free: 37.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.389e-05/1.463, allocations: 22.36 kB / 0.5894 GB, free: 37.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001435/1.464, allocations: 465.3 kB / 0.5899 GB, free: 37.53 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003365/1.467, allocations: 472.1 kB / 0.5903 GB, free: 37.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01012/1.478, allocations: 8.09 MB / 0.5982 GB, free: 31.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001741/1.479, allocations: 94.45 kB / 0.5983 GB, free: 30.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002006/1.48, allocations: 85.16 kB / 0.5984 GB, free: 30.96 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.000646/1.48, allocations: 246.1 kB / 0.5986 GB, free: 30.78 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007368/1.481, allocations: 251.7 kB / 0.5989 GB, free: 30.65 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006598/1.488, allocations: 2.702 MB / 0.6015 GB, free: 29.43 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-05/1.488, allocations: 14.97 kB / 0.6015 GB, free: 29.43 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.249e-05/1.488, allocations: 7.625 kB / 0.6015 GB, free: 29.43 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.116e-05/1.488, allocations: 7.547 kB / 0.6016 GB, free: 29.43 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01357/1.501, allocations: 5.834 MB / 0.6073 GB, free: 26.81 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.269e-05/1.501, allocations: 3.75 kB / 0.6073 GB, free: 26.81 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002124/1.504, allocations: 240.4 kB / 0.6075 GB, free: 26.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002447/1.506, allocations: 0.6458 MB / 0.6081 GB, free: 26.58 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001919/1.506, allocations: 45.67 kB / 0.6082 GB, free: 26.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01535/1.522, allocations: 12.53 MB / 0.6204 GB, free: 16.38 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/1.522, allocations: 0 / 0.6204 GB, free: 16.38 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008502/1.53, allocations: 3.892 MB / 0.6242 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001749/1.532, allocations: 0.5013 MB / 0.6247 GB, free: 14.05 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007271/1.533, allocations: 43.06 kB / 0.6247 GB, free: 14.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002354/1.535, allocations: 78.09 kB / 0.6248 GB, free: 14 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004969/1.536, allocations: 147.2 kB / 0.6249 GB, free: 13.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001536/1.536, allocations: 48.81 kB / 0.625 GB, free: 13.95 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003293/1.539, allocations: 1.434 MB / 0.6264 GB, free: 13.36 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.293e-06/1.539, allocations: 0 / 0.6264 GB, free: 13.36 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00702/1.546, allocations: 1.317 MB / 0.6277 GB, free: 13.23 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.01011/1.556, allocations: 5.286 MB / 0.6328 GB, free: 26.23 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009723/1.566, allocations: 4.485 MB / 0.6372 GB, free: 23.84 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.876e-06/1.566, allocations: 0 / 0.6372 GB, free: 23.84 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00408/1.57, allocations: 1.864 MB / 0.639 GB, free: 22.71 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005044/1.575, allocations: 0.6254 MB / 0.6396 GB, free: 22.53 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01979/1.595, allocations: 6.352 MB / 0.6459 GB, free: 19.03 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00349/1.599, allocations: 2.531 MB / 0.6483 GB, free: 17.06 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003021/1.602, allocations: 1.372 MB / 0.6497 GB, free: 15.79 MB / 426.7 MB Notification: Performance of SimCode: time 2.154e-06/1.602, allocations: 2.297 kB / 0.6497 GB, free: 15.79 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.544/6.146, allocations: 157.9 MB / 0.8039 GB, free: 12.36 MB / 426.7 MB