Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",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.579/1.579, allocations: 194.9 MB / 202.6 MB, free: 6.906 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2251/1.804, allocations: 46.84 MB / 249.4 MB, free: 5.336 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0854/1.889, allocations: 44.51 MB / 293.9 MB, free: 10.89 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.303/2.192, allocations: 104.3 MB / 398.2 MB, free: 292 kB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002869/2.193, allocations: 82.64 kB / 398.3 MB, free: 280 kB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 657 * Number of variables: 657 Notification: Performance of Generate backend data structure: time 0.2311/2.424, allocations: 54.52 MB / 452.8 MB, free: 2.859 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/2.424, allocations: 8 kB / 452.8 MB, free: 2.852 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00178/2.426, allocations: 348.1 kB / 453.1 MB, free: 2.508 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00675/2.432, allocations: 1.915 MB / 455.1 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001366/2.433, allocations: 80 kB / 455.1 MB, free: 468 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005766/2.433, allocations: 155.8 kB / 455.3 MB, free: 312 kB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007791/2.441, allocations: 2.38 MB / 457.7 MB, free: 13.91 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008371/2.449, allocations: 2.848 MB / 460.5 MB, free: 10.92 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001018/2.449, allocations: 11.89 kB / 460.5 MB, free: 10.91 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003272/2.45, allocations: 4 kB / 460.5 MB, free: 10.91 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001907/2.45, allocations: 116.9 kB / 460.6 MB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02624/2.476, allocations: 9.977 MB / 470.6 MB, free: 500 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002427/2.479, allocations: 0.8967 MB / 471.5 MB, free: 15.58 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002084/2.481, allocations: 0.7691 MB / 472.3 MB, free: 14.81 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004766/2.481, allocations: 219.1 kB / 472.5 MB, free: 14.56 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.905e-05/2.481, allocations: 51.5 kB / 472.6 MB, free: 14.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=106): time 4.008e-06/2.481, allocations: 0 / 472.6 MB, free: 14.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=136): time 0.01803/2.499, allocations: 5.18 MB / 477.7 MB, free: 9.254 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.906e-05/2.5, allocations: 64.72 kB / 477.8 MB, free: 9.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00323/2.503, allocations: 1.304 MB / 479.1 MB, free: 7.871 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002489/2.503, allocations: 25.7 kB / 479.1 MB, free: 7.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008303/2.504, allocations: 1.016 MB / 480.1 MB, free: 6.809 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005703/2.504, allocations: 457.3 kB / 480.6 MB, free: 6.355 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001363/2.505, allocations: 0 / 480.6 MB, free: 6.355 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002036/2.505, allocations: 373.8 kB / 481 MB, free: 5.984 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002067/2.507, allocations: 0.7732 MB / 481.7 MB, free: 5.211 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002509/2.509, allocations: 1.28 MB / 483 MB, free: 3.703 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002616/2.512, allocations: 1.017 MB / 484 MB, free: 2.684 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.133e-05/2.512, allocations: 4 kB / 484 MB, free: 2.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.006682/2.519, allocations: 2.37 MB / 486.4 MB, free: 292 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.403e-05/2.519, allocations: 8 kB / 486.4 MB, free: 284 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.754e-05/2.519, allocations: 27.91 kB / 486.4 MB, free: 256 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001141/2.52, allocations: 239.6 kB / 486.7 MB, free: 4 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003471/2.524, allocations: 427.4 kB / 487.1 MB, free: 15.58 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003626/2.527, allocations: 2.84 MB / 489.9 MB, free: 12.51 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002545/2.53, allocations: 71.89 kB / 490 MB, free: 12.44 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002323/2.53, allocations: 75.98 kB / 490.1 MB, free: 12.37 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 207 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004286/2.53, allocations: 164 kB / 490.2 MB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004423/2.531, allocations: 169.8 kB / 490.4 MB, free: 12.03 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006087/2.537, allocations: 2.063 MB / 492.5 MB, free: 9.938 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.048e-05/2.537, allocations: 12 kB / 492.5 MB, free: 9.926 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.188e-05/2.537, allocations: 3.906 kB / 492.5 MB, free: 9.922 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.347e-05/2.537, allocations: 11.97 kB / 492.5 MB, free: 9.91 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01316/2.55, allocations: 4.516 MB / 497 MB, free: 5.309 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.692e-05/2.55, allocations: 4 kB / 497 MB, free: 5.305 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002602/2.553, allocations: 279.8 kB / 497.3 MB, free: 5.031 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001009/2.554, allocations: 203.2 kB / 497.5 MB, free: 4.82 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001306/2.554, allocations: 11.98 kB / 497.5 MB, free: 4.809 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003502/2.558, allocations: 2.812 MB / 0.4886 GB, free: 1.762 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.085e-05/2.558, allocations: 11.94 kB / 0.4886 GB, free: 1.75 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1288/2.687, allocations: 3.409 MB / 0.4919 GB, free: 133.4 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009445/2.696, allocations: 5.009 MB / 0.4968 GB, free: 132.6 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00126/2.697, allocations: 427.4 kB / 0.4972 GB, free: 132.5 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004095/2.698, allocations: 5.844 kB / 0.4972 GB, free: 132.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00178/2.7, allocations: 51.34 kB / 0.4973 GB, free: 132.5 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002048/2.7, allocations: 73.31 kB / 0.4973 GB, free: 132.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001382/2.7, allocations: 37.06 kB / 0.4974 GB, free: 132.5 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002024/2.702, allocations: 0.9675 MB / 0.4983 GB, free: 132.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00326/2.705, allocations: 478.5 kB / 0.4988 GB, free: 132.4 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (132): * Single equations (assignments): 128 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007498/2.706, allocations: 385.4 kB / 0.4991 GB, free: 132.3 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004975/2.711, allocations: 2.332 MB / 0.5014 GB, free: 131.9 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/2.711, allocations: 0 / 0.5014 GB, free: 131.9 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002696/2.714, allocations: 1.333 MB / 0.5027 GB, free: 131.5 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003186/2.717, allocations: 365 kB / 0.5031 GB, free: 131.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01067/2.728, allocations: 3.943 MB / 0.5069 GB, free: 130.6 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003259/2.731, allocations: 2.219 MB / 0.5091 GB, free: 129.9 MB / 394.7 MB Notification: Performance of SimCode: time 1.082e-06/2.731, allocations: 0 / 0.5091 GB, free: 129.9 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.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat