Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.814/1.814, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.771e-05/3.794e-05, allocations: 4 kB / 255.4 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1059, allocations: 44.51 MB / 299.9 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4602/0.5662, allocations: 113 MB / 413 MB, free: 9.016 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002829/0.5665, allocations: 88.66 kB / 413.1 MB, free: 9 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3189/0.8855, allocations: 80.15 MB / 493.2 MB, free: 7.281 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.8856, allocations: 0 / 493.2 MB, free: 7.281 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004396/0.886, allocations: 95.86 kB / 493.3 MB, free: 7.188 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.01418/0.9002, allocations: 3.428 MB / 496.7 MB, free: 3.695 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.474e-05/0.9003, allocations: 12.03 kB / 496.7 MB, free: 3.684 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002064/0.9024, allocations: 489.2 kB / 497.2 MB, free: 3.195 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005047/0.9075, allocations: 0.6435 MB / 497.9 MB, free: 2.547 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01387/0.9214, allocations: 3.359 MB / 0.4895 GB, free: 15.13 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004204/0.9218, allocations: 262.9 kB / 0.4897 GB, free: 14.88 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001483/0.9233, allocations: 339.9 kB / 0.4901 GB, free: 14.54 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01498/0.9384, allocations: 4.316 MB / 0.4943 GB, free: 10.09 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001598/0.9386, allocations: 4 kB / 0.4943 GB, free: 10.08 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000868/0.9394, allocations: 144 kB / 0.4944 GB, free: 9.941 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002567/0.9397, allocations: 166.7 kB / 0.4946 GB, free: 9.777 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01214/0.9519, allocations: 3.416 MB / 0.4979 GB, free: 6.355 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04214/0.9941, allocations: 14.55 MB / 0.5121 GB, free: 7.375 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008813/1.003, allocations: 5.346 MB / 0.5173 GB, free: 1.332 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003714/1.007, allocations: 1.254 MB / 0.5186 GB, free: 76 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2917/1.298, allocations: 3.832 MB / 0.5223 GB, free: 82.29 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.694e-05/1.299, allocations: 47.09 kB / 0.5223 GB, free: 82.25 MB / 410.7 MB Notification: Performance of pre-optimization done (n=125): time 4.839e-06/1.299, allocations: 0 / 0.5223 GB, free: 82.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=129): time 0.0126/1.311, allocations: 4.217 MB / 0.5265 GB, free: 81.34 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.818e-05/1.311, allocations: 69.06 kB / 0.5265 GB, free: 81.28 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00568/1.317, allocations: 1.823 MB / 0.5283 GB, free: 81.06 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003175/1.317, allocations: 44.61 kB / 0.5283 GB, free: 81.03 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001455/1.319, allocations: 1.568 MB / 0.5299 GB, free: 80.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000687/1.32, allocations: 455 kB / 0.5303 GB, free: 80.18 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001676/1.32, allocations: 35.56 kB / 0.5303 GB, free: 80.18 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001685/1.32, allocations: 387.9 kB / 0.5307 GB, free: 79.86 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001963/1.322, allocations: 0.6882 MB / 0.5314 GB, free: 79.86 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002441/1.324, allocations: 1.296 MB / 0.5327 GB, free: 79.12 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002827/1.327, allocations: 0.9311 MB / 0.5336 GB, free: 79.11 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.304e-05/1.327, allocations: 6.25 kB / 0.5336 GB, free: 79.11 MB / 410.7 MB Notification: Performance of matching and sorting (n=229) (initialization): time 0.006353/1.334, allocations: 2.308 MB / 0.5358 GB, free: 78.89 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.294e-05/1.334, allocations: 15.59 kB / 0.5358 GB, free: 78.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.47e-05/1.334, allocations: 19.56 kB / 0.5359 GB, free: 78.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005294/1.334, allocations: 145 kB / 0.536 GB, free: 78.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003349/1.338, allocations: 456.1 kB / 0.5364 GB, free: 78.87 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002785/1.341, allocations: 3.079 MB / 0.5394 GB, free: 76.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002911/1.344, allocations: 110.7 kB / 0.5395 GB, free: 76.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003872/1.344, allocations: 80.34 kB / 0.5396 GB, free: 76.28 MB / 410.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.0004533/1.344, allocations: 224.4 kB / 0.5398 GB, free: 76.16 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006963/1.345, allocations: 211 kB / 0.54 GB, free: 76.05 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005157/1.35, allocations: 2.139 MB / 0.5421 GB, free: 75.72 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.952e-05/1.35, allocations: 15.16 kB / 0.5421 GB, free: 75.72 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/1.35, allocations: 3.906 kB / 0.5421 GB, free: 75.72 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.558e-05/1.35, allocations: 6.094 kB / 0.5421 GB, free: 75.72 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01319/1.364, allocations: 5.12 MB / 0.5471 GB, free: 75.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.235e-05/1.364, allocations: 5.312 kB / 0.5472 GB, free: 75.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002009/1.366, allocations: 226.9 kB / 0.5474 GB, free: 75.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001167/1.367, allocations: 280.2 kB / 0.5476 GB, free: 75.01 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002631/1.367, allocations: 31.03 kB / 0.5477 GB, free: 75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00765/1.375, allocations: 7.098 MB / 0.5546 GB, free: 69.75 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.149e-06/1.375, allocations: 6.156 kB / 0.5546 GB, free: 69.75 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007285/1.382, allocations: 3.279 MB / 0.5578 GB, free: 68.92 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001737/1.384, allocations: 471 kB / 0.5583 GB, free: 68.71 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007402/1.385, allocations: 23.19 kB / 0.5583 GB, free: 68.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002305/1.387, allocations: 74.42 kB / 0.5583 GB, free: 68.71 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004249/1.388, allocations: 98.67 kB / 0.5584 GB, free: 68.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001323/1.388, allocations: 39.31 kB / 0.5585 GB, free: 68.71 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003587/1.391, allocations: 1.384 MB / 0.5598 GB, free: 68.55 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.112e-06/1.391, allocations: 3.344 kB / 0.5598 GB, free: 68.55 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003805/1.395, allocations: 0.6078 MB / 0.5604 GB, free: 68.55 MB / 410.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.008714/1.404, allocations: 4.784 MB / 0.5651 GB, free: 66.65 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004958/1.409, allocations: 2.029 MB / 0.5671 GB, free: 66.31 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.176e-05/1.409, allocations: 0 / 0.5671 GB, free: 66.31 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003198/1.412, allocations: 1.346 MB / 0.5684 GB, free: 65.56 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004422/1.417, allocations: 0.5049 MB / 0.5689 GB, free: 65.43 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01789/1.435, allocations: 5.671 MB / 0.5744 GB, free: 63.17 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004075/1.439, allocations: 2.42 MB / 0.5768 GB, free: 62.12 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003224/1.442, allocations: 1.321 MB / 0.5781 GB, free: 61.04 MB / 410.7 MB Notification: Performance of SimCode: time 1.443e-06/1.442, allocations: 0 / 0.5781 GB, free: 61.04 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.24/5.682, allocations: 112.1 MB / 0.6876 GB, free: 79.89 MB / 410.7 MB