Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start",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.637/1.637, allocations: 171.2 MB / 178.1 MB, free: 8.293 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2146/1.852, allocations: 41.12 MB / 219.3 MB, free: 11.18 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/1.955, allocations: 38.76 MB / 258 MB, free: 4.352 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3811/2.337, allocations: 116.5 MB / 374.6 MB, free: 4.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004819/2.337, allocations: 84.69 kB / 374.6 MB, free: 4.387 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: 1699 * Number of variables: 1699 Notification: Performance of Generate backend data structure: time 0.8148/3.152, allocations: 150.4 MB / 0.5127 GB, free: 26 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/3.152, allocations: 12 kB / 0.5127 GB, free: 25.99 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007532/3.16, allocations: 0.9865 MB / 0.5137 GB, free: 24.99 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02154/3.181, allocations: 5.266 MB / 0.5188 GB, free: 19.73 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004848/3.182, allocations: 208 kB / 0.519 GB, free: 19.52 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003993/3.186, allocations: 387.8 kB / 0.5194 GB, free: 19.14 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02493/3.211, allocations: 6.641 MB / 0.5259 GB, free: 12.5 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03732/3.248, allocations: 7.895 MB / 0.5336 GB, free: 4.293 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005548/3.249, allocations: 19.83 kB / 0.5336 GB, free: 4.273 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002895/3.252, allocations: 7.906 kB / 0.5336 GB, free: 4.266 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003257/3.252, allocations: 280.8 kB / 0.5339 GB, free: 3.988 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2566/3.509, allocations: 26.85 MB / 0.5601 GB, free: 63.35 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008203/3.517, allocations: 2.232 MB / 0.5623 GB, free: 63.33 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01244/3.529, allocations: 3.085 MB / 0.5653 GB, free: 63.3 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009492/3.53, allocations: 160.7 kB / 0.5655 GB, free: 63.2 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.349e-05/3.531, allocations: 66.75 kB / 0.5655 GB, free: 63.16 MB / 346.7 MB Notification: Performance of pre-optimization done (n=322): time 1.166e-05/3.531, allocations: 0 / 0.5655 GB, free: 63.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=341): time 0.04708/3.578, allocations: 11.08 MB / 0.5763 GB, free: 61.16 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.593e-05/3.578, allocations: 89.81 kB / 0.5764 GB, free: 61.09 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01051/3.588, allocations: 2.777 MB / 0.5791 GB, free: 60.86 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001101/3.59, allocations: 25.7 kB / 0.5792 GB, free: 60.82 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003005/3.593, allocations: 2.281 MB / 0.5814 GB, free: 59.81 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002601/3.595, allocations: 1.098 MB / 0.5825 GB, free: 59.08 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001266/3.597, allocations: 3.094 kB / 0.5825 GB, free: 59.08 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.00065/3.597, allocations: 452.9 kB / 0.5829 GB, free: 58.77 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006178/3.604, allocations: 1.818 MB / 0.5847 GB, free: 58.76 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006637/3.61, allocations: 2.655 MB / 0.5873 GB, free: 57.83 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006245/3.617, allocations: 2.254 MB / 0.5895 GB, free: 57.79 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.046e-05/3.617, allocations: 8.312 kB / 0.5895 GB, free: 57.79 MB / 346.7 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.01907/3.636, allocations: 6.012 MB / 0.5954 GB, free: 57.09 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.839e-05/3.636, allocations: 7.562 kB / 0.5954 GB, free: 57.09 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.781e-05/3.636, allocations: 24.56 kB / 0.5954 GB, free: 57.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005163/3.641, allocations: 1.257 MB / 0.5966 GB, free: 56.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007186/3.648, allocations: 0.8176 MB / 0.5974 GB, free: 56.64 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03319/3.682, allocations: 19.99 MB / 0.6169 GB, free: 40.3 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007761/3.689, allocations: 100 kB / 0.617 GB, free: 40.29 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001161/3.691, allocations: 147.8 kB / 0.6172 GB, free: 40.27 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 113 * Number of states: 0 () * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (417): * Single equations (assignments): 403 * 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: 11 * 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: 11 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 5,(2,100.0%) 5,(2,100.0%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001294/3.692, allocations: 196.7 kB / 0.6174 GB, free: 40.14 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001736/3.694, allocations: 405.6 kB / 0.6177 GB, free: 39.93 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02497/3.719, allocations: 5.868 MB / 0.6235 GB, free: 37.45 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001024/3.719, allocations: 33.53 kB / 0.6235 GB, free: 37.45 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001272/3.719, allocations: 15.47 kB / 0.6235 GB, free: 37.45 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001397/3.719, allocations: 21.42 kB / 0.6235 GB, free: 37.45 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05102/3.77, allocations: 11.86 MB / 0.6351 GB, free: 32.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.308e-05/3.77, allocations: 4.875 kB / 0.6351 GB, free: 32.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005011/3.775, allocations: 479.5 kB / 0.6356 GB, free: 32.48 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007601/3.783, allocations: 1.591 MB / 0.6371 GB, free: 31.95 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009583/3.784, allocations: 26.89 kB / 0.6372 GB, free: 31.95 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04119/3.825, allocations: 28.38 MB / 0.6649 GB, free: 4.254 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-05/3.825, allocations: 7.562 kB / 0.6649 GB, free: 4.25 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2417/4.067, allocations: 9.192 MB / 0.6739 GB, free: 56.15 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04017/4.107, allocations: 12.38 MB / 0.686 GB, free: 54.27 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005031/4.112, allocations: 0.8748 MB / 0.6868 GB, free: 54.18 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00268/4.115, allocations: 20.17 kB / 0.6868 GB, free: 54.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006879/4.122, allocations: 134.6 kB / 0.687 GB, free: 54.18 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001226/4.123, allocations: 208.2 kB / 0.6872 GB, free: 54.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000412/4.124, allocations: 89.88 kB / 0.6872 GB, free: 54.18 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.006367/4.13, allocations: 2.083 MB / 0.6893 GB, free: 54.03 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.009453/4.14, allocations: 1.198 MB / 0.6904 GB, free: 54.03 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 16 (aimsM.stator.zeroInductor.i0,aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,loadInertiaM.w,loadInertiaE.w,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (248): * Single equations (assignments): 231 * 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: 16 * 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: 16 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001979/4.142, allocations: 455.5 kB / 0.6909 GB, free: 53.93 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01591/4.158, allocations: 5.962 MB / 0.6967 GB, free: 52.46 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.259e-05/4.158, allocations: 5.125 kB / 0.6967 GB, free: 52.46 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01167/4.169, allocations: 4.438 MB / 0.701 GB, free: 50.73 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009052/4.179, allocations: 0.9027 MB / 0.7019 GB, free: 50.71 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04361/4.222, allocations: 10.82 MB / 0.7125 GB, free: 48.5 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01693/4.239, allocations: 4.782 MB / 0.7172 GB, free: 47.59 MB / 346.7 MB Notification: Performance of SimCode: time 1.944e-06/4.239, allocations: 0 / 0.7172 GB, free: 47.59 MB / 346.7 MB