Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",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(ModelicaTest): time 2.277/2.277, allocations: 234.9 MB / 241.9 MB, free: 9.785 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2061/2.483, allocations: 57.21 MB / 299.1 MB, free: 476 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/2.779, allocations: 54.84 MB / 354 MB, free: 13.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4736/3.253, allocations: 116.7 MB / 470.7 MB, free: 30.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003827/3.253, allocations: 81.48 kB / 470.8 MB, free: 30.27 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.3724/3.626, allocations: 63.62 MB / 0.5219 GB, free: 15.38 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/3.626, allocations: 8 kB / 0.5219 GB, free: 15.37 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002663/3.628, allocations: 403.5 kB / 0.5223 GB, free: 14.97 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009106/3.638, allocations: 2.164 MB / 0.5244 GB, free: 12.75 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001546/3.638, allocations: 92 kB / 0.5245 GB, free: 12.66 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006949/3.638, allocations: 171.9 kB / 0.5246 GB, free: 12.49 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009537/3.648, allocations: 2.772 MB / 0.5273 GB, free: 9.715 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01735/3.665, allocations: 3.25 MB / 0.5305 GB, free: 6.324 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001365/3.666, allocations: 15.78 kB / 0.5305 GB, free: 6.309 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004275/3.666, allocations: 0 / 0.5305 GB, free: 6.309 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000195/3.666, allocations: 133.5 kB / 0.5306 GB, free: 6.176 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04372/3.71, allocations: 11.08 MB / 0.5415 GB, free: 10.8 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004762/3.715, allocations: 1.226 MB / 0.5427 GB, free: 9.582 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0032/3.718, allocations: 1.123 MB / 0.5438 GB, free: 8.461 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005638/3.719, allocations: 223.5 kB / 0.544 GB, free: 8.203 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.073e-05/3.719, allocations: 47.88 kB / 0.544 GB, free: 8.148 MB / 410.7 MB Notification: Performance of pre-optimization done (n=147): time 4.198e-06/3.719, allocations: 0 / 0.544 GB, free: 8.148 MB / 410.7 MB Notification: Performance of matching and sorting (n=161): time 0.02627/3.745, allocations: 5.642 MB / 0.5495 GB, free: 2.449 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.809e-05/3.745, allocations: 68.72 kB / 0.5496 GB, free: 2.371 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004216/3.749, allocations: 1.447 MB / 0.551 GB, free: 0.9258 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004624/3.75, allocations: 25.7 kB / 0.551 GB, free: 0.8945 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001021/3.751, allocations: 1.061 MB / 0.5521 GB, free: 15.81 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009452/3.752, allocations: 0.5234 MB / 0.5526 GB, free: 15.28 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001669/3.752, allocations: 4 kB / 0.5526 GB, free: 15.28 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002627/3.752, allocations: 373.9 kB / 0.5529 GB, free: 14.91 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002557/3.755, allocations: 0.8747 MB / 0.5538 GB, free: 14.03 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002935/3.758, allocations: 1.312 MB / 0.5551 GB, free: 12.53 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003122/3.761, allocations: 1.109 MB / 0.5561 GB, free: 11.43 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-05/3.761, allocations: 4 kB / 0.5562 GB, free: 11.42 MB / 426.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.008709/3.77, allocations: 2.786 MB / 0.5589 GB, free: 8.617 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.347e-05/3.77, allocations: 4 kB / 0.5589 GB, free: 8.613 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.492e-05/3.77, allocations: 16 kB / 0.5589 GB, free: 8.598 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002057/3.772, allocations: 450.5 kB / 0.5593 GB, free: 8.148 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004077/3.776, allocations: 435.3 kB / 0.5597 GB, free: 7.723 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01576/3.792, allocations: 6.533 MB / 0.5661 GB, free: 0.832 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004846/3.797, allocations: 67.89 kB / 0.5662 GB, free: 0.7656 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008148/3.798, allocations: 75.98 kB / 0.5663 GB, free: 0.6914 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.0007949/3.798, allocations: 148.6 kB / 0.5664 GB, free: 0.5391 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001045/3.8, allocations: 193.6 kB / 0.5666 GB, free: 356 kB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01043/3.81, allocations: 2.887 MB / 0.5694 GB, free: 13.43 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.644e-05/3.81, allocations: 16 kB / 0.5694 GB, free: 13.42 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.032e-05/3.81, allocations: 8 kB / 0.5694 GB, free: 13.41 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.256e-05/3.81, allocations: 7.969 kB / 0.5694 GB, free: 13.4 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0205/3.831, allocations: 5.711 MB / 0.575 GB, free: 7.594 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.523e-05/3.831, allocations: 4 kB / 0.575 GB, free: 7.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002613/3.833, allocations: 231.7 kB / 0.5752 GB, free: 7.363 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004619/3.838, allocations: 0.8414 MB / 0.5761 GB, free: 6.512 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004146/3.838, allocations: 19.98 kB / 0.5761 GB, free: 6.492 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02244/3.861, allocations: 9.573 MB / 0.5854 GB, free: 12.57 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-05/3.861, allocations: 4 kB / 0.5854 GB, free: 12.56 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01323/3.874, allocations: 4.427 MB / 0.5897 GB, free: 8.004 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01793/3.892, allocations: 6.194 MB / 0.5958 GB, free: 1.684 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00198/3.894, allocations: 498.4 kB / 0.5963 GB, free: 1.176 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006031/3.895, allocations: 8 kB / 0.5963 GB, free: 1.168 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002465/3.897, allocations: 55.97 kB / 0.5963 GB, free: 1.113 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003607/3.898, allocations: 89.16 kB / 0.5964 GB, free: 1.027 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002051/3.898, allocations: 51.89 kB / 0.5965 GB, free: 0.9766 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.002986/3.901, allocations: 1.09 MB / 0.5975 GB, free: 15.89 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00476/3.906, allocations: 0.5507 MB / 0.5981 GB, free: 15.34 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.001193/3.907, allocations: 389.6 kB / 0.5984 GB, free: 14.95 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008524/3.916, allocations: 2.527 MB / 0.6009 GB, free: 12.4 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.189e-05/3.916, allocations: 7.938 kB / 0.6009 GB, free: 12.39 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005489/3.921, allocations: 1.519 MB / 0.6024 GB, free: 10.84 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00682/3.928, allocations: 399.1 kB / 0.6028 GB, free: 10.45 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02094/3.949, allocations: 4.715 MB / 0.6074 GB, free: 5.648 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006795/3.956, allocations: 2.429 MB / 0.6098 GB, free: 3.188 MB / 474.7 MB Notification: Performance of SimCode: time 1.824e-06/3.956, allocations: 0 / 0.6098 GB, free: 3.188 MB / 474.7 MB