Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer",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.579/1.579, allocations: 194.9 MB / 202.5 MB, free: 6.934 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2267/1.806, allocations: 46.84 MB / 249.4 MB, free: 5.336 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0868/1.893, allocations: 44.5 MB / 293.8 MB, free: 10.92 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3201/2.213, allocations: 112.4 MB / 406.2 MB, free: 9.801 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002846/2.213, allocations: 80.83 kB / 406.3 MB, free: 9.762 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: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.6643/2.878, allocations: 136.8 MB / 0.5304 GB, free: 60.61 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/2.878, allocations: 7.531 kB / 0.5304 GB, free: 60.61 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008008/2.886, allocations: 0.9792 MB / 0.5314 GB, free: 60.3 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0159/2.902, allocations: 4.498 MB / 0.5358 GB, free: 59.58 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003173/2.902, allocations: 159.3 kB / 0.5359 GB, free: 59.58 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001834/2.904, allocations: 286.2 kB / 0.5362 GB, free: 59.58 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01652/2.92, allocations: 5.223 MB / 0.5413 GB, free: 59.55 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01983/2.94, allocations: 5.994 MB / 0.5471 GB, free: 58.96 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001762/2.94, allocations: 7.703 kB / 0.5471 GB, free: 58.96 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009969/2.941, allocations: 5.406 kB / 0.5471 GB, free: 58.96 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002399/2.942, allocations: 242 kB / 0.5474 GB, free: 58.95 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05283/2.995, allocations: 20.2 MB / 0.5671 GB, free: 51.05 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00485/2.999, allocations: 1.995 MB / 0.5691 GB, free: 50.27 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006898/3.006, allocations: 2.602 MB / 0.5716 GB, free: 49.37 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01649/3.023, allocations: 5.479 MB / 0.5769 GB, free: 46.61 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.225e-05/3.023, allocations: 62.94 kB / 0.577 GB, free: 46.55 MB / 394.7 MB Notification: Performance of pre-optimization done (n=254): time 5.791e-06/3.023, allocations: 0 / 0.577 GB, free: 46.55 MB / 394.7 MB Notification: Performance of matching and sorting (n=261): time 0.02519/3.048, allocations: 7.825 MB / 0.5846 GB, free: 41.69 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.022e-05/3.048, allocations: 81.47 kB / 0.5847 GB, free: 41.6 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004886/3.053, allocations: 2.123 MB / 0.5868 GB, free: 39.69 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005611/3.054, allocations: 29.7 kB / 0.5868 GB, free: 39.66 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009024/3.055, allocations: 1.703 MB / 0.5885 GB, free: 38.18 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001084/3.056, allocations: 0.835 MB / 0.5893 GB, free: 37.41 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002417/3.056, allocations: 2.25 kB / 0.5893 GB, free: 37.41 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001957/3.056, allocations: 415.8 kB / 0.5897 GB, free: 37.03 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003172/3.06, allocations: 1.361 MB / 0.591 GB, free: 35.8 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00375/3.063, allocations: 1.936 MB / 0.5929 GB, free: 33.82 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004588/3.068, allocations: 1.734 MB / 0.5946 GB, free: 32.33 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-05/3.068, allocations: 4 kB / 0.5946 GB, free: 32.33 MB / 394.7 MB Notification: Performance of matching and sorting (n=356) (initialization): time 0.01173/3.08, allocations: 4.257 MB / 0.5988 GB, free: 28.51 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/3.08, allocations: 11.61 kB / 0.5988 GB, free: 28.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.765e-05/3.08, allocations: 23.19 kB / 0.5988 GB, free: 28.48 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002754/3.083, allocations: 0.6364 MB / 0.5994 GB, free: 27.95 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005292/3.088, allocations: 0.6156 MB / 0.6 GB, free: 27.42 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0136/3.102, allocations: 9.401 MB / 0.6092 GB, free: 18.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003834/3.106, allocations: 59.55 kB / 0.6093 GB, free: 18.22 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005984/3.106, allocations: 111.7 kB / 0.6094 GB, free: 18.12 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (306): * Single equations (assignments): 301 * 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: 4 * 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: 4 {(2,100.0%) 26,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006488/3.107, allocations: 168 kB / 0.6095 GB, free: 17.95 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009201/3.108, allocations: 292.4 kB / 0.6098 GB, free: 17.66 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01115/3.119, allocations: 4.044 MB / 0.6138 GB, free: 14.15 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.003e-05/3.119, allocations: 28 kB / 0.6138 GB, free: 14.12 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-05/3.119, allocations: 12 kB / 0.6138 GB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.468e-05/3.119, allocations: 15.33 kB / 0.6138 GB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02239/3.141, allocations: 8.614 MB / 0.6222 GB, free: 6.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.792e-05/3.142, allocations: 5.781 kB / 0.6222 GB, free: 6.977 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00382/3.145, allocations: 395.2 kB / 0.6226 GB, free: 6.648 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003831/3.149, allocations: 0.8093 MB / 0.6234 GB, free: 5.98 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005008/3.15, allocations: 27.7 kB / 0.6234 GB, free: 5.957 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02182/3.172, allocations: 13.53 MB / 0.6366 GB, free: 8.664 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.077e-06/3.172, allocations: 4.125 kB / 0.6366 GB, free: 8.66 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0176/3.189, allocations: 6.209 MB / 0.6427 GB, free: 2.957 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.165/3.354, allocations: 8.724 MB / 0.6512 GB, free: 107.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002657/3.357, allocations: 0.6935 MB / 0.6519 GB, free: 107.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001086/3.358, allocations: 21.53 kB / 0.6519 GB, free: 107.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003347/3.362, allocations: 82.47 kB / 0.652 GB, free: 107.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006481/3.362, allocations: 157.1 kB / 0.6522 GB, free: 107.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002677/3.363, allocations: 70.03 kB / 0.6522 GB, free: 107.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.003862/3.366, allocations: 1.599 MB / 0.6538 GB, free: 107 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005979/3.372, allocations: 0.9077 MB / 0.6547 GB, free: 107 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (191): * Single equations (assignments): 185 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 8,(2,100.0%) 26,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001215/3.374, allocations: 412.7 kB / 0.6551 GB, free: 106.9 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009359/3.383, allocations: 3.901 MB / 0.6589 GB, free: 106.4 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/3.383, allocations: 2.156 kB / 0.6589 GB, free: 106.4 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00662/3.39, allocations: 2.534 MB / 0.6613 GB, free: 105.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005641/3.395, allocations: 0.5862 MB / 0.6619 GB, free: 105.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0256/3.421, allocations: 7.984 MB / 0.6697 GB, free: 104.2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007653/3.429, allocations: 3.73 MB / 0.6734 GB, free: 103.4 MB / 410.7 MB Notification: Performance of SimCode: time 1.613e-06/3.429, allocations: 3.469 kB / 0.6734 GB, free: 103.4 MB / 410.7 MB