Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource",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.674/1.674, allocations: 194.9 MB / 202.5 MB, free: 6.836 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2337/1.908, allocations: 46.84 MB / 249.4 MB, free: 5.348 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08839/1.996, allocations: 44.5 MB / 293.8 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3232/2.32, allocations: 112.3 MB / 406.2 MB, free: 10.05 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000308/2.32, allocations: 84 kB / 406.2 MB, free: 10 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: 908 * Number of variables: 908 Notification: Performance of Generate backend data structure: time 0.3457/2.666, allocations: 82.35 MB / 488.6 MB, free: 14.69 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/2.666, allocations: 8 kB / 488.6 MB, free: 14.68 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005504/2.671, allocations: 0.6471 MB / 489.3 MB, free: 14.03 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01479/2.686, allocations: 3.359 MB / 492.6 MB, free: 10.61 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002853/2.686, allocations: 119.9 kB / 492.7 MB, free: 10.49 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001418/2.688, allocations: 207.9 kB / 492.9 MB, free: 10.29 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01279/2.701, allocations: 3.236 MB / 496.2 MB, free: 7.051 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01563/2.716, allocations: 3.853 MB / 0.4883 GB, free: 3.059 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002061/2.717, allocations: 8 kB / 0.4883 GB, free: 3.051 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001124/2.718, allocations: 4 kB / 0.4883 GB, free: 3.047 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002517/2.718, allocations: 166.7 kB / 0.4885 GB, free: 2.879 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1699/2.888, allocations: 13.91 MB / 0.5021 GB, free: 112.9 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003255/2.891, allocations: 1.182 MB / 0.5032 GB, free: 112.9 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003432/2.895, allocations: 1.273 MB / 0.5044 GB, free: 112.9 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01291/2.908, allocations: 4.079 MB / 0.5084 GB, free: 112.2 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.525e-05/2.908, allocations: 48.28 kB / 0.5085 GB, free: 112.2 MB / 394.7 MB Notification: Performance of pre-optimization done (n=155): time 4.789e-06/2.908, allocations: 2.781 kB / 0.5085 GB, free: 112.2 MB / 394.7 MB Notification: Performance of matching and sorting (n=159): time 0.01438/2.922, allocations: 4.65 MB / 0.513 GB, free: 111.1 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.603e-05/2.922, allocations: 67.03 kB / 0.5131 GB, free: 111 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004114/2.927, allocations: 1.561 MB / 0.5146 GB, free: 110.8 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003612/2.927, allocations: 28.52 kB / 0.5146 GB, free: 110.8 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009422/2.928, allocations: 1.317 MB / 0.5159 GB, free: 110.2 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007867/2.929, allocations: 0.5187 MB / 0.5164 GB, free: 109.9 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001872/2.929, allocations: 3.625 kB / 0.5164 GB, free: 109.9 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000179/2.929, allocations: 388.3 kB / 0.5168 GB, free: 109.6 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002158/2.931, allocations: 0.7766 MB / 0.5176 GB, free: 109.6 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002697/2.934, allocations: 1.39 MB / 0.5189 GB, free: 108.9 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003198/2.937, allocations: 1.09 MB / 0.52 GB, free: 108.8 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.164e-05/2.937, allocations: 7.219 kB / 0.52 GB, free: 108.8 MB / 394.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.007763/2.945, allocations: 2.567 MB / 0.5225 GB, free: 108.5 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/2.945, allocations: 6.594 kB / 0.5225 GB, free: 108.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.36e-05/2.945, allocations: 21.28 kB / 0.5225 GB, free: 108.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006161/2.946, allocations: 148.2 kB / 0.5227 GB, free: 108.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003953/2.95, allocations: 490.1 kB / 0.5231 GB, free: 108.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00305/2.953, allocations: 2.949 MB / 0.526 GB, free: 106.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00307/2.956, allocations: 58.59 kB / 0.5261 GB, free: 106.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005496/2.957, allocations: 88.16 kB / 0.5262 GB, free: 106.1 MB / 394.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (252): * Single equations (assignments): 249 * 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: 2 * 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: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004929/2.957, allocations: 177.4 kB / 0.5263 GB, free: 105.9 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007015/2.958, allocations: 204.2 kB / 0.5265 GB, free: 105.8 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007245/2.965, allocations: 2.349 MB / 0.5288 GB, free: 105.5 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.369e-05/2.965, allocations: 16.19 kB / 0.5288 GB, free: 105.5 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.715e-05/2.965, allocations: 7.438 kB / 0.5288 GB, free: 105.5 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.276e-05/2.965, allocations: 9.984 kB / 0.5288 GB, free: 105.5 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01517/2.981, allocations: 5.306 MB / 0.534 GB, free: 104.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/2.981, allocations: 3.25 kB / 0.534 GB, free: 104.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002581/2.983, allocations: 263.7 kB / 0.5343 GB, free: 104.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001307/2.985, allocations: 265.9 kB / 0.5345 GB, free: 104.7 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003657/2.985, allocations: 14 kB / 0.5345 GB, free: 104.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008286/2.993, allocations: 6.714 MB / 0.5411 GB, free: 99.66 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.275e-06/2.993, allocations: 5.766 kB / 0.5411 GB, free: 99.66 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009451/3.003, allocations: 3.729 MB / 0.5447 GB, free: 98.01 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01192/3.015, allocations: 5.313 MB / 0.5499 GB, free: 95.2 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001747/3.017, allocations: 475.7 kB / 0.5504 GB, free: 94.88 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008107/3.017, allocations: 11.88 kB / 0.5504 GB, free: 94.88 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00256/3.02, allocations: 42.64 kB / 0.5504 GB, free: 94.88 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004496/3.021, allocations: 82.39 kB / 0.5505 GB, free: 94.87 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001537/3.021, allocations: 49.69 kB / 0.5506 GB, free: 94.86 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.003115/3.024, allocations: 1.154 MB / 0.5517 GB, free: 94.35 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004684/3.029, allocations: 0.5646 MB / 0.5522 GB, free: 94.3 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (137): * Single equations (assignments): 133 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001072/3.03, allocations: 439.8 kB / 0.5527 GB, free: 94.19 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005647/3.035, allocations: 2.239 MB / 0.5549 GB, free: 93.23 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.796e-06/3.035, allocations: 0 / 0.5549 GB, free: 93.23 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003634/3.039, allocations: 1.407 MB / 0.5562 GB, free: 92.48 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004216/3.043, allocations: 417.1 kB / 0.5566 GB, free: 92.38 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01759/3.061, allocations: 5.006 MB / 0.5615 GB, free: 90.39 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005815/3.067, allocations: 2.664 MB / 0.5641 GB, free: 89.3 MB / 394.7 MB Notification: Performance of SimCode: time 2.254e-06/3.067, allocations: 0 / 0.5641 GB, free: 89.3 MB / 394.7 MB