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.949/1.949, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.728e-05/2.731e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3184/0.3185, allocations: 44.5 MB / 294.2 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1881/0.5066, allocations: 104.7 MB / 398.9 MB, free: 9.117 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003164/0.507, allocations: 87.95 kB / 399 MB, free: 9.031 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.589/1.096, allocations: 87.1 MB / 486.1 MB, free: 62.93 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.865e-06/1.096, allocations: 0 / 486.1 MB, free: 62.93 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003873/1.096, allocations: 95.81 kB / 486.2 MB, free: 62.84 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: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.01502/1.111, allocations: 3.681 MB / 489.9 MB, free: 59.1 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/1.112, allocations: 8.031 kB / 489.9 MB, free: 59.09 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00645/1.118, allocations: 0.7913 MB / 490.7 MB, free: 58.3 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01387/1.132, allocations: 3.667 MB / 494.3 MB, free: 54.65 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003368/1.132, allocations: 120 kB / 494.5 MB, free: 54.53 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001628/1.134, allocations: 212 kB / 494.7 MB, free: 54.32 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01269/1.147, allocations: 3.795 MB / 498.5 MB, free: 50.53 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01015/1.157, allocations: 4.331 MB / 0.491 GB, free: 46.07 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001146/1.157, allocations: 7.906 kB / 0.491 GB, free: 46.06 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004508/1.157, allocations: 0 / 0.491 GB, free: 46.06 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001802/1.158, allocations: 159.2 kB / 0.4912 GB, free: 45.91 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03162/1.189, allocations: 15.28 MB / 0.5061 GB, free: 30.4 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009037/1.198, allocations: 7.593 MB / 0.5135 GB, free: 21.91 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003286/1.202, allocations: 1.6 MB / 0.5151 GB, free: 20.32 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01062/1.212, allocations: 4.494 MB / 0.5195 GB, free: 15.78 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.333e-05/1.212, allocations: 43.88 kB / 0.5195 GB, free: 15.73 MB / 362.7 MB Notification: Performance of pre-optimization done (n=159): time 1.056e-05/1.212, allocations: 7.984 kB / 0.5195 GB, free: 15.72 MB / 362.7 MB Notification: Performance of matching and sorting (n=162): time 0.01676/1.229, allocations: 5.573 MB / 0.5249 GB, free: 10.03 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.198e-05/1.229, allocations: 72.72 kB / 0.525 GB, free: 9.949 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002949/1.232, allocations: 1.565 MB / 0.5265 GB, free: 8.344 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002035/1.232, allocations: 33.64 kB / 0.5266 GB, free: 8.305 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009653/1.233, allocations: 1.545 MB / 0.5281 GB, free: 6.742 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004969/1.234, allocations: 0.5157 MB / 0.5286 GB, free: 6.219 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001443/1.234, allocations: 0 / 0.5286 GB, free: 6.219 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001355/1.234, allocations: 382.8 kB / 0.529 GB, free: 5.836 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001696/1.236, allocations: 0.8356 MB / 0.5298 GB, free: 5 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001927/1.238, allocations: 1.296 MB / 0.531 GB, free: 3.508 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00271/1.241, allocations: 1.181 MB / 0.5322 GB, free: 2.332 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.124e-05/1.241, allocations: 4 kB / 0.5322 GB, free: 2.328 MB / 362.7 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.007029/1.248, allocations: 2.954 MB / 0.5351 GB, free: 15.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.289e-05/1.248, allocations: 16.31 kB / 0.5351 GB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.869e-05/1.248, allocations: 16 kB / 0.5351 GB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002818/1.251, allocations: 0.7012 MB / 0.5358 GB, free: 14.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002674/1.253, allocations: 367.4 kB / 0.5361 GB, free: 14.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01628/1.27, allocations: 10.02 MB / 0.5459 GB, free: 3.742 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002411/1.272, allocations: 51.95 kB / 0.546 GB, free: 3.691 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002169/1.272, allocations: 71.98 kB / 0.546 GB, free: 3.621 MB / 378.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.0004709/1.273, allocations: 171.5 kB / 0.5462 GB, free: 3.449 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007852/1.281, allocations: 2.838 MB / 0.549 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005432/1.281, allocations: 205.5 kB / 0.5492 GB, free: 356 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008648/1.29, allocations: 2.994 MB / 0.5521 GB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.219e-05/1.29, allocations: 20 kB / 0.5521 GB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.975e-05/1.29, allocations: 12 kB / 0.5521 GB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.759e-05/1.29, allocations: 11.95 kB / 0.5521 GB, free: 13.24 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01545/1.305, allocations: 5.898 MB / 0.5579 GB, free: 7.246 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.069e-05/1.306, allocations: 0 / 0.5579 GB, free: 7.246 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001539/1.307, allocations: 179.9 kB / 0.5581 GB, free: 7.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003658/1.311, allocations: 0.8675 MB / 0.5589 GB, free: 6.184 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001524/1.311, allocations: 19.98 kB / 0.5589 GB, free: 6.164 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2838/1.595, allocations: 14.22 MB / 0.5728 GB, free: 85.28 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/1.595, allocations: 1.688 kB / 0.5728 GB, free: 85.28 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0103/1.605, allocations: 4.394 MB / 0.5771 GB, free: 84.65 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001483/1.607, allocations: 0.4921 MB / 0.5776 GB, free: 84.55 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004813/1.607, allocations: 11.88 kB / 0.5776 GB, free: 84.55 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001671/1.609, allocations: 61.89 kB / 0.5777 GB, free: 84.55 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005609/1.609, allocations: 164.2 kB / 0.5778 GB, free: 84.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001623/1.61, allocations: 43.83 kB / 0.5779 GB, free: 84.55 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002186/1.612, allocations: 1.173 MB / 0.579 GB, free: 84.41 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.81e-07/1.612, allocations: 0 / 0.579 GB, free: 84.41 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003375/1.615, allocations: 0.6458 MB / 0.5796 GB, free: 84.41 MB / 394.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.009925/1.625, allocations: 5.556 MB / 0.5851 GB, free: 82.88 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005533/1.631, allocations: 2.814 MB / 0.5878 GB, free: 82.31 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/1.631, allocations: 0 / 0.5878 GB, free: 82.31 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004163/1.635, allocations: 2.091 MB / 0.5899 GB, free: 81.63 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003451/1.638, allocations: 478.1 kB / 0.5903 GB, free: 81.61 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01517/1.654, allocations: 6.252 MB / 0.5964 GB, free: 80.28 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002895/1.656, allocations: 2.683 MB / 0.599 GB, free: 79.48 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00264/1.659, allocations: 1.33 MB / 0.6003 GB, free: 79.48 MB / 394.7 MB Notification: Performance of SimCode: time 1.152e-06/1.659, allocations: 4 kB / 0.6003 GB, free: 79.48 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.989/5.648, allocations: 159.9 MB / 0.7565 GB, free: 98.88 MB / 410.7 MB