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.861/1.861, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.306e-05/4.321e-05, allocations: 3.984 kB / 255.4 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09276/0.09285, allocations: 44.51 MB / 299.9 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.446/0.5389, allocations: 105.4 MB / 405.3 MB, free: 11 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002762/0.5392, allocations: 83.98 kB / 405.4 MB, free: 10.99 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3221/0.8614, allocations: 88.22 MB / 493.6 MB, free: 6.727 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.075e-06/0.8614, allocations: 4 kB / 493.6 MB, free: 6.723 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004332/0.8619, allocations: 95.88 kB / 493.7 MB, free: 6.629 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.01666/0.8786, allocations: 3.678 MB / 497.4 MB, free: 2.887 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.657e-05/0.8786, allocations: 8.031 kB / 497.4 MB, free: 2.879 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002289/0.8809, allocations: 0.5021 MB / 497.9 MB, free: 2.367 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006906/0.8879, allocations: 0.7875 MB / 498.7 MB, free: 1.574 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01436/0.9023, allocations: 3.676 MB / 0.4906 GB, free: 13.84 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004569/0.9028, allocations: 275.2 kB / 0.4909 GB, free: 13.57 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001625/0.9044, allocations: 359.9 kB / 0.4912 GB, free: 13.22 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01728/0.9217, allocations: 4.848 MB / 0.4959 GB, free: 8.246 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001401/0.9219, allocations: 0 / 0.4959 GB, free: 8.246 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007464/0.9227, allocations: 152 kB / 0.4961 GB, free: 8.098 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002568/0.9229, allocations: 163.2 kB / 0.4962 GB, free: 7.938 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01384/0.9368, allocations: 4.007 MB / 0.5001 GB, free: 3.926 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04528/0.9821, allocations: 15.98 MB / 0.5158 GB, free: 3.578 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2803/1.262, allocations: 7.685 MB / 0.5233 GB, free: 73.63 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004443/1.267, allocations: 1.649 MB / 0.5249 GB, free: 73.61 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01244/1.279, allocations: 4.623 MB / 0.5294 GB, free: 73.04 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.43e-05/1.279, allocations: 51.81 kB / 0.5294 GB, free: 73 MB / 410.7 MB Notification: Performance of pre-optimization done (n=159): time 4.599e-06/1.28, allocations: 0 / 0.5294 GB, free: 73 MB / 410.7 MB Notification: Performance of matching and sorting (n=162): time 0.01449/1.294, allocations: 5.479 MB / 0.5348 GB, free: 72.04 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.627e-05/1.294, allocations: 70.72 kB / 0.5349 GB, free: 71.97 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004567/1.299, allocations: 1.874 MB / 0.5367 GB, free: 71.75 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003806/1.299, allocations: 53.7 kB / 0.5367 GB, free: 71.71 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001243/1.3, allocations: 1.523 MB / 0.5382 GB, free: 71.13 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007162/1.301, allocations: 0.5485 MB / 0.5388 GB, free: 70.85 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001586/1.301, allocations: 42.06 kB / 0.5388 GB, free: 70.85 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001433/1.301, allocations: 380.9 kB / 0.5392 GB, free: 70.54 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001941/1.303, allocations: 0.8756 MB / 0.54 GB, free: 70.53 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002155/1.306, allocations: 1.339 MB / 0.5413 GB, free: 70.01 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002203/1.308, allocations: 1.093 MB / 0.5424 GB, free: 69.99 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.135e-05/1.308, allocations: 3.906 kB / 0.5424 GB, free: 69.99 MB / 410.7 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.006745/1.315, allocations: 3.031 MB / 0.5454 GB, free: 69.71 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.19e-05/1.315, allocations: 7.938 kB / 0.5454 GB, free: 69.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.465e-05/1.315, allocations: 15.75 kB / 0.5454 GB, free: 69.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002679/1.317, allocations: 0.7303 MB / 0.5461 GB, free: 69.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002614/1.32, allocations: 362.1 kB / 0.5464 GB, free: 69.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01405/1.334, allocations: 10.36 MB / 0.5566 GB, free: 64.35 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002725/1.337, allocations: 99.12 kB / 0.5567 GB, free: 64.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002095/1.337, allocations: 78.45 kB / 0.5567 GB, free: 64.34 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.000469/1.338, allocations: 211.8 kB / 0.5569 GB, free: 64.23 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005177/1.338, allocations: 222.9 kB / 0.5571 GB, free: 64.12 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007273/1.345, allocations: 3.047 MB / 0.5601 GB, free: 63.76 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.87e-05/1.345, allocations: 15.06 kB / 0.5601 GB, free: 63.76 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.544e-05/1.345, allocations: 11.25 kB / 0.5601 GB, free: 63.76 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.185e-05/1.345, allocations: 10.06 kB / 0.5602 GB, free: 63.76 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01469/1.36, allocations: 6.409 MB / 0.5664 GB, free: 63.06 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.186e-05/1.36, allocations: 3.531 kB / 0.5664 GB, free: 63.06 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001504/1.362, allocations: 181 kB / 0.5666 GB, free: 63.06 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003497/1.365, allocations: 0.9014 MB / 0.5675 GB, free: 63 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001979/1.365, allocations: 49.44 kB / 0.5675 GB, free: 63 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01953/1.385, allocations: 14.74 MB / 0.5819 GB, free: 51.93 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/1.385, allocations: 1.688 kB / 0.5819 GB, free: 51.93 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009629/1.395, allocations: 4.428 MB / 0.5862 GB, free: 49.78 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00171/1.396, allocations: 0.5211 MB / 0.5867 GB, free: 49.43 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004568/1.397, allocations: 37.05 kB / 0.5868 GB, free: 49.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001864/1.399, allocations: 91.45 kB / 0.5869 GB, free: 49.39 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00054/1.399, allocations: 157.2 kB / 0.587 GB, free: 49.37 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001471/1.399, allocations: 45.12 kB / 0.5871 GB, free: 49.36 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00288/1.402, allocations: 1.438 MB / 0.5885 GB, free: 48.75 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.21e-07/1.402, allocations: 1.594 kB / 0.5885 GB, free: 48.75 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003701/1.406, allocations: 0.7351 MB / 0.5892 GB, free: 48.68 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.01027/1.416, allocations: 5.67 MB / 0.5947 GB, free: 45.61 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00599/1.422, allocations: 2.943 MB / 0.5976 GB, free: 44.16 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/1.422, allocations: 3.781 kB / 0.5976 GB, free: 44.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004529/1.427, allocations: 2.181 MB / 0.5997 GB, free: 42.87 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004224/1.431, allocations: 0.5979 MB / 0.6003 GB, free: 42.72 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01641/1.448, allocations: 6.439 MB / 0.6066 GB, free: 40.11 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002829/1.451, allocations: 2.692 MB / 0.6092 GB, free: 38.95 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002549/1.453, allocations: 1.327 MB / 0.6105 GB, free: 37.85 MB / 410.7 MB Notification: Performance of SimCode: time 1.633e-06/1.453, allocations: 0 / 0.6105 GB, free: 37.85 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.216/5.669, allocations: 162.5 MB / 0.7693 GB, free: 31.15 MB / 410.7 MB