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.803/1.803, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.241e-05/3.258e-05, allocations: 7.984 kB / 255.4 MB, free: 3.086 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08898/0.08904, allocations: 44.5 MB / 299.9 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4322/0.5213, allocations: 103.1 MB / 403 MB, free: 11.57 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002865/0.5216, allocations: 88.05 kB / 403.1 MB, free: 11.56 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2993/0.8209, allocations: 79.37 MB / 482.5 MB, free: 1.996 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.8209, allocations: 0 / 482.5 MB, free: 1.996 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003281/0.8213, allocations: 79.88 kB / 482.5 MB, free: 1.918 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.01354/0.8348, allocations: 3.164 MB / 485.7 MB, free: 14.69 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.317e-05/0.8349, allocations: 8.031 kB / 485.7 MB, free: 14.68 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001507/0.8364, allocations: 447 kB / 486.1 MB, free: 14.23 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006178/0.8426, allocations: 0.7261 MB / 486.9 MB, free: 13.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01261/0.8553, allocations: 3.253 MB / 490.1 MB, free: 10.19 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003448/0.8557, allocations: 238.3 kB / 490.4 MB, free: 9.957 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001294/0.857, allocations: 311.9 kB / 490.7 MB, free: 9.652 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01324/0.8702, allocations: 4.058 MB / 494.7 MB, free: 5.477 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001417/0.8704, allocations: 4 kB / 494.7 MB, free: 5.473 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006339/0.8711, allocations: 128 kB / 494.8 MB, free: 5.348 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002274/0.8713, allocations: 146.3 kB / 495 MB, free: 5.203 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01095/0.8823, allocations: 3.282 MB / 498.3 MB, free: 1.914 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03603/0.9183, allocations: 13.26 MB / 0.4995 GB, free: 4.328 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01121/0.9296, allocations: 6.822 MB / 0.5062 GB, free: 12.6 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003937/0.9336, allocations: 1.325 MB / 0.5075 GB, free: 11.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01121/0.9448, allocations: 3.7 MB / 0.5111 GB, free: 7.477 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.183e-05/0.9449, allocations: 51.52 kB / 0.5112 GB, free: 7.418 MB / 410.7 MB Notification: Performance of pre-optimization done (n=117): time 3.797e-06/0.9449, allocations: 4 kB / 0.5112 GB, free: 7.414 MB / 410.7 MB Notification: Performance of matching and sorting (n=120): time 0.01518/0.9601, allocations: 3.798 MB / 0.5149 GB, free: 3.508 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.915e-05/0.9602, allocations: 68.34 kB / 0.5149 GB, free: 3.43 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005328/0.9656, allocations: 1.47 MB / 0.5164 GB, free: 1.957 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003925/0.966, allocations: 49.7 kB / 0.5164 GB, free: 1.902 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001878/0.9679, allocations: 1.352 MB / 0.5177 GB, free: 0.5352 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008368/0.9688, allocations: 421.9 kB / 0.5181 GB, free: 120 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001661/0.969, allocations: 36 kB / 0.5182 GB, free: 84 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.2755/1.245, allocations: 376.7 kB / 0.5185 GB, free: 87.22 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001961/1.247, allocations: 0.5886 MB / 0.5191 GB, free: 87.22 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00195/1.249, allocations: 1.057 MB / 0.5201 GB, free: 86.67 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001979/1.251, allocations: 0.8031 MB / 0.5209 GB, free: 86.66 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.047e-05/1.251, allocations: 4.438 kB / 0.5209 GB, free: 86.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.005396/1.256, allocations: 2.107 MB / 0.523 GB, free: 86.46 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.248e-05/1.256, allocations: 11.91 kB / 0.523 GB, free: 86.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.461e-05/1.256, allocations: 13.91 kB / 0.523 GB, free: 86.46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001124/1.257, allocations: 264.3 kB / 0.5233 GB, free: 86.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002746/1.26, allocations: 357.9 kB / 0.5236 GB, free: 86.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006704/1.267, allocations: 5.667 MB / 0.5291 GB, free: 82.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002215/1.269, allocations: 76.12 kB / 0.5292 GB, free: 82.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001953/1.269, allocations: 70.16 kB / 0.5293 GB, free: 82.55 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.0003862/1.27, allocations: 203.5 kB / 0.5295 GB, free: 82.44 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004178/1.27, allocations: 177.4 kB / 0.5296 GB, free: 82.44 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005285/1.275, allocations: 2.033 MB / 0.5316 GB, free: 82.12 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.098e-05/1.275, allocations: 14.36 kB / 0.5316 GB, free: 82.12 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.345e-05/1.275, allocations: 6.25 kB / 0.5316 GB, free: 82.12 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.135e-05/1.275, allocations: 4.547 kB / 0.5317 GB, free: 82.12 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01192/1.287, allocations: 4.702 MB / 0.5362 GB, free: 81.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.141e-05/1.287, allocations: 0 / 0.5362 GB, free: 81.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001491/1.289, allocations: 166.9 kB / 0.5364 GB, free: 81.46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001966/1.291, allocations: 446.8 kB / 0.5368 GB, free: 81.43 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001816/1.291, allocations: 33.44 kB / 0.5369 GB, free: 81.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01183/1.303, allocations: 10.05 MB / 0.5467 GB, free: 74.89 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/1.303, allocations: 7 kB / 0.5467 GB, free: 74.89 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006263/1.309, allocations: 2.962 MB / 0.5496 GB, free: 74.28 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001209/1.311, allocations: 411.4 kB / 0.55 GB, free: 74.14 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004041/1.311, allocations: 32.5 kB / 0.55 GB, free: 74.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001619/1.313, allocations: 75.83 kB / 0.5501 GB, free: 74.14 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003309/1.313, allocations: 93.44 kB / 0.5502 GB, free: 74.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001111/1.313, allocations: 35.88 kB / 0.5502 GB, free: 74.14 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002408/1.315, allocations: 1.124 MB / 0.5513 GB, free: 74.02 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.603e-06/1.316, allocations: 0 / 0.5513 GB, free: 74.02 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003123/1.319, allocations: 0.5766 MB / 0.5519 GB, free: 74.02 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.008194/1.327, allocations: 4.255 MB / 0.556 GB, free: 72.34 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006552/1.333, allocations: 1.966 MB / 0.5579 GB, free: 71.88 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.597e-05/1.334, allocations: 2.844 kB / 0.5579 GB, free: 71.88 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005059/1.339, allocations: 1.477 MB / 0.5594 GB, free: 71.29 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005713/1.344, allocations: 471.8 kB / 0.5598 GB, free: 71.28 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02212/1.367, allocations: 5.164 MB / 0.5649 GB, free: 70.02 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004474/1.371, allocations: 2.287 MB / 0.5671 GB, free: 69.26 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003685/1.375, allocations: 1.11 MB / 0.5682 GB, free: 69.12 MB / 410.7 MB Notification: Performance of SimCode: time 2.254e-06/1.375, allocations: 0 / 0.5682 GB, free: 69.12 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.084/5.459, allocations: 119.5 MB / 0.6849 GB, free: 84.68 MB / 410.7 MB