Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_LoadDump",fmuType="cs",version="2.0",platforms={"dynamic"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Modelica): time 1.922/1.922, allocations: 194.9 MB / 202.6 MB, free: 6.895 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2512/2.173, allocations: 46.84 MB / 249.4 MB, free: 5.324 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09242/2.266, allocations: 44.5 MB / 293.9 MB, free: 10.87 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3668/2.633, allocations: 114.2 MB / 408.1 MB, free: 8.125 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000328/2.633, allocations: 81.7 kB / 408.2 MB, free: 8.086 MB / 314.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.657/3.29, allocations: 104.4 MB / 0.5006 GB, free: 53.02 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/3.29, allocations: 7.781 kB / 0.5006 GB, free: 53.02 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0098/3.3, allocations: 0.9704 MB / 0.5016 GB, free: 52.78 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01729/3.317, allocations: 3.923 MB / 0.5054 GB, free: 52.14 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004634/3.318, allocations: 344.7 kB / 0.5057 GB, free: 51.94 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001623/3.32, allocations: 247.3 kB / 0.506 GB, free: 51.94 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01515/3.335, allocations: 3.973 MB / 0.5098 GB, free: 51.91 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01756/3.352, allocations: 4.619 MB / 0.5143 GB, free: 51.42 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001646/3.353, allocations: 9.312 kB / 0.5144 GB, free: 51.42 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000711/3.353, allocations: 3.594 kB / 0.5144 GB, free: 51.42 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001931/3.353, allocations: 170.6 kB / 0.5145 GB, free: 51.41 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05187/3.405, allocations: 17.05 MB / 0.5312 GB, free: 47.74 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004475/3.41, allocations: 1.538 MB / 0.5327 GB, free: 47.71 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005368/3.415, allocations: 1.854 MB / 0.5345 GB, free: 47.67 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01802/3.433, allocations: 5.691 MB / 0.54 GB, free: 46.55 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003495/3.437, allocations: 1.341 MB / 0.5413 GB, free: 46.4 MB / 394.7 MB Notification: Performance of pre-optimization done (n=212): time 6.693e-06/3.437, allocations: 0 / 0.5413 GB, free: 46.4 MB / 394.7 MB Notification: Performance of matching and sorting (n=245): time 0.03108/3.468, allocations: 7.488 MB / 0.5487 GB, free: 44.14 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001456/3.468, allocations: 343.6 kB / 0.549 GB, free: 43.76 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004907/3.473, allocations: 1.795 MB / 0.5507 GB, free: 43.02 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005435/3.474, allocations: 40.66 kB / 0.5508 GB, free: 42.98 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001559/3.475, allocations: 1.486 MB / 0.5522 GB, free: 41.93 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001172/3.477, allocations: 0.7829 MB / 0.553 GB, free: 41.32 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002789/3.477, allocations: 0 / 0.553 GB, free: 41.32 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000219/3.477, allocations: 426.6 kB / 0.5534 GB, free: 40.96 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003487/3.481, allocations: 1.166 MB / 0.5545 GB, free: 40.47 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004231/3.485, allocations: 1.915 MB / 0.5564 GB, free: 39.09 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004876/3.49, allocations: 1.512 MB / 0.5579 GB, free: 38.46 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.722e-05/3.49, allocations: 7.688 kB / 0.5579 GB, free: 38.46 MB / 394.7 MB Notification: Performance of matching and sorting (n=358) (initialization): time 0.01385/3.504, allocations: 4.059 MB / 0.5619 GB, free: 36.89 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001598/3.505, allocations: 8.071 MB / 0.5697 GB, free: 28.36 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.551e-05/3.505, allocations: 20.5 kB / 0.5698 GB, free: 28.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005221/3.511, allocations: 1.032 MB / 0.5708 GB, free: 28.04 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005191/3.516, allocations: 0.5209 MB / 0.5713 GB, free: 28.02 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0247/3.541, allocations: 13.2 MB / 0.5842 GB, free: 18.03 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00494/3.546, allocations: 113.7 kB / 0.5843 GB, free: 18.02 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006806/3.546, allocations: 117.4 kB / 0.5844 GB, free: 18 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/3.546, allocations: 2.938 kB / 0.5844 GB, free: 18 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01391/3.56, allocations: 3.756 MB / 0.5881 GB, free: 16.59 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001101/3.561, allocations: 22.8 kB / 0.5881 GB, free: 16.59 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005289/3.566, allocations: 1.031 MB / 0.5891 GB, free: 16.29 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005253/3.571, allocations: 0.5152 MB / 0.5896 GB, free: 16.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02336/3.595, allocations: 13.21 MB / 0.6025 GB, free: 3.629 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004673/3.599, allocations: 105.4 kB / 0.6026 GB, free: 3.543 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000646/3.6, allocations: 119.2 kB / 0.6027 GB, free: 3.434 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.closerWithArc[3].v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.closerWithArc[1].v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.closerWithArc[2].v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 88 * 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 (299): * Single equations (assignments): 292 * 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%) 23,(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.0009665/3.601, allocations: 203.2 kB / 0.6029 GB, free: 3.273 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008865/3.602, allocations: 268.7 kB / 0.6032 GB, free: 3.008 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01354/3.615, allocations: 3.514 MB / 0.6066 GB, free: 64 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.838e-05/3.615, allocations: 27.56 kB / 0.6066 GB, free: 40 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.1e-05/3.616, allocations: 7.906 kB / 0.6066 GB, free: 32 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.586e-05/3.616, allocations: 14.25 kB / 0.6066 GB, free: 32 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02487/3.64, allocations: 7.212 MB / 0.6137 GB, free: 10.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.811e-05/3.641, allocations: 4 kB / 0.6137 GB, free: 10.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004061/3.645, allocations: 347.9 kB / 0.614 GB, free: 9.824 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005835/3.65, allocations: 1.041 MB / 0.615 GB, free: 8.992 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005131/3.651, allocations: 39.02 kB / 0.6151 GB, free: 8.965 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02667/3.678, allocations: 10.9 MB / 0.6257 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.118e-05/3.678, allocations: 4 kB / 0.6257 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01778/3.696, allocations: 5.208 MB / 0.6308 GB, free: 9.91 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03489/3.731, allocations: 10.64 MB / 0.6412 GB, free: 164 kB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.1609/3.892, allocations: 0.6139 MB / 0.6418 GB, free: 126.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001158/3.893, allocations: 24.33 kB / 0.6418 GB, free: 126.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003867/3.897, allocations: 93.72 kB / 0.6419 GB, free: 126.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006556/3.897, allocations: 161.2 kB / 0.6421 GB, free: 126.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002634/3.898, allocations: 69.09 kB / 0.6421 GB, free: 126.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.003625/3.901, allocations: 1.342 MB / 0.6434 GB, free: 126.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01093/3.912, allocations: 1.392 MB / 0.6448 GB, free: 126.2 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 (185): * Single equations (assignments): 177 * 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.001191/3.913, allocations: 409.2 kB / 0.6452 GB, free: 126.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01927/3.933, allocations: 6.492 MB / 0.6515 GB, free: 124.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.011e-05/3.933, allocations: 3.719 kB / 0.6515 GB, free: 124.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00649/3.939, allocations: 2.055 MB / 0.6535 GB, free: 124.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005154/3.945, allocations: 465.6 kB / 0.654 GB, free: 124.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02593/3.97, allocations: 6.665 MB / 0.6605 GB, free: 122.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006558/3.977, allocations: 3.086 MB / 0.6635 GB, free: 122.1 MB / 426.7 MB Notification: Performance of SimCode: time 1.803e-06/3.977, allocations: 0 / 0.6635 GB, free: 122.1 MB / 426.7 MB