Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_LoadDump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.831/1.831, allocations: 194.9 MB / 208.5 MB, free: 3.152 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.072e-05/3.083e-05, allocations: 4 kB / 255.5 MB, free: 3.078 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09139/0.09144, allocations: 44.51 MB / 300 MB, free: 6.504 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4464/0.5379, allocations: 114.9 MB / 414.9 MB, free: 8.449 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002838/0.5382, allocations: 84.48 kB / 415 MB, free: 8.438 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4104/0.9487, allocations: 101.5 MB / 0.5044 GB, free: 15.75 MB / 410.7 MB Notification: Performance of FrontEnd: time 5.44e-06/0.9487, allocations: 0 / 0.5044 GB, free: 15.75 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004927/0.9492, allocations: 107.9 kB / 0.5045 GB, free: 15.65 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: 1063 * Number of variables: 1063 Notification: Performance of Generate backend data structure: time 0.01808/0.9673, allocations: 4.164 MB / 0.5085 GB, free: 11.4 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/0.9674, allocations: 8.031 kB / 0.5085 GB, free: 11.39 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002586/0.97, allocations: 0.6069 MB / 0.5091 GB, free: 10.77 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008105/0.9782, allocations: 0.9585 MB / 0.5101 GB, free: 9.809 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01574/0.9939, allocations: 3.91 MB / 0.5139 GB, free: 5.816 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005879/0.9946, allocations: 478.4 kB / 0.5143 GB, free: 5.309 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001577/0.9962, allocations: 411.9 kB / 0.5147 GB, free: 4.906 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2843/1.281, allocations: 5.102 MB / 0.5197 GB, free: 67.03 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002482/1.281, allocations: 7.188 kB / 0.5197 GB, free: 67.03 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001438/1.282, allocations: 178.2 kB / 0.5199 GB, free: 67.03 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002465/1.283, allocations: 164.9 kB / 0.5201 GB, free: 67.02 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01459/1.297, allocations: 4.089 MB / 0.5241 GB, free: 66.99 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0486/1.346, allocations: 17.7 MB / 0.5413 GB, free: 63.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01085/1.357, allocations: 8.083 MB / 0.5492 GB, free: 57.72 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004825/1.362, allocations: 1.804 MB / 0.551 GB, free: 57.7 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01499/1.377, allocations: 5.387 MB / 0.5563 GB, free: 56.62 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002404/1.379, allocations: 1.169 MB / 0.5574 GB, free: 56.47 MB / 410.7 MB Notification: Performance of pre-optimization done (n=173): time 5.73e-06/1.379, allocations: 7.438 kB / 0.5574 GB, free: 56.47 MB / 410.7 MB Notification: Performance of matching and sorting (n=205): time 0.02109/1.4, allocations: 6.837 MB / 0.5641 GB, free: 55.39 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001302/1.4, allocations: 347.9 kB / 0.5644 GB, free: 55.02 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004831/1.405, allocations: 2.113 MB / 0.5665 GB, free: 54.79 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004931/1.406, allocations: 69.84 kB / 0.5665 GB, free: 54.76 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001884/1.408, allocations: 1.788 MB / 0.5683 GB, free: 53.99 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009537/1.409, allocations: 0.6853 MB / 0.569 GB, free: 53.47 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002415/1.409, allocations: 50.5 kB / 0.569 GB, free: 53.43 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001691/1.409, allocations: 409.5 kB / 0.5694 GB, free: 53.08 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002457/1.412, allocations: 1.02 MB / 0.5704 GB, free: 52.67 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003222/1.415, allocations: 1.766 MB / 0.5721 GB, free: 51.37 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003288/1.418, allocations: 1.305 MB / 0.5734 GB, free: 50.87 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.712e-05/1.418, allocations: 6.25 kB / 0.5734 GB, free: 50.87 MB / 410.7 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.01007/1.428, allocations: 3.622 MB / 0.5769 GB, free: 49.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001606/1.43, allocations: 7.761 MB / 0.5845 GB, free: 41.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.599e-05/1.43, allocations: 18.66 kB / 0.5845 GB, free: 41.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004225/1.434, allocations: 1.016 MB / 0.5855 GB, free: 41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003519/1.438, allocations: 469.3 kB / 0.586 GB, free: 40.99 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01971/1.458, allocations: 14.13 MB / 0.5998 GB, free: 30.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004019/1.462, allocations: 167.7 kB / 0.5999 GB, free: 30.08 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005635/1.462, allocations: 105 kB / 0.6 GB, free: 30.06 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/1.462, allocations: 5.625 kB / 0.6 GB, free: 30.06 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008917/1.471, allocations: 3.517 MB / 0.6035 GB, free: 28.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.02e-05/1.471, allocations: 25.67 kB / 0.6035 GB, free: 28.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003514/1.475, allocations: 0.9944 MB / 0.6045 GB, free: 28.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003459/1.478, allocations: 464 kB / 0.6049 GB, free: 28.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01896/1.497, allocations: 14.13 MB / 0.6187 GB, free: 17.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00259/1.5, allocations: 162.2 kB / 0.6189 GB, free: 17.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004074/1.501, allocations: 105.2 kB / 0.619 GB, free: 17.44 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 89 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.loadControl.pulsStart,loadControl.pulsStart,$PRE.switch.closerWithArc[1].off,switch.closerWithArc[1].off,$PRE.switch.closerWithArc[1].quenched,switch.closerWithArc[1].quenched,$PRE.switch.closerWithArc[1].tSwitch,switch.closerWithArc[1].tSwitch,$PRE.switch.closerWithArc[2].off,switch.closerWithArc[2].off,$PRE.switch.closerWithArc[2].quenched,switch.closerWithArc[2].quenched,$PRE.switch.closerWithArc[2].tSwitch,switch.closerWithArc[2].tSwitch,$PRE.switch.closerWithArc[3].off,switch.closerWithArc[3].off,$PRE.switch.closerWithArc[3].quenched,switch.closerWithArc[3].quenched,$PRE.switch.closerWithArc[3].tSwitch,switch.closerWithArc[3].tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (261): * Single equations (assignments): 254 * 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: 6 * 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: 3 {(2,100.0%) 22,(3,100.0%) 21,(1,100.0%) 8} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0007146/1.501, allocations: 275.8 kB / 0.6192 GB, free: 17.25 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008505/1.502, allocations: 271.6 kB / 0.6195 GB, free: 17.11 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009256/1.511, allocations: 3.196 MB / 0.6226 GB, free: 15.86 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.616e-05/1.511, allocations: 18.56 kB / 0.6226 GB, free: 15.86 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/1.512, allocations: 7.766 kB / 0.6226 GB, free: 15.86 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.754e-05/1.512, allocations: 10.31 kB / 0.6226 GB, free: 15.86 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02284/1.534, allocations: 6.952 MB / 0.6294 GB, free: 12.92 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.421e-05/1.534, allocations: 3.906 kB / 0.6294 GB, free: 12.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003165/1.538, allocations: 276.9 kB / 0.6297 GB, free: 12.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005345/1.543, allocations: 1.024 MB / 0.6307 GB, free: 12.63 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003668/1.543, allocations: 52.3 kB / 0.6307 GB, free: 12.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02671/1.57, allocations: 11.52 MB / 0.642 GB, free: 20.45 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.404e-06/1.57, allocations: 10.02 kB / 0.642 GB, free: 20.45 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01469/1.585, allocations: 4.603 MB / 0.6465 GB, free: 18.32 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002608/1.588, allocations: 0.5862 MB / 0.6471 GB, free: 17.93 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001113/1.589, allocations: 59 kB / 0.6471 GB, free: 17.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00373/1.593, allocations: 124.7 kB / 0.6473 GB, free: 17.86 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009711/1.594, allocations: 233.6 kB / 0.6475 GB, free: 17.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002634/1.594, allocations: 59.88 kB / 0.6475 GB, free: 17.81 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0047/1.599, allocations: 1.614 MB / 0.6491 GB, free: 17.15 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.022e-06/1.599, allocations: 0 / 0.6491 GB, free: 17.15 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00779/1.606, allocations: 1.5 MB / 0.6506 GB, free: 15.79 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.strayReluctance.Phi.re,speed.phi,speed.w,voltageController.I.y,loadInductor.inductor[2].i,loadInductor.inductor[3].i) * Number of discrete variables: 14 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,loadControl.pulsStart,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[1].tSwitch,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched,switch.closerWithArc[2].tSwitch,switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[3].tSwitch) * Number of discrete states: 6 (switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched) * Top-level inputs: 0 Notification: Strong component statistics for simulation (146): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {4 54,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01261/1.619, allocations: 5.965 MB / 0.6564 GB, free: 10.29 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01744/1.637, allocations: 6.126 MB / 0.6624 GB, free: 4.484 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/1.637, allocations: 0 / 0.6624 GB, free: 4.484 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005537/1.642, allocations: 1.971 MB / 0.6643 GB, free: 2.641 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005098/1.647, allocations: 0.6232 MB / 0.6649 GB, free: 2.156 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02429/1.672, allocations: 7.32 MB / 0.6721 GB, free: 11.77 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00386/1.676, allocations: 2.851 MB / 0.6748 GB, free: 9.57 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003623/1.679, allocations: 1.59 MB / 0.6764 GB, free: 8.102 MB / 442.7 MB Notification: Performance of SimCode: time 2.094e-06/1.679, allocations: 0 / 0.6764 GB, free: 8.102 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.934/6.613, allocations: 180.3 MB / 0.8525 GB, free: 93.63 MB / 458.7 MB