Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.001/2.001, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.286e-05/3.311e-05, allocations: 4 kB / 292.2 MB, free: 8.715 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1141, allocations: 50.4 MB / 342.6 MB, free: 6.293 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5469/0.6611, allocations: 132.8 MB / 475.4 MB, free: 10 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003426/0.6615, allocations: 95.88 kB / 475.5 MB, free: 9.953 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6952/1.357, allocations: 96.13 MB / 0.5582 GB, free: 98.11 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.607e-06/1.357, allocations: 0 / 0.5582 GB, free: 98.11 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004471/1.357, allocations: 94.75 kB / 0.5583 GB, free: 98.1 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: 958 * Number of variables: 958 Notification: Performance of Generate backend data structure: time 0.01619/1.373, allocations: 3.756 MB / 0.562 GB, free: 96.6 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.408e-05/1.374, allocations: 7.312 kB / 0.562 GB, free: 96.6 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002102/1.376, allocations: 0.5079 MB / 0.5625 GB, free: 96.54 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008091/1.384, allocations: 0.9075 MB / 0.5634 GB, free: 96.3 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01469/1.398, allocations: 3.612 MB / 0.5669 GB, free: 95.6 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004203/1.399, allocations: 277 kB / 0.5672 GB, free: 95.59 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001723/1.401, allocations: 369.9 kB / 0.5675 GB, free: 95.59 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01582/1.417, allocations: 4.522 MB / 0.5719 GB, free: 93.96 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001694/1.417, allocations: 0 / 0.5719 GB, free: 93.96 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001081/1.418, allocations: 158.5 kB / 0.5721 GB, free: 93.84 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001956/1.418, allocations: 164.9 kB / 0.5722 GB, free: 93.82 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01237/1.43, allocations: 3.659 MB / 0.5758 GB, free: 92.31 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04733/1.478, allocations: 16.01 MB / 0.5915 GB, free: 83.33 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01051/1.488, allocations: 7.761 MB / 0.599 GB, free: 76.63 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004473/1.493, allocations: 1.724 MB / 0.6007 GB, free: 75.99 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01331/1.506, allocations: 5.058 MB / 0.6057 GB, free: 73.14 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.315e-05/1.506, allocations: 55.34 kB / 0.6057 GB, free: 73.09 MB / 442.7 MB Notification: Performance of pre-optimization done (n=174): time 5.47e-06/1.506, allocations: 0 / 0.6057 GB, free: 73.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=177): time 0.01327/1.52, allocations: 5.076 MB / 0.6107 GB, free: 70.46 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.969e-05/1.52, allocations: 173.3 kB / 0.6108 GB, free: 70.27 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004284/1.524, allocations: 1.923 MB / 0.6127 GB, free: 69.49 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004147/1.525, allocations: 57.27 kB / 0.6128 GB, free: 69.43 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001236/1.526, allocations: 1.587 MB / 0.6143 GB, free: 68.14 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007885/1.527, allocations: 0.6015 MB / 0.6149 GB, free: 67.68 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001784/1.527, allocations: 47.72 kB / 0.6149 GB, free: 67.64 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001609/1.527, allocations: 402.5 kB / 0.6153 GB, free: 67.29 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001983/1.529, allocations: 0.8051 MB / 0.6161 GB, free: 66.96 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002308/1.531, allocations: 1.436 MB / 0.6175 GB, free: 65.34 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002453/1.534, allocations: 1.058 MB / 0.6185 GB, free: 64.41 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.648e-05/1.534, allocations: 8 kB / 0.6186 GB, free: 64.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.006423/1.54, allocations: 2.761 MB / 0.6213 GB, free: 61.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001641/1.542, allocations: 7.401 MB / 0.6285 GB, free: 53.93 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.024e-05/1.542, allocations: 23.52 kB / 0.6285 GB, free: 53.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001845/1.544, allocations: 473.7 kB / 0.629 GB, free: 53.52 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003632/1.548, allocations: 480.5 kB / 0.6294 GB, free: 53.11 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009655/1.557, allocations: 8.038 MB / 0.6373 GB, free: 45.13 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003387/1.561, allocations: 105.9 kB / 0.6374 GB, free: 45.04 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005436/1.561, allocations: 88 kB / 0.6374 GB, free: 44.96 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/1.561, allocations: 4 kB / 0.6375 GB, free: 44.95 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006824/1.568, allocations: 2.686 MB / 0.6401 GB, free: 42.53 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.445e-05/1.568, allocations: 20 kB / 0.6401 GB, free: 42.51 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001522/1.57, allocations: 463.3 kB / 0.6405 GB, free: 42.12 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003508/1.573, allocations: 471.7 kB / 0.641 GB, free: 41.72 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009568/1.583, allocations: 8.102 MB / 0.6489 GB, free: 33.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001887/1.585, allocations: 90.41 kB / 0.649 GB, free: 33.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003109/1.585, allocations: 99.42 kB / 0.6491 GB, free: 33.52 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * Number of states: 0 () * Number of discrete variables: 7 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off,voltageController.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (252): * Single equations (assignments): 245 * 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.0006312/1.586, allocations: 241.2 kB / 0.6493 GB, free: 33.28 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007955/1.587, allocations: 260.9 kB / 0.6496 GB, free: 33.02 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007023/1.594, allocations: 2.72 MB / 0.6522 GB, free: 30.63 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.027e-05/1.594, allocations: 20 kB / 0.6522 GB, free: 30.61 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.671e-05/1.594, allocations: 11.95 kB / 0.6522 GB, free: 30.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.289e-05/1.594, allocations: 6.281 kB / 0.6522 GB, free: 30.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01531/1.609, allocations: 5.871 MB / 0.658 GB, free: 25.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-05/1.609, allocations: 4 kB / 0.658 GB, free: 25.69 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002315/1.612, allocations: 245.2 kB / 0.6582 GB, free: 25.49 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002685/1.614, allocations: 0.6452 MB / 0.6589 GB, free: 24.95 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003621/1.615, allocations: 39.47 kB / 0.6589 GB, free: 24.91 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01933/1.634, allocations: 12.54 MB / 0.6711 GB, free: 12.41 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.907e-06/1.634, allocations: 4 kB / 0.6711 GB, free: 12.41 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01139/1.646, allocations: 3.934 MB / 0.675 GB, free: 8.586 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001911/1.648, allocations: 0.4979 MB / 0.6755 GB, free: 8.066 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009117/1.649, allocations: 40 kB / 0.6755 GB, free: 8.027 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002751/1.651, allocations: 95.88 kB / 0.6756 GB, free: 7.938 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006222/1.652, allocations: 129.8 kB / 0.6757 GB, free: 7.812 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001673/1.652, allocations: 51.98 kB / 0.6758 GB, free: 7.762 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003577/1.656, allocations: 1.458 MB / 0.6772 GB, free: 6.285 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.72e-07/1.656, allocations: 0 / 0.6772 GB, free: 6.285 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007911/1.664, allocations: 1.328 MB / 0.6785 GB, free: 4.957 MB / 442.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 (124): * Single equations (assignments): 118 * 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.3442/2.008, allocations: 5.332 MB / 0.6837 GB, free: 87.06 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0119/2.02, allocations: 4.523 MB / 0.6881 GB, free: 85.93 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/2.02, allocations: 0.9688 kB / 0.6881 GB, free: 85.93 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004497/2.025, allocations: 1.843 MB / 0.6899 GB, free: 85.28 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005406/2.03, allocations: 0.6436 MB / 0.6905 GB, free: 85.27 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02265/2.053, allocations: 6.384 MB / 0.6968 GB, free: 83.91 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005488/2.058, allocations: 2.551 MB / 0.6993 GB, free: 83.14 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003393/2.062, allocations: 1.386 MB / 0.7006 GB, free: 83.14 MB / 442.7 MB Notification: Performance of SimCode: time 1.252e-06/2.062, allocations: 0.5938 kB / 0.7006 GB, free: 83.14 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.929/6.991, allocations: 159.3 MB / 0.8562 GB, free: 109.8 MB / 474.7 MB