Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.746/1.746, allocations: 194.9 MB / 208 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.138e-05/3.143e-05, allocations: 8 kB / 255.5 MB, free: 2.598 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0868/0.08686, allocations: 44.5 MB / 300 MB, free: 6.039 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4315/0.5184, allocations: 110 MB / 410 MB, free: 9.312 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002846/0.5188, allocations: 87.89 kB / 410.1 MB, free: 9.301 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3365/0.8553, allocations: 74.72 MB / 484.8 MB, free: 15.2 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.8554, allocations: 0 / 484.8 MB, free: 15.2 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003028/0.8557, allocations: 91.86 kB / 484.9 MB, free: 15.11 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.01165/0.8674, allocations: 3.117 MB / 488 MB, free: 11.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.57e-05/0.8674, allocations: 12.03 kB / 488 MB, free: 11.92 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001338/0.8688, allocations: 451 kB / 488.5 MB, free: 11.47 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00397/0.8728, allocations: 0.5813 MB / 489 MB, free: 10.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0115/0.8843, allocations: 3.095 MB / 492.1 MB, free: 7.73 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002832/0.8846, allocations: 230.3 kB / 492.4 MB, free: 7.504 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001045/0.8857, allocations: 315.9 kB / 492.7 MB, free: 7.195 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01127/0.897, allocations: 3.877 MB / 496.5 MB, free: 3.18 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000115/0.8971, allocations: 7.844 kB / 496.5 MB, free: 3.172 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004975/0.8976, allocations: 136 kB / 496.7 MB, free: 3.039 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002217/0.8979, allocations: 142.2 kB / 496.8 MB, free: 2.898 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009169/0.907, allocations: 3.031 MB / 499.8 MB, free: 15.86 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03376/0.9408, allocations: 13.41 MB / 0.5012 GB, free: 1.992 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006645/0.9475, allocations: 3.899 MB / 0.505 GB, free: 13.59 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002808/0.9504, allocations: 0.9734 MB / 0.506 GB, free: 12.61 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007065/0.9575, allocations: 2.65 MB / 0.5086 GB, free: 9.875 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.764e-05/0.9576, allocations: 43.56 kB / 0.5086 GB, free: 9.824 MB / 410.7 MB Notification: Performance of pre-optimization done (n=106): time 3.637e-06/0.9576, allocations: 4 kB / 0.5086 GB, free: 9.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=140): time 0.01698/0.9746, allocations: 5.154 MB / 0.5136 GB, free: 4.605 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.463e-05/0.9747, allocations: 68.72 kB / 0.5137 GB, free: 4.523 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003857/0.9785, allocations: 1.634 MB / 0.5153 GB, free: 2.844 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000267/0.9788, allocations: 49.7 kB / 0.5154 GB, free: 2.789 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001484/0.9803, allocations: 1.505 MB / 0.5168 GB, free: 1.266 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006702/0.981, allocations: 489 kB / 0.5173 GB, free: 0.7812 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001833/0.9812, allocations: 32 kB / 0.5173 GB, free: 0.75 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001984/0.9814, allocations: 377.9 kB / 0.5177 GB, free: 384 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2713/1.253, allocations: 0.7287 MB / 0.5184 GB, free: 86.55 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002446/1.255, allocations: 1.312 MB / 0.5197 GB, free: 85.86 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00262/1.258, allocations: 0.9739 MB / 0.5206 GB, free: 85.85 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-05/1.258, allocations: 4.719 kB / 0.5206 GB, free: 85.85 MB / 410.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.006558/1.265, allocations: 2.338 MB / 0.5229 GB, free: 85.77 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.641e-05/1.265, allocations: 13.97 kB / 0.5229 GB, free: 85.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.487e-05/1.265, allocations: 26.56 kB / 0.523 GB, free: 85.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005458/1.265, allocations: 119 kB / 0.5231 GB, free: 85.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003632/1.269, allocations: 485.8 kB / 0.5235 GB, free: 85.74 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001128/1.27, allocations: 1.305 MB / 0.5248 GB, free: 84.51 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002701/1.273, allocations: 112.7 kB / 0.5249 GB, free: 84.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003304/1.273, allocations: 82.22 kB / 0.525 GB, free: 84.5 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.0004664/1.274, allocations: 220.2 kB / 0.5252 GB, free: 84.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005811/1.274, allocations: 200.9 kB / 0.5254 GB, free: 84.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005169/1.279, allocations: 1.905 MB / 0.5273 GB, free: 84.29 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-05/1.279, allocations: 14.45 kB / 0.5273 GB, free: 84.29 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/1.28, allocations: 4.469 kB / 0.5273 GB, free: 84.29 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.263e-05/1.28, allocations: 6.281 kB / 0.5273 GB, free: 84.29 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01344/1.293, allocations: 4.911 MB / 0.5321 GB, free: 83.81 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.157e-05/1.293, allocations: 2.75 kB / 0.5321 GB, free: 83.81 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002709/1.296, allocations: 313.4 kB / 0.5324 GB, free: 83.81 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004824/1.296, allocations: 101.3 kB / 0.5325 GB, free: 83.79 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001606/1.296, allocations: 26.58 kB / 0.5325 GB, free: 83.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009233/1.297, allocations: 1.274 MB / 0.5337 GB, free: 82.55 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/1.297, allocations: 2.344 kB / 0.5337 GB, free: 82.55 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006233/1.304, allocations: 3.129 MB / 0.5368 GB, free: 82.07 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001373/1.305, allocations: 463.5 kB / 0.5372 GB, free: 81.89 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004534/1.306, allocations: 22.62 kB / 0.5373 GB, free: 81.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001788/1.307, allocations: 79.88 kB / 0.5373 GB, free: 81.89 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002135/1.308, allocations: 87.47 kB / 0.5374 GB, free: 81.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001213/1.308, allocations: 43.58 kB / 0.5375 GB, free: 81.89 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002692/1.31, allocations: 1.244 MB / 0.5387 GB, free: 81.73 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.452e-06/1.31, allocations: 0 / 0.5387 GB, free: 81.73 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003007/1.313, allocations: 0.5742 MB / 0.5392 GB, free: 81.73 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.007254/1.321, allocations: 4.573 MB / 0.5437 GB, free: 80.14 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004626/1.325, allocations: 2.093 MB / 0.5457 GB, free: 79.82 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.383e-06/1.325, allocations: 0 / 0.5457 GB, free: 79.82 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00219/1.328, allocations: 1.132 MB / 0.5469 GB, free: 79.51 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003567/1.331, allocations: 479.6 kB / 0.5473 GB, free: 79.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01487/1.346, allocations: 5.146 MB / 0.5523 GB, free: 78.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002836/1.349, allocations: 2.323 MB / 0.5546 GB, free: 77.64 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003006/1.352, allocations: 0.5084 MB / 0.5551 GB, free: 77.59 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002486/1.355, allocations: 1.168 MB / 0.5562 GB, free: 77.59 MB / 410.7 MB Notification: Performance of SimCode: time 1.633e-06/1.355, allocations: 0 / 0.5562 GB, free: 77.59 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1299/1.485, allocations: 51.09 MB / 0.6061 GB, free: 62.88 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001312/1.485, allocations: 197.4 kB / 0.6063 GB, free: 62.65 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.096/5.581, allocations: 0 / 0.6063 GB, free: 62.65 MB / 410.7 MB