Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.845/1.845, allocations: 194.9 MB / 208.4 MB, free: 3.266 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.984e-05/3.009e-05, allocations: 4 kB / 255.4 MB, free: 3.109 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09018/0.09023, allocations: 44.51 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4441/0.5344, allocations: 113.1 MB / 413 MB, free: 9.035 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002807/0.5347, allocations: 84.89 kB / 413.1 MB, free: 9.023 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7766/1.311, allocations: 133.5 MB / 0.5338 GB, free: 57.97 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.285e-06/1.311, allocations: 0 / 0.5338 GB, free: 57.97 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005752/1.312, allocations: 125.1 kB / 0.5339 GB, free: 57.96 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.02024/1.332, allocations: 4.766 MB / 0.5386 GB, free: 56.47 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.047e-05/1.332, allocations: 10.47 kB / 0.5386 GB, free: 56.47 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002615/1.335, allocations: 0.6763 MB / 0.5392 GB, free: 56.4 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007626/1.343, allocations: 0.9741 MB / 0.5402 GB, free: 56.11 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01588/1.359, allocations: 4.492 MB / 0.5446 GB, free: 55.43 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004793/1.359, allocations: 367.4 kB / 0.5449 GB, free: 55.41 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001975/1.361, allocations: 479.5 kB / 0.5454 GB, free: 55.41 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0201/1.381, allocations: 6.61 MB / 0.5518 GB, free: 54.8 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002067/1.381, allocations: 9.906 kB / 0.5518 GB, free: 54.8 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001367/1.383, allocations: 206.6 kB / 0.552 GB, free: 54.8 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003216/1.383, allocations: 239 kB / 0.5523 GB, free: 54.79 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01658/1.4, allocations: 5.406 MB / 0.5575 GB, free: 54.74 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05296/1.453, allocations: 20.99 MB / 0.578 GB, free: 50.84 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01359/1.466, allocations: 9.83 MB / 0.5876 GB, free: 42.55 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006167/1.473, allocations: 2.403 MB / 0.59 GB, free: 41.67 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01934/1.492, allocations: 6.514 MB / 0.5964 GB, free: 38.46 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.849e-05/1.492, allocations: 56.72 kB / 0.5964 GB, free: 38.4 MB / 410.7 MB Notification: Performance of pre-optimization done (n=217): time 4.849e-06/1.492, allocations: 3.094 kB / 0.5964 GB, free: 38.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=224): time 0.02061/1.513, allocations: 7.26 MB / 0.6035 GB, free: 34.94 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.821e-05/1.513, allocations: 74.56 kB / 0.6036 GB, free: 34.88 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006543/1.519, allocations: 2.615 MB / 0.6061 GB, free: 33.86 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005222/1.52, allocations: 64.89 kB / 0.6062 GB, free: 33.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001574/1.522, allocations: 2.007 MB / 0.6081 GB, free: 32.19 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001002/1.523, allocations: 0.7492 MB / 0.6089 GB, free: 31.61 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002686/1.523, allocations: 51.66 kB / 0.6089 GB, free: 31.57 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002146/1.523, allocations: 415 kB / 0.6093 GB, free: 31.21 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00291/1.526, allocations: 1.207 MB / 0.6105 GB, free: 30.73 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003449/1.529, allocations: 1.781 MB / 0.6122 GB, free: 29.57 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003622/1.533, allocations: 1.507 MB / 0.6137 GB, free: 28.97 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.207e-05/1.533, allocations: 7.938 kB / 0.6137 GB, free: 28.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.009671/1.543, allocations: 3.831 MB / 0.6175 GB, free: 27.51 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.885e-05/1.543, allocations: 14.41 kB / 0.6175 GB, free: 27.51 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.23e-05/1.543, allocations: 13.94 kB / 0.6175 GB, free: 27.51 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002659/1.546, allocations: 0.652 MB / 0.6181 GB, free: 27.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004397/1.55, allocations: 0.5557 MB / 0.6187 GB, free: 27.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01379/1.564, allocations: 9.98 MB / 0.6284 GB, free: 19.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003884/1.568, allocations: 112.7 kB / 0.6285 GB, free: 19.63 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006078/1.569, allocations: 99.89 kB / 0.6286 GB, free: 19.61 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (269): * Single equations (assignments): 264 * 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,(3,88.9%) 25,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006676/1.569, allocations: 257.3 kB / 0.6289 GB, free: 19.42 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001004/1.57, allocations: 308.7 kB / 0.6292 GB, free: 19.26 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009841/1.58, allocations: 3.778 MB / 0.6328 GB, free: 17.61 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.734e-05/1.58, allocations: 27.62 kB / 0.6329 GB, free: 17.61 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.481e-05/1.58, allocations: 12.88 kB / 0.6329 GB, free: 17.61 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.399e-05/1.58, allocations: 10.69 kB / 0.6329 GB, free: 17.61 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02213/1.602, allocations: 8.407 MB / 0.6411 GB, free: 14.03 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.121e-05/1.602, allocations: 0 / 0.6411 GB, free: 14.03 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003051/1.605, allocations: 343.1 kB / 0.6414 GB, free: 13.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003579/1.609, allocations: 0.8218 MB / 0.6422 GB, free: 13.16 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004547/1.61, allocations: 55.89 kB / 0.6423 GB, free: 13.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01981/1.629, allocations: 14.39 MB / 0.6563 GB, free: 15.07 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/1.629, allocations: 6.438 kB / 0.6563 GB, free: 15.07 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01588/1.645, allocations: 5.665 MB / 0.6619 GB, free: 9.895 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002969/1.648, allocations: 0.6908 MB / 0.6626 GB, free: 9.254 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001248/1.65, allocations: 51.42 kB / 0.6626 GB, free: 9.207 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003588/1.653, allocations: 127.6 kB / 0.6627 GB, free: 9.102 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009127/1.654, allocations: 190.5 kB / 0.6629 GB, free: 8.988 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002983/1.655, allocations: 59.61 kB / 0.663 GB, free: 8.934 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00586/1.66, allocations: 2.003 MB / 0.6649 GB, free: 7.129 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.01e-07/1.66, allocations: 1.406 kB / 0.6649 GB, free: 7.129 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005862/1.666, allocations: 0.9842 MB / 0.6659 GB, free: 6.148 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (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,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (154): * Single equations (assignments): 148 * 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 {(3,88.9%) 25,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3032/1.97, allocations: 7.106 MB / 0.6728 GB, free: 65.58 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01357/1.983, allocations: 3.721 MB / 0.6765 GB, free: 65 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/1.983, allocations: 1.219 kB / 0.6765 GB, free: 65 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006569/1.99, allocations: 2.559 MB / 0.679 GB, free: 64.28 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006778/1.997, allocations: 0.8633 MB / 0.6798 GB, free: 64.27 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02681/2.024, allocations: 8.987 MB / 0.6886 GB, free: 62.58 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004501/2.028, allocations: 3.423 MB / 0.6919 GB, free: 61.81 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003899/2.032, allocations: 1.831 MB / 0.6937 GB, free: 61.81 MB / 426.7 MB Notification: Performance of SimCode: time 1.272e-06/2.032, allocations: 0 / 0.6937 GB, free: 61.81 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.829/6.861, allocations: 219.7 MB / 0.9083 GB, free: 69.71 MB / 442.7 MB