Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL",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.739/1.739, allocations: 171.2 MB / 178.1 MB, free: 8.285 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1976/1.937, allocations: 41.11 MB / 219.3 MB, free: 11.18 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09475/2.032, allocations: 38.76 MB / 258 MB, free: 4.352 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3697/2.402, allocations: 109.2 MB / 367.2 MB, free: 11.42 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003239/2.402, allocations: 84.33 kB / 367.3 MB, free: 11.38 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: 1305 * Number of variables: 1305 Notification: Performance of Generate backend data structure: time 0.6936/3.096, allocations: 116.6 MB / 483.9 MB, free: 65.49 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.23e-05/3.096, allocations: 12 kB / 483.9 MB, free: 65.48 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006241/3.102, allocations: 0.7663 MB / 484.6 MB, free: 64.7 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0163/3.118, allocations: 3.646 MB / 488.3 MB, free: 61.03 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006328/3.119, allocations: 164 kB / 488.5 MB, free: 60.87 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002449/3.121, allocations: 295.9 kB / 488.7 MB, free: 60.58 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01907/3.141, allocations: 4.885 MB / 493.6 MB, free: 55.69 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0249/3.166, allocations: 5.834 MB / 499.5 MB, free: 49.65 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002997/3.166, allocations: 11.84 kB / 499.5 MB, free: 49.64 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001783/3.168, allocations: 7.984 kB / 499.5 MB, free: 49.63 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003107/3.168, allocations: 221.9 kB / 499.7 MB, free: 49.41 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06581/3.234, allocations: 19.62 MB / 0.5071 GB, free: 29.52 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007107/3.241, allocations: 1.588 MB / 0.5087 GB, free: 27.92 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007892/3.249, allocations: 2.216 MB / 0.5109 GB, free: 25.7 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006183/3.25, allocations: 147 kB / 0.511 GB, free: 25.54 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.907e-05/3.25, allocations: 60.55 kB / 0.5111 GB, free: 25.47 MB / 346.7 MB Notification: Performance of pre-optimization done (n=235): time 4.989e-06/3.25, allocations: 0 / 0.5111 GB, free: 25.47 MB / 346.7 MB Notification: Performance of matching and sorting (n=278): time 0.03562/3.285, allocations: 9.585 MB / 0.5204 GB, free: 15.77 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.777e-05/3.286, allocations: 85.59 kB / 0.5205 GB, free: 15.68 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007848/3.293, allocations: 2.06 MB / 0.5225 GB, free: 13.61 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007505/3.294, allocations: 25.7 kB / 0.5225 GB, free: 13.57 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001888/3.296, allocations: 1.772 MB / 0.5243 GB, free: 11.77 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001719/3.298, allocations: 0.9044 MB / 0.5252 GB, free: 10.86 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003117/3.298, allocations: 4 kB / 0.5252 GB, free: 10.86 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002439/3.299, allocations: 424.4 kB / 0.5256 GB, free: 10.43 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003904/3.302, allocations: 1.447 MB / 0.527 GB, free: 8.984 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006828/3.309, allocations: 2.139 MB / 0.5291 GB, free: 6.559 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007318/3.317, allocations: 1.833 MB / 0.5309 GB, free: 4.707 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.766e-05/3.317, allocations: 8 kB / 0.5309 GB, free: 4.699 MB / 346.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.1689/3.486, allocations: 4.777 MB / 0.5355 GB, free: 86.82 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/3.486, allocations: 10.25 kB / 0.5355 GB, free: 86.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.702e-05/3.486, allocations: 19.59 kB / 0.5356 GB, free: 86.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004108/3.49, allocations: 0.9411 MB / 0.5365 GB, free: 86.76 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007027/3.497, allocations: 0.6641 MB / 0.5371 GB, free: 86.76 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02047/3.518, allocations: 11.9 MB / 0.5487 GB, free: 80.65 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004686/3.522, allocations: 75.89 kB / 0.5488 GB, free: 80.65 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001007/3.523, allocations: 119.1 kB / 0.5489 GB, free: 80.65 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (333): * Single equations (assignments): 325 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(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: 5 {(2,100.0%) 12,(1,100.0%) 1,(4,100.0%) 29,(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009924/3.524, allocations: 187.9 kB / 0.5491 GB, free: 80.54 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00112/3.526, allocations: 308.1 kB / 0.5494 GB, free: 80.54 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01416/3.54, allocations: 4.641 MB / 0.5539 GB, free: 80.02 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.24e-05/3.54, allocations: 26.75 kB / 0.554 GB, free: 80.02 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.998e-05/3.54, allocations: 12.03 kB / 0.554 GB, free: 80.02 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-05/3.54, allocations: 13.59 kB / 0.554 GB, free: 80.02 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03872/3.579, allocations: 9.905 MB / 0.5637 GB, free: 79.04 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.436e-05/3.579, allocations: 7.125 kB / 0.5637 GB, free: 79.04 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005154/3.584, allocations: 423.2 kB / 0.5641 GB, free: 79.04 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007786/3.592, allocations: 1.098 MB / 0.5651 GB, free: 78.97 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009852/3.593, allocations: 36.53 kB / 0.5652 GB, free: 78.97 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03719/3.63, allocations: 17 MB / 0.5818 GB, free: 69.17 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.719e-05/3.63, allocations: 11.09 kB / 0.5818 GB, free: 69.17 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0263/3.657, allocations: 7.379 MB / 0.589 GB, free: 65.93 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0249/3.682, allocations: 10.03 MB / 0.5988 GB, free: 60.79 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003166/3.685, allocations: 0.7155 MB / 0.5995 GB, free: 60.34 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001836/3.687, allocations: 16.2 kB / 0.5995 GB, free: 60.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00463/3.691, allocations: 87.52 kB / 0.5996 GB, free: 60.34 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000989/3.692, allocations: 158.3 kB / 0.5997 GB, free: 60.31 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003799/3.693, allocations: 84.75 kB / 0.5998 GB, free: 60.29 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.004791/3.698, allocations: 1.543 MB / 0.6013 GB, free: 59.66 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.007965/3.706, allocations: 0.9233 MB / 0.6022 GB, free: 59.62 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.port_n.Phi.re,aimcM.stator.port_n.Phi.im,aimcM.stator.zeroInductor.i0,aimcM.stator.strayReluctance.Phi.re,aimcM.stator.strayReluctance.Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (208): * Single equations (assignments): 199 * 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: 8 * 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: 8 {(4,100.0%) 28,(2,100.0%) 12,(1,100.0%) 7,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001411/3.707, allocations: 386.9 kB / 0.6026 GB, free: 59.5 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01725/3.724, allocations: 4.545 MB / 0.607 GB, free: 57.36 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.173e-05/3.725, allocations: 6.094 kB / 0.607 GB, free: 57.36 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01215/3.737, allocations: 3.101 MB / 0.6101 GB, free: 55.71 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006698/3.743, allocations: 0.6144 MB / 0.6107 GB, free: 55.56 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03502/3.779, allocations: 8.522 MB / 0.619 GB, free: 52.1 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01082/3.789, allocations: 3.772 MB / 0.6227 GB, free: 49.27 MB / 346.7 MB Notification: Performance of SimCode: time 1.533e-06/3.789, allocations: 0 / 0.6227 GB, free: 49.27 MB / 346.7 MB