Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.961/1.961, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.063e-05/2.072e-05, allocations: 0 / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2956/0.2957, allocations: 44.49 MB / 294.2 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1768/0.4725, allocations: 102.4 MB / 396.6 MB, free: 11.45 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003195/0.4729, allocations: 83.89 kB / 396.7 MB, free: 11.37 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5287/1.002, allocations: 78.38 MB / 475.1 MB, free: 73.49 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.234e-06/1.002, allocations: 4 kB / 475.1 MB, free: 73.49 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002564/1.002, allocations: 79.88 kB / 475.1 MB, free: 73.41 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: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.01241/1.014, allocations: 3.158 MB / 478.3 MB, free: 70.2 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.384e-05/1.014, allocations: 9.094 kB / 478.3 MB, free: 70.19 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006019/1.021, allocations: 0.7219 MB / 479 MB, free: 69.46 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01159/1.032, allocations: 3.276 MB / 482.3 MB, free: 66.19 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002039/1.032, allocations: 103.9 kB / 482.4 MB, free: 66.09 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001212/1.034, allocations: 187.9 kB / 482.6 MB, free: 65.9 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009074/1.043, allocations: 3.101 MB / 485.7 MB, free: 62.8 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01104/1.054, allocations: 3.597 MB / 489.3 MB, free: 59.09 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001298/1.054, allocations: 3.938 kB / 489.3 MB, free: 59.08 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007041/1.055, allocations: 4 kB / 489.3 MB, free: 59.08 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001757/1.055, allocations: 146.3 kB / 489.4 MB, free: 58.93 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02924/1.084, allocations: 12.63 MB / 0.4903 GB, free: 46.11 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008165/1.092, allocations: 6.753 MB / 0.4969 GB, free: 38.47 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00281/1.095, allocations: 1.262 MB / 0.4981 GB, free: 37.21 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008031/1.103, allocations: 3.602 MB / 0.5016 GB, free: 33.56 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/1.103, allocations: 43.88 kB / 0.5017 GB, free: 33.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=117): time 3.536e-06/1.103, allocations: 4 kB / 0.5017 GB, free: 33.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=120): time 0.009888/1.113, allocations: 3.999 MB / 0.5056 GB, free: 29.39 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.006e-05/1.113, allocations: 64.72 kB / 0.5057 GB, free: 29.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002224/1.116, allocations: 1.204 MB / 0.5068 GB, free: 28.11 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002203/1.116, allocations: 25.7 kB / 0.5069 GB, free: 28.07 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008297/1.117, allocations: 1.375 MB / 0.5082 GB, free: 26.68 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004064/1.117, allocations: 410 kB / 0.5086 GB, free: 26.28 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001077/1.117, allocations: 0 / 0.5086 GB, free: 26.28 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.00012/1.117, allocations: 370.8 kB / 0.5089 GB, free: 25.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001219/1.118, allocations: 0.5662 MB / 0.5095 GB, free: 25.34 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00137/1.12, allocations: 1.017 MB / 0.5105 GB, free: 24.12 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002302/1.122, allocations: 0.9001 MB / 0.5114 GB, free: 23.22 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.506e-05/1.122, allocations: 4 kB / 0.5114 GB, free: 23.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.004979/1.127, allocations: 2.067 MB / 0.5134 GB, free: 21.11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.152e-05/1.127, allocations: 12.31 kB / 0.5134 GB, free: 21.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.493e-05/1.127, allocations: 20 kB / 0.5134 GB, free: 21.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009691/1.128, allocations: 255.3 kB / 0.5137 GB, free: 20.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002515/1.131, allocations: 363.4 kB / 0.514 GB, free: 20.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00579/1.137, allocations: 5.458 MB / 0.5193 GB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002041/1.139, allocations: 52.11 kB / 0.5194 GB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002038/1.139, allocations: 67.98 kB / 0.5195 GB, free: 14.54 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * 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): 174 * 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: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003465/1.139, allocations: 144.5 kB / 0.5196 GB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004797/1.144, allocations: 1.911 MB / 0.5215 GB, free: 12.42 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004891/1.145, allocations: 158 kB / 0.5216 GB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005235/1.15, allocations: 2.043 MB / 0.5236 GB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.642e-05/1.15, allocations: 12 kB / 0.5236 GB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/1.15, allocations: 8 kB / 0.5236 GB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-05/1.15, allocations: 3.984 kB / 0.5236 GB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01025/1.16, allocations: 4.299 MB / 0.5278 GB, free: 5.734 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.056e-05/1.16, allocations: 7.938 kB / 0.5278 GB, free: 5.727 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001405/1.162, allocations: 167.8 kB / 0.528 GB, free: 5.562 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001786/1.164, allocations: 440.2 kB / 0.5284 GB, free: 5.117 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001628/1.164, allocations: 19.94 kB / 0.5284 GB, free: 5.098 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01254/1.176, allocations: 9.67 MB / 0.5379 GB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.552e-06/1.176, allocations: 0 / 0.5379 GB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007665/1.184, allocations: 2.987 MB / 0.5408 GB, free: 7.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001264/1.185, allocations: 379 kB / 0.5412 GB, free: 7.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004095/1.186, allocations: 15.94 kB / 0.5412 GB, free: 7.324 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001466/1.187, allocations: 51.95 kB / 0.5412 GB, free: 7.273 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000357/1.188, allocations: 93.3 kB / 0.5413 GB, free: 7.184 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001225/1.188, allocations: 39.98 kB / 0.5413 GB, free: 7.145 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002049/1.19, allocations: 0.8996 MB / 0.5422 GB, free: 6.246 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.31e-07/1.19, allocations: 4 kB / 0.5422 GB, free: 6.242 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003318/1.193, allocations: 0.5 MB / 0.5427 GB, free: 5.738 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 79 * 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 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008686/1.202, allocations: 4.194 MB / 0.5468 GB, free: 1.441 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004452/1.206, allocations: 1.886 MB / 0.5487 GB, free: 15.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/1.206, allocations: 0 / 0.5487 GB, free: 15.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003457/1.21, allocations: 1.409 MB / 0.55 GB, free: 14.05 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003065/1.213, allocations: 367.1 kB / 0.5504 GB, free: 13.69 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01554/1.229, allocations: 4.999 MB / 0.5553 GB, free: 8.613 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003197/1.232, allocations: 2.281 MB / 0.5575 GB, free: 6.305 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002575/1.234, allocations: 1.097 MB / 0.5586 GB, free: 5.207 MB / 394.7 MB Notification: Performance of SimCode: time 1.653e-06/1.234, allocations: 4 kB / 0.5586 GB, free: 5.203 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.755/4.989, allocations: 117.2 MB / 0.673 GB, free: 20.6 MB / 394.7 MB