Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.911/1.911, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.393e-05/3.408e-05, allocations: 4 kB / 255.5 MB, free: 2.629 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08896/0.08903, allocations: 44.51 MB / 300 MB, free: 6.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4359/0.5249, allocations: 113 MB / 413 MB, free: 12.26 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002842/0.5253, allocations: 86.08 kB / 413.1 MB, free: 12.25 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.317/0.8423, allocations: 80.16 MB / 493.2 MB, free: 10.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.8423, allocations: 0 / 493.2 MB, free: 10.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003969/0.8427, allocations: 91.88 kB / 493.3 MB, free: 10.48 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: 908 * Number of variables: 908 Notification: Performance of Generate backend data structure: time 0.01337/0.8561, allocations: 3.428 MB / 496.8 MB, free: 6.984 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/0.8562, allocations: 12.03 kB / 496.8 MB, free: 6.973 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001545/0.8577, allocations: 493.2 kB / 497.3 MB, free: 6.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004362/0.8621, allocations: 0.6435 MB / 497.9 MB, free: 5.832 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01324/0.8754, allocations: 3.351 MB / 0.4895 GB, free: 2.426 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003214/0.8757, allocations: 258.9 kB / 0.4898 GB, free: 2.172 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001147/0.8769, allocations: 347.9 kB / 0.4901 GB, free: 1.832 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01296/0.8899, allocations: 4.32 MB / 0.4943 GB, free: 13.37 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001424/0.8901, allocations: 0 / 0.4943 GB, free: 13.37 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005602/0.8906, allocations: 148 kB / 0.4944 GB, free: 13.23 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002455/0.8909, allocations: 158.8 kB / 0.4946 GB, free: 13.07 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01147/0.9024, allocations: 3.42 MB / 0.4979 GB, free: 9.645 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3187/1.221, allocations: 14.54 MB / 0.5121 GB, free: 62.69 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008695/1.23, allocations: 5.332 MB / 0.5173 GB, free: 58.8 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00369/1.234, allocations: 1.251 MB / 0.5186 GB, free: 58.79 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01378/1.247, allocations: 3.848 MB / 0.5223 GB, free: 58.18 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.994e-05/1.248, allocations: 46.28 kB / 0.5224 GB, free: 58.14 MB / 394.7 MB Notification: Performance of pre-optimization done (n=125): time 4.048e-06/1.248, allocations: 0 / 0.5224 GB, free: 58.14 MB / 394.7 MB Notification: Performance of matching and sorting (n=129): time 0.01186/1.259, allocations: 4.223 MB / 0.5265 GB, free: 57.12 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.069e-05/1.259, allocations: 65.09 kB / 0.5265 GB, free: 57.05 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004532/1.264, allocations: 1.825 MB / 0.5283 GB, free: 56.83 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003278/1.264, allocations: 47.27 kB / 0.5284 GB, free: 56.8 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001419/1.266, allocations: 1.655 MB / 0.53 GB, free: 56.25 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006612/1.267, allocations: 455.2 kB / 0.5304 GB, free: 56 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001628/1.267, allocations: 33.59 kB / 0.5305 GB, free: 56 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000136/1.267, allocations: 379 kB / 0.5308 GB, free: 55.7 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001675/1.269, allocations: 0.6854 MB / 0.5315 GB, free: 55.7 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001996/1.271, allocations: 1.304 MB / 0.5328 GB, free: 54.96 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002319/1.273, allocations: 0.9284 MB / 0.5337 GB, free: 54.94 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.682e-05/1.273, allocations: 5.75 kB / 0.5337 GB, free: 54.94 MB / 394.7 MB Notification: Performance of matching and sorting (n=229) (initialization): time 0.006102/1.279, allocations: 2.449 MB / 0.5361 GB, free: 54.64 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.82e-05/1.279, allocations: 11.84 kB / 0.5361 GB, free: 54.64 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.38e-05/1.279, allocations: 23.64 kB / 0.5361 GB, free: 54.64 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005322/1.28, allocations: 147.9 kB / 0.5362 GB, free: 54.62 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00326/1.283, allocations: 458.7 kB / 0.5367 GB, free: 54.62 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002845/1.286, allocations: 3.066 MB / 0.5397 GB, free: 52.04 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003518/1.29, allocations: 112.5 kB / 0.5398 GB, free: 52.04 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003864/1.29, allocations: 82.5 kB / 0.5399 GB, free: 52.04 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (222): * Single equations (assignments): 219 * 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: 2 * 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%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004377/1.29, allocations: 222.7 kB / 0.5401 GB, free: 51.91 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005551/1.291, allocations: 215.5 kB / 0.5403 GB, free: 51.8 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005265/1.296, allocations: 2.136 MB / 0.5424 GB, free: 51.48 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.761e-05/1.296, allocations: 14.12 kB / 0.5424 GB, free: 51.48 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/1.296, allocations: 6.625 kB / 0.5424 GB, free: 51.48 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.627e-05/1.296, allocations: 10.41 kB / 0.5424 GB, free: 51.48 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01375/1.31, allocations: 5.127 MB / 0.5474 GB, free: 50.78 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.456e-05/1.31, allocations: 2.844 kB / 0.5474 GB, free: 50.78 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002044/1.312, allocations: 231 kB / 0.5476 GB, free: 50.78 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001218/1.313, allocations: 273.5 kB / 0.5479 GB, free: 50.75 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002919/1.314, allocations: 24.78 kB / 0.5479 GB, free: 50.75 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008028/1.322, allocations: 7.103 MB / 0.5548 GB, free: 45.48 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/1.322, allocations: 6.203 kB / 0.5548 GB, free: 45.48 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007638/1.33, allocations: 3.279 MB / 0.558 GB, free: 44.66 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001758/1.331, allocations: 463.8 kB / 0.5585 GB, free: 44.46 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008563/1.332, allocations: 30.27 kB / 0.5585 GB, free: 44.46 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002487/1.335, allocations: 77.12 kB / 0.5586 GB, free: 44.46 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004788/1.335, allocations: 89.61 kB / 0.5587 GB, free: 44.46 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000131/1.335, allocations: 35.86 kB / 0.5587 GB, free: 44.46 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003866/1.339, allocations: 1.39 MB / 0.5601 GB, free: 44.3 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.685e-06/1.339, allocations: 0 / 0.5601 GB, free: 44.3 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00385/1.343, allocations: 0.6071 MB / 0.5607 GB, free: 44.29 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 106 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008679/1.352, allocations: 4.78 MB / 0.5653 GB, free: 41.45 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004812/1.357, allocations: 2.029 MB / 0.5673 GB, free: 40.56 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.878e-06/1.357, allocations: 0 / 0.5673 GB, free: 40.56 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003309/1.36, allocations: 1.362 MB / 0.5686 GB, free: 39.78 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004386/1.365, allocations: 0.5025 MB / 0.5691 GB, free: 39.65 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02309/1.388, allocations: 5.691 MB / 0.5747 GB, free: 37.36 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003967/1.392, allocations: 2.474 MB / 0.5771 GB, free: 36.29 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.00313/1.395, allocations: 0.4924 MB / 0.5776 GB, free: 36.23 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003064/1.398, allocations: 1.305 MB / 0.5789 GB, free: 35.15 MB / 394.7 MB Notification: Performance of SimCode: time 2.104e-06/1.398, allocations: 0 / 0.5789 GB, free: 35.15 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1329/1.531, allocations: 55.19 MB / 0.6328 GB, free: 8.695 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002718/1.531, allocations: 217.5 kB / 0.633 GB, free: 8.457 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.43/5.961, allocations: 3.906 kB / 0.633 GB, free: 8.453 MB / 394.7 MB