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.772/1.772, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.919e-05/2.926e-05, allocations: 8 kB / 255.5 MB, free: 3.078 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08647/0.08652, allocations: 44.51 MB / 300 MB, free: 6.516 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4422/0.5288, allocations: 113 MB / 413 MB, free: 8.754 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003555/0.5292, allocations: 94.16 kB / 413.1 MB, free: 8.738 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3104/0.8396, allocations: 80.14 MB / 493.2 MB, free: 7.168 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.8397, allocations: 0 / 493.2 MB, free: 7.168 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003452/0.84, allocations: 99.81 kB / 493.3 MB, free: 7.07 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.01285/0.8529, allocations: 3.424 MB / 496.8 MB, free: 3.582 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.8529, allocations: 8.031 kB / 496.8 MB, free: 3.574 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001417/0.8544, allocations: 493.2 kB / 497.3 MB, free: 3.082 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004273/0.8587, allocations: 0.6396 MB / 497.9 MB, free: 2.438 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01296/0.8716, allocations: 3.359 MB / 0.4895 GB, free: 15.02 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002972/0.872, allocations: 254.9 kB / 0.4897 GB, free: 14.77 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009183/0.8729, allocations: 347.9 kB / 0.4901 GB, free: 14.43 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0118/0.8847, allocations: 4.271 MB / 0.4943 GB, free: 10.02 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001146/0.8849, allocations: 4 kB / 0.4943 GB, free: 10.02 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005403/0.8854, allocations: 148 kB / 0.4944 GB, free: 9.871 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002468/0.8857, allocations: 162.8 kB / 0.4946 GB, free: 9.711 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01024/0.8959, allocations: 3.383 MB / 0.4979 GB, free: 6.328 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03602/0.932, allocations: 14.54 MB / 0.5121 GB, free: 7.352 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008267/0.9403, allocations: 5.313 MB / 0.5172 GB, free: 1.34 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00354/0.9439, allocations: 1.262 MB / 0.5185 GB, free: 80 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2714/1.215, allocations: 3.823 MB / 0.5222 GB, free: 82.57 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.258e-05/1.215, allocations: 49.94 kB / 0.5223 GB, free: 82.53 MB / 410.7 MB Notification: Performance of pre-optimization done (n=125): time 3.877e-06/1.215, allocations: 4 kB / 0.5223 GB, free: 82.53 MB / 410.7 MB Notification: Performance of matching and sorting (n=129): time 0.01131/1.227, allocations: 4.215 MB / 0.5264 GB, free: 81.62 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.99e-05/1.227, allocations: 64.91 kB / 0.5264 GB, free: 81.56 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00458/1.231, allocations: 1.823 MB / 0.5282 GB, free: 81.34 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003219/1.232, allocations: 48.12 kB / 0.5283 GB, free: 81.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0013/1.233, allocations: 1.563 MB / 0.5298 GB, free: 80.69 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006538/1.234, allocations: 459 kB / 0.5302 GB, free: 80.45 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000151/1.234, allocations: 37 kB / 0.5303 GB, free: 80.45 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001593/1.234, allocations: 383.5 kB / 0.5306 GB, free: 80.14 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001781/1.236, allocations: 0.6852 MB / 0.5313 GB, free: 80.13 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002113/1.238, allocations: 1.29 MB / 0.5326 GB, free: 79.41 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002329/1.24, allocations: 0.9344 MB / 0.5335 GB, free: 79.39 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-05/1.24, allocations: 6.875 kB / 0.5335 GB, free: 79.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=229) (initialization): time 0.005355/1.246, allocations: 2.249 MB / 0.5357 GB, free: 79.17 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.415e-05/1.246, allocations: 11.72 kB / 0.5357 GB, free: 79.17 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.344e-05/1.246, allocations: 19.56 kB / 0.5357 GB, free: 79.17 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005198/1.246, allocations: 149.4 kB / 0.5359 GB, free: 79.15 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003116/1.25, allocations: 460 kB / 0.5363 GB, free: 79.15 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002626/1.252, allocations: 3.071 MB / 0.5393 GB, free: 76.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002897/1.255, allocations: 106.4 kB / 0.5394 GB, free: 76.56 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002215/1.255, allocations: 84.84 kB / 0.5395 GB, free: 76.56 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.0004222/1.256, allocations: 219.8 kB / 0.5397 GB, free: 76.44 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000493/1.256, allocations: 217.2 kB / 0.5399 GB, free: 76.33 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004951/1.261, allocations: 2.14 MB / 0.542 GB, free: 76 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.645e-05/1.261, allocations: 11.41 kB / 0.542 GB, free: 76 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/1.261, allocations: 3.906 kB / 0.542 GB, free: 76 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.842e-05/1.261, allocations: 11.22 kB / 0.542 GB, free: 76 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01198/1.273, allocations: 5.127 MB / 0.547 GB, free: 75.31 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.948e-06/1.273, allocations: 0 / 0.547 GB, free: 75.31 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001942/1.275, allocations: 219.6 kB / 0.5472 GB, free: 75.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001172/1.277, allocations: 270.1 kB / 0.5475 GB, free: 75.28 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002511/1.277, allocations: 38.34 kB / 0.5475 GB, free: 75.28 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007378/1.284, allocations: 7.094 MB / 0.5544 GB, free: 70.02 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/1.284, allocations: 3.906 kB / 0.5544 GB, free: 70.02 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006606/1.291, allocations: 3.281 MB / 0.5576 GB, free: 69.19 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001488/1.292, allocations: 461.5 kB / 0.5581 GB, free: 68.98 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004878/1.293, allocations: 36.95 kB / 0.5581 GB, free: 68.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001885/1.295, allocations: 73.66 kB / 0.5582 GB, free: 68.98 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002759/1.295, allocations: 93.69 kB / 0.5583 GB, free: 68.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001153/1.295, allocations: 39.56 kB / 0.5583 GB, free: 68.98 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003008/1.298, allocations: 1.389 MB / 0.5597 GB, free: 68.82 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.51e-07/1.298, allocations: 2.812 kB / 0.5597 GB, free: 68.82 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003596/1.302, allocations: 0.6006 MB / 0.5603 GB, free: 68.82 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.007618/1.31, allocations: 4.788 MB / 0.5649 GB, free: 66.92 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004051/1.314, allocations: 1.984 MB / 0.5669 GB, free: 66.59 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.002e-06/1.314, allocations: 0 / 0.5669 GB, free: 66.59 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002569/1.316, allocations: 1.319 MB / 0.5682 GB, free: 66.15 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003755/1.32, allocations: 0.493 MB / 0.5687 GB, free: 66.02 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01654/1.337, allocations: 5.675 MB / 0.5742 GB, free: 63.77 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002944/1.34, allocations: 2.419 MB / 0.5766 GB, free: 62.72 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002537/1.342, allocations: 1.316 MB / 0.5778 GB, free: 61.64 MB / 410.7 MB Notification: Performance of SimCode: time 1.422e-06/1.342, allocations: 0 / 0.5778 GB, free: 61.64 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.944/5.286, allocations: 111.9 MB / 0.6871 GB, free: 80.32 MB / 410.7 MB