Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_LoadDump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.085/2.085, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.348e-05/3.362e-05, allocations: 2.031 kB / 292.2 MB, free: 8.734 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1146, allocations: 50.41 MB / 342.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5263/0.641, allocations: 122.7 MB / 465.3 MB, free: 4.195 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003282/0.6413, allocations: 96.41 kB / 465.4 MB, free: 4.145 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7185/1.36, allocations: 102.5 MB / 0.5547 GB, free: 96.54 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.854e-06/1.36, allocations: 0 / 0.5547 GB, free: 96.54 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005059/1.36, allocations: 100.7 kB / 0.5548 GB, free: 96.53 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1076 * Number of variables: 1076 Notification: Performance of Generate backend data structure: time 0.0183/1.379, allocations: 4.21 MB / 0.5589 GB, free: 94.86 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.061e-05/1.379, allocations: 11.62 kB / 0.5589 GB, free: 94.86 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003046/1.382, allocations: 0.6234 MB / 0.5595 GB, free: 94.78 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008622/1.391, allocations: 0.9583 MB / 0.5604 GB, free: 94.53 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01571/1.406, allocations: 3.947 MB / 0.5643 GB, free: 93.87 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005873/1.407, allocations: 477.5 kB / 0.5647 GB, free: 93.67 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00196/1.409, allocations: 408.9 kB / 0.5651 GB, free: 93.66 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01869/1.428, allocations: 5.163 MB / 0.5702 GB, free: 93.14 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000217/1.428, allocations: 7.781 kB / 0.5702 GB, free: 93.14 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001631/1.43, allocations: 180.7 kB / 0.5703 GB, free: 93.13 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002274/1.43, allocations: 172.1 kB / 0.5705 GB, free: 93.12 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01458/1.444, allocations: 4.132 MB / 0.5745 GB, free: 91.87 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05028/1.495, allocations: 17.97 MB / 0.5921 GB, free: 82.08 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01092/1.506, allocations: 8.09 MB / 0.6 GB, free: 75 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004803/1.511, allocations: 1.801 MB / 0.6017 GB, free: 74.34 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0158/1.526, allocations: 5.444 MB / 0.6071 GB, free: 71.37 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004457/1.531, allocations: 1.183 MB / 0.6082 GB, free: 70.84 MB / 442.7 MB Notification: Performance of pre-optimization done (n=176): time 9.267e-06/1.531, allocations: 0 / 0.6082 GB, free: 70.84 MB / 442.7 MB Notification: Performance of matching and sorting (n=208): time 0.03374/1.565, allocations: 6.919 MB / 0.615 GB, free: 67.73 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001958/1.565, allocations: 340.8 kB / 0.6153 GB, free: 67.35 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008124/1.573, allocations: 2.151 MB / 0.6174 GB, free: 65.67 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007059/1.574, allocations: 69.59 kB / 0.6175 GB, free: 65.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00295/1.577, allocations: 1.809 MB / 0.6192 GB, free: 63.94 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001478/1.579, allocations: 0.6953 MB / 0.6199 GB, free: 63.32 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000354/1.579, allocations: 52 kB / 0.62 GB, free: 63.27 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002684/1.579, allocations: 407.8 kB / 0.6204 GB, free: 62.89 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004141/1.583, allocations: 1.036 MB / 0.6214 GB, free: 61.93 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00531/1.589, allocations: 1.78 MB / 0.6231 GB, free: 59.97 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005181/1.594, allocations: 1.322 MB / 0.6244 GB, free: 58.82 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.415e-05/1.594, allocations: 7 kB / 0.6244 GB, free: 58.81 MB / 442.7 MB Notification: Performance of matching and sorting (n=323) (initialization): time 0.01594/1.61, allocations: 3.646 MB / 0.628 GB, free: 55.54 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002204/1.612, allocations: 7.86 MB / 0.6356 GB, free: 47.08 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.857e-05/1.613, allocations: 20 kB / 0.6357 GB, free: 47.06 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004193/1.617, allocations: 1.006 MB / 0.6366 GB, free: 46.24 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003483/1.62, allocations: 472.3 kB / 0.6371 GB, free: 45.84 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01958/1.64, allocations: 14.14 MB / 0.6509 GB, free: 32.01 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004217/1.644, allocations: 166.7 kB / 0.6511 GB, free: 31.88 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000522/1.645, allocations: 103.8 kB / 0.6512 GB, free: 31.78 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/1.645, allocations: 7.938 kB / 0.6512 GB, free: 31.77 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008806/1.654, allocations: 3.554 MB / 0.6546 GB, free: 28.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-05/1.654, allocations: 20 kB / 0.6547 GB, free: 28.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003419/1.657, allocations: 0.9857 MB / 0.6556 GB, free: 27.76 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003429/1.661, allocations: 459.5 kB / 0.6561 GB, free: 27.37 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01932/1.68, allocations: 14.13 MB / 0.6699 GB, free: 13.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002811/1.683, allocations: 159.4 kB / 0.67 GB, free: 13.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002877/1.683, allocations: 108 kB / 0.6701 GB, free: 13.22 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.loadControl.pulseStart,loadControl.pulseStart,$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,voltageController.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (265): * Single equations (assignments): 258 * 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.0007198/1.684, allocations: 272.3 kB / 0.6704 GB, free: 12.95 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008963/1.685, allocations: 284.6 kB / 0.6706 GB, free: 12.66 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009289/1.694, allocations: 3.235 MB / 0.6738 GB, free: 9.402 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.469e-05/1.694, allocations: 20 kB / 0.6738 GB, free: 9.383 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/1.694, allocations: 0 / 0.6738 GB, free: 9.383 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.812e-05/1.694, allocations: 11.95 kB / 0.6738 GB, free: 9.371 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01749/1.712, allocations: 7.025 MB / 0.6807 GB, free: 2.285 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.626e-05/1.712, allocations: 4.188 kB / 0.6807 GB, free: 2.281 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00242/1.714, allocations: 283.2 kB / 0.681 GB, free: 2.008 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004104/1.718, allocations: 1.024 MB / 0.682 GB, free: 0.9805 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003534/1.719, allocations: 51.97 kB / 0.682 GB, free: 0.9297 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02229/1.741, allocations: 11.61 MB / 0.6934 GB, free: 4.801 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.676e-06/1.741, allocations: 4 kB / 0.6934 GB, free: 4.797 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01274/1.754, allocations: 4.614 MB / 0.6979 GB, free: 108 kB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.3512/2.105, allocations: 0.5887 MB / 0.6984 GB, free: 100.8 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001331/2.107, allocations: 60.5 kB / 0.6985 GB, free: 100.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003758/2.11, allocations: 126.2 kB / 0.6986 GB, free: 100.8 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001183/2.112, allocations: 234.9 kB / 0.6988 GB, free: 100.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003022/2.112, allocations: 58.38 kB / 0.6989 GB, free: 100.8 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005707/2.118, allocations: 1.634 MB / 0.7005 GB, free: 100.6 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.683e-06/2.118, allocations: 0 / 0.7005 GB, free: 100.6 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01019/2.128, allocations: 1.508 MB / 0.702 GB, free: 100.6 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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.pulseStart,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 (147): * Single equations (assignments): 139 * 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 55,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01546/2.143, allocations: 5.943 MB / 0.7078 GB, free: 99.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01721/2.161, allocations: 6.17 MB / 0.7138 GB, free: 97.77 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.44e-05/2.161, allocations: 6.281 kB / 0.7138 GB, free: 97.77 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005627/2.166, allocations: 1.977 MB / 0.7157 GB, free: 97.31 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005783/2.172, allocations: 0.6232 MB / 0.7163 GB, free: 97.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02698/2.199, allocations: 7.374 MB / 0.7235 GB, free: 95.84 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004898/2.204, allocations: 2.871 MB / 0.7263 GB, free: 95.07 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003863/2.208, allocations: 1.603 MB / 0.7279 GB, free: 95.06 MB / 458.7 MB Notification: Performance of SimCode: time 1.473e-06/2.208, allocations: 0 / 0.7279 GB, free: 95.06 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.945/7.153, allocations: 182.1 MB / 0.9057 GB, free: 113.4 MB / 474.7 MB