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.881/1.881, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.128e-05/3.132e-05, allocations: 11.98 kB / 255.5 MB, free: 3.07 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09171/0.09176, allocations: 44.5 MB / 300 MB, free: 6.512 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4587/0.5505, allocations: 113.1 MB / 413.1 MB, free: 8.648 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002862/0.5508, allocations: 81.02 kB / 413.2 MB, free: 8.637 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7844/1.335, allocations: 133.5 MB / 0.5338 GB, free: 54.32 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.673e-06/1.335, allocations: 3.406 kB / 0.5338 GB, free: 54.32 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005759/1.336, allocations: 124.9 kB / 0.5339 GB, free: 54.31 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.02062/1.356, allocations: 4.769 MB / 0.5386 GB, free: 52.82 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.092e-05/1.357, allocations: 7.781 kB / 0.5386 GB, free: 52.82 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002685/1.359, allocations: 0.667 MB / 0.5393 GB, free: 52.75 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007704/1.367, allocations: 0.9831 MB / 0.5402 GB, free: 52.46 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01568/1.383, allocations: 4.476 MB / 0.5446 GB, free: 51.78 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004569/1.383, allocations: 375 kB / 0.5449 GB, free: 51.77 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002042/1.385, allocations: 486 kB / 0.5454 GB, free: 51.76 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02016/1.405, allocations: 6.556 MB / 0.5518 GB, free: 51.18 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002095/1.406, allocations: 11.45 kB / 0.5518 GB, free: 51.18 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001268/1.407, allocations: 207.3 kB / 0.552 GB, free: 51.18 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002914/1.407, allocations: 236.8 kB / 0.5522 GB, free: 51.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01691/1.424, allocations: 5.346 MB / 0.5575 GB, free: 51.14 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05293/1.477, allocations: 20.98 MB / 0.578 GB, free: 47.24 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01301/1.49, allocations: 9.804 MB / 0.5875 GB, free: 39.58 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005761/1.496, allocations: 2.404 MB / 0.5899 GB, free: 38.7 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01691/1.513, allocations: 6.51 MB / 0.5962 GB, free: 35.49 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.825e-05/1.513, allocations: 58.22 kB / 0.5963 GB, free: 35.43 MB / 410.7 MB Notification: Performance of pre-optimization done (n=217): time 5.821e-06/1.513, allocations: 0 / 0.5963 GB, free: 35.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=224): time 0.01938/1.533, allocations: 7.259 MB / 0.6034 GB, free: 31.97 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.235e-05/1.533, allocations: 75.72 kB / 0.6035 GB, free: 31.91 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005859/1.538, allocations: 2.608 MB / 0.606 GB, free: 30.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005172/1.539, allocations: 67.7 kB / 0.6061 GB, free: 30.84 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00145/1.541, allocations: 2.01 MB / 0.608 GB, free: 29.22 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009659/1.541, allocations: 0.752 MB / 0.6088 GB, free: 28.64 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002561/1.542, allocations: 47.72 kB / 0.6088 GB, free: 28.6 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001728/1.542, allocations: 411.9 kB / 0.6092 GB, free: 28.25 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002714/1.545, allocations: 1.211 MB / 0.6104 GB, free: 27.77 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003659/1.548, allocations: 1.765 MB / 0.6121 GB, free: 26.61 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003745/1.552, allocations: 1.511 MB / 0.6136 GB, free: 26.02 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.06e-05/1.552, allocations: 3.562 kB / 0.6136 GB, free: 26.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.008904/1.561, allocations: 3.784 MB / 0.6173 GB, free: 24.57 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.493e-05/1.561, allocations: 15.16 kB / 0.6173 GB, free: 24.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.107e-05/1.561, allocations: 15.69 kB / 0.6173 GB, free: 24.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002594/1.564, allocations: 0.6468 MB / 0.6179 GB, free: 24.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004201/1.568, allocations: 0.5534 MB / 0.6185 GB, free: 24.33 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01333/1.581, allocations: 9.986 MB / 0.6282 GB, free: 16.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003767/1.585, allocations: 112 kB / 0.6283 GB, free: 16.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002965/1.586, allocations: 103 kB / 0.6284 GB, free: 16.66 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.000606/1.586, allocations: 248.5 kB / 0.6287 GB, free: 16.47 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007019/1.587, allocations: 317.5 kB / 0.629 GB, free: 16.31 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008958/1.596, allocations: 3.777 MB / 0.6327 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.571e-05/1.596, allocations: 25.61 kB / 0.6327 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.634e-05/1.596, allocations: 11.59 kB / 0.6327 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.443e-05/1.596, allocations: 11.77 kB / 0.6327 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01938/1.615, allocations: 8.396 MB / 0.6409 GB, free: 11.08 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.281e-05/1.615, allocations: 0 / 0.6409 GB, free: 11.08 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002825/1.618, allocations: 340 kB / 0.6412 GB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003438/1.622, allocations: 0.8185 MB / 0.642 GB, free: 10.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002331/1.622, allocations: 57.23 kB / 0.6421 GB, free: 10.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01966/1.642, allocations: 14.37 MB / 0.6561 GB, free: 13.02 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.122e-06/1.642, allocations: 4 kB / 0.6561 GB, free: 13.01 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01371/1.655, allocations: 5.655 MB / 0.6617 GB, free: 7.867 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002583/1.658, allocations: 0.6951 MB / 0.6623 GB, free: 7.223 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007384/1.659, allocations: 52 kB / 0.6624 GB, free: 7.172 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002716/1.662, allocations: 127.4 kB / 0.6625 GB, free: 7.07 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006139/1.662, allocations: 190.4 kB / 0.6627 GB, free: 6.957 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002308/1.662, allocations: 63.89 kB / 0.6627 GB, free: 6.898 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004929/1.667, allocations: 2.002 MB / 0.6647 GB, free: 5.094 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.01e-07/1.667, allocations: 3.938 kB / 0.6647 GB, free: 5.09 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005471/1.673, allocations: 0.9764 MB / 0.6657 GB, free: 4.117 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.3072/1.98, allocations: 7.109 MB / 0.6726 GB, free: 63.76 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009523/1.99, allocations: 3.657 MB / 0.6762 GB, free: 63.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/1.99, allocations: 1 kB / 0.6762 GB, free: 63.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006688/1.996, allocations: 2.496 MB / 0.6786 GB, free: 62.54 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007127/2.004, allocations: 0.8615 MB / 0.6795 GB, free: 62.53 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02711/2.031, allocations: 8.976 MB / 0.6882 GB, free: 60.84 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005032/2.036, allocations: 3.42 MB / 0.6916 GB, free: 60.07 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004065/2.04, allocations: 1.829 MB / 0.6933 GB, free: 60.07 MB / 426.7 MB Notification: Performance of SimCode: time 1.683e-06/2.04, allocations: 0 / 0.6933 GB, free: 60.07 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.885/6.925, allocations: 219.3 MB / 0.9075 GB, free: 66.32 MB / 442.7 MB