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.88/1.88, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.308e-05/3.315e-05, allocations: 4 kB / 255.5 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09045/0.09051, allocations: 44.5 MB / 300 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4405/0.5311, allocations: 103.1 MB / 403 MB, free: 11.23 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000297/0.5314, allocations: 87.95 kB / 403.1 MB, free: 11.22 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2939/0.8254, allocations: 79.39 MB / 482.5 MB, free: 1.895 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.8254, allocations: 0 / 482.5 MB, free: 1.895 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003454/0.8258, allocations: 75.92 kB / 482.6 MB, free: 1.82 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.0137/0.8395, allocations: 3.16 MB / 485.7 MB, free: 14.6 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.184e-05/0.8396, allocations: 8.031 kB / 485.7 MB, free: 14.59 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001584/0.8412, allocations: 459 kB / 486.2 MB, free: 14.13 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006151/0.8473, allocations: 0.7144 MB / 486.9 MB, free: 13.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01243/0.8598, allocations: 3.272 MB / 490.2 MB, free: 10.08 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003586/0.8602, allocations: 226.3 kB / 490.4 MB, free: 9.855 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001276/0.8615, allocations: 315.9 kB / 490.7 MB, free: 9.547 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01306/0.8746, allocations: 4.019 MB / 494.7 MB, free: 5.414 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001176/0.8747, allocations: 4 kB / 494.7 MB, free: 5.41 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005255/0.8753, allocations: 136 kB / 494.9 MB, free: 5.277 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002184/0.8755, allocations: 142.3 kB / 495 MB, free: 5.137 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01061/0.8861, allocations: 3.25 MB / 498.2 MB, free: 1.883 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0364/0.9226, allocations: 13.24 MB / 0.4995 GB, free: 4.312 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01084/0.9335, allocations: 6.796 MB / 0.5061 GB, free: 12.6 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00375/0.9373, allocations: 1.325 MB / 0.5074 GB, free: 11.28 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01014/0.9474, allocations: 3.711 MB / 0.5111 GB, free: 7.469 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.82e-05/0.9475, allocations: 47.52 kB / 0.5111 GB, free: 7.414 MB / 410.7 MB Notification: Performance of pre-optimization done (n=117): time 3.697e-06/0.9475, allocations: 0 / 0.5111 GB, free: 7.414 MB / 410.7 MB Notification: Performance of matching and sorting (n=120): time 0.01033/0.9579, allocations: 3.798 MB / 0.5148 GB, free: 3.512 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.553e-05/0.958, allocations: 64.41 kB / 0.5149 GB, free: 3.434 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0039/0.9619, allocations: 1.47 MB / 0.5163 GB, free: 1.961 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003208/0.9623, allocations: 45.7 kB / 0.5163 GB, free: 1.91 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001355/0.9636, allocations: 1.36 MB / 0.5177 GB, free: 0.5352 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006305/0.9643, allocations: 421.9 kB / 0.5181 GB, free: 120 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001464/0.9644, allocations: 28 kB / 0.5181 GB, free: 92 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.2654/1.23, allocations: 377.5 kB / 0.5185 GB, free: 86.94 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001881/1.232, allocations: 0.5895 MB / 0.519 GB, free: 86.94 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002108/1.234, allocations: 1.051 MB / 0.5201 GB, free: 86.39 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002041/1.236, allocations: 0.8009 MB / 0.5208 GB, free: 86.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.338e-05/1.236, allocations: 4.625 kB / 0.5209 GB, free: 86.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.005522/1.242, allocations: 2.067 MB / 0.5229 GB, free: 86.19 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.195e-05/1.242, allocations: 10.72 kB / 0.5229 GB, free: 86.19 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.365e-05/1.242, allocations: 17.38 kB / 0.5229 GB, free: 86.19 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001118/1.243, allocations: 265.4 kB / 0.5231 GB, free: 86.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002825/1.246, allocations: 361.9 kB / 0.5235 GB, free: 86.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007113/1.253, allocations: 5.655 MB / 0.529 GB, free: 82.28 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002356/1.255, allocations: 80.95 kB / 0.5291 GB, free: 82.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002947/1.256, allocations: 68.19 kB / 0.5292 GB, free: 82.28 MB / 410.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.0004302/1.256, allocations: 203.7 kB / 0.5294 GB, free: 82.17 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005522/1.257, allocations: 176.9 kB / 0.5295 GB, free: 82.17 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005725/1.262, allocations: 2.031 MB / 0.5315 GB, free: 81.85 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-05/1.262, allocations: 12.02 kB / 0.5315 GB, free: 81.85 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.387e-05/1.262, allocations: 7.031 kB / 0.5315 GB, free: 81.85 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.691e-05/1.262, allocations: 5.953 kB / 0.5315 GB, free: 81.85 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01305/1.276, allocations: 4.694 MB / 0.5361 GB, free: 81.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.471e-05/1.276, allocations: 9.078 kB / 0.5361 GB, free: 81.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001487/1.277, allocations: 170.2 kB / 0.5363 GB, free: 81.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001932/1.279, allocations: 449.6 kB / 0.5367 GB, free: 81.16 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000246/1.279, allocations: 29.44 kB / 0.5367 GB, free: 81.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01204/1.291, allocations: 10.03 MB / 0.5465 GB, free: 74.63 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.382e-06/1.291, allocations: 5.859 kB / 0.5465 GB, free: 74.63 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006505/1.298, allocations: 2.961 MB / 0.5494 GB, free: 74.01 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001296/1.299, allocations: 404.6 kB / 0.5498 GB, free: 73.86 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005502/1.3, allocations: 34.97 kB / 0.5499 GB, free: 73.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001786/1.302, allocations: 75 kB / 0.5499 GB, free: 73.86 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003668/1.302, allocations: 93.52 kB / 0.55 GB, free: 73.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001171/1.302, allocations: 42.73 kB / 0.5501 GB, free: 73.86 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002534/1.305, allocations: 1.12 MB / 0.5511 GB, free: 73.74 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.71e-07/1.305, allocations: 0 / 0.5511 GB, free: 73.74 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003361/1.308, allocations: 0.5772 MB / 0.5517 GB, free: 73.73 MB / 410.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.007448/1.316, allocations: 4.269 MB / 0.5559 GB, free: 72.04 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004406/1.32, allocations: 1.92 MB / 0.5578 GB, free: 71.61 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/1.32, allocations: 0 / 0.5578 GB, free: 71.61 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003266/1.323, allocations: 1.428 MB / 0.5591 GB, free: 71.06 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0037/1.327, allocations: 478.8 kB / 0.5596 GB, free: 71.05 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01505/1.342, allocations: 5.149 MB / 0.5646 GB, free: 69.8 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003005/1.345, allocations: 2.287 MB / 0.5669 GB, free: 69.04 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002547/1.348, allocations: 1.11 MB / 0.568 GB, free: 69.03 MB / 410.7 MB Notification: Performance of SimCode: time 2.074e-06/1.348, allocations: 6.906 kB / 0.568 GB, free: 69.03 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.984/5.332, allocations: 119.3 MB / 0.6844 GB, free: 84.14 MB / 410.7 MB