Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",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.813/1.813, allocations: 171.2 MB / 178.1 MB, free: 8.305 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1816/1.994, allocations: 41.12 MB / 219.3 MB, free: 11.19 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/2.102, allocations: 38.76 MB / 258 MB, free: 4.371 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4285/2.53, allocations: 116.4 MB / 374.4 MB, free: 4.582 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003448/2.531, allocations: 82.02 kB / 374.5 MB, free: 4.539 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: 1354 * Number of variables: 1354 Notification: Performance of Generate backend data structure: time 0.7489/3.28, allocations: 122.1 MB / 496.6 MB, free: 53.86 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.396e-05/3.28, allocations: 12 kB / 496.6 MB, free: 53.85 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005575/3.285, allocations: 0.7738 MB / 497.4 MB, free: 53.07 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0143/3.3, allocations: 3.674 MB / 0.4893 GB, free: 49.37 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003877/3.3, allocations: 172 kB / 0.4895 GB, free: 49.2 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002341/3.303, allocations: 307.8 kB / 0.4898 GB, free: 48.9 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02468/3.327, allocations: 4.793 MB / 0.4945 GB, free: 44.11 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0313/3.359, allocations: 5.834 MB / 0.5002 GB, free: 38.07 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002928/3.359, allocations: 7.906 kB / 0.5002 GB, free: 38.06 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001879/3.361, allocations: 4 kB / 0.5002 GB, free: 38.05 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002743/3.361, allocations: 246.1 kB / 0.5004 GB, free: 37.81 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06489/3.426, allocations: 20.2 MB / 0.5201 GB, free: 17.26 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004571/3.431, allocations: 1.554 MB / 0.5216 GB, free: 15.7 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005246/3.436, allocations: 1.876 MB / 0.5235 GB, free: 13.82 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000613/3.437, allocations: 147 kB / 0.5236 GB, free: 13.67 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.986e-05/3.437, allocations: 64.5 kB / 0.5237 GB, free: 13.59 MB / 346.7 MB Notification: Performance of pre-optimization done (n=230): time 5.58e-06/3.437, allocations: 0 / 0.5237 GB, free: 13.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=279): time 0.03453/3.471, allocations: 9.492 MB / 0.5329 GB, free: 4.039 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.344e-05/3.471, allocations: 81.61 kB / 0.533 GB, free: 3.945 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005044/3.477, allocations: 2.089 MB / 0.5351 GB, free: 1.848 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006604/3.477, allocations: 29.7 kB / 0.5351 GB, free: 1.812 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1606/3.638, allocations: 1.912 MB / 0.537 GB, free: 83.14 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002025/3.64, allocations: 0.9143 MB / 0.5379 GB, free: 83.14 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007718/3.641, allocations: 0 / 0.5379 GB, free: 83.14 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0006056/3.641, allocations: 444.2 kB / 0.5383 GB, free: 82.84 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006971/3.648, allocations: 1.404 MB / 0.5396 GB, free: 82.83 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008019/3.657, allocations: 2.306 MB / 0.5419 GB, free: 81.78 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007479/3.664, allocations: 1.846 MB / 0.5437 GB, free: 81.73 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.576e-05/3.664, allocations: 9.688 kB / 0.5437 GB, free: 81.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=428) (initialization): time 0.01852/3.683, allocations: 4.901 MB / 0.5485 GB, free: 81.45 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.216e-05/3.683, allocations: 2.844 kB / 0.5485 GB, free: 81.45 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001187/3.683, allocations: 29.88 kB / 0.5485 GB, free: 81.45 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00761/3.691, allocations: 0.9929 MB / 0.5495 GB, free: 81.4 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007913/3.699, allocations: 0.7141 MB / 0.5502 GB, free: 81.4 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02829/3.727, allocations: 12.54 MB / 0.5624 GB, free: 75.08 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005278/3.732, allocations: 95.92 kB / 0.5625 GB, free: 75.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001019/3.733, allocations: 144.2 kB / 0.5627 GB, free: 75.07 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 130 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (366): * Single equations (assignments): 359 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(6,72.2%) 23,(1,100.0%) 1,(4,93.8%) 22,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009112/3.734, allocations: 194.3 kB / 0.5629 GB, free: 74.97 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00105/3.735, allocations: 324.5 kB / 0.5632 GB, free: 74.8 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.015/3.75, allocations: 4.398 MB / 0.5675 GB, free: 74.36 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.356e-05/3.751, allocations: 30.73 kB / 0.5675 GB, free: 74.36 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.802e-05/3.751, allocations: 12.44 kB / 0.5675 GB, free: 74.36 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.594e-05/3.751, allocations: 12.61 kB / 0.5675 GB, free: 74.36 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0378/3.789, allocations: 9.58 MB / 0.5769 GB, free: 73.36 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.923e-05/3.789, allocations: 7.594 kB / 0.5769 GB, free: 73.36 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004409/3.793, allocations: 433.4 kB / 0.5773 GB, free: 73.36 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005974/3.799, allocations: 1.059 MB / 0.5783 GB, free: 73.3 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006227/3.8, allocations: 32.83 kB / 0.5784 GB, free: 73.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02766/3.827, allocations: 15.7 MB / 0.5937 GB, free: 63.02 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.517e-05/3.828, allocations: 13.34 kB / 0.5937 GB, free: 63.02 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02002/3.848, allocations: 7.08 MB / 0.6006 GB, free: 59.26 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02884/3.876, allocations: 9.589 MB / 0.61 GB, free: 54.22 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004933/3.881, allocations: 0.6995 MB / 0.6107 GB, free: 53.78 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002744/3.884, allocations: 21.45 kB / 0.6107 GB, free: 53.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004258/3.889, allocations: 92.27 kB / 0.6108 GB, free: 53.77 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007722/3.889, allocations: 159 kB / 0.6109 GB, free: 53.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003193/3.89, allocations: 89.75 kB / 0.611 GB, free: 53.72 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.004656/3.894, allocations: 1.544 MB / 0.6125 GB, free: 53.08 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.008043/3.903, allocations: 0.9604 MB / 0.6135 GB, free: 53.03 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.port_n.Phi.re,smpmM.stator.port_n.Phi.im,smpmM.stator.strayReluctance.Phi.re,smpmM.stator.strayReluctance.Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (215): * Single equations (assignments): 208 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 23,(4,93.8%) 18,(1,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001622/3.904, allocations: 447.6 kB / 0.6139 GB, free: 52.91 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01733/3.922, allocations: 4.466 MB / 0.6182 GB, free: 50.93 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-05/3.922, allocations: 1.344 kB / 0.6182 GB, free: 50.93 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01239/3.934, allocations: 2.781 MB / 0.621 GB, free: 49.55 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007083/3.941, allocations: 0.6576 MB / 0.6216 GB, free: 49.17 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03311/3.974, allocations: 8.351 MB / 0.6298 GB, free: 41.65 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01438/3.989, allocations: 3.734 MB / 0.6334 GB, free: 38.78 MB / 346.7 MB Notification: Performance of SimCode: time 1.683e-06/3.989, allocations: 0 / 0.6334 GB, free: 38.78 MB / 346.7 MB