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.934/1.934, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.294e-05/2.303e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.297, allocations: 44.5 MB / 294.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.195/0.492, allocations: 112.5 MB / 406.7 MB, free: 1.441 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003144/0.4924, allocations: 87.92 kB / 406.7 MB, free: 1.355 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7055/1.198, allocations: 131.8 MB / 0.5259 GB, free: 11.94 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.324e-06/1.198, allocations: 0 / 0.5259 GB, free: 11.94 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0005061/1.199, allocations: 131.9 kB / 0.526 GB, free: 11.81 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: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.01869/1.217, allocations: 4.763 MB / 0.5307 GB, free: 6.969 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.225e-05/1.217, allocations: 16.02 kB / 0.5307 GB, free: 6.953 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007292/1.225, allocations: 0.9812 MB / 0.5316 GB, free: 5.965 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01505/1.24, allocations: 4.469 MB / 0.536 GB, free: 1.418 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000308/1.24, allocations: 156 kB / 0.5362 GB, free: 1.266 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001757/1.242, allocations: 287.9 kB / 0.5364 GB, free: 0.9844 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01632/1.258, allocations: 5.108 MB / 0.5414 GB, free: 11.87 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02085/1.279, allocations: 5.904 MB / 0.5472 GB, free: 5.777 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001809/1.279, allocations: 7.844 kB / 0.5472 GB, free: 5.77 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009665/1.28, allocations: 4 kB / 0.5472 GB, free: 5.766 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003607/1.281, allocations: 241.8 kB / 0.5474 GB, free: 5.527 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3368/1.617, allocations: 20.02 MB / 0.567 GB, free: 39.87 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0124/1.63, allocations: 9.7 MB / 0.5764 GB, free: 33.26 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005434/1.635, allocations: 2.306 MB / 0.5787 GB, free: 33.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01761/1.653, allocations: 6.302 MB / 0.5849 GB, free: 32.46 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.651e-05/1.653, allocations: 61.44 kB / 0.5849 GB, free: 32.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=217): time 5.19e-06/1.653, allocations: 0 / 0.5849 GB, free: 32.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=224): time 0.0208/1.674, allocations: 7.242 MB / 0.592 GB, free: 31.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.904e-05/1.674, allocations: 74.66 kB / 0.5921 GB, free: 31 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00482/1.679, allocations: 2.096 MB / 0.5941 GB, free: 30.79 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000506/1.679, allocations: 28.92 kB / 0.5941 GB, free: 30.76 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001518/1.681, allocations: 2.044 MB / 0.5961 GB, free: 29.99 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009749/1.682, allocations: 0.7231 MB / 0.5968 GB, free: 29.55 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002259/1.682, allocations: 0 / 0.5968 GB, free: 29.55 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001786/1.682, allocations: 413.9 kB / 0.5972 GB, free: 29.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002441/1.685, allocations: 1.159 MB / 0.5984 GB, free: 29.22 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002921/1.688, allocations: 1.715 MB / 0.6 GB, free: 28.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004026/1.692, allocations: 1.584 MB / 0.6016 GB, free: 28.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.038e-05/1.692, allocations: 3.469 kB / 0.6016 GB, free: 28.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.009604/1.702, allocations: 3.712 MB / 0.6052 GB, free: 28.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.991e-05/1.702, allocations: 12.77 kB / 0.6052 GB, free: 28.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-05/1.702, allocations: 18.5 kB / 0.6052 GB, free: 28.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002537/1.704, allocations: 0.6354 MB / 0.6059 GB, free: 28.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004372/1.709, allocations: 0.5505 MB / 0.6064 GB, free: 28.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01296/1.722, allocations: 9.619 MB / 0.6158 GB, free: 21.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003366/1.725, allocations: 60.38 kB / 0.6159 GB, free: 21.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005495/1.726, allocations: 97.44 kB / 0.6159 GB, free: 21.48 MB / 378.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.0006052/1.726, allocations: 172.6 kB / 0.6161 GB, free: 21.35 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008927/1.735, allocations: 3.46 MB / 0.6195 GB, free: 19.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001215/1.736, allocations: 277.4 kB / 0.6198 GB, free: 19.76 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009461/1.746, allocations: 3.676 MB / 0.6233 GB, free: 18.23 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.783e-05/1.746, allocations: 21.12 kB / 0.6234 GB, free: 18.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.092e-05/1.746, allocations: 10.94 kB / 0.6234 GB, free: 18.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.856e-05/1.746, allocations: 10.59 kB / 0.6234 GB, free: 18.23 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01923/1.765, allocations: 7.676 MB / 0.6309 GB, free: 14.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.626e-05/1.765, allocations: 3.812 kB / 0.6309 GB, free: 14.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003004/1.768, allocations: 342.4 kB / 0.6312 GB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003409/1.772, allocations: 0.8057 MB / 0.632 GB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003521/1.772, allocations: 32.95 kB / 0.632 GB, free: 14.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01787/1.79, allocations: 13.84 MB / 0.6455 GB, free: 4.035 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.832e-06/1.79, allocations: 7.047 kB / 0.6455 GB, free: 4.035 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0122/1.802, allocations: 5.557 MB / 0.651 GB, free: 1.418 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002322/1.805, allocations: 0.6413 MB / 0.6516 GB, free: 1.012 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008908/1.806, allocations: 13.62 kB / 0.6516 GB, free: 1.008 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00258/1.808, allocations: 86.78 kB / 0.6517 GB, free: 1.008 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006751/1.809, allocations: 197.8 kB / 0.6519 GB, free: 0.9805 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002163/1.809, allocations: 63.19 kB / 0.6519 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003379/1.813, allocations: 1.57 MB / 0.6535 GB, free: 312 kB / 378.7 MB Notification: Performance of sort global known variables: time 6.31e-07/1.813, allocations: 0 / 0.6535 GB, free: 312 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.005085/1.818, allocations: 0.854 MB / 0.6543 GB, free: 296 kB / 378.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.01509/1.833, allocations: 6.918 MB / 0.6611 GB, free: 11.62 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.008744/1.842, allocations: 3.562 MB / 0.6645 GB, free: 8.398 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/1.842, allocations: 0 / 0.6645 GB, free: 8.398 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006194/1.848, allocations: 2.458 MB / 0.6669 GB, free: 6.152 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005529/1.853, allocations: 0.608 MB / 0.6675 GB, free: 5.699 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02764/1.881, allocations: 8.704 MB / 0.676 GB, free: 14.2 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00583/1.887, allocations: 3.423 MB / 0.6794 GB, free: 11.59 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004693/1.892, allocations: 1.836 MB / 0.6812 GB, free: 9.887 MB / 410.7 MB Notification: Performance of SimCode: time 1.293e-06/1.892, allocations: 0 / 0.6812 GB, free: 9.887 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.812/6.704, allocations: 215 MB / 0.8911 GB, free: 97.09 MB / 442.7 MB