Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_Generator",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.627/1.627, allocations: 194.9 MB / 202.6 MB, free: 6.895 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2312/1.858, allocations: 46.83 MB / 249.4 MB, free: 5.352 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08758/1.946, allocations: 44.5 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3181/2.264, allocations: 108.3 MB / 402.2 MB, free: 13.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003067/2.264, allocations: 86.2 kB / 402.3 MB, free: 13.82 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: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.3694/2.634, allocations: 84.45 MB / 486.7 MB, free: 0.7148 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/2.634, allocations: 11.94 kB / 486.7 MB, free: 0.7031 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002651/2.637, allocations: 424 kB / 487.1 MB, free: 292 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006461/2.643, allocations: 1.838 MB / 489 MB, free: 14.39 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001462/2.643, allocations: 80 kB / 489.1 MB, free: 14.31 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006812/2.644, allocations: 151.9 kB / 489.2 MB, free: 14.16 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007928/2.652, allocations: 2.341 MB / 491.6 MB, free: 11.81 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008622/2.661, allocations: 2.81 MB / 494.4 MB, free: 8.859 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001022/2.661, allocations: 7.984 kB / 494.4 MB, free: 8.852 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000344/2.661, allocations: 3.938 kB / 494.4 MB, free: 8.848 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001635/2.661, allocations: 108.9 kB / 494.5 MB, free: 8.738 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1519/2.813, allocations: 9.993 MB / 0.4927 GB, free: 129.2 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002473/2.816, allocations: 0.9309 MB / 0.4936 GB, free: 129.2 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002106/2.818, allocations: 0.9174 MB / 0.4945 GB, free: 129.1 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000446/2.818, allocations: 220.3 kB / 0.4947 GB, free: 129 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.103e-05/2.818, allocations: 51 kB / 0.4947 GB, free: 128.9 MB / 394.7 MB Notification: Performance of pre-optimization done (n=119): time 4.288e-06/2.818, allocations: 0 / 0.4947 GB, free: 128.9 MB / 394.7 MB Notification: Performance of matching and sorting (n=144): time 0.01746/2.836, allocations: 5.461 MB / 0.5 GB, free: 128.4 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.353e-05/2.836, allocations: 69.06 kB / 0.5001 GB, free: 128.3 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003023/2.839, allocations: 1.378 MB / 0.5015 GB, free: 128.1 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002508/2.839, allocations: 25.7 kB / 0.5015 GB, free: 128.1 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005396/2.84, allocations: 0.9919 MB / 0.5025 GB, free: 127.7 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000534/2.84, allocations: 481.6 kB / 0.5029 GB, free: 127.4 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001439/2.84, allocations: 0 / 0.5029 GB, free: 127.4 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001307/2.841, allocations: 370.7 kB / 0.5033 GB, free: 127.1 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001933/2.843, allocations: 0.8072 MB / 0.5041 GB, free: 127.1 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002133/2.845, allocations: 1.278 MB / 0.5053 GB, free: 126.6 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002393/2.847, allocations: 1.021 MB / 0.5063 GB, free: 126.5 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.608e-06/2.847, allocations: 3.344 kB / 0.5063 GB, free: 126.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.007505/2.855, allocations: 2.71 MB / 0.5089 GB, free: 126.4 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2e-05/2.855, allocations: 7.062 kB / 0.509 GB, free: 126.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.313e-05/2.855, allocations: 14.38 kB / 0.509 GB, free: 126.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002581/2.857, allocations: 0.5835 MB / 0.5095 GB, free: 126.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003141/2.861, allocations: 398.9 kB / 0.5099 GB, free: 126.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01075/2.871, allocations: 4.893 MB / 0.5147 GB, free: 125 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002904/2.874, allocations: 83.64 kB / 0.5148 GB, free: 125 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002296/2.875, allocations: 75.62 kB / 0.5148 GB, free: 125 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (188): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * 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: 1 {(6,72.2%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004122/2.875, allocations: 158 kB / 0.515 GB, free: 124.9 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004974/2.875, allocations: 179.1 kB / 0.5152 GB, free: 124.8 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007067/2.883, allocations: 2.431 MB / 0.5175 GB, free: 124.6 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.069e-05/2.883, allocations: 21.14 kB / 0.5176 GB, free: 124.6 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-05/2.883, allocations: 7.25 kB / 0.5176 GB, free: 124.6 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.005e-05/2.883, allocations: 11.02 kB / 0.5176 GB, free: 124.6 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01334/2.896, allocations: 4.977 MB / 0.5224 GB, free: 124.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.706e-05/2.896, allocations: 7.094 kB / 0.5224 GB, free: 124.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00221/2.898, allocations: 247.6 kB / 0.5227 GB, free: 124.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003128/2.901, allocations: 0.6342 MB / 0.5233 GB, free: 124.1 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000166/2.902, allocations: 18.89 kB / 0.5233 GB, free: 124.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01256/2.914, allocations: 6.49 MB / 0.5297 GB, free: 121.6 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.176e-06/2.914, allocations: 3.406 kB / 0.5297 GB, free: 121.6 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009296/2.924, allocations: 3.888 MB / 0.5335 GB, free: 120.1 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01169/2.935, allocations: 5.489 MB / 0.5388 GB, free: 117.4 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001491/2.937, allocations: 452.8 kB / 0.5393 GB, free: 117.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004808/2.937, allocations: 11.02 kB / 0.5393 GB, free: 117.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002286/2.94, allocations: 80.64 kB / 0.5393 GB, free: 117.1 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003002/2.94, allocations: 93.41 kB / 0.5394 GB, free: 117.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001596/2.94, allocations: 52.7 kB / 0.5395 GB, free: 117.1 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002251/2.942, allocations: 1.033 MB / 0.5405 GB, free: 116.7 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003868/2.946, allocations: 0.543 MB / 0.541 GB, free: 116.6 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,75.0%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007877/2.947, allocations: 328.6 kB / 0.5413 GB, free: 116.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005954/2.953, allocations: 2.369 MB / 0.5436 GB, free: 115.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.944e-06/2.953, allocations: 3.812 kB / 0.5436 GB, free: 115.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004013/2.957, allocations: 1.46 MB / 0.5451 GB, free: 115 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002867/2.96, allocations: 296.2 kB / 0.5454 GB, free: 114.9 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01341/2.973, allocations: 4.18 MB / 0.5494 GB, free: 113.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003931/2.977, allocations: 2.191 MB / 0.5516 GB, free: 112.4 MB / 394.7 MB Notification: Performance of SimCode: time 1.643e-06/2.977, allocations: 0 / 0.5516 GB, free: 112.4 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat