Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",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(ModelicaTest): time 2.425/2.425, allocations: 235.1 MB / 242 MB, free: 9.73 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1942/2.619, allocations: 57.2 MB / 299.2 MB, free: 420 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2652/2.885, allocations: 54.85 MB / 354.1 MB, free: 13.37 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4542/3.339, allocations: 116.7 MB / 470.8 MB, free: 30.32 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003427/3.339, allocations: 73.73 kB / 470.9 MB, free: 30.32 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 742 * Number of variables: 742 Notification: Performance of Generate backend data structure: time 0.3216/3.661, allocations: 63.61 MB / 0.522 GB, free: 15.29 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.71e-05/3.661, allocations: 12 kB / 0.522 GB, free: 15.28 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002964/3.664, allocations: 407.5 kB / 0.5224 GB, free: 14.88 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01003/3.674, allocations: 2.164 MB / 0.5245 GB, free: 12.66 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002494/3.674, allocations: 92 kB / 0.5246 GB, free: 12.57 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001319/3.676, allocations: 163.9 kB / 0.5247 GB, free: 12.41 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01173/3.687, allocations: 2.776 MB / 0.5274 GB, free: 9.625 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01307/3.701, allocations: 3.25 MB / 0.5306 GB, free: 6.234 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001607/3.701, allocations: 7.844 kB / 0.5306 GB, free: 6.227 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005755/3.701, allocations: 4 kB / 0.5306 GB, free: 6.223 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002862/3.702, allocations: 145.5 kB / 0.5307 GB, free: 6.078 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03966/3.741, allocations: 11.07 MB / 0.5416 GB, free: 10.72 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004042/3.745, allocations: 1.23 MB / 0.5428 GB, free: 9.496 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003521/3.749, allocations: 1.119 MB / 0.5438 GB, free: 8.379 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006552/3.75, allocations: 223.5 kB / 0.5441 GB, free: 8.121 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.459e-05/3.75, allocations: 51.86 kB / 0.5441 GB, free: 8.062 MB / 410.7 MB Notification: Performance of pre-optimization done (n=147): time 4.428e-06/3.75, allocations: 0 / 0.5441 GB, free: 8.062 MB / 410.7 MB Notification: Performance of matching and sorting (n=161): time 0.02235/3.772, allocations: 5.632 MB / 0.5496 GB, free: 2.371 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.454e-05/3.772, allocations: 68.72 kB / 0.5497 GB, free: 2.293 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004281/3.777, allocations: 1.443 MB / 0.5511 GB, free: 0.8516 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004655/3.777, allocations: 25.7 kB / 0.5511 GB, free: 0.8203 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001085/3.778, allocations: 1.065 MB / 0.5521 GB, free: 15.73 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008883/3.779, allocations: 0.5273 MB / 0.5527 GB, free: 15.2 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001788/3.779, allocations: 4 kB / 0.5527 GB, free: 15.2 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000259/3.78, allocations: 377.9 kB / 0.553 GB, free: 14.82 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002771/3.782, allocations: 0.8708 MB / 0.5539 GB, free: 13.95 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003557/3.786, allocations: 1.308 MB / 0.5552 GB, free: 12.46 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004032/3.79, allocations: 1.113 MB / 0.5562 GB, free: 11.35 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.64e-05/3.79, allocations: 4 kB / 0.5562 GB, free: 11.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.01035/3.8, allocations: 2.786 MB / 0.559 GB, free: 8.539 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/3.801, allocations: 4 kB / 0.559 GB, free: 8.535 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.929e-05/3.801, allocations: 16 kB / 0.559 GB, free: 8.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00265/3.803, allocations: 446.5 kB / 0.5594 GB, free: 8.074 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005053/3.808, allocations: 447.3 kB / 0.5598 GB, free: 7.637 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0168/3.825, allocations: 6.533 MB / 0.5662 GB, free: 0.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005153/3.83, allocations: 63.83 kB / 0.5663 GB, free: 0.6875 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008462/3.831, allocations: 75.98 kB / 0.5663 GB, free: 0.6133 MB / 426.7 MB Warning: Assuming fixed start value for the following 1 variables: smpm.idq_sr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "Stator space phasor current / rotor fixed frame" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (209): * Single equations (assignments): 206 * 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 {(2,100.0%) 9,(1,100.0%) 2,(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009892/3.832, allocations: 151.7 kB / 0.5665 GB, free: 472 kB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001202/3.834, allocations: 193.7 kB / 0.5667 GB, free: 276 kB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01717/3.851, allocations: 2.883 MB / 0.5695 GB, free: 13.36 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.55e-05/3.851, allocations: 16 kB / 0.5695 GB, free: 13.34 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.5e-05/3.851, allocations: 8 kB / 0.5695 GB, free: 13.33 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.028e-05/3.851, allocations: 7.969 kB / 0.5695 GB, free: 13.32 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02713/3.878, allocations: 5.723 MB / 0.5751 GB, free: 7.504 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.93e-05/3.878, allocations: 3.984 kB / 0.5751 GB, free: 7.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004127/3.882, allocations: 231.7 kB / 0.5753 GB, free: 7.273 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007825/3.89, allocations: 0.8376 MB / 0.5762 GB, free: 6.426 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005593/3.891, allocations: 23.92 kB / 0.5762 GB, free: 6.402 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03684/3.928, allocations: 9.561 MB / 0.5855 GB, free: 12.49 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.551e-05/3.928, allocations: 12 kB / 0.5855 GB, free: 12.48 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02299/3.951, allocations: 4.419 MB / 0.5898 GB, free: 7.922 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02701/3.978, allocations: 6.194 MB / 0.5959 GB, free: 1.602 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002145/3.98, allocations: 494.4 kB / 0.5964 GB, free: 1.098 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00063/3.981, allocations: 4 kB / 0.5964 GB, free: 1.094 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00281/3.984, allocations: 63.86 kB / 0.5964 GB, free: 1.031 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003551/3.984, allocations: 85.17 kB / 0.5965 GB, free: 0.9492 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002359/3.984, allocations: 51.89 kB / 0.5966 GB, free: 0.8984 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.004175/3.988, allocations: 1.086 MB / 0.5976 GB, free: 15.82 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00915/3.998, allocations: 0.5585 MB / 0.5982 GB, free: 15.26 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (smpm.inertiaRotor.w,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 112 * 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 {(2,100.0%) 9,(1,100.0%) 2,(3,88.9%) 34} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001912/4, allocations: 406 kB / 0.5986 GB, free: 14.86 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01222/4.012, allocations: 2.531 MB / 0.601 GB, free: 12.3 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-05/4.012, allocations: 256 / 0.601 GB, free: 12.3 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007551/4.019, allocations: 1.518 MB / 0.6025 GB, free: 10.75 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007051/4.027, allocations: 391.8 kB / 0.6029 GB, free: 10.36 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02723/4.054, allocations: 4.719 MB / 0.6075 GB, free: 5.559 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007966/4.062, allocations: 2.425 MB / 0.6099 GB, free: 3.105 MB / 474.7 MB Notification: Performance of SimCode: time 2.425e-06/4.062, allocations: 7.938 kB / 0.6099 GB, free: 3.098 MB / 474.7 MB