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 2.109/2.109, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.377e-05/3.392e-05, allocations: 11.98 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09553/0.09559, allocations: 44.5 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4661/0.5617, allocations: 109.5 MB / 409.4 MB, free: 12.42 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002922/0.562, allocations: 84.98 kB / 409.5 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2893/0.8513, allocations: 76.77 MB / 486.3 MB, free: 172 kB / 362.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.8514, allocations: 0 / 486.3 MB, free: 172 kB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000351/0.8517, allocations: 83.94 kB / 486.4 MB, free: 88 kB / 362.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.01346/0.8652, allocations: 3.199 MB / 489.6 MB, free: 12.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/0.8653, allocations: 8.031 kB / 489.6 MB, free: 12.81 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001663/0.867, allocations: 442.9 kB / 490 MB, free: 12.37 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004628/0.8716, allocations: 0.5936 MB / 490.6 MB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0124/0.884, allocations: 3.135 MB / 493.7 MB, free: 8.578 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003195/0.8844, allocations: 230.2 kB / 494 MB, free: 8.352 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00114/0.8856, allocations: 315.8 kB / 494.3 MB, free: 8.043 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01249/0.8981, allocations: 4.05 MB / 498.3 MB, free: 3.828 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001148/0.8982, allocations: 4 kB / 498.3 MB, free: 3.824 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005403/0.8988, allocations: 132 kB / 498.5 MB, free: 3.695 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002291/0.899, allocations: 138.1 kB / 498.6 MB, free: 3.559 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01081/0.9098, allocations: 3.269 MB / 0.4901 GB, free: 288 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.037/0.9469, allocations: 13.8 MB / 0.5036 GB, free: 2.094 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009279/0.9562, allocations: 5.853 MB / 0.5093 GB, free: 11.51 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003739/0.96, allocations: 1.327 MB / 0.5106 GB, free: 10.19 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009594/0.9696, allocations: 3.194 MB / 0.5137 GB, free: 6.93 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.121e-05/0.9697, allocations: 55.88 kB / 0.5138 GB, free: 6.867 MB / 410.7 MB Notification: Performance of pre-optimization done (n=137): time 4.208e-06/0.9697, allocations: 0 / 0.5138 GB, free: 6.867 MB / 410.7 MB Notification: Performance of matching and sorting (n=141): time 0.01263/0.9824, allocations: 4.535 MB / 0.5182 GB, free: 2.23 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.518e-05/0.9825, allocations: 90.42 kB / 0.5183 GB, free: 2.125 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004157/0.9867, allocations: 1.671 MB / 0.5199 GB, free: 420 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003323/0.987, allocations: 49.7 kB / 0.52 GB, free: 364 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2662/1.253, allocations: 1.379 MB / 0.5213 GB, free: 86.82 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006948/1.254, allocations: 479.3 kB / 0.5218 GB, free: 86.57 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001472/1.254, allocations: 39.84 kB / 0.5218 GB, free: 86.57 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001379/1.254, allocations: 377.1 kB / 0.5222 GB, free: 86.26 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00175/1.256, allocations: 0.7127 MB / 0.5229 GB, free: 86.26 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002115/1.258, allocations: 1.241 MB / 0.5241 GB, free: 85.65 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002358/1.261, allocations: 0.9123 MB / 0.525 GB, free: 85.64 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.193e-05/1.261, allocations: 4.625 kB / 0.525 GB, free: 85.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.006359/1.267, allocations: 2.54 MB / 0.5275 GB, free: 85.41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001309/1.268, allocations: 6.361 MB / 0.5337 GB, free: 78.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.158e-05/1.268, allocations: 23.45 kB / 0.5337 GB, free: 78.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002175/1.271, allocations: 0.5112 MB / 0.5342 GB, free: 78.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00287/1.274, allocations: 363.2 kB / 0.5345 GB, free: 78.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01075/1.284, allocations: 7.238 MB / 0.5416 GB, free: 74.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002861/1.287, allocations: 96.41 kB / 0.5417 GB, free: 74.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003294/1.288, allocations: 76.88 kB / 0.5418 GB, free: 74.79 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/1.288, allocations: 6.25 kB / 0.5418 GB, free: 74.79 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00616/1.294, allocations: 2.463 MB / 0.5442 GB, free: 74.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.777e-05/1.294, allocations: 16.5 kB / 0.5442 GB, free: 74.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001706/1.296, allocations: 0.5129 MB / 0.5447 GB, free: 74.58 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002689/1.298, allocations: 361.2 kB / 0.545 GB, free: 74.58 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009448/1.308, allocations: 7.298 MB / 0.5522 GB, free: 70.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001582/1.309, allocations: 85.89 kB / 0.5522 GB, free: 70.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001766/1.31, allocations: 78.52 kB / 0.5523 GB, free: 70.61 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.0005631/1.31, allocations: 223.1 kB / 0.5525 GB, free: 70.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006902/1.311, allocations: 208.8 kB / 0.5527 GB, free: 70.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005615/1.317, allocations: 2.421 MB / 0.5551 GB, free: 70.05 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-05/1.317, allocations: 17.69 kB / 0.5551 GB, free: 70.05 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.799e-06/1.317, allocations: 3.812 kB / 0.5551 GB, free: 70.05 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.864e-05/1.317, allocations: 11.27 kB / 0.5551 GB, free: 70.05 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01147/1.328, allocations: 5.291 MB / 0.5603 GB, free: 69.37 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.115e-05/1.328, allocations: 0 / 0.5603 GB, free: 69.37 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001467/1.33, allocations: 184.8 kB / 0.5605 GB, free: 69.37 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002346/1.332, allocations: 0.6475 MB / 0.5611 GB, free: 69.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001224/1.332, allocations: 25.38 kB / 0.5611 GB, free: 69.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01401/1.346, allocations: 11.3 MB / 0.5722 GB, free: 62.62 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/1.346, allocations: 0 / 0.5722 GB, free: 62.62 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00734/1.354, allocations: 3.659 MB / 0.5757 GB, free: 60.71 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001519/1.355, allocations: 472 kB / 0.5762 GB, free: 60.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004847/1.356, allocations: 27.5 kB / 0.5762 GB, free: 60.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001804/1.357, allocations: 79.95 kB / 0.5763 GB, free: 60.36 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000404/1.358, allocations: 124.4 kB / 0.5764 GB, free: 60.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001228/1.358, allocations: 36.19 kB / 0.5764 GB, free: 60.33 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002694/1.361, allocations: 1.276 MB / 0.5777 GB, free: 59.79 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.81e-07/1.361, allocations: 0 / 0.5777 GB, free: 59.79 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00544/1.366, allocations: 1.105 MB / 0.5788 GB, free: 59.69 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.008451/1.375, allocations: 5.107 MB / 0.5838 GB, free: 56.73 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008388/1.383, allocations: 4.082 MB / 0.5877 GB, free: 54.67 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.428e-06/1.383, allocations: 128 / 0.5877 GB, free: 54.67 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003682/1.387, allocations: 1.74 MB / 0.5894 GB, free: 53.62 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004284/1.391, allocations: 0.5894 MB / 0.59 GB, free: 53.46 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01565/1.407, allocations: 5.472 MB / 0.5954 GB, free: 51.23 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002568/1.409, allocations: 2.341 MB / 0.5976 GB, free: 50.18 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002318/1.412, allocations: 1.167 MB / 0.5988 GB, free: 49.23 MB / 410.7 MB Notification: Performance of SimCode: time 1.413e-06/1.412, allocations: 0 / 0.5988 GB, free: 49.23 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.141/5.553, allocations: 122.4 MB / 0.7183 GB, free: 80.08 MB / 410.7 MB