Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",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.882/1.882, allocations: 194.9 MB / 202.6 MB, free: 6.891 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2442/2.126, allocations: 46.83 MB / 249.4 MB, free: 5.352 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09433/2.221, allocations: 44.51 MB / 293.9 MB, free: 10.87 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3582/2.579, allocations: 109.3 MB / 403.2 MB, free: 12.91 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003349/2.579, allocations: 86.31 kB / 403.3 MB, free: 12.86 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.3664/2.946, allocations: 76.68 MB / 480 MB, free: 7.328 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.414e-05/2.946, allocations: 15.98 kB / 480 MB, free: 7.312 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00565/2.951, allocations: 0.5852 MB / 480.6 MB, free: 6.723 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01482/2.966, allocations: 3.098 MB / 483.7 MB, free: 3.562 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002272/2.967, allocations: 104 kB / 483.8 MB, free: 3.461 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00112/2.968, allocations: 187.9 kB / 483.9 MB, free: 3.277 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0136/2.981, allocations: 2.898 MB / 486.8 MB, free: 384 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02149/3.003, allocations: 3.498 MB / 490.3 MB, free: 12.74 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002033/3.003, allocations: 4 kB / 490.3 MB, free: 12.73 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009298/3.004, allocations: 7.906 kB / 490.3 MB, free: 12.73 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002461/3.004, allocations: 146.2 kB / 490.5 MB, free: 12.58 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2126/3.217, allocations: 12.81 MB / 0.4915 GB, free: 118.6 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003437/3.22, allocations: 0.9063 MB / 0.4924 GB, free: 118.6 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004421/3.225, allocations: 0.9911 MB / 0.4934 GB, free: 118.6 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01143/3.236, allocations: 2.685 MB / 0.496 GB, free: 118 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.254e-05/3.237, allocations: 43.06 kB / 0.496 GB, free: 118 MB / 394.7 MB Notification: Performance of pre-optimization done (n=122): time 7.604e-06/3.237, allocations: 0 / 0.496 GB, free: 118 MB / 394.7 MB Notification: Performance of matching and sorting (n=158): time 0.03108/3.268, allocations: 5.321 MB / 0.5012 GB, free: 117.3 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.838e-05/3.268, allocations: 67.88 kB / 0.5013 GB, free: 117.3 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005222/3.273, allocations: 1.381 MB / 0.5026 GB, free: 117.1 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003943/3.273, allocations: 25.7 kB / 0.5027 GB, free: 117.1 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001168/3.275, allocations: 1.229 MB / 0.5039 GB, free: 116.6 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008733/3.276, allocations: 0.5173 MB / 0.5044 GB, free: 116.2 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002641/3.276, allocations: 0 / 0.5044 GB, free: 116.2 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002337/3.276, allocations: 382.6 kB / 0.5047 GB, free: 115.9 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003536/3.28, allocations: 0.7641 MB / 0.5055 GB, free: 115.9 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004099/3.284, allocations: 1.351 MB / 0.5068 GB, free: 115.2 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004899/3.289, allocations: 1.045 MB / 0.5078 GB, free: 115.2 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.099e-05/3.289, allocations: 7.438 kB / 0.5078 GB, free: 115.2 MB / 394.7 MB Notification: Performance of matching and sorting (n=249) (initialization): time 0.01118/3.3, allocations: 2.373 MB / 0.5101 GB, free: 115.1 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.31e-05/3.3, allocations: 7.844 kB / 0.5101 GB, free: 115 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.942e-05/3.3, allocations: 20.69 kB / 0.5102 GB, free: 115 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008943/3.301, allocations: 120 kB / 0.5103 GB, free: 115 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006387/3.308, allocations: 0.4904 MB / 0.5108 GB, free: 115 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001815/3.309, allocations: 1.256 MB / 0.512 GB, free: 113.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004596/3.314, allocations: 58.08 kB / 0.512 GB, free: 113.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004698/3.315, allocations: 88.52 kB / 0.5121 GB, free: 113.8 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.0007264/3.315, allocations: 178.6 kB / 0.5123 GB, free: 113.7 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008035/3.316, allocations: 191 kB / 0.5125 GB, free: 113.6 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009661/3.326, allocations: 1.982 MB / 0.5144 GB, free: 113.5 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.518e-05/3.326, allocations: 17.72 kB / 0.5144 GB, free: 113.5 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.856e-05/3.326, allocations: 6.969 kB / 0.5144 GB, free: 113.5 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.63e-05/3.326, allocations: 7.969 kB / 0.5144 GB, free: 113.5 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01886/3.345, allocations: 4.852 MB / 0.5192 GB, free: 113 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.509e-05/3.345, allocations: 7.469 kB / 0.5192 GB, free: 113 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003727/3.349, allocations: 334 kB / 0.5195 GB, free: 113 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006024/3.349, allocations: 96.17 kB / 0.5196 GB, free: 112.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000189/3.35, allocations: 10.64 kB / 0.5196 GB, free: 112.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001075/3.351, allocations: 1.226 MB / 0.5208 GB, free: 111.7 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.823e-06/3.351, allocations: 7.844 kB / 0.5208 GB, free: 111.7 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008602/3.359, allocations: 3.323 MB / 0.5241 GB, free: 111.2 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01192/3.371, allocations: 4.912 MB / 0.5289 GB, free: 110.3 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001699/3.373, allocations: 457.5 kB / 0.5293 GB, free: 110.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006058/3.374, allocations: 5 kB / 0.5293 GB, free: 110.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002387/3.376, allocations: 50.58 kB / 0.5293 GB, free: 110.1 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002738/3.376, allocations: 81.67 kB / 0.5294 GB, free: 110.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001714/3.376, allocations: 40.66 kB / 0.5295 GB, free: 110.1 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002571/3.379, allocations: 1.027 MB / 0.5305 GB, free: 110 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00439/3.383, allocations: 0.534 MB / 0.531 GB, free: 110 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.0009518/3.384, allocations: 434.8 kB / 0.5314 GB, free: 109.9 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005939/3.39, allocations: 2.211 MB / 0.5336 GB, free: 109.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.044e-06/3.391, allocations: 0 / 0.5336 GB, free: 109.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002953/3.393, allocations: 1.209 MB / 0.5347 GB, free: 109.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00406/3.398, allocations: 371.5 kB / 0.5351 GB, free: 109.2 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01634/3.414, allocations: 4.458 MB / 0.5394 GB, free: 107.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004877/3.419, allocations: 2.475 MB / 0.5419 GB, free: 106.9 MB / 394.7 MB Notification: Performance of SimCode: time 1.713e-06/3.419, allocations: 0 / 0.5419 GB, free: 106.9 MB / 394.7 MB