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.837/1.837, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.416e-05/2.431e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2917/0.2918, allocations: 44.5 MB / 294.2 MB, free: 14.2 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.193/0.4848, allocations: 112.4 MB / 406.6 MB, free: 1.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003095/0.4851, allocations: 87.94 kB / 406.7 MB, free: 1.344 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5531/1.038, allocations: 79.08 MB / 485.8 MB, free: 64.23 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.034e-06/1.038, allocations: 7.938 kB / 485.8 MB, free: 64.22 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000321/1.039, allocations: 91.88 kB / 485.9 MB, free: 64.13 MB / 362.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.01121/1.05, allocations: 3.431 MB / 489.3 MB, free: 60.64 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/1.05, allocations: 8.031 kB / 489.3 MB, free: 60.63 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004152/1.054, allocations: 0.6474 MB / 489.9 MB, free: 59.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01089/1.065, allocations: 3.345 MB / 493.3 MB, free: 56.65 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001404/1.065, allocations: 112 kB / 493.4 MB, free: 56.54 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006723/1.066, allocations: 203.9 kB / 493.6 MB, free: 56.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007845/1.074, allocations: 3.192 MB / 496.8 MB, free: 53.14 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008676/1.082, allocations: 3.81 MB / 0.4889 GB, free: 49.2 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001104/1.083, allocations: 11.94 kB / 0.4889 GB, free: 49.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003913/1.083, allocations: 0 / 0.4889 GB, free: 49.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001834/1.083, allocations: 158.8 kB / 0.489 GB, free: 49.03 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02814/1.111, allocations: 13.9 MB / 0.5026 GB, free: 34.84 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006234/1.118, allocations: 5.312 MB / 0.5078 GB, free: 28.84 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002588/1.12, allocations: 1.221 MB / 0.509 GB, free: 27.62 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00887/1.129, allocations: 3.815 MB / 0.5127 GB, free: 23.76 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.223e-05/1.129, allocations: 51.88 kB / 0.5128 GB, free: 23.7 MB / 362.7 MB Notification: Performance of pre-optimization done (n=131): time 3.807e-06/1.129, allocations: 4 kB / 0.5128 GB, free: 23.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=135): time 0.009792/1.139, allocations: 4.305 MB / 0.517 GB, free: 19.29 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.082e-05/1.139, allocations: 64.72 kB / 0.517 GB, free: 19.21 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002841/1.142, allocations: 1.544 MB / 0.5185 GB, free: 17.63 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001481/1.142, allocations: 25.7 kB / 0.5186 GB, free: 17.6 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009578/1.143, allocations: 1.577 MB / 0.5201 GB, free: 16 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004108/1.144, allocations: 457.3 kB / 0.5205 GB, free: 15.55 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000125/1.144, allocations: 0 / 0.5205 GB, free: 15.55 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001286/1.144, allocations: 378.8 kB / 0.5209 GB, free: 15.17 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00139/1.145, allocations: 0.6678 MB / 0.5215 GB, free: 14.51 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001673/1.147, allocations: 1.272 MB / 0.5228 GB, free: 12.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00228/1.149, allocations: 0.9937 MB / 0.5238 GB, free: 11.96 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-05/1.149, allocations: 8 kB / 0.5238 GB, free: 11.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004818/1.154, allocations: 2.23 MB / 0.5259 GB, free: 9.691 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.864e-05/1.154, allocations: 20.44 kB / 0.526 GB, free: 9.672 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.557e-05/1.154, allocations: 23.98 kB / 0.526 GB, free: 9.648 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005087/1.155, allocations: 146.5 kB / 0.5261 GB, free: 9.496 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003016/1.158, allocations: 463.3 kB / 0.5266 GB, free: 9.043 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002381/1.16, allocations: 2.945 MB / 0.5294 GB, free: 5.871 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002391/1.162, allocations: 83.84 kB / 0.5295 GB, free: 5.789 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001774/1.163, allocations: 84 kB / 0.5296 GB, free: 5.707 MB / 362.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 (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): 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.0003581/1.163, allocations: 164.1 kB / 0.5298 GB, free: 5.539 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004297/1.167, allocations: 1.98 MB / 0.5317 GB, free: 3.496 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003491/1.168, allocations: 201.5 kB / 0.5319 GB, free: 3.297 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004848/1.173, allocations: 2.132 MB / 0.534 GB, free: 1.109 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-05/1.173, allocations: 15.95 kB / 0.534 GB, free: 1.094 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/1.173, allocations: 4 kB / 0.534 GB, free: 1.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.651e-05/1.173, allocations: 7.969 kB / 0.534 GB, free: 1.082 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01162/1.184, allocations: 4.729 MB / 0.5386 GB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.204e-05/1.184, allocations: 4.281 kB / 0.5386 GB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002011/1.186, allocations: 247.6 kB / 0.5389 GB, free: 12.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001152/1.188, allocations: 271.1 kB / 0.5391 GB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001086/1.188, allocations: 11.98 kB / 0.5391 GB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008926/1.197, allocations: 6.817 MB / 0.5458 GB, free: 4.441 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.706e-06/1.197, allocations: 4.312 kB / 0.5458 GB, free: 4.438 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007771/1.204, allocations: 3.322 MB / 0.549 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001335/1.206, allocations: 450.5 kB / 0.5495 GB, free: 488 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004344/1.206, allocations: 4 kB / 0.5495 GB, free: 484 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001704/1.208, allocations: 67.83 kB / 0.5495 GB, free: 416 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003022/1.208, allocations: 100.1 kB / 0.5496 GB, free: 316 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001316/1.208, allocations: 43.98 kB / 0.5497 GB, free: 272 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002657/1.211, allocations: 1.153 MB / 0.5508 GB, free: 15.09 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.71e-07/1.211, allocations: 0 / 0.5508 GB, free: 15.09 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003036/1.214, allocations: 0.5195 MB / 0.5513 GB, free: 14.57 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 (113): * Single equations (assignments): 109 * 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.008844/1.223, allocations: 4.783 MB / 0.556 GB, free: 9.688 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004589/1.228, allocations: 1.972 MB / 0.5579 GB, free: 7.676 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/1.228, allocations: 0 / 0.5579 GB, free: 7.676 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002936/1.231, allocations: 1.313 MB / 0.5592 GB, free: 6.328 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003566/1.234, allocations: 427.4 kB / 0.5596 GB, free: 5.906 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01609/1.25, allocations: 5.561 MB / 0.565 GB, free: 264 kB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2647/1.515, allocations: 2.423 MB / 0.5674 GB, free: 93.06 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002711/1.518, allocations: 1.304 MB / 0.5687 GB, free: 93.06 MB / 394.7 MB Notification: Performance of SimCode: time 1.082e-06/1.518, allocations: 0 / 0.5687 GB, free: 93.06 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.577/5.095, allocations: 110.5 MB / 0.6765 GB, free: 21.64 MB / 394.7 MB