Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource",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.963/1.963, allocations: 194.9 MB / 202.6 MB, free: 14.27 MB / 178.8 MB Notification: Performance of FrontEnd - loaded program: time 0.2061/2.169, allocations: 46.85 MB / 249.4 MB, free: 14.18 MB / 210.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09636/2.265, allocations: 44.49 MB / 293.9 MB, free: 1.594 MB / 242.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3572/2.622, allocations: 112.3 MB / 406.2 MB, free: 11.18 MB / 322.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003338/2.623, allocations: 84.88 kB / 406.3 MB, free: 11.14 MB / 322.8 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.3934/3.016, allocations: 82.35 MB / 488.7 MB, free: 14.98 MB / 402.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.029e-05/3.016, allocations: 8 kB / 488.7 MB, free: 14.98 MB / 402.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006022/3.022, allocations: 0.6471 MB / 489.3 MB, free: 14.32 MB / 402.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01591/3.038, allocations: 3.359 MB / 492.7 MB, free: 10.91 MB / 402.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002529/3.039, allocations: 120 kB / 492.8 MB, free: 10.79 MB / 402.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001223/3.04, allocations: 199.9 kB / 493 MB, free: 10.59 MB / 402.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01363/3.053, allocations: 3.239 MB / 496.2 MB, free: 7.352 MB / 402.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01557/3.069, allocations: 3.861 MB / 0.4884 GB, free: 3.352 MB / 402.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000152/3.069, allocations: 0 / 0.4884 GB, free: 3.352 MB / 402.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000599/3.07, allocations: 4 kB / 0.4884 GB, free: 3.348 MB / 402.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002624/3.07, allocations: 170.7 kB / 0.4885 GB, free: 3.18 MB / 402.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1846/3.255, allocations: 13.91 MB / 0.5021 GB, free: 122.6 MB / 402.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003375/3.258, allocations: 1.176 MB / 0.5033 GB, free: 122.5 MB / 402.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003601/3.262, allocations: 1.279 MB / 0.5045 GB, free: 122.5 MB / 402.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01261/3.275, allocations: 4.079 MB / 0.5085 GB, free: 121.9 MB / 402.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.38e-05/3.275, allocations: 52.53 kB / 0.5085 GB, free: 121.8 MB / 402.8 MB Notification: Performance of pre-optimization done (n=155): time 5.771e-06/3.275, allocations: 0 / 0.5085 GB, free: 121.8 MB / 402.8 MB Notification: Performance of matching and sorting (n=159): time 0.01499/3.29, allocations: 4.645 MB / 0.5131 GB, free: 120.8 MB / 402.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.709e-05/3.29, allocations: 69.47 kB / 0.5131 GB, free: 120.7 MB / 402.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003969/3.294, allocations: 1.55 MB / 0.5147 GB, free: 120.5 MB / 402.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003331/3.294, allocations: 28.95 kB / 0.5147 GB, free: 120.4 MB / 402.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008023/3.295, allocations: 1.322 MB / 0.516 GB, free: 119.9 MB / 402.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006346/3.296, allocations: 0.5228 MB / 0.5165 GB, free: 119.6 MB / 402.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001742/3.296, allocations: 0.8438 kB / 0.5165 GB, free: 119.6 MB / 402.8 MB Notification: Performance of setup shared object (initialization): time 0.0001683/3.296, allocations: 387.2 kB / 0.5169 GB, free: 119.3 MB / 402.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002258/3.298, allocations: 0.7795 MB / 0.5176 GB, free: 119.3 MB / 402.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002561/3.301, allocations: 1.39 MB / 0.519 GB, free: 118.5 MB / 402.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003244/3.304, allocations: 1.083 MB / 0.52 GB, free: 118.5 MB / 402.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.438e-05/3.304, allocations: 7.406 kB / 0.52 GB, free: 118.5 MB / 402.8 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.007998/3.312, allocations: 2.58 MB / 0.5226 GB, free: 118.2 MB / 402.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/3.312, allocations: 3.875 kB / 0.5226 GB, free: 118.2 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.382e-05/3.312, allocations: 21.56 kB / 0.5226 GB, free: 118.2 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006704/3.313, allocations: 149.4 kB / 0.5227 GB, free: 118.2 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004587/3.317, allocations: 489.2 kB / 0.5232 GB, free: 118.2 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003298/3.321, allocations: 2.941 MB / 0.5261 GB, free: 115.7 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003426/3.324, allocations: 59.44 kB / 0.5261 GB, free: 115.7 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003205/3.325, allocations: 92.48 kB / 0.5262 GB, free: 115.7 MB / 402.8 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.0005072/3.325, allocations: 177.8 kB / 0.5264 GB, free: 115.6 MB / 402.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005456/3.326, allocations: 206 kB / 0.5266 GB, free: 115.5 MB / 402.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007725/3.333, allocations: 2.351 MB / 0.5289 GB, free: 115.1 MB / 402.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.433e-05/3.334, allocations: 16.88 kB / 0.5289 GB, free: 115.1 MB / 402.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.574e-05/3.334, allocations: 3.594 kB / 0.5289 GB, free: 115.1 MB / 402.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.387e-05/3.334, allocations: 11.16 kB / 0.5289 GB, free: 115.1 MB / 402.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01524/3.349, allocations: 5.302 MB / 0.5341 GB, free: 114.3 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.505e-05/3.349, allocations: 3.594 kB / 0.5341 GB, free: 114.3 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003058/3.352, allocations: 261.5 kB / 0.5343 GB, free: 114.3 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001525/3.354, allocations: 275 kB / 0.5346 GB, free: 114.3 MB / 402.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002771/3.354, allocations: 14.28 kB / 0.5346 GB, free: 114.3 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009252/3.363, allocations: 6.711 MB / 0.5412 GB, free: 109.3 MB / 402.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.226e-06/3.363, allocations: 3.938 kB / 0.5412 GB, free: 109.3 MB / 402.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009989/3.373, allocations: 3.72 MB / 0.5448 GB, free: 107.8 MB / 402.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01282/3.386, allocations: 5.31 MB / 0.55 GB, free: 105 MB / 402.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001738/3.388, allocations: 486.2 kB / 0.5505 GB, free: 104.7 MB / 402.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006371/3.388, allocations: 6.844 kB / 0.5505 GB, free: 104.7 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002442/3.391, allocations: 49.61 kB / 0.5505 GB, free: 104.7 MB / 402.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000275/3.391, allocations: 87.27 kB / 0.5506 GB, free: 104.7 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001788/3.391, allocations: 43.23 kB / 0.5506 GB, free: 104.7 MB / 402.8 MB Notification: Performance of sort global known variables: time 0.003223/3.395, allocations: 1.152 MB / 0.5518 GB, free: 104.2 MB / 402.8 MB Notification: Performance of remove unused functions: time 0.004927/3.4, allocations: 0.57 MB / 0.5523 GB, free: 104.1 MB / 402.8 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.0009428/3.401, allocations: 437.8 kB / 0.5527 GB, free: 104 MB / 402.8 MB Notification: Performance of simCode: created initialization part: time 0.005745/3.406, allocations: 2.242 MB / 0.5549 GB, free: 103.1 MB / 402.8 MB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/3.406, allocations: 0 / 0.5549 GB, free: 103.1 MB / 402.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003689/3.41, allocations: 1.414 MB / 0.5563 GB, free: 102.3 MB / 402.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004431/3.415, allocations: 413.4 kB / 0.5567 GB, free: 102.2 MB / 402.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01758/3.432, allocations: 4.998 MB / 0.5616 GB, free: 100.2 MB / 402.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005013/3.437, allocations: 2.663 MB / 0.5642 GB, free: 99.13 MB / 402.8 MB Notification: Performance of SimCode: time 3.586e-06/3.437, allocations: 0 / 0.5642 GB, free: 99.13 MB / 402.8 MB