Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",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.643/1.643, allocations: 194.9 MB / 202.5 MB, free: 14.34 MB / 178.8 MB Notification: Performance of FrontEnd - loaded program: time 0.2076/1.85, allocations: 46.84 MB / 249.4 MB, free: 14.27 MB / 210.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08824/1.939, allocations: 44.5 MB / 293.9 MB, free: 1.695 MB / 242.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3017/2.24, allocations: 104.3 MB / 398.1 MB, free: 3.227 MB / 306.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002967/2.241, allocations: 84.52 kB / 398.2 MB, free: 3.184 MB / 306.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 657 * Number of variables: 657 Notification: Performance of Generate backend data structure: time 0.231/2.472, allocations: 54.49 MB / 452.7 MB, free: 3.434 MB / 354.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/2.472, allocations: 12 kB / 452.7 MB, free: 3.422 MB / 354.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002013/2.474, allocations: 340.1 kB / 453.1 MB, free: 3.086 MB / 354.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007061/2.481, allocations: 1.919 MB / 455 MB, free: 1.109 MB / 354.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001673/2.481, allocations: 95.94 kB / 455.1 MB, free: 1.016 MB / 354.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008299/2.482, allocations: 147.9 kB / 455.2 MB, free: 0.8711 MB / 354.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008798/2.491, allocations: 2.384 MB / 457.6 MB, free: 14.48 MB / 370.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01026/2.501, allocations: 2.856 MB / 460.4 MB, free: 11.48 MB / 370.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001262/2.501, allocations: 7.906 kB / 460.5 MB, free: 11.47 MB / 370.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003855/2.502, allocations: 0 / 460.5 MB, free: 11.47 MB / 370.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001827/2.502, allocations: 124.9 kB / 460.6 MB, free: 11.34 MB / 370.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02951/2.531, allocations: 9.965 MB / 470.5 MB, free: 1.059 MB / 370.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0026/2.534, allocations: 0.8921 MB / 471.4 MB, free: 160 kB / 370.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002292/2.536, allocations: 0.7808 MB / 472.2 MB, free: 15.38 MB / 386.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005077/2.537, allocations: 215.1 kB / 472.4 MB, free: 15.13 MB / 386.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.792e-05/2.537, allocations: 48.22 kB / 472.5 MB, free: 15.07 MB / 386.8 MB Notification: Performance of pre-optimization done (n=106): time 3.797e-06/2.537, allocations: 0 / 472.5 MB, free: 15.07 MB / 386.8 MB Notification: Performance of matching and sorting (n=136): time 0.01934/2.556, allocations: 5.188 MB / 477.7 MB, free: 9.816 MB / 386.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.532e-05/2.556, allocations: 64.72 kB / 477.7 MB, free: 9.742 MB / 386.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003499/2.56, allocations: 1.304 MB / 479 MB, free: 8.434 MB / 386.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003298/2.56, allocations: 25.7 kB / 479.1 MB, free: 8.402 MB / 386.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008959/2.561, allocations: 1.012 MB / 480.1 MB, free: 7.371 MB / 386.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007122/2.562, allocations: 457.3 kB / 480.5 MB, free: 6.918 MB / 386.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001452/2.562, allocations: 0 / 480.5 MB, free: 6.918 MB / 386.8 MB Notification: Performance of setup shared object (initialization): time 0.0002154/2.562, allocations: 377.8 kB / 480.9 MB, free: 6.543 MB / 386.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00213/2.564, allocations: 0.7771 MB / 481.7 MB, free: 5.766 MB / 386.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002639/2.567, allocations: 1.276 MB / 482.9 MB, free: 4.262 MB / 386.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002818/2.57, allocations: 1.009 MB / 483.9 MB, free: 3.25 MB / 386.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.657e-05/2.57, allocations: 7.938 kB / 484 MB, free: 3.242 MB / 386.8 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.007258/2.577, allocations: 2.382 MB / 486.3 MB, free: 0.8398 MB / 386.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/2.577, allocations: 4 kB / 486.3 MB, free: 0.8359 MB / 386.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.492e-05/2.577, allocations: 16 kB / 486.4 MB, free: 0.8203 MB / 386.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001095/2.579, allocations: 243.6 kB / 486.6 MB, free: 0.5703 MB / 386.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003669/2.582, allocations: 427.3 kB / 487 MB, free: 156 kB / 386.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003824/2.586, allocations: 2.84 MB / 489.8 MB, free: 13.08 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002657/2.589, allocations: 67.94 kB / 489.9 MB, free: 13.02 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003576/2.589, allocations: 79.89 kB / 490 MB, free: 12.94 MB / 402.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 207 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004393/2.59, allocations: 152.2 kB / 490.1 MB, free: 12.78 MB / 402.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005654/2.59, allocations: 173.8 kB / 490.3 MB, free: 12.61 MB / 402.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006286/2.597, allocations: 2.07 MB / 492.4 MB, free: 10.51 MB / 402.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.332e-05/2.597, allocations: 12 kB / 492.4 MB, free: 10.5 MB / 402.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.674e-05/2.597, allocations: 7.906 kB / 492.4 MB, free: 10.49 MB / 402.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-05/2.597, allocations: 11.91 kB / 492.4 MB, free: 10.48 MB / 402.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01395/2.611, allocations: 4.52 MB / 496.9 MB, free: 5.867 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.449e-05/2.611, allocations: 3.906 kB / 496.9 MB, free: 5.863 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002708/2.613, allocations: 275.6 kB / 497.2 MB, free: 5.594 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001021/2.614, allocations: 203.6 kB / 497.4 MB, free: 5.383 MB / 402.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001773/2.615, allocations: 4 kB / 497.4 MB, free: 5.379 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003515/2.618, allocations: 2.812 MB / 0.4885 GB, free: 2.328 MB / 402.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.506e-06/2.618, allocations: 8.062 kB / 0.4885 GB, free: 2.32 MB / 402.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1328/2.751, allocations: 3.408 MB / 0.4918 GB, free: 145.1 MB / 402.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00977/2.761, allocations: 5.008 MB / 0.4967 GB, free: 144.2 MB / 402.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001413/2.762, allocations: 436.4 kB / 0.4971 GB, free: 144.1 MB / 402.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005099/2.763, allocations: 3.719 kB / 0.4971 GB, free: 144.1 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001839/2.765, allocations: 55.61 kB / 0.4972 GB, free: 144.1 MB / 402.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002166/2.765, allocations: 66.84 kB / 0.4973 GB, free: 144.1 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001414/2.765, allocations: 43.41 kB / 0.4973 GB, free: 144.1 MB / 402.8 MB Notification: Performance of sort global known variables: time 0.002224/2.767, allocations: 0.9713 MB / 0.4983 GB, free: 144 MB / 402.8 MB Notification: Performance of remove unused functions: time 0.003526/2.771, allocations: 476.8 kB / 0.4987 GB, free: 144 MB / 402.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (132): * Single equations (assignments): 128 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008822/2.772, allocations: 375.3 kB / 0.4991 GB, free: 143.9 MB / 402.8 MB Notification: Performance of simCode: created initialization part: time 0.005179/2.777, allocations: 2.334 MB / 0.5013 GB, free: 143.5 MB / 402.8 MB Notification: Performance of simCode: created event and clocks part: time 8.175e-06/2.777, allocations: 3.812 kB / 0.5013 GB, free: 143.5 MB / 402.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002888/2.78, allocations: 1.335 MB / 0.5026 GB, free: 143.1 MB / 402.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003553/2.784, allocations: 365.3 kB / 0.503 GB, free: 143.1 MB / 402.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0119/2.796, allocations: 3.94 MB / 0.5068 GB, free: 142.2 MB / 402.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003665/2.799, allocations: 2.219 MB / 0.509 GB, free: 141.5 MB / 402.8 MB Notification: Performance of SimCode: time 1.523e-06/2.799, allocations: 0 / 0.509 GB, free: 141.5 MB / 402.8 MB