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.856/1.856, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.308e-05/2.317e-05, allocations: 4 kB / 249.7 MB, free: 14.81 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.3381, allocations: 44.49 MB / 294.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1865/0.5247, allocations: 108.8 MB / 403.1 MB, free: 4.938 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003229/0.525, allocations: 91.94 kB / 403.2 MB, free: 4.848 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5578/1.083, allocations: 75.74 MB / 478.9 MB, free: 70.59 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.405e-06/1.083, allocations: 3.938 kB / 478.9 MB, free: 70.59 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004099/1.083, allocations: 83.94 kB / 479 MB, free: 70.5 MB / 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.0131/1.096, allocations: 3.191 MB / 482.2 MB, free: 67.25 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.543e-05/1.097, allocations: 8.031 kB / 482.2 MB, free: 67.25 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004852/1.101, allocations: 0.5974 MB / 482.8 MB, free: 66.64 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01219/1.114, allocations: 3.126 MB / 485.9 MB, free: 63.53 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000244/1.114, allocations: 100 kB / 486 MB, free: 63.43 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001291/1.115, allocations: 195.8 kB / 486.2 MB, free: 63.24 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009867/1.125, allocations: 3.07 MB / 489.3 MB, free: 60.17 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01284/1.138, allocations: 3.604 MB / 492.9 MB, free: 56.4 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002175/1.138, allocations: 4 kB / 492.9 MB, free: 56.4 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001125/1.139, allocations: 4 kB / 492.9 MB, free: 56.39 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002051/1.14, allocations: 142.1 kB / 493 MB, free: 56.25 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03441/1.174, allocations: 13.2 MB / 0.4944 GB, free: 42.8 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00773/1.182, allocations: 5.772 MB / 0.5 GB, free: 36.32 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003305/1.185, allocations: 1.271 MB / 0.5012 GB, free: 35.05 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01036/1.196, allocations: 3.101 MB / 0.5043 GB, free: 31.91 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.226e-05/1.196, allocations: 47.88 kB / 0.5043 GB, free: 31.86 MB / 362.7 MB Notification: Performance of pre-optimization done (n=137): time 4.288e-06/1.196, allocations: 0 / 0.5043 GB, free: 31.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=141): time 0.01351/1.209, allocations: 4.495 MB / 0.5087 GB, free: 27.26 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.488e-05/1.209, allocations: 94.42 kB / 0.5088 GB, free: 27.15 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003723/1.213, allocations: 1.397 MB / 0.5102 GB, free: 25.76 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003705/1.214, allocations: 29.7 kB / 0.5102 GB, free: 25.72 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001359/1.215, allocations: 1.454 MB / 0.5116 GB, free: 24.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007035/1.216, allocations: 465.1 kB / 0.512 GB, free: 23.79 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001732/1.216, allocations: 0 / 0.512 GB, free: 23.79 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001678/1.216, allocations: 373.9 kB / 0.5124 GB, free: 23.42 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00171/1.218, allocations: 0.6794 MB / 0.5131 GB, free: 22.74 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002182/1.22, allocations: 1.2 MB / 0.5142 GB, free: 21.3 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002761/1.223, allocations: 0.9431 MB / 0.5152 GB, free: 20.36 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.603e-05/1.223, allocations: 4 kB / 0.5152 GB, free: 20.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.007435/1.23, allocations: 2.562 MB / 0.5177 GB, free: 17.76 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001396/1.232, allocations: 6.536 MB / 0.5241 GB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.296e-05/1.232, allocations: 16 kB / 0.5241 GB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00201/1.234, allocations: 0.503 MB / 0.5246 GB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002749/1.237, allocations: 371.4 kB / 0.5249 GB, free: 9.723 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01002/1.247, allocations: 6.995 MB / 0.5317 GB, free: 2.383 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002616/1.249, allocations: 67.81 kB / 0.5318 GB, free: 2.316 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005282/1.25, allocations: 76 kB / 0.5319 GB, free: 2.242 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/1.25, allocations: 7.953 kB / 0.5319 GB, free: 2.234 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007081/1.257, allocations: 2.321 MB / 0.5342 GB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.95e-05/1.257, allocations: 16 kB / 0.5342 GB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002123/1.259, allocations: 0.507 MB / 0.5347 GB, free: 15.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002872/1.262, allocations: 363.5 kB / 0.535 GB, free: 14.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01246/1.275, allocations: 6.988 MB / 0.5418 GB, free: 7.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002404/1.277, allocations: 48.31 kB / 0.5419 GB, free: 7.613 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004823/1.278, allocations: 72 kB / 0.542 GB, free: 7.543 MB / 378.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.0006126/1.278, allocations: 171 kB / 0.5421 GB, free: 7.371 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006903/1.285, allocations: 2.232 MB / 0.5443 GB, free: 5.074 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009594/1.286, allocations: 201.5 kB / 0.5445 GB, free: 4.875 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007439/1.294, allocations: 2.348 MB / 0.5468 GB, free: 2.457 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.711e-05/1.294, allocations: 12 kB / 0.5468 GB, free: 2.445 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.427e-05/1.294, allocations: 4 kB / 0.5468 GB, free: 2.441 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.903e-05/1.294, allocations: 15.97 kB / 0.5468 GB, free: 2.426 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01516/1.309, allocations: 4.814 MB / 0.5515 GB, free: 13.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.916e-05/1.309, allocations: 4.031 kB / 0.5515 GB, free: 13.51 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001768/1.311, allocations: 179.7 kB / 0.5517 GB, free: 13.34 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002895/1.314, allocations: 0.6325 MB / 0.5523 GB, free: 12.69 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002948/1.314, allocations: 11.98 kB / 0.5523 GB, free: 12.68 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01807/1.332, allocations: 10.88 MB / 0.5629 GB, free: 1.23 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.128e-05/1.332, allocations: 4 kB / 0.5629 GB, free: 1.227 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2959/1.628, allocations: 3.578 MB / 0.5664 GB, free: 93.45 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001462/1.63, allocations: 448 kB / 0.5669 GB, free: 93.35 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006863/1.631, allocations: 4.656 kB / 0.5669 GB, free: 93.35 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003034/1.634, allocations: 59.84 kB / 0.5669 GB, free: 93.35 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009967/1.635, allocations: 116.3 kB / 0.567 GB, free: 93.35 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000281/1.635, allocations: 41.25 kB / 0.5671 GB, free: 93.35 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004517/1.64, allocations: 1.046 MB / 0.5681 GB, free: 93.24 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.462e-06/1.64, allocations: 0 / 0.5681 GB, free: 93.24 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007819/1.647, allocations: 0.9806 MB / 0.5691 GB, free: 93.24 MB / 394.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.009306/1.657, allocations: 4.96 MB / 0.5739 GB, free: 91.61 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007242/1.664, allocations: 3.926 MB / 0.5777 GB, free: 90.71 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.894e-06/1.664, allocations: 0 / 0.5777 GB, free: 90.71 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003139/1.667, allocations: 1.671 MB / 0.5794 GB, free: 90.15 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003762/1.671, allocations: 0.4913 MB / 0.5798 GB, free: 90.14 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01408/1.685, allocations: 5.367 MB / 0.5851 GB, free: 89.01 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002556/1.688, allocations: 2.382 MB / 0.5874 GB, free: 88.26 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.004207/1.692, allocations: 0.7335 MB / 0.5881 GB, free: 88.22 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001957/1.694, allocations: 1.117 MB / 0.5892 GB, free: 88.21 MB / 394.7 MB Notification: Performance of SimCode: time 1.302e-06/1.694, allocations: 3.609 kB / 0.5892 GB, free: 88.21 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1429/1.837, allocations: 56.41 MB / 0.6443 GB, free: 55.81 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002367/1.837, allocations: 168.9 kB / 0.6445 GB, free: 55.61 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.988/6.826, allocations: 0 / 0.6445 GB, free: 55.61 MB / 394.7 MB