Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.829/1.829, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.927e-05/2.942e-05, allocations: 4 kB / 255.5 MB, free: 2.625 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08923/0.08928, allocations: 44.5 MB / 300 MB, free: 6.059 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4352/0.5246, allocations: 103.6 MB / 403.6 MB, free: 11.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002901/0.5249, allocations: 83.62 kB / 403.7 MB, free: 11.4 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3183/0.8432, allocations: 80.21 MB / 483.9 MB, free: 104 kB / 362.7 MB Notification: Performance of FrontEnd: time 2.464e-06/0.8433, allocations: 0 / 483.9 MB, free: 104 kB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003684/0.8437, allocations: 75.94 kB / 484 MB, free: 28 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.0138/0.8575, allocations: 3.211 MB / 487.2 MB, free: 12.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.605e-05/0.8576, allocations: 8.031 kB / 487.2 MB, free: 12.74 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001836/0.8594, allocations: 450.9 kB / 487.6 MB, free: 12.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006351/0.8658, allocations: 0.7295 MB / 488.4 MB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01344/0.8793, allocations: 3.344 MB / 491.7 MB, free: 8.152 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003611/0.8797, allocations: 238.2 kB / 491.9 MB, free: 7.918 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001322/0.881, allocations: 319.8 kB / 492.2 MB, free: 7.605 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01294/0.894, allocations: 4.091 MB / 496.3 MB, free: 3.395 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001133/0.8941, allocations: 0 / 496.3 MB, free: 3.395 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005647/0.8947, allocations: 136 kB / 496.5 MB, free: 3.262 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002187/0.8949, allocations: 142.2 kB / 496.6 MB, free: 3.121 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01083/0.9058, allocations: 3.348 MB / 500 MB, free: 15.77 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0364/0.9422, allocations: 13.56 MB / 0.5015 GB, free: 1.855 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01056/0.9528, allocations: 6.794 MB / 0.5081 GB, free: 10.15 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00394/0.9568, allocations: 1.356 MB / 0.5094 GB, free: 8.801 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009862/0.9667, allocations: 3.628 MB / 0.513 GB, free: 5.09 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.839e-05/0.9668, allocations: 55.5 kB / 0.513 GB, free: 5.023 MB / 410.7 MB Notification: Performance of pre-optimization done (n=122): time 3.626e-06/0.9668, allocations: 0 / 0.513 GB, free: 5.023 MB / 410.7 MB Notification: Performance of matching and sorting (n=142): time 0.2809/1.248, allocations: 5.007 MB / 0.5179 GB, free: 85.51 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.744e-05/1.248, allocations: 65.91 kB / 0.518 GB, free: 85.45 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004283/1.252, allocations: 1.61 MB / 0.5196 GB, free: 85.29 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003245/1.253, allocations: 53.64 kB / 0.5196 GB, free: 85.26 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001431/1.254, allocations: 1.431 MB / 0.521 GB, free: 85.12 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006813/1.255, allocations: 491.1 kB / 0.5215 GB, free: 84.88 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001837/1.255, allocations: 33.16 kB / 0.5215 GB, free: 84.88 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001526/1.255, allocations: 371.6 kB / 0.5219 GB, free: 84.57 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00203/1.257, allocations: 0.7137 MB / 0.5226 GB, free: 84.57 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002374/1.26, allocations: 1.173 MB / 0.5237 GB, free: 84.05 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002312/1.262, allocations: 0.9311 MB / 0.5246 GB, free: 84.05 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.845e-05/1.262, allocations: 5.438 kB / 0.5246 GB, free: 84.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.006951/1.269, allocations: 2.562 MB / 0.5271 GB, free: 83.86 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.861e-05/1.269, allocations: 13.19 kB / 0.5271 GB, free: 83.86 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.286e-05/1.269, allocations: 13.06 kB / 0.5271 GB, free: 83.86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00227/1.271, allocations: 0.4914 MB / 0.5276 GB, free: 83.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003108/1.274, allocations: 389.5 kB / 0.528 GB, free: 83.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01246/1.287, allocations: 6.358 MB / 0.5342 GB, free: 81.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002478/1.289, allocations: 85.75 kB / 0.5343 GB, free: 81.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003233/1.29, allocations: 70.38 kB / 0.5344 GB, free: 81.18 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.0004384/1.29, allocations: 204.3 kB / 0.5345 GB, free: 81.07 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004892/1.291, allocations: 195.9 kB / 0.5347 GB, free: 80.97 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006075/1.297, allocations: 2.411 MB / 0.5371 GB, free: 80.62 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.011e-05/1.297, allocations: 19.67 kB / 0.5371 GB, free: 80.62 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.496e-05/1.297, allocations: 7.812 kB / 0.5371 GB, free: 80.62 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.557e-05/1.297, allocations: 12.39 kB / 0.5371 GB, free: 80.62 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01257/1.31, allocations: 5.389 MB / 0.5424 GB, free: 79.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.45e-05/1.31, allocations: 7.797 kB / 0.5424 GB, free: 79.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001885/1.312, allocations: 215.9 kB / 0.5426 GB, free: 79.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00211/1.314, allocations: 499.3 kB / 0.5431 GB, free: 79.91 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002412/1.314, allocations: 38.69 kB / 0.5431 GB, free: 79.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01287/1.327, allocations: 10.41 MB / 0.5533 GB, free: 73.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/1.327, allocations: 7.031 kB / 0.5533 GB, free: 73.3 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007649/1.335, allocations: 3.525 MB / 0.5567 GB, free: 72.59 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001423/1.336, allocations: 454.3 kB / 0.5572 GB, free: 72.4 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004257/1.336, allocations: 32.25 kB / 0.5572 GB, free: 72.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001774/1.338, allocations: 74.64 kB / 0.5573 GB, free: 72.4 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000422/1.339, allocations: 115.7 kB / 0.5574 GB, free: 72.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000136/1.339, allocations: 39.95 kB / 0.5574 GB, free: 72.39 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002875/1.342, allocations: 1.233 MB / 0.5586 GB, free: 72.28 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.082e-06/1.342, allocations: 0 / 0.5586 GB, free: 72.28 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003603/1.345, allocations: 0.6235 MB / 0.5592 GB, free: 72.28 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.008879/1.354, allocations: 4.742 MB / 0.5639 GB, free: 70.12 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005993/1.36, allocations: 2.282 MB / 0.5661 GB, free: 69.13 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/1.36, allocations: 0 / 0.5661 GB, free: 69.13 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003684/1.364, allocations: 1.659 MB / 0.5677 GB, free: 68.11 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003915/1.368, allocations: 478.7 kB / 0.5682 GB, free: 67.99 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01614/1.384, allocations: 5.685 MB / 0.5737 GB, free: 65.66 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003072/1.387, allocations: 2.423 MB / 0.5761 GB, free: 64.57 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002525/1.39, allocations: 414.4 kB / 0.5765 GB, free: 64.52 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002454/1.392, allocations: 1.124 MB / 0.5776 GB, free: 63.59 MB / 410.7 MB Notification: Performance of SimCode: time 1.553e-06/1.392, allocations: 3.406 kB / 0.5776 GB, free: 63.59 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1341/1.526, allocations: 54.41 MB / 0.6307 GB, free: 39.55 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002379/1.527, allocations: 202.2 kB / 0.6309 GB, free: 39.32 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.217/5.744, allocations: 11.88 kB / 0.6309 GB, free: 39.31 MB / 410.7 MB