Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.591/1.591, allocations: 194.9 MB / 202.5 MB, free: 6.93 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.215/1.806, allocations: 46.84 MB / 249.3 MB, free: 5.359 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09106/1.897, allocations: 44.5 MB / 293.9 MB, free: 10.92 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.319/2.216, allocations: 109.3 MB / 403.1 MB, free: 13.07 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002983/2.217, allocations: 82.52 kB / 403.2 MB, free: 13.04 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: 823 * Number of variables: 823 Notification: Performance of Generate backend data structure: time 0.3019/2.519, allocations: 76.7 MB / 479.9 MB, free: 7.453 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/2.519, allocations: 8 kB / 479.9 MB, free: 7.445 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004996/2.524, allocations: 0.5852 MB / 480.5 MB, free: 6.855 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01267/2.536, allocations: 3.106 MB / 483.6 MB, free: 3.691 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002068/2.537, allocations: 104 kB / 483.7 MB, free: 3.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009897/2.538, allocations: 179.9 kB / 483.9 MB, free: 3.414 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01042/2.548, allocations: 2.906 MB / 486.8 MB, free: 0.5039 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01189/2.56, allocations: 3.498 MB / 490.3 MB, free: 12.86 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001186/2.56, allocations: 7.906 kB / 490.3 MB, free: 12.86 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003989/2.561, allocations: 0 / 490.3 MB, free: 12.86 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002039/2.561, allocations: 150.2 kB / 490.4 MB, free: 12.71 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2018/2.763, allocations: 12.82 MB / 0.4915 GB, free: 68.62 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002178/2.765, allocations: 0.8993 MB / 0.4923 GB, free: 68.61 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002555/2.767, allocations: 0.992 MB / 0.4933 GB, free: 68.6 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006798/2.774, allocations: 2.68 MB / 0.4959 GB, free: 68.03 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.902e-05/2.774, allocations: 49.69 kB / 0.496 GB, free: 67.99 MB / 394.7 MB Notification: Performance of pre-optimization done (n=122): time 4.799e-06/2.774, allocations: 0 / 0.496 GB, free: 67.99 MB / 394.7 MB Notification: Performance of matching and sorting (n=158): time 0.01847/2.793, allocations: 5.323 MB / 0.5012 GB, free: 67.38 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.453e-05/2.793, allocations: 70.62 kB / 0.5012 GB, free: 67.31 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003079/2.796, allocations: 1.378 MB / 0.5026 GB, free: 67.15 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002983/2.796, allocations: 25.7 kB / 0.5026 GB, free: 67.12 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006837/2.797, allocations: 1.225 MB / 0.5038 GB, free: 66.58 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005623/2.798, allocations: 0.5157 MB / 0.5043 GB, free: 66.28 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001434/2.798, allocations: 0 / 0.5043 GB, free: 66.28 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001551/2.798, allocations: 382.6 kB / 0.5047 GB, free: 65.97 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001871/2.8, allocations: 0.7693 MB / 0.5054 GB, free: 65.96 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002172/2.802, allocations: 1.351 MB / 0.5067 GB, free: 65.27 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002661/2.805, allocations: 1.046 MB / 0.5078 GB, free: 65.25 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.348e-05/2.805, allocations: 3.625 kB / 0.5078 GB, free: 65.25 MB / 394.7 MB Notification: Performance of matching and sorting (n=249) (initialization): time 0.006319/2.811, allocations: 2.378 MB / 0.5101 GB, free: 65.07 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/2.811, allocations: 2.812 kB / 0.5101 GB, free: 65.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.318e-05/2.811, allocations: 22.94 kB / 0.5101 GB, free: 65.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005464/2.812, allocations: 117.4 kB / 0.5102 GB, free: 65.05 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003991/2.816, allocations: 0.4962 MB / 0.5107 GB, free: 65.05 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001059/2.817, allocations: 1.26 MB / 0.5119 GB, free: 63.86 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002752/2.82, allocations: 53.77 kB / 0.512 GB, free: 63.86 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002563/2.82, allocations: 85.34 kB / 0.5121 GB, free: 63.86 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (246): * Single equations (assignments): 243 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004277/2.82, allocations: 177.5 kB / 0.5122 GB, free: 63.73 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004351/2.821, allocations: 188.4 kB / 0.5124 GB, free: 63.63 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005465/2.826, allocations: 1.986 MB / 0.5144 GB, free: 63.52 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.921e-05/2.826, allocations: 18.59 kB / 0.5144 GB, free: 63.52 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/2.826, allocations: 0 / 0.5144 GB, free: 63.52 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.789e-05/2.826, allocations: 6.844 kB / 0.5144 GB, free: 63.52 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0121/2.839, allocations: 4.856 MB / 0.5191 GB, free: 62.97 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.304e-05/2.839, allocations: 3.688 kB / 0.5191 GB, free: 62.97 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003022/2.842, allocations: 327.7 kB / 0.5194 GB, free: 62.97 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005038/2.842, allocations: 96.02 kB / 0.5195 GB, free: 62.95 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001413/2.842, allocations: 10.36 kB / 0.5195 GB, free: 62.95 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009186/2.843, allocations: 1.23 MB / 0.5207 GB, free: 61.76 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/2.843, allocations: 0.5625 kB / 0.5207 GB, free: 61.76 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007166/2.85, allocations: 3.335 MB / 0.524 GB, free: 61.22 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009554/2.86, allocations: 4.907 MB / 0.5288 GB, free: 60.3 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001435/2.862, allocations: 461 kB / 0.5292 GB, free: 60.11 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004358/2.862, allocations: 10.09 kB / 0.5292 GB, free: 60.11 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001849/2.864, allocations: 44.75 kB / 0.5293 GB, free: 60.11 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002104/2.864, allocations: 80.77 kB / 0.5294 GB, free: 60.11 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001387/2.864, allocations: 42.47 kB / 0.5294 GB, free: 60.11 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002182/2.866, allocations: 1.021 MB / 0.5304 GB, free: 60 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003655/2.87, allocations: 0.542 MB / 0.5309 GB, free: 60 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (155): * Single equations (assignments): 152 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008348/2.871, allocations: 432.5 kB / 0.5313 GB, free: 59.89 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004833/2.876, allocations: 2.212 MB / 0.5335 GB, free: 59.57 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/2.876, allocations: 0 / 0.5335 GB, free: 59.57 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002403/2.878, allocations: 1.202 MB / 0.5347 GB, free: 59.26 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003406/2.882, allocations: 376.7 kB / 0.535 GB, free: 59.25 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01365/2.895, allocations: 4.456 MB / 0.5394 GB, free: 57.74 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003954/2.899, allocations: 2.477 MB / 0.5418 GB, free: 56.73 MB / 394.7 MB Notification: Performance of SimCode: time 1.663e-06/2.899, allocations: 0 / 0.5418 GB, free: 56.73 MB / 394.7 MB