Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.969/1.969, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.737e-05/3.745e-05, allocations: 4 kB / 255.5 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09668/0.09676, allocations: 44.5 MB / 300 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4593/0.5561, allocations: 105.4 MB / 405.3 MB, free: 11.04 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002802/0.5564, allocations: 83.92 kB / 405.4 MB, free: 11.03 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.332/0.8884, allocations: 88.24 MB / 493.7 MB, free: 6.734 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.8884, allocations: 0 / 493.7 MB, free: 6.734 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004397/0.8889, allocations: 95.88 kB / 493.7 MB, free: 6.641 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.01659/0.9055, allocations: 3.686 MB / 497.4 MB, free: 2.891 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.666e-05/0.9056, allocations: 12.03 kB / 497.4 MB, free: 2.879 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002187/0.9078, allocations: 0.4982 MB / 497.9 MB, free: 2.367 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006831/0.9146, allocations: 0.7836 MB / 498.7 MB, free: 1.578 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01457/0.9293, allocations: 3.672 MB / 0.4906 GB, free: 13.85 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004541/0.9298, allocations: 275.2 kB / 0.4909 GB, free: 13.58 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001657/0.9314, allocations: 359.9 kB / 0.4912 GB, free: 13.23 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01662/0.9481, allocations: 4.798 MB / 0.4959 GB, free: 8.305 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000159/0.9483, allocations: 7.984 kB / 0.4959 GB, free: 8.297 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001004/0.9493, allocations: 156 kB / 0.4961 GB, free: 8.145 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002393/0.9496, allocations: 155.2 kB / 0.4962 GB, free: 7.992 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01391/0.9635, allocations: 3.966 MB / 0.5001 GB, free: 4.023 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04554/1.009, allocations: 15.98 MB / 0.5157 GB, free: 3.684 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2807/1.29, allocations: 7.656 MB / 0.5232 GB, free: 73.55 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004601/1.295, allocations: 1.66 MB / 0.5248 GB, free: 73.54 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01252/1.307, allocations: 4.624 MB / 0.5293 GB, free: 72.96 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.534e-05/1.307, allocations: 54.73 kB / 0.5294 GB, free: 72.92 MB / 410.7 MB Notification: Performance of pre-optimization done (n=159): time 4.488e-06/1.307, allocations: 2.406 kB / 0.5294 GB, free: 72.92 MB / 410.7 MB Notification: Performance of matching and sorting (n=162): time 0.01553/1.323, allocations: 5.47 MB / 0.5347 GB, free: 71.96 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.96e-05/1.323, allocations: 71.66 kB / 0.5348 GB, free: 71.89 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005148/1.328, allocations: 1.87 MB / 0.5366 GB, free: 71.67 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004463/1.328, allocations: 54.83 kB / 0.5367 GB, free: 71.64 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001394/1.33, allocations: 1.527 MB / 0.5381 GB, free: 71.05 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009393/1.331, allocations: 0.5481 MB / 0.5387 GB, free: 70.77 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001996/1.331, allocations: 37.22 kB / 0.5387 GB, free: 70.77 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000178/1.331, allocations: 382.9 kB / 0.5391 GB, free: 70.46 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002176/1.333, allocations: 0.8754 MB / 0.5399 GB, free: 70.46 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002676/1.336, allocations: 1.329 MB / 0.5412 GB, free: 69.94 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002634/1.339, allocations: 1.092 MB / 0.5423 GB, free: 69.92 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.871e-05/1.339, allocations: 7.875 kB / 0.5423 GB, free: 69.92 MB / 410.7 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.007893/1.347, allocations: 2.986 MB / 0.5452 GB, free: 69.64 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.974e-05/1.347, allocations: 11.81 kB / 0.5452 GB, free: 69.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.115e-05/1.347, allocations: 15.75 kB / 0.5452 GB, free: 69.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002992/1.35, allocations: 0.7239 MB / 0.546 GB, free: 69.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002871/1.353, allocations: 362.9 kB / 0.5463 GB, free: 69.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01512/1.368, allocations: 10.36 MB / 0.5564 GB, free: 64.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002992/1.371, allocations: 106.6 kB / 0.5565 GB, free: 64.26 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004805/1.372, allocations: 74.92 kB / 0.5566 GB, free: 64.26 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 182 * 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: 4 * 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: 4 {(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005512/1.372, allocations: 219.2 kB / 0.5568 GB, free: 64.15 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007838/1.373, allocations: 220.8 kB / 0.557 GB, free: 64.04 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007781/1.381, allocations: 3.043 MB / 0.56 GB, free: 63.68 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.196e-05/1.381, allocations: 14.25 kB / 0.56 GB, free: 63.68 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-05/1.381, allocations: 10.84 kB / 0.56 GB, free: 63.68 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.785e-05/1.381, allocations: 6.938 kB / 0.56 GB, free: 63.68 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01663/1.398, allocations: 6.41 MB / 0.5663 GB, free: 62.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.811e-05/1.398, allocations: 0 / 0.5663 GB, free: 62.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001656/1.399, allocations: 178.1 kB / 0.5664 GB, free: 62.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003834/1.403, allocations: 0.9043 MB / 0.5673 GB, free: 62.92 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003376/1.403, allocations: 47.61 kB / 0.5674 GB, free: 62.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02035/1.424, allocations: 14.74 MB / 0.5818 GB, free: 51.75 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/1.424, allocations: 6.5 kB / 0.5818 GB, free: 51.75 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01028/1.434, allocations: 4.428 MB / 0.5861 GB, free: 49.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001954/1.436, allocations: 0.5118 MB / 0.5866 GB, free: 49.26 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007693/1.437, allocations: 38.34 kB / 0.5866 GB, free: 49.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002352/1.439, allocations: 96.28 kB / 0.5867 GB, free: 49.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006483/1.44, allocations: 159.7 kB / 0.5869 GB, free: 49.19 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001692/1.44, allocations: 47.23 kB / 0.5869 GB, free: 49.18 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003369/1.444, allocations: 1.428 MB / 0.5883 GB, free: 48.58 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.102e-06/1.444, allocations: 0 / 0.5883 GB, free: 48.58 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004469/1.448, allocations: 0.7353 MB / 0.589 GB, free: 48.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 86 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(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.01125/1.459, allocations: 5.674 MB / 0.5946 GB, free: 45.43 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006659/1.466, allocations: 2.881 MB / 0.5974 GB, free: 44.03 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/1.466, allocations: 6.406 kB / 0.5974 GB, free: 44.03 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005014/1.471, allocations: 2.116 MB / 0.5995 GB, free: 42.79 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004853/1.476, allocations: 0.5945 MB / 0.6 GB, free: 42.64 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01928/1.495, allocations: 6.441 MB / 0.6063 GB, free: 40.04 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003974/1.499, allocations: 2.689 MB / 0.609 GB, free: 38.88 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003058/1.502, allocations: 1.328 MB / 0.6103 GB, free: 37.79 MB / 410.7 MB Notification: Performance of SimCode: time 1.763e-06/1.503, allocations: 0 / 0.6103 GB, free: 37.79 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.253/5.756, allocations: 162.2 MB / 0.7687 GB, free: 31.57 MB / 410.7 MB