Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",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.566/1.566, allocations: 171.2 MB / 178.1 MB, free: 8.285 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2309/1.797, allocations: 41.11 MB / 219.3 MB, free: 11.15 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/1.913, allocations: 38.76 MB / 258 MB, free: 4.328 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.376/2.289, allocations: 111.9 MB / 369.9 MB, free: 8.914 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002752/2.289, allocations: 79.02 kB / 370 MB, free: 8.875 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: 1292 * Number of variables: 1292 Notification: Performance of Generate backend data structure: time 0.6968/2.986, allocations: 114.1 MB / 484 MB, free: 65.68 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/2.986, allocations: 12 kB / 484.1 MB, free: 65.67 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0051/2.991, allocations: 0.7351 MB / 484.8 MB, free: 64.93 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01193/3.003, allocations: 3.492 MB / 488.3 MB, free: 61.41 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003055/3.004, allocations: 160 kB / 488.4 MB, free: 61.25 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001931/3.006, allocations: 295.8 kB / 488.7 MB, free: 60.96 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01632/3.022, allocations: 4.635 MB / 493.4 MB, free: 56.32 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02174/3.044, allocations: 5.626 MB / 499 MB, free: 50.49 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002812/3.044, allocations: 7.906 kB / 499 MB, free: 50.48 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001729/3.046, allocations: 4 kB / 499 MB, free: 50.48 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002454/3.046, allocations: 225.8 kB / 499.2 MB, free: 50.25 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07188/3.118, allocations: 19.14 MB / 0.5062 GB, free: 30.8 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00462/3.123, allocations: 1.498 MB / 0.5077 GB, free: 29.29 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005161/3.128, allocations: 1.809 MB / 0.5094 GB, free: 27.48 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005937/3.129, allocations: 151 kB / 0.5096 GB, free: 27.32 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.354e-05/3.129, allocations: 60.56 kB / 0.5096 GB, free: 27.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=219): time 5.23e-06/3.129, allocations: 3.938 kB / 0.5096 GB, free: 27.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=263): time 0.03296/3.162, allocations: 9.081 MB / 0.5185 GB, free: 18.09 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.869e-05/3.162, allocations: 85.39 kB / 0.5186 GB, free: 17.99 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005425/3.167, allocations: 1.938 MB / 0.5205 GB, free: 16.04 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006656/3.168, allocations: 25.7 kB / 0.5205 GB, free: 16.01 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001253/3.169, allocations: 1.809 MB / 0.5223 GB, free: 14.17 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001782/3.171, allocations: 0.8621 MB / 0.5231 GB, free: 13.29 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005339/3.172, allocations: 0 / 0.5231 GB, free: 13.29 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004169/3.172, allocations: 432.5 kB / 0.5235 GB, free: 12.86 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006451/3.178, allocations: 1.349 MB / 0.5248 GB, free: 11.51 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007465/3.186, allocations: 2.177 MB / 0.527 GB, free: 8.961 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007546/3.194, allocations: 1.761 MB / 0.5287 GB, free: 7.18 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.129e-05/3.194, allocations: 8 kB / 0.5287 GB, free: 7.172 MB / 346.7 MB Notification: Performance of matching and sorting (n=400) (initialization): time 0.02257/3.216, allocations: 4.692 MB / 0.5333 GB, free: 2.41 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.179e-05/3.216, allocations: 4.594 kB / 0.5333 GB, free: 2.406 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.156e-05/3.217, allocations: 32 kB / 0.5333 GB, free: 2.375 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007155/3.224, allocations: 0.9685 MB / 0.5343 GB, free: 1.387 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008123/3.232, allocations: 0.6669 MB / 0.5349 GB, free: 0.7188 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.177/3.409, allocations: 12.05 MB / 0.5467 GB, free: 81.86 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004496/3.414, allocations: 95.19 kB / 0.5468 GB, free: 81.86 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001077/3.415, allocations: 126.1 kB / 0.5469 GB, free: 81.86 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 118 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (341): * Single equations (assignments): 334 * 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: 5 * 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: 5 {(6,75.0%) 22,(1,100.0%) 1,(4,93.8%) 20,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001013/3.416, allocations: 188.6 kB / 0.5471 GB, free: 81.75 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001023/3.417, allocations: 296.1 kB / 0.5474 GB, free: 81.75 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0137/3.43, allocations: 4.239 MB / 0.5515 GB, free: 81.34 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.458e-05/3.431, allocations: 26.84 kB / 0.5515 GB, free: 81.34 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.314e-05/3.431, allocations: 10.5 kB / 0.5515 GB, free: 81.34 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.669e-05/3.431, allocations: 14.44 kB / 0.5515 GB, free: 81.34 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03021/3.461, allocations: 9.075 MB / 0.5604 GB, free: 80.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.327e-05/3.461, allocations: 6.688 kB / 0.5604 GB, free: 80.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003772/3.465, allocations: 406.1 kB / 0.5608 GB, free: 80.52 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008044/3.473, allocations: 1.051 MB / 0.5618 GB, free: 80.46 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009739/3.474, allocations: 25.97 kB / 0.5619 GB, free: 80.46 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02776/3.502, allocations: 15.42 MB / 0.5769 GB, free: 71.98 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.259e-05/3.502, allocations: 9.625 kB / 0.5769 GB, free: 71.98 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01863/3.52, allocations: 6.697 MB / 0.5835 GB, free: 69.86 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02412/3.545, allocations: 9.132 MB / 0.5924 GB, free: 65.23 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003398/3.548, allocations: 0.663 MB / 0.593 GB, free: 64.81 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001848/3.55, allocations: 15.38 kB / 0.593 GB, free: 64.8 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005179/3.555, allocations: 95.16 kB / 0.5931 GB, free: 64.8 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001046/3.556, allocations: 145 kB / 0.5933 GB, free: 64.78 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005153/3.557, allocations: 77.94 kB / 0.5933 GB, free: 64.76 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.005408/3.562, allocations: 1.438 MB / 0.5948 GB, free: 64.16 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.007614/3.57, allocations: 0.9079 MB / 0.5956 GB, free: 64.11 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.port_n.Phi.re,smrM.stator.port_n.Phi.im,smrM.stator.strayReluctance.Phi.re,smrM.stator.strayReluctance.Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (200): * Single equations (assignments): 193 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 22,(4,93.8%) 18,(1,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001462/3.572, allocations: 395.9 kB / 0.596 GB, free: 64 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01663/3.588, allocations: 4.308 MB / 0.6002 GB, free: 62.07 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.797e-05/3.588, allocations: 0 / 0.6002 GB, free: 62.07 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0117/3.6, allocations: 2.708 MB / 0.6029 GB, free: 60.72 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006061/3.606, allocations: 0.5664 MB / 0.6034 GB, free: 60.58 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03904/3.645, allocations: 7.967 MB / 0.6112 GB, free: 57.36 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01382/3.659, allocations: 3.6 MB / 0.6147 GB, free: 56.06 MB / 346.7 MB Notification: Performance of SimCode: time 2.494e-06/3.659, allocations: 1.094 kB / 0.6147 GB, free: 56.06 MB / 346.7 MB