Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_1_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.611/1.611, allocations: 171.2 MB / 178.1 MB, free: 8.285 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1626/1.774, allocations: 41.11 MB / 219.2 MB, free: 11.18 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08956/1.863, allocations: 38.76 MB / 258 MB, free: 4.355 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3265/2.19, allocations: 99.22 MB / 357.2 MB, free: 5.289 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004813/2.19, allocations: 84.33 kB / 357.3 MB, free: 5.246 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.2626/2.453, allocations: 52.89 MB / 410.2 MB, free: 4.902 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/2.453, allocations: 12 kB / 410.2 MB, free: 4.891 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001786/2.455, allocations: 344.1 kB / 410.5 MB, free: 4.551 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006118/2.461, allocations: 1.751 MB / 412.3 MB, free: 2.742 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001797/2.461, allocations: 80 kB / 412.4 MB, free: 2.664 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009741/2.462, allocations: 148 kB / 412.5 MB, free: 2.52 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008848/2.471, allocations: 2.396 MB / 414.9 MB, free: 120 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1211/2.592, allocations: 2.859 MB / 417.8 MB, free: 118 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001196/2.592, allocations: 8.781 kB / 417.8 MB, free: 118 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003524/2.593, allocations: 2.219 kB / 417.8 MB, free: 118 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001413/2.593, allocations: 121.5 kB / 417.9 MB, free: 118 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02521/2.618, allocations: 9.866 MB / 427.8 MB, free: 115.5 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002159/2.62, allocations: 0.8886 MB / 428.7 MB, free: 115.5 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001889/2.622, allocations: 0.7716 MB / 429.4 MB, free: 115.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003793/2.623, allocations: 136.2 kB / 429.6 MB, free: 115.4 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.724e-05/2.623, allocations: 45.42 kB / 429.6 MB, free: 115.3 MB / 346.7 MB Notification: Performance of pre-optimization done (n=105): time 3.306e-06/2.623, allocations: 2.438 kB / 429.6 MB, free: 115.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=135): time 0.01659/2.639, allocations: 5.151 MB / 434.8 MB, free: 114.6 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.355e-05/2.639, allocations: 67.09 kB / 434.8 MB, free: 114.5 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002478/2.642, allocations: 1.178 MB / 436 MB, free: 114.3 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003259/2.642, allocations: 25.7 kB / 436 MB, free: 114.3 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005921/2.643, allocations: 1.015 MB / 437 MB, free: 113.8 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005587/2.643, allocations: 454.8 kB / 437.5 MB, free: 113.5 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001507/2.644, allocations: 3.656 kB / 437.5 MB, free: 113.5 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001356/2.644, allocations: 373.2 kB / 437.9 MB, free: 113.2 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001857/2.646, allocations: 0.7713 MB / 438.6 MB, free: 113.2 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002154/2.648, allocations: 1.272 MB / 439.9 MB, free: 112.6 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002377/2.65, allocations: 1.011 MB / 440.9 MB, free: 112.6 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.719e-05/2.65, allocations: 3.812 kB / 440.9 MB, free: 112.6 MB / 346.7 MB Notification: Performance of matching and sorting (n=215) (initialization): time 0.006206/2.656, allocations: 2.369 MB / 443.3 MB, free: 112.4 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/2.656, allocations: 3.938 kB / 443.3 MB, free: 112.4 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.375e-05/2.656, allocations: 17.19 kB / 443.3 MB, free: 112.4 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001029/2.658, allocations: 241.7 kB / 443.5 MB, free: 112.4 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003438/2.661, allocations: 434.6 kB / 444 MB, free: 112.4 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003132/2.664, allocations: 2.836 MB / 446.8 MB, free: 110 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002453/2.667, allocations: 68.17 kB / 446.9 MB, free: 110 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003932/2.667, allocations: 77.66 kB / 446.9 MB, free: 110 MB / 346.7 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 (210): * Single equations (assignments): 206 * 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.0004316/2.668, allocations: 155.5 kB / 447.1 MB, free: 109.9 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005366/2.668, allocations: 176.2 kB / 447.3 MB, free: 109.8 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006322/2.674, allocations: 2.052 MB / 449.3 MB, free: 109.2 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-05/2.675, allocations: 17.69 kB / 449.3 MB, free: 109.2 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.787e-05/2.675, allocations: 0 / 449.3 MB, free: 109.2 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.071e-05/2.675, allocations: 3.516 kB / 449.3 MB, free: 109.2 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01714/2.692, allocations: 4.458 MB / 453.8 MB, free: 107.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.177e-05/2.692, allocations: 0 / 453.8 MB, free: 107.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00253/2.694, allocations: 280.2 kB / 454.1 MB, free: 107.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009439/2.695, allocations: 196.8 kB / 454.3 MB, free: 107.4 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001883/2.696, allocations: 7.281 kB / 454.3 MB, free: 107.4 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002854/2.698, allocations: 2.817 MB / 457.1 MB, free: 104.8 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.181e-06/2.698, allocations: 0 / 457.1 MB, free: 104.8 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007582/2.706, allocations: 3.396 MB / 460.5 MB, free: 103.3 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01006/2.716, allocations: 4.991 MB / 465.5 MB, free: 100.9 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001401/2.718, allocations: 416 kB / 465.9 MB, free: 100.6 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005724/2.718, allocations: 2.531 kB / 465.9 MB, free: 100.6 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001881/2.72, allocations: 54.64 kB / 465.9 MB, free: 100.6 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002241/2.72, allocations: 75.53 kB / 466 MB, free: 100.6 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001447/2.721, allocations: 39.53 kB / 466.1 MB, free: 100.6 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.002071/2.723, allocations: 0.8751 MB / 466.9 MB, free: 100.2 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003557/2.726, allocations: 468.7 kB / 467.4 MB, free: 100.2 MB / 346.7 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 (131): * Single equations (assignments): 127 * 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.0008655/2.727, allocations: 379.9 kB / 467.8 MB, free: 100.1 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005852/2.733, allocations: 2.325 MB / 470.1 MB, free: 99.04 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.718e-06/2.733, allocations: 1.312 kB / 470.1 MB, free: 99.04 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003297/2.736, allocations: 1.332 MB / 471.4 MB, free: 98.31 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003679/2.74, allocations: 357.7 kB / 471.8 MB, free: 98.22 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0115/2.752, allocations: 3.833 MB / 475.6 MB, free: 94.79 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003369/2.755, allocations: 2.196 MB / 477.8 MB, free: 93.01 MB / 346.7 MB Notification: Performance of SimCode: time 1.372e-06/2.755, allocations: 0 / 477.8 MB, free: 93.01 MB / 346.7 MB