Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_LoadDump",fmuType="me",version="2.0",platforms={"static"}) [: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.602/1.602, allocations: 194.9 MB / 202.5 MB, free: 6.941 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1992/1.802, allocations: 46.84 MB / 249.4 MB, free: 5.344 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08411/1.886, allocations: 44.51 MB / 293.9 MB, free: 10.92 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3189/2.205, allocations: 114.2 MB / 408.1 MB, free: 8.199 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000301/2.205, allocations: 81.58 kB / 408.1 MB, free: 8.156 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.5592/2.764, allocations: 104.4 MB / 0.5005 GB, free: 52.97 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/2.764, allocations: 9.531 kB / 0.5006 GB, free: 52.97 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008364/2.773, allocations: 0.9676 MB / 0.5015 GB, free: 52.73 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01448/2.787, allocations: 3.92 MB / 0.5053 GB, free: 52.09 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003805/2.788, allocations: 340.2 kB / 0.5056 GB, free: 51.89 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001348/2.789, allocations: 244.9 kB / 0.5059 GB, free: 51.89 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01289/2.802, allocations: 3.978 MB / 0.5098 GB, free: 51.86 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01452/2.816, allocations: 4.617 MB / 0.5143 GB, free: 51.37 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001406/2.817, allocations: 6.625 kB / 0.5143 GB, free: 51.37 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005666/2.817, allocations: 6.812 kB / 0.5143 GB, free: 51.37 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001643/2.817, allocations: 179.2 kB / 0.5145 GB, free: 51.36 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04383/2.861, allocations: 17.03 MB / 0.5311 GB, free: 47.67 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003763/2.865, allocations: 1.543 MB / 0.5326 GB, free: 47.64 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004399/2.87, allocations: 1.867 MB / 0.5344 GB, free: 47.6 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01453/2.884, allocations: 5.681 MB / 0.54 GB, free: 46.49 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003105/2.887, allocations: 1.332 MB / 0.5413 GB, free: 46.34 MB / 394.7 MB Notification: Performance of pre-optimization done (n=212): time 5.881e-06/2.887, allocations: 0 / 0.5413 GB, free: 46.34 MB / 394.7 MB Notification: Performance of matching and sorting (n=245): time 0.02543/2.913, allocations: 7.492 MB / 0.5486 GB, free: 44.1 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001426/2.913, allocations: 348 kB / 0.5489 GB, free: 43.72 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004118/2.917, allocations: 1.791 MB / 0.5507 GB, free: 42.98 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005165/2.918, allocations: 34.53 kB / 0.5507 GB, free: 42.95 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001504/2.919, allocations: 1.491 MB / 0.5522 GB, free: 41.89 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001037/2.92, allocations: 0.7789 MB / 0.5529 GB, free: 41.28 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002258/2.92, allocations: 7 kB / 0.5529 GB, free: 41.28 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001874/2.921, allocations: 421.1 kB / 0.5533 GB, free: 40.92 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002809/2.923, allocations: 1.169 MB / 0.5545 GB, free: 40.44 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003326/2.927, allocations: 1.917 MB / 0.5563 GB, free: 39.05 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003989/2.931, allocations: 1.511 MB / 0.5578 GB, free: 38.43 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.979e-05/2.931, allocations: 6.844 kB / 0.5578 GB, free: 38.43 MB / 394.7 MB Notification: Performance of matching and sorting (n=358) (initialization): time 0.01119/2.942, allocations: 4.063 MB / 0.5618 GB, free: 36.86 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001452/2.944, allocations: 8.061 MB / 0.5697 GB, free: 28.33 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.615e-05/2.944, allocations: 20.62 kB / 0.5697 GB, free: 28.33 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004357/2.948, allocations: 1.044 MB / 0.5707 GB, free: 28.01 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004275/2.952, allocations: 0.5263 MB / 0.5712 GB, free: 27.99 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02037/2.973, allocations: 13.2 MB / 0.5841 GB, free: 18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004232/2.977, allocations: 115.3 kB / 0.5842 GB, free: 17.99 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004886/2.978, allocations: 115.7 kB / 0.5843 GB, free: 17.96 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/2.978, allocations: 2.594 kB / 0.5843 GB, free: 17.96 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01157/2.989, allocations: 3.754 MB / 0.588 GB, free: 16.57 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.001e-05/2.989, allocations: 21.44 kB / 0.588 GB, free: 16.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004398/2.994, allocations: 1.031 MB / 0.589 GB, free: 16.25 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004377/2.998, allocations: 0.5152 MB / 0.5895 GB, free: 16.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01964/3.018, allocations: 13.21 MB / 0.6024 GB, free: 3.973 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003992/3.022, allocations: 110 kB / 0.6025 GB, free: 3.883 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004423/3.022, allocations: 119.2 kB / 0.6027 GB, free: 3.773 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.0008245/3.023, allocations: 201.8 kB / 0.6028 GB, free: 3.609 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007124/3.024, allocations: 272.1 kB / 0.6031 GB, free: 3.344 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01105/3.035, allocations: 3.512 MB / 0.6065 GB, free: 412 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.647e-05/3.035, allocations: 28 kB / 0.6066 GB, free: 384 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/3.035, allocations: 3.906 kB / 0.6066 GB, free: 380 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.894e-05/3.035, allocations: 10.64 kB / 0.6066 GB, free: 380 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0243/3.059, allocations: 7.417 MB / 0.6138 GB, free: 11.01 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.564e-05/3.06, allocations: 0 / 0.6138 GB, free: 11.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00327/3.063, allocations: 345.7 kB / 0.6141 GB, free: 10.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004781/3.068, allocations: 1.046 MB / 0.6152 GB, free: 9.895 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004232/3.068, allocations: 26.47 kB / 0.6152 GB, free: 9.875 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02174/3.09, allocations: 10.87 MB / 0.6258 GB, free: 15.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.015e-06/3.09, allocations: 5.906 kB / 0.6258 GB, free: 15.5 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01444/3.104, allocations: 5.219 MB / 0.6309 GB, free: 10.75 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02731/3.132, allocations: 10.64 MB / 0.6413 GB, free: 1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002358/3.134, allocations: 0.6145 MB / 0.6419 GB, free: 440 kB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008213/3.135, allocations: 26.84 kB / 0.6419 GB, free: 420 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003012/3.138, allocations: 96.91 kB / 0.642 GB, free: 344 kB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006593/3.139, allocations: 158.4 kB / 0.6422 GB, free: 256 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002431/3.139, allocations: 67.27 kB / 0.6422 GB, free: 196 kB / 426.7 MB Notification: Performance of sort global known variables: time 0.1461/3.285, allocations: 1.615 MB / 0.6438 GB, free: 126 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009094/3.294, allocations: 1.397 MB / 0.6452 GB, free: 126 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.0009581/3.295, allocations: 399.7 kB / 0.6456 GB, free: 125.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01601/3.311, allocations: 6.489 MB / 0.6519 GB, free: 124.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.745e-06/3.311, allocations: 0 / 0.6519 GB, free: 124.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005331/3.317, allocations: 2.066 MB / 0.6539 GB, free: 124.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004164/3.321, allocations: 453.8 kB / 0.6543 GB, free: 124.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02173/3.343, allocations: 6.67 MB / 0.6609 GB, free: 122.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005262/3.348, allocations: 3.086 MB / 0.6639 GB, free: 121.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.983e-06/3.348, allocations: 0 / 0.6639 GB, free: 121.9 MB / 426.7 MB