Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter",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.666/1.666, allocations: 194.9 MB / 202.6 MB, free: 6.898 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2509/1.917, allocations: 46.83 MB / 249.4 MB, free: 5.348 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09071/2.008, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3215/2.329, allocations: 100.1 MB / 394 MB, free: 2.352 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003004/2.33, allocations: 86.64 kB / 394.1 MB, free: 2.34 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 550 * Number of variables: 550 Notification: Performance of Generate backend data structure: time 0.2092/2.539, allocations: 47.39 MB / 441.5 MB, free: 14.2 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/2.539, allocations: 8 kB / 441.5 MB, free: 14.19 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001998/2.541, allocations: 296.8 kB / 441.8 MB, free: 13.89 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006453/2.548, allocations: 1.588 MB / 443.4 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001707/2.548, allocations: 68 kB / 443.5 MB, free: 12.18 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008996/2.549, allocations: 131.9 kB / 443.6 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007972/2.557, allocations: 2.023 MB / 445.6 MB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009447/2.566, allocations: 2.425 MB / 448 MB, free: 7.453 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001147/2.566, allocations: 7.906 kB / 448.1 MB, free: 7.445 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003548/2.567, allocations: 0 / 448.1 MB, free: 7.445 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001744/2.567, allocations: 100.1 kB / 448.1 MB, free: 7.344 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02568/2.593, allocations: 8.21 MB / 456.4 MB, free: 14.9 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002917/2.596, allocations: 0.8421 MB / 457.2 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002358/2.598, allocations: 0.8353 MB / 458 MB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004767/2.598, allocations: 219.1 kB / 458.3 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.856e-05/2.599, allocations: 47.47 kB / 458.3 MB, free: 12.91 MB / 362.7 MB Notification: Performance of pre-optimization done (n=105): time 3.667e-06/2.599, allocations: 0 / 458.3 MB, free: 12.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=126): time 0.01704/2.616, allocations: 4.769 MB / 463.1 MB, free: 8.082 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.998e-05/2.616, allocations: 64.41 kB / 463.1 MB, free: 8.008 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002465/2.618, allocations: 1.028 MB / 464.2 MB, free: 6.973 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001341/2.618, allocations: 25.7 kB / 464.2 MB, free: 6.941 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006932/2.619, allocations: 0.8215 MB / 465 MB, free: 6.105 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005102/2.62, allocations: 425.6 kB / 465.4 MB, free: 5.684 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001219/2.62, allocations: 0 / 465.4 MB, free: 5.684 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001959/2.62, allocations: 361.9 kB / 465.8 MB, free: 5.324 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001893/2.622, allocations: 0.6951 MB / 466.5 MB, free: 4.629 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002322/2.624, allocations: 1.057 MB / 467.5 MB, free: 3.414 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002525/2.627, allocations: 0.8729 MB / 468.4 MB, free: 2.539 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.546e-05/2.627, allocations: 4 kB / 468.4 MB, free: 2.535 MB / 362.7 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.007939/2.635, allocations: 2.382 MB / 470.8 MB, free: 140 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.653e-05/2.635, allocations: 8.25 kB / 470.8 MB, free: 132 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.978e-05/2.635, allocations: 12 kB / 470.8 MB, free: 120 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002967/2.638, allocations: 0.5803 MB / 471.4 MB, free: 15.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002994/2.641, allocations: 323.5 kB / 471.7 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01331/2.654, allocations: 5.794 MB / 477.5 MB, free: 9.176 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002289/2.656, allocations: 63.84 kB / 477.6 MB, free: 9.113 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002231/2.657, allocations: 63.98 kB / 477.6 MB, free: 9.051 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 155 * 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: 2 * 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: 2 {(6,72.2%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004329/2.657, allocations: 144.3 kB / 477.8 MB, free: 8.902 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004296/2.658, allocations: 150.1 kB / 477.9 MB, free: 8.754 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007531/2.665, allocations: 2.195 MB / 480.1 MB, free: 6.539 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-05/2.665, allocations: 16 kB / 480.1 MB, free: 6.523 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.148e-05/2.665, allocations: 7.984 kB / 480.1 MB, free: 6.516 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.987e-05/2.665, allocations: 3.984 kB / 480.1 MB, free: 6.512 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01382/2.679, allocations: 4.329 MB / 484.5 MB, free: 2.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/2.679, allocations: 4 kB / 484.5 MB, free: 2.086 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00197/2.681, allocations: 208 kB / 484.7 MB, free: 1.883 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003378/2.685, allocations: 0.6276 MB / 485.3 MB, free: 1.246 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001577/2.685, allocations: 15.98 kB / 485.3 MB, free: 1.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01562/2.7, allocations: 7.426 MB / 492.7 MB, free: 9.461 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.153e-06/2.7, allocations: 0 / 492.7 MB, free: 9.461 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009531/2.71, allocations: 3.38 MB / 496.1 MB, free: 5.988 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01215/2.722, allocations: 4.818 MB / 0.4892 GB, free: 1.078 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00134/2.723, allocations: 379.1 kB / 0.4896 GB, free: 0.6875 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003995/2.724, allocations: 15.98 kB / 0.4896 GB, free: 0.6719 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00173/2.726, allocations: 55.94 kB / 0.4896 GB, free: 0.6172 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002594/2.726, allocations: 80.73 kB / 0.4897 GB, free: 0.5391 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001531/2.726, allocations: 36.11 kB / 0.4897 GB, free: 0.5039 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.1283/2.854, allocations: 0.7732 MB / 0.4905 GB, free: 140.3 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003621/2.858, allocations: 459.4 kB / 0.4909 GB, free: 140.3 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (98): * Single equations (assignments): 95 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 22,(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.0008005/2.859, allocations: 283 kB / 0.4912 GB, free: 140.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005345/2.864, allocations: 2.144 MB / 0.4933 GB, free: 139.9 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.231e-06/2.864, allocations: 0 / 0.4933 GB, free: 139.9 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003753/2.868, allocations: 1.355 MB / 0.4946 GB, free: 139.6 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00261/2.871, allocations: 277.5 kB / 0.4949 GB, free: 139.6 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009921/2.881, allocations: 3.666 MB / 0.4985 GB, free: 138.8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00269/2.883, allocations: 1.961 MB / 0.5004 GB, free: 138.1 MB / 394.7 MB Notification: Performance of SimCode: time 1.643e-06/2.883, allocations: 3.438 kB / 0.5004 GB, free: 138.1 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.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat