Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.803/1.803, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.144e-05/3.149e-05, allocations: 8 kB / 255.5 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08736/0.08742, allocations: 44.5 MB / 300 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4429/0.5304, allocations: 110 MB / 410 MB, free: 9.844 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002853/0.5307, allocations: 83.27 kB / 410 MB, free: 9.832 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2826/0.8133, allocations: 74.72 MB / 484.8 MB, free: 15.77 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.8134, allocations: 0 / 484.8 MB, free: 15.77 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003443/0.8138, allocations: 87.88 kB / 484.9 MB, free: 15.69 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: 823 * Number of variables: 823 Notification: Performance of Generate backend data structure: time 0.01248/0.8263, allocations: 3.117 MB / 488 MB, free: 12.5 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.792e-05/0.8263, allocations: 12.02 kB / 488 MB, free: 12.49 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001513/0.8279, allocations: 447 kB / 488.4 MB, free: 12.04 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004389/0.8323, allocations: 0.5852 MB / 489 MB, free: 11.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01183/0.8441, allocations: 3.095 MB / 492.1 MB, free: 8.301 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003057/0.8445, allocations: 242.2 kB / 492.3 MB, free: 8.062 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00106/0.8455, allocations: 307.9 kB / 492.6 MB, free: 7.762 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01155/0.8571, allocations: 3.869 MB / 496.5 MB, free: 3.754 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001199/0.8573, allocations: 7.891 kB / 496.5 MB, free: 3.746 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000513/0.8578, allocations: 136 kB / 496.6 MB, free: 3.613 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000224/0.858, allocations: 146.2 kB / 496.8 MB, free: 3.469 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01025/0.8683, allocations: 3.035 MB / 499.8 MB, free: 440 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03488/0.9032, allocations: 13.4 MB / 0.5012 GB, free: 2.566 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006956/0.9102, allocations: 3.899 MB / 0.505 GB, free: 14.16 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002929/0.9132, allocations: 0.9812 MB / 0.506 GB, free: 13.18 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007274/0.9205, allocations: 2.65 MB / 0.5085 GB, free: 10.44 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.615e-05/0.9206, allocations: 43.56 kB / 0.5086 GB, free: 10.39 MB / 410.7 MB Notification: Performance of pre-optimization done (n=106): time 3.977e-06/0.9206, allocations: 0 / 0.5086 GB, free: 10.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=140): time 0.0175/0.9381, allocations: 5.154 MB / 0.5136 GB, free: 5.172 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.152e-05/0.9382, allocations: 64.72 kB / 0.5137 GB, free: 5.094 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004156/0.9424, allocations: 1.634 MB / 0.5153 GB, free: 3.414 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003152/0.9427, allocations: 49.7 kB / 0.5153 GB, free: 3.359 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001453/0.9442, allocations: 1.438 MB / 0.5167 GB, free: 1.906 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007705/0.945, allocations: 481 kB / 0.5172 GB, free: 1.43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001724/0.9452, allocations: 36 kB / 0.5172 GB, free: 1.395 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002747/0.9455, allocations: 382.8 kB / 0.5176 GB, free: 1.012 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002043/0.9475, allocations: 0.7341 MB / 0.5183 GB, free: 284 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2654/1.213, allocations: 1.308 MB / 0.5196 GB, free: 87 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002457/1.215, allocations: 0.9736 MB / 0.5205 GB, free: 86.98 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.433e-05/1.216, allocations: 6.469 kB / 0.5205 GB, free: 86.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.006194/1.222, allocations: 2.21 MB / 0.5227 GB, free: 86.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.605e-05/1.222, allocations: 16.53 kB / 0.5227 GB, free: 86.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.279e-05/1.222, allocations: 19.73 kB / 0.5227 GB, free: 86.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000543/1.222, allocations: 120.1 kB / 0.5228 GB, free: 86.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003694/1.226, allocations: 484.8 kB / 0.5233 GB, free: 86.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001139/1.227, allocations: 1.31 MB / 0.5246 GB, free: 85.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00266/1.23, allocations: 111.5 kB / 0.5247 GB, free: 85.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002833/1.23, allocations: 81.12 kB / 0.5248 GB, free: 85.64 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (228): * Single equations (assignments): 225 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004294/1.231, allocations: 220 kB / 0.525 GB, free: 85.53 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005866/1.231, allocations: 203.1 kB / 0.5252 GB, free: 85.53 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005158/1.236, allocations: 1.903 MB / 0.527 GB, free: 85.42 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.177e-05/1.237, allocations: 15.7 kB / 0.527 GB, free: 85.42 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/1.237, allocations: 0 / 0.527 GB, free: 85.42 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-05/1.237, allocations: 8.844 kB / 0.5271 GB, free: 85.42 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01334/1.25, allocations: 4.924 MB / 0.5319 GB, free: 84.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.178e-05/1.25, allocations: 3.719 kB / 0.5319 GB, free: 84.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00282/1.253, allocations: 309.8 kB / 0.5322 GB, free: 84.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007237/1.254, allocations: 97.33 kB / 0.5323 GB, free: 84.92 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003374/1.254, allocations: 29.55 kB / 0.5323 GB, free: 84.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001196/1.255, allocations: 1.272 MB / 0.5335 GB, free: 83.68 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/1.255, allocations: 4.812 kB / 0.5335 GB, free: 83.68 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006565/1.262, allocations: 3.128 MB / 0.5366 GB, free: 83.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001429/1.263, allocations: 462.1 kB / 0.537 GB, free: 83.09 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005288/1.264, allocations: 24.72 kB / 0.5371 GB, free: 83.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001916/1.266, allocations: 79.03 kB / 0.5371 GB, free: 83.09 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002298/1.266, allocations: 87.59 kB / 0.5372 GB, free: 83.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001272/1.266, allocations: 51.38 kB / 0.5373 GB, free: 83.09 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002716/1.269, allocations: 1.238 MB / 0.5385 GB, free: 82.93 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.91e-07/1.269, allocations: 0 / 0.5385 GB, free: 82.93 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00309/1.272, allocations: 0.5752 MB / 0.539 GB, free: 82.93 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (139): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007382/1.279, allocations: 4.577 MB / 0.5435 GB, free: 81.34 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004633/1.284, allocations: 2.091 MB / 0.5455 GB, free: 81.02 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.844e-06/1.284, allocations: 0 / 0.5455 GB, free: 81.02 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002254/1.286, allocations: 1.134 MB / 0.5466 GB, free: 80.71 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003745/1.29, allocations: 477.1 kB / 0.5471 GB, free: 80.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01453/1.305, allocations: 5.154 MB / 0.5521 GB, free: 79.57 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002434/1.307, allocations: 2.271 MB / 0.5544 GB, free: 78.82 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002554/1.31, allocations: 1.181 MB / 0.5555 GB, free: 78.82 MB / 410.7 MB Notification: Performance of SimCode: time 1.212e-06/1.31, allocations: 0 / 0.5555 GB, free: 78.82 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.537/4.847, allocations: 97.7 MB / 0.6509 GB, free: 19.41 MB / 410.7 MB