Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.906/1.906, allocations: 194.9 MB / 208 MB, free: 3.18 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.115e-05/4.127e-05, allocations: 4 kB / 255.5 MB, free: 2.625 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09906/0.09914, allocations: 44.51 MB / 300 MB, free: 6.062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4564/0.5556, allocations: 109.5 MB / 409.5 MB, free: 9.844 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002947/0.5559, allocations: 83.33 kB / 409.6 MB, free: 9.832 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2983/0.8543, allocations: 76.78 MB / 486.3 MB, free: 13.71 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.8543, allocations: 0 / 486.3 MB, free: 13.71 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004176/0.8548, allocations: 79.94 kB / 486.4 MB, free: 13.64 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.01366/0.8684, allocations: 3.195 MB / 489.6 MB, free: 10.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/0.8685, allocations: 8.031 kB / 489.6 MB, free: 10.37 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001743/0.8702, allocations: 442.9 kB / 490.1 MB, free: 9.922 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004772/0.875, allocations: 0.5936 MB / 490.6 MB, free: 9.324 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01304/0.8881, allocations: 3.127 MB / 493.8 MB, free: 6.141 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004165/0.8886, allocations: 246.2 kB / 494 MB, free: 5.898 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001374/0.89, allocations: 311.9 kB / 494.3 MB, free: 5.594 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01376/0.9038, allocations: 4.047 MB / 498.4 MB, free: 1.383 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001322/0.904, allocations: 4 kB / 498.4 MB, free: 1.379 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006887/0.9047, allocations: 136 kB / 498.5 MB, free: 1.246 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002292/0.9049, allocations: 142 kB / 498.6 MB, free: 1.105 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0118/0.9167, allocations: 3.261 MB / 0.4901 GB, free: 13.83 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04026/0.957, allocations: 13.8 MB / 0.5036 GB, free: 15.65 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009849/0.9669, allocations: 5.846 MB / 0.5093 GB, free: 9.078 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003977/0.9709, allocations: 1.327 MB / 0.5106 GB, free: 7.754 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01367/0.9847, allocations: 3.193 MB / 0.5137 GB, free: 4.492 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.6e-05/0.9848, allocations: 51.88 kB / 0.5138 GB, free: 4.434 MB / 410.7 MB Notification: Performance of pre-optimization done (n=137): time 6.823e-06/0.9848, allocations: 0 / 0.5138 GB, free: 4.434 MB / 410.7 MB Notification: Performance of matching and sorting (n=141): time 0.3408/1.326, allocations: 4.535 MB / 0.5182 GB, free: 86.68 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.993e-05/1.326, allocations: 98 kB / 0.5183 GB, free: 86.59 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004033/1.33, allocations: 1.673 MB / 0.5199 GB, free: 86.38 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003233/1.33, allocations: 47.48 kB / 0.52 GB, free: 86.34 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001192/1.331, allocations: 1.453 MB / 0.5214 GB, free: 86.21 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006962/1.332, allocations: 483.6 kB / 0.5219 GB, free: 85.96 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001515/1.332, allocations: 35.59 kB / 0.5219 GB, free: 85.96 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001472/1.332, allocations: 372.8 kB / 0.5223 GB, free: 85.66 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002018/1.334, allocations: 0.7164 MB / 0.523 GB, free: 85.66 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002354/1.337, allocations: 1.241 MB / 0.5242 GB, free: 85.05 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002336/1.339, allocations: 0.9153 MB / 0.5251 GB, free: 85.04 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.26e-05/1.339, allocations: 4.703 kB / 0.5251 GB, free: 85.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.007275/1.347, allocations: 2.669 MB / 0.5277 GB, free: 84.75 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001411/1.348, allocations: 6.605 MB / 0.5341 GB, free: 77.86 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.351e-05/1.348, allocations: 20 kB / 0.5342 GB, free: 77.86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002197/1.35, allocations: 0.5142 MB / 0.5347 GB, free: 77.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002937/1.353, allocations: 366.5 kB / 0.535 GB, free: 77.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01103/1.364, allocations: 7.231 MB / 0.5421 GB, free: 73.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002772/1.367, allocations: 100.7 kB / 0.5422 GB, free: 73.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003938/1.368, allocations: 73.66 kB / 0.5422 GB, free: 73.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/1.368, allocations: 5.75 kB / 0.5422 GB, free: 73.84 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006207/1.374, allocations: 2.468 MB / 0.5446 GB, free: 73.67 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.33e-05/1.374, allocations: 16.98 kB / 0.5447 GB, free: 73.67 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001801/1.376, allocations: 0.5182 MB / 0.5452 GB, free: 73.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002729/1.379, allocations: 361.5 kB / 0.5455 GB, free: 73.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009607/1.388, allocations: 7.238 MB / 0.5526 GB, free: 69.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002516/1.391, allocations: 88.55 kB / 0.5527 GB, free: 69.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002515/1.391, allocations: 71.69 kB / 0.5527 GB, free: 69.66 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.0005531/1.392, allocations: 219.2 kB / 0.5529 GB, free: 69.55 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004776/1.392, allocations: 207.2 kB / 0.5531 GB, free: 69.44 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005575/1.398, allocations: 2.427 MB / 0.5555 GB, free: 69.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.807e-05/1.398, allocations: 17.91 kB / 0.5555 GB, free: 69.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.728e-06/1.398, allocations: 3.938 kB / 0.5555 GB, free: 69.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-05/1.398, allocations: 11.03 kB / 0.5555 GB, free: 69.09 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01238/1.41, allocations: 5.295 MB / 0.5607 GB, free: 68.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.15e-05/1.41, allocations: 3.5 kB / 0.5607 GB, free: 68.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001653/1.412, allocations: 171.6 kB / 0.5609 GB, free: 68.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002548/1.414, allocations: 0.6583 MB / 0.5615 GB, free: 68.37 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002405/1.415, allocations: 30.06 kB / 0.5616 GB, free: 68.37 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01477/1.43, allocations: 11.29 MB / 0.5726 GB, free: 61.23 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/1.43, allocations: 3 kB / 0.5726 GB, free: 61.23 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007851/1.437, allocations: 3.657 MB / 0.5761 GB, free: 59.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001652/1.439, allocations: 472.6 kB / 0.5766 GB, free: 58.99 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005672/1.44, allocations: 30.81 kB / 0.5766 GB, free: 58.97 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001899/1.442, allocations: 81.14 kB / 0.5767 GB, free: 58.95 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004273/1.442, allocations: 124.3 kB / 0.5768 GB, free: 58.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001226/1.442, allocations: 38.22 kB / 0.5769 GB, free: 58.93 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002812/1.445, allocations: 1.28 MB / 0.5781 GB, free: 58.38 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.22e-07/1.445, allocations: 0 / 0.5781 GB, free: 58.38 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00547/1.451, allocations: 1.114 MB / 0.5792 GB, free: 58.28 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.008706/1.459, allocations: 5.101 MB / 0.5842 GB, free: 55.32 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00975/1.469, allocations: 4.14 MB / 0.5882 GB, free: 53.22 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.677e-06/1.469, allocations: 0 / 0.5882 GB, free: 53.22 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003685/1.473, allocations: 1.742 MB / 0.5899 GB, free: 52.17 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004482/1.477, allocations: 0.5945 MB / 0.5905 GB, free: 52.02 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01591/1.493, allocations: 5.547 MB / 0.5959 GB, free: 49.76 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002583/1.496, allocations: 2.372 MB / 0.5982 GB, free: 48.71 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.004529/1.501, allocations: 0.7965 MB / 0.599 GB, free: 48.64 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002046/1.503, allocations: 1.123 MB / 0.6001 GB, free: 47.69 MB / 410.7 MB Notification: Performance of SimCode: time 1.062e-06/1.503, allocations: 0 / 0.6001 GB, free: 47.69 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1794/1.682, allocations: 66.63 MB / 0.6652 GB, free: 3.652 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002385/1.682, allocations: 219 kB / 0.6654 GB, free: 3.414 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.384/7.066, allocations: 3.906 kB / 0.6654 GB, free: 3.41 MB / 410.7 MB