Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.942/1.942, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.076e-05/3.09e-05, allocations: 8 kB / 255.5 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09084/0.0909, allocations: 44.5 MB / 300 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4414/0.5323, allocations: 103.7 MB / 403.6 MB, free: 11.16 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002801/0.5326, allocations: 83.14 kB / 403.7 MB, free: 11.15 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2943/0.827, allocations: 80.2 MB / 483.9 MB, free: 468 kB / 362.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.827, allocations: 0 / 483.9 MB, free: 468 kB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003531/0.8274, allocations: 79.86 kB / 484 MB, free: 388 kB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.01403/0.8415, allocations: 3.203 MB / 487.2 MB, free: 13.11 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.471e-05/0.8415, allocations: 12.03 kB / 487.2 MB, free: 13.1 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001642/0.8432, allocations: 446.9 kB / 487.6 MB, free: 12.65 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006246/0.8494, allocations: 0.7295 MB / 488.4 MB, free: 11.91 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01273/0.8622, allocations: 3.348 MB / 491.7 MB, free: 8.508 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003437/0.8626, allocations: 234.3 kB / 491.9 MB, free: 8.277 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001242/0.8639, allocations: 315.9 kB / 492.2 MB, free: 7.969 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01289/0.8768, allocations: 4.063 MB / 496.3 MB, free: 3.789 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001111/0.8769, allocations: 0 / 496.3 MB, free: 3.789 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005426/0.8775, allocations: 136 kB / 496.4 MB, free: 3.656 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002216/0.8777, allocations: 142.2 kB / 496.6 MB, free: 3.516 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01123/0.889, allocations: 3.3 MB / 499.9 MB, free: 216 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03593/0.9249, allocations: 13.56 MB / 0.5014 GB, free: 2.301 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01081/0.9358, allocations: 6.776 MB / 0.508 GB, free: 10.62 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003873/0.9397, allocations: 1.368 MB / 0.5094 GB, free: 9.254 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009678/0.9494, allocations: 3.62 MB / 0.5129 GB, free: 5.547 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.026e-05/0.9495, allocations: 51.52 kB / 0.5129 GB, free: 5.488 MB / 410.7 MB Notification: Performance of pre-optimization done (n=122): time 3.947e-06/0.9495, allocations: 4 kB / 0.5129 GB, free: 5.484 MB / 410.7 MB Notification: Performance of matching and sorting (n=142): time 0.01534/0.9649, allocations: 5.012 MB / 0.5178 GB, free: 380 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.498e-05/0.965, allocations: 68.67 kB / 0.5179 GB, free: 300 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2683/1.233, allocations: 1.608 MB / 0.5195 GB, free: 85.87 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003225/1.234, allocations: 53.86 kB / 0.5195 GB, free: 85.84 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001045/1.235, allocations: 1.36 MB / 0.5209 GB, free: 85.64 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006355/1.235, allocations: 493.9 kB / 0.5213 GB, free: 85.39 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001546/1.236, allocations: 36.03 kB / 0.5214 GB, free: 85.39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.00014/1.236, allocations: 376.3 kB / 0.5217 GB, free: 85.08 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001832/1.238, allocations: 0.7121 MB / 0.5224 GB, free: 85.07 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002124/1.24, allocations: 1.158 MB / 0.5235 GB, free: 84.57 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002254/1.242, allocations: 0.9304 MB / 0.5245 GB, free: 84.55 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.018e-05/1.242, allocations: 4.094 kB / 0.5245 GB, free: 84.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.00651/1.249, allocations: 2.4 MB / 0.5268 GB, free: 84.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.891e-05/1.249, allocations: 11.25 kB / 0.5268 GB, free: 84.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.728e-05/1.249, allocations: 13.94 kB / 0.5268 GB, free: 84.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002201/1.251, allocations: 0.4948 MB / 0.5273 GB, free: 84.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003081/1.254, allocations: 384.7 kB / 0.5277 GB, free: 84.41 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01198/1.266, allocations: 6.364 MB / 0.5339 GB, free: 81.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002434/1.268, allocations: 77.17 kB / 0.534 GB, free: 81.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002534/1.269, allocations: 72.28 kB / 0.534 GB, free: 81.75 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (178): * Single equations (assignments): 176 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(7,67.3%) 31} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004262/1.269, allocations: 209.2 kB / 0.5342 GB, free: 81.64 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004114/1.27, allocations: 192.4 kB / 0.5344 GB, free: 81.54 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005971/1.276, allocations: 2.413 MB / 0.5368 GB, free: 81.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.869e-05/1.276, allocations: 11.72 kB / 0.5368 GB, free: 81.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.735e-05/1.276, allocations: 12.34 kB / 0.5368 GB, free: 81.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.014e-05/1.276, allocations: 6.469 kB / 0.5368 GB, free: 81.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01233/1.288, allocations: 5.392 MB / 0.5421 GB, free: 80.53 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.108e-05/1.288, allocations: 0 / 0.5421 GB, free: 80.53 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001834/1.29, allocations: 216.9 kB / 0.5423 GB, free: 80.53 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002041/1.292, allocations: 0.4977 MB / 0.5428 GB, free: 80.48 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001863/1.292, allocations: 30.12 kB / 0.5428 GB, free: 80.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01229/1.305, allocations: 10.4 MB / 0.5529 GB, free: 73.86 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.94e-06/1.305, allocations: 6.406 kB / 0.553 GB, free: 73.86 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007353/1.312, allocations: 3.517 MB / 0.5564 GB, free: 73.16 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001374/1.313, allocations: 458.6 kB / 0.5568 GB, free: 72.97 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00044/1.314, allocations: 29.78 kB / 0.5569 GB, free: 72.97 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00174/1.316, allocations: 79.38 kB / 0.5569 GB, free: 72.96 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003499/1.316, allocations: 109.6 kB / 0.557 GB, free: 72.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001276/1.316, allocations: 41.73 kB / 0.5571 GB, free: 72.96 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002515/1.319, allocations: 1.238 MB / 0.5583 GB, free: 72.84 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.71e-07/1.319, allocations: 0 / 0.5583 GB, free: 72.84 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003284/1.322, allocations: 0.6197 MB / 0.5589 GB, free: 72.84 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,aimc.stator.zeroInductor.i0,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 95 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 12,(1,100.0%) 8,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008178/1.33, allocations: 4.752 MB / 0.5635 GB, free: 71.17 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005789/1.336, allocations: 2.227 MB / 0.5657 GB, free: 70.21 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.854e-06/1.336, allocations: 0 / 0.5657 GB, free: 70.21 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003412/1.339, allocations: 1.614 MB / 0.5673 GB, free: 69.24 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003621/1.343, allocations: 0.4899 MB / 0.5678 GB, free: 69.11 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01539/1.358, allocations: 5.593 MB / 0.5732 GB, free: 66.82 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002472/1.361, allocations: 2.367 MB / 0.5755 GB, free: 65.74 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002363/1.363, allocations: 1.142 MB / 0.5766 GB, free: 64.81 MB / 410.7 MB Notification: Performance of SimCode: time 1.202e-06/1.363, allocations: 4 kB / 0.5767 GB, free: 64.81 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.866/5.229, allocations: 109.6 MB / 0.6837 GB, free: 82.55 MB / 410.7 MB