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.955/1.955, allocations: 194.9 MB / 208 MB, free: 3.18 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.8e-05/3.814e-05, allocations: 4 kB / 255.5 MB, free: 2.609 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0972/0.09727, allocations: 44.5 MB / 300 MB, free: 6.047 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4553/0.5527, allocations: 109.5 MB / 409.5 MB, free: 9.477 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002847/0.553, allocations: 85.52 kB / 409.6 MB, free: 9.465 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2934/0.8464, allocations: 76.79 MB / 486.4 MB, free: 13.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.8465, allocations: 4 kB / 486.4 MB, free: 13.58 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003483/0.8469, allocations: 83.94 kB / 486.5 MB, free: 13.5 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.01314/0.86, allocations: 3.192 MB / 489.6 MB, free: 10.24 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.807e-05/0.8601, allocations: 8.031 kB / 489.7 MB, free: 10.23 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001932/0.862, allocations: 446.9 kB / 490.1 MB, free: 9.785 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004425/0.8665, allocations: 0.6013 MB / 490.7 MB, free: 9.18 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01209/0.8786, allocations: 3.123 MB / 493.8 MB, free: 6 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003074/0.879, allocations: 234.2 kB / 494 MB, free: 5.77 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009439/0.8799, allocations: 311.9 kB / 494.3 MB, free: 5.465 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01264/0.8926, allocations: 4.011 MB / 498.4 MB, free: 1.293 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001253/0.8928, allocations: 11.92 kB / 498.4 MB, free: 1.281 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005257/0.8933, allocations: 128 kB / 498.5 MB, free: 1.156 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002264/0.8935, allocations: 142.1 kB / 498.6 MB, free: 1.016 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0106/0.9041, allocations: 3.218 MB / 0.4901 GB, free: 13.79 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03804/0.9422, allocations: 13.81 MB / 0.5036 GB, free: 15.6 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009442/0.9517, allocations: 5.828 MB / 0.5093 GB, free: 9.043 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003749/0.9555, allocations: 1.339 MB / 0.5106 GB, free: 7.707 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009454/0.965, allocations: 3.178 MB / 0.5137 GB, free: 4.461 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.717e-05/0.9651, allocations: 51.88 kB / 0.5137 GB, free: 4.402 MB / 410.7 MB Notification: Performance of pre-optimization done (n=137): time 4.629e-06/0.9651, allocations: 4 kB / 0.5137 GB, free: 4.398 MB / 410.7 MB Notification: Performance of matching and sorting (n=141): time 0.3063/1.271, allocations: 4.522 MB / 0.5181 GB, free: 86.23 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.251e-05/1.272, allocations: 100.1 kB / 0.5182 GB, free: 86.14 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005692/1.277, allocations: 1.669 MB / 0.5199 GB, free: 85.93 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004326/1.278, allocations: 49.73 kB / 0.5199 GB, free: 85.89 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00214/1.28, allocations: 1.454 MB / 0.5213 GB, free: 85.76 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001039/1.281, allocations: 485.5 kB / 0.5218 GB, free: 85.52 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002215/1.281, allocations: 37.44 kB / 0.5218 GB, free: 85.52 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002008/1.281, allocations: 372.3 kB / 0.5222 GB, free: 85.21 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00276/1.284, allocations: 0.7182 MB / 0.5229 GB, free: 85.21 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00318/1.287, allocations: 1.23 MB / 0.5241 GB, free: 84.61 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00324/1.291, allocations: 0.9044 MB / 0.525 GB, free: 84.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.051e-05/1.291, allocations: 8.125 kB / 0.525 GB, free: 84.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.01117/1.302, allocations: 2.632 MB / 0.5276 GB, free: 84.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001624/1.304, allocations: 6.599 MB / 0.534 GB, free: 77.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.098e-05/1.304, allocations: 19 kB / 0.534 GB, free: 77.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002734/1.307, allocations: 0.5193 MB / 0.5345 GB, free: 77.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004313/1.311, allocations: 370.8 kB / 0.5349 GB, free: 77.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01695/1.328, allocations: 7.227 MB / 0.5419 GB, free: 73.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003157/1.331, allocations: 99.73 kB / 0.542 GB, free: 73.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006514/1.332, allocations: 76.3 kB / 0.5421 GB, free: 73.39 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/1.332, allocations: 2.75 kB / 0.5421 GB, free: 73.39 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009588/1.341, allocations: 2.425 MB / 0.5445 GB, free: 73.22 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001048/1.342, allocations: 15.75 kB / 0.5445 GB, free: 73.22 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002819/1.344, allocations: 0.5181 MB / 0.545 GB, free: 73.19 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003951/1.348, allocations: 358.2 kB / 0.5453 GB, free: 73.19 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01509/1.364, allocations: 7.241 MB / 0.5524 GB, free: 69.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00401/1.368, allocations: 87.47 kB / 0.5525 GB, free: 69.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005954/1.368, allocations: 80.47 kB / 0.5526 GB, free: 69.19 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.0009218/1.369, allocations: 214.5 kB / 0.5528 GB, free: 69.09 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009728/1.37, allocations: 207.8 kB / 0.553 GB, free: 68.98 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008547/1.379, allocations: 2.422 MB / 0.5553 GB, free: 68.64 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-05/1.379, allocations: 15.53 kB / 0.5554 GB, free: 68.64 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.818e-05/1.379, allocations: 7.734 kB / 0.5554 GB, free: 68.64 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-05/1.379, allocations: 11.47 kB / 0.5554 GB, free: 68.64 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03115/1.41, allocations: 5.286 MB / 0.5605 GB, free: 67.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.511e-05/1.41, allocations: 3.5 kB / 0.5605 GB, free: 67.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002242/1.413, allocations: 185.3 kB / 0.5607 GB, free: 67.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007783/1.42, allocations: 0.6418 MB / 0.5613 GB, free: 67.91 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003649/1.421, allocations: 37.28 kB / 0.5614 GB, free: 67.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02295/1.444, allocations: 11.29 MB / 0.5724 GB, free: 60.91 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.135e-06/1.444, allocations: 5.562 kB / 0.5724 GB, free: 60.91 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01186/1.456, allocations: 3.652 MB / 0.576 GB, free: 58.99 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002375/1.458, allocations: 466.2 kB / 0.5764 GB, free: 58.68 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001042/1.459, allocations: 34.64 kB / 0.5765 GB, free: 58.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003542/1.463, allocations: 83.03 kB / 0.5765 GB, free: 58.64 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008094/1.464, allocations: 117.2 kB / 0.5766 GB, free: 58.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002266/1.464, allocations: 39.72 kB / 0.5767 GB, free: 58.61 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004775/1.469, allocations: 1.276 MB / 0.5779 GB, free: 58.07 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.643e-06/1.469, allocations: 0 / 0.5779 GB, free: 58.07 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.009935/1.479, allocations: 1.116 MB / 0.579 GB, free: 57.97 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.01434/1.493, allocations: 5.113 MB / 0.584 GB, free: 55 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01445/1.508, allocations: 4.031 MB / 0.5879 GB, free: 52.97 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.51e-05/1.508, allocations: 0.625 kB / 0.5879 GB, free: 52.97 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005886/1.514, allocations: 1.701 MB / 0.5896 GB, free: 51.97 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007298/1.521, allocations: 0.5804 MB / 0.5902 GB, free: 51.81 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02678/1.548, allocations: 5.545 MB / 0.5956 GB, free: 49.56 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005686/1.554, allocations: 2.38 MB / 0.5979 GB, free: 48.51 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.007635/1.561, allocations: 0.7946 MB / 0.5987 GB, free: 48.43 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003428/1.565, allocations: 1.122 MB / 0.5998 GB, free: 47.49 MB / 410.7 MB Notification: Performance of SimCode: time 2.394e-06/1.565, allocations: 0 / 0.5998 GB, free: 47.49 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2058/1.771, allocations: 66.28 MB / 0.6645 GB, free: 4.133 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000206/1.771, allocations: 205.8 kB / 0.6647 GB, free: 3.906 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.666/7.437, allocations: 0 / 0.6647 GB, free: 3.906 MB / 410.7 MB