Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.833/1.833, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.1e-05/3.104e-05, allocations: 4 kB / 255.5 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09197/0.09203, allocations: 44.51 MB / 300 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4425/0.5346, allocations: 109.5 MB / 409.5 MB, free: 9.969 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002976/0.5349, allocations: 91.62 kB / 409.6 MB, free: 9.953 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3358/0.8707, allocations: 76.78 MB / 486.3 MB, free: 14.17 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.208e-06/0.8708, allocations: 0 / 486.3 MB, free: 14.17 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003713/0.8712, allocations: 83.88 kB / 486.4 MB, free: 14.09 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 817 * Number of variables: 817 Notification: Performance of Generate backend data structure: time 0.0132/0.8844, allocations: 3.195 MB / 489.6 MB, free: 10.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.259e-05/0.8845, allocations: 12.03 kB / 489.6 MB, free: 10.81 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001658/0.8861, allocations: 446.9 kB / 490.1 MB, free: 10.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004653/0.8908, allocations: 0.5897 MB / 490.7 MB, free: 9.77 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0122/0.9031, allocations: 3.135 MB / 493.8 MB, free: 6.578 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003368/0.9034, allocations: 230.2 kB / 494 MB, free: 6.352 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001211/0.9047, allocations: 311.9 kB / 494.3 MB, free: 6.047 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01241/0.9171, allocations: 4.011 MB / 498.3 MB, free: 1.875 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001278/0.9173, allocations: 11.98 kB / 498.3 MB, free: 1.863 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00053/0.9178, allocations: 128 kB / 498.5 MB, free: 1.738 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000219/0.918, allocations: 142.1 kB / 498.6 MB, free: 1.598 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01085/0.9289, allocations: 3.218 MB / 0.4901 GB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03501/0.964, allocations: 13.8 MB / 0.5035 GB, free: 192 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009022/0.973, allocations: 5.835 MB / 0.5092 GB, free: 9.621 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003557/0.9766, allocations: 1.331 MB / 0.5105 GB, free: 8.297 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008925/0.9856, allocations: 3.19 MB / 0.5137 GB, free: 5.039 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.899e-05/0.9857, allocations: 51.88 kB / 0.5137 GB, free: 4.98 MB / 410.7 MB Notification: Performance of pre-optimization done (n=137): time 3.847e-06/0.9857, allocations: 0 / 0.5137 GB, free: 4.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=141): time 0.01168/0.9974, allocations: 4.523 MB / 0.5181 GB, free: 364 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.11e-05/0.9975, allocations: 98.36 kB / 0.5182 GB, free: 248 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2662/1.264, allocations: 1.674 MB / 0.5198 GB, free: 86.75 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003254/1.264, allocations: 48.52 kB / 0.5199 GB, free: 86.72 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001086/1.265, allocations: 1.384 MB / 0.5212 GB, free: 86.52 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006292/1.266, allocations: 481.8 kB / 0.5217 GB, free: 86.28 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001472/1.266, allocations: 35.19 kB / 0.5217 GB, free: 86.28 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001497/1.266, allocations: 381.8 kB / 0.5221 GB, free: 85.97 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001849/1.268, allocations: 0.7124 MB / 0.5228 GB, free: 85.96 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002123/1.27, allocations: 1.227 MB / 0.524 GB, free: 85.36 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002134/1.272, allocations: 0.9075 MB / 0.5249 GB, free: 85.35 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.572e-05/1.272, allocations: 4.094 kB / 0.5249 GB, free: 85.35 MB / 410.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.006414/1.279, allocations: 2.504 MB / 0.5273 GB, free: 85.12 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001305/1.28, allocations: 6.363 MB / 0.5335 GB, free: 78.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.201e-05/1.28, allocations: 14.81 kB / 0.5336 GB, free: 78.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002117/1.282, allocations: 0.5082 MB / 0.5341 GB, free: 78.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002841/1.285, allocations: 372 kB / 0.5344 GB, free: 78.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01058/1.296, allocations: 7.229 MB / 0.5415 GB, free: 74.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00267/1.298, allocations: 99.84 kB / 0.5416 GB, free: 74.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002447/1.299, allocations: 75.08 kB / 0.5416 GB, free: 74.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/1.299, allocations: 2.75 kB / 0.5416 GB, free: 74.5 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005789/1.305, allocations: 2.426 MB / 0.544 GB, free: 74.33 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.378e-05/1.305, allocations: 21.67 kB / 0.544 GB, free: 74.33 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001612/1.306, allocations: 0.51 MB / 0.5445 GB, free: 74.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002543/1.309, allocations: 362.7 kB / 0.5449 GB, free: 74.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009295/1.318, allocations: 7.287 MB / 0.552 GB, free: 70.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001567/1.32, allocations: 87.05 kB / 0.5521 GB, free: 70.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001689/1.32, allocations: 76.89 kB / 0.5521 GB, free: 70.31 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 2 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0005375/1.32, allocations: 214.2 kB / 0.5524 GB, free: 70.21 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006252/1.321, allocations: 209.8 kB / 0.5526 GB, free: 70.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005493/1.327, allocations: 2.426 MB / 0.5549 GB, free: 69.76 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-05/1.327, allocations: 16.81 kB / 0.5549 GB, free: 69.76 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/1.327, allocations: 7.766 kB / 0.5549 GB, free: 69.76 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-05/1.327, allocations: 7.734 kB / 0.555 GB, free: 69.76 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01279/1.34, allocations: 5.285 MB / 0.5601 GB, free: 69.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.454e-05/1.34, allocations: 4.719 kB / 0.5601 GB, free: 69.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001574/1.341, allocations: 181.7 kB / 0.5603 GB, free: 69.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002343/1.344, allocations: 0.6436 MB / 0.5609 GB, free: 69.03 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001342/1.344, allocations: 41.3 kB / 0.561 GB, free: 69.03 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01401/1.358, allocations: 11.29 MB / 0.572 GB, free: 61.97 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/1.358, allocations: 5.25 kB / 0.572 GB, free: 61.97 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007146/1.365, allocations: 3.649 MB / 0.5756 GB, free: 60.05 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001359/1.366, allocations: 463.5 kB / 0.576 GB, free: 59.74 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004019/1.367, allocations: 28.34 kB / 0.576 GB, free: 59.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00175/1.368, allocations: 87.11 kB / 0.5761 GB, free: 59.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003832/1.369, allocations: 113.7 kB / 0.5762 GB, free: 59.69 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001221/1.369, allocations: 51.86 kB / 0.5763 GB, free: 59.68 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002545/1.372, allocations: 1.274 MB / 0.5775 GB, free: 59.13 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.01e-07/1.372, allocations: 0 / 0.5775 GB, free: 59.13 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004871/1.376, allocations: 1.105 MB / 0.5786 GB, free: 59.04 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,inertiaLoad.w) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 85 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.007983/1.384, allocations: 5.114 MB / 0.5836 GB, free: 56.06 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007858/1.392, allocations: 3.972 MB / 0.5875 GB, free: 54.08 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.164e-06/1.392, allocations: 0 / 0.5875 GB, free: 54.08 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003339/1.396, allocations: 1.69 MB / 0.5891 GB, free: 53.08 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004074/1.4, allocations: 0.5918 MB / 0.5897 GB, free: 52.93 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01472/1.415, allocations: 5.467 MB / 0.595 GB, free: 50.7 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002333/1.417, allocations: 2.332 MB / 0.5973 GB, free: 49.65 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002181/1.419, allocations: 1.167 MB / 0.5984 GB, free: 48.7 MB / 410.7 MB Notification: Performance of SimCode: time 9.72e-07/1.419, allocations: 0 / 0.5984 GB, free: 48.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.179/5.598, allocations: 122.1 MB / 0.7177 GB, free: 78.64 MB / 410.7 MB