Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_DC_Drive,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_DC_Drive",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(Modelica): time 1.818/1.818, allocations: 194.9 MB / 202.5 MB, free: 6.934 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.25/2.068, allocations: 46.85 MB / 249.4 MB, free: 5.34 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09077/2.159, allocations: 44.5 MB / 293.9 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3265/2.485, allocations: 102.5 MB / 396.4 MB, free: 1.23 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003283/2.486, allocations: 89.42 kB / 396.5 MB, free: 1.219 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: 732 * Number of variables: 732 Notification: Performance of Generate backend data structure: time 0.3499/2.836, allocations: 67.61 MB / 464.1 MB, free: 7.461 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/2.836, allocations: 8 kB / 464.1 MB, free: 7.453 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00271/2.838, allocations: 443.2 kB / 464.5 MB, free: 7.016 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02/2.858, allocations: 4.073 MB / 468.6 MB, free: 2.863 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002387/2.859, allocations: 99.91 kB / 468.7 MB, free: 2.766 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001185/2.86, allocations: 183.9 kB / 468.9 MB, free: 2.586 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01456/2.874, allocations: 3.221 MB / 472.1 MB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01722/2.892, allocations: 3.442 MB / 475.5 MB, free: 11.78 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001195/2.892, allocations: 8 kB / 475.6 MB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004455/2.892, allocations: 7.906 kB / 475.6 MB, free: 11.76 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001614/2.893, allocations: 113.5 kB / 475.7 MB, free: 11.65 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03848/2.931, allocations: 12.25 MB / 487.9 MB, free: 15.1 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004906/2.936, allocations: 1.601 MB / 489.5 MB, free: 13.49 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004537/2.941, allocations: 1.53 MB / 491.1 MB, free: 11.96 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000202/2.941, allocations: 25.98 kB / 491.1 MB, free: 11.94 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003703/2.945, allocations: 1.363 MB / 492.4 MB, free: 10.54 MB / 394.7 MB Notification: Performance of pre-optimization done (n=179): time 6.362e-06/2.945, allocations: 0 / 492.4 MB, free: 10.54 MB / 394.7 MB Notification: Performance of matching and sorting (n=183): time 0.01816/2.963, allocations: 5.967 MB / 498.4 MB, free: 4.473 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002126/2.963, allocations: 295 kB / 498.7 MB, free: 4.125 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005951/2.969, allocations: 2.172 MB / 0.4891 GB, free: 1.922 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005573/2.97, allocations: 61.61 kB / 0.4892 GB, free: 1.855 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001475/2.971, allocations: 1.075 MB / 0.4902 GB, free: 0.7656 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001182/2.972, allocations: 0.5623 MB / 0.4908 GB, free: 200 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001928/2.973, allocations: 0 / 0.4908 GB, free: 200 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.133/3.106, allocations: 402.6 kB / 0.4912 GB, free: 127.2 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003067/3.109, allocations: 1.166 MB / 0.4923 GB, free: 127.2 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003316/3.112, allocations: 1.793 MB / 0.4941 GB, free: 126.5 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003841/3.116, allocations: 1.387 MB / 0.4954 GB, free: 126.5 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.164e-05/3.116, allocations: 3.844 kB / 0.4954 GB, free: 126.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.009799/3.126, allocations: 3.598 MB / 0.4989 GB, free: 126.2 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00152/3.127, allocations: 7.244 MB / 0.506 GB, free: 118.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.37e-05/3.127, allocations: 18.78 kB / 0.506 GB, free: 118.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002224/3.13, allocations: 0.5721 MB / 0.5066 GB, free: 118.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004131/3.134, allocations: 0.5032 MB / 0.5071 GB, free: 118.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01108/3.145, allocations: 7.278 MB / 0.5142 GB, free: 115.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004945/3.15, allocations: 293.7 kB / 0.5145 GB, free: 115.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000614/3.151, allocations: 95.56 kB / 0.5146 GB, free: 115.1 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/3.151, allocations: 6.812 kB / 0.5146 GB, free: 115.1 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01191/3.163, allocations: 3.309 MB / 0.5178 GB, free: 114.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001203/3.163, allocations: 18.38 kB / 0.5178 GB, free: 114.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00277/3.166, allocations: 0.5794 MB / 0.5184 GB, free: 114.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005212/3.171, allocations: 0.5012 MB / 0.5189 GB, free: 114.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01232/3.183, allocations: 7.27 MB / 0.526 GB, free: 111.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005093/3.188, allocations: 277.2 kB / 0.5262 GB, free: 111.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006157/3.189, allocations: 95.95 kB / 0.5263 GB, free: 111.1 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 79 * Number of states: 0 () * Number of discrete variables: 69 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition9,$whenCondition8,$whenCondition7,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[1].off,$PRE.rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[2].off,$PRE.rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[3].off,$PRE.rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[1].off,$PRE.rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[2].off,$PRE.rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[3].off,$PRE.rectifier.pre_p[1].u,rectifier.pre_p[1].u,rectifier.pre_p[1].y,$PRE.rectifier.pre_p[2].u,rectifier.pre_p[2].u,rectifier.pre_p[2].y,$PRE.rectifier.pre_p[3].u,rectifier.pre_p[3].u,rectifier.pre_p[3].y,$PRE.rectifier.pre_n[1].u,rectifier.pre_n[1].u,rectifier.pre_n[1].y,$PRE.rectifier.pre_n[2].u,rectifier.pre_n[2].u,rectifier.pre_n[2].y,$PRE.rectifier.pre_n[3].u,rectifier.pre_n[3].u,rectifier.pre_n[3].y,pulse2.twomPulse.positiveThreshold[1].y,pulse2.twomPulse.positiveThreshold[2].y,pulse2.twomPulse.positiveThreshold[3].y,pulse2.twomPulse.negativeThreshold[1].y,pulse2.twomPulse.negativeThreshold[2].y,pulse2.twomPulse.negativeThreshold[3].y,$PRE.pulse2.twomPulse.timerPositive[1].entryTime,pulse2.twomPulse.timerPositive[1].entryTime,$PRE.pulse2.twomPulse.timerPositive[2].entryTime,pulse2.twomPulse.timerPositive[2].entryTime,$PRE.pulse2.twomPulse.timerPositive[3].entryTime,pulse2.twomPulse.timerPositive[3].entryTime,$PRE.pulse2.twomPulse.timerNegative[1].entryTime,pulse2.twomPulse.timerNegative[1].entryTime,$PRE.pulse2.twomPulse.timerNegative[2].entryTime,pulse2.twomPulse.timerNegative[2].entryTime,$PRE.pulse2.twomPulse.timerNegative[3].entryTime,pulse2.twomPulse.timerNegative[3].entryTime,pulse2.fire_p[1],pulse2.fire_p[2],pulse2.fire_p[3],pulse2.fire_n[1],pulse2.fire_n[2],pulse2.fire_n[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (255): * Single equations (assignments): 252 * 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: 2 {(1,100.0%) 12,(1,100.0%) 4} * Non-linear torn systems: 1 {6 19} Notification: Performance of prepare postOptimizeDAE: time 0.0007616/3.19, allocations: 219.7 kB / 0.5265 GB, free: 111 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008065/3.191, allocations: 243.4 kB / 0.5268 GB, free: 111 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007516/3.198, allocations: 2.908 MB / 0.5296 GB, free: 110.6 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.518e-05/3.198, allocations: 20.28 kB / 0.5296 GB, free: 110.6 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.438e-05/3.198, allocations: 3.906 kB / 0.5296 GB, free: 110.6 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.389e-05/3.198, allocations: 10.66 kB / 0.5296 GB, free: 110.6 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01706/3.215, allocations: 6.281 MB / 0.5358 GB, free: 109.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.618e-05/3.215, allocations: 7.656 kB / 0.5358 GB, free: 109.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002544/3.218, allocations: 256.5 kB / 0.536 GB, free: 109.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001884/3.22, allocations: 0.5316 MB / 0.5365 GB, free: 109.8 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004742/3.22, allocations: 36.28 kB / 0.5366 GB, free: 109.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01051/3.231, allocations: 7.082 MB / 0.5435 GB, free: 105.7 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.287e-06/3.231, allocations: 7.688 kB / 0.5435 GB, free: 105.7 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01037/3.241, allocations: 4.595 MB / 0.548 GB, free: 103.7 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02021/3.262, allocations: 9.573 MB / 0.5573 GB, free: 99.56 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002277/3.264, allocations: 0.607 MB / 0.5579 GB, free: 99.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001052/3.265, allocations: 50.28 kB / 0.558 GB, free: 99.19 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004216/3.269, allocations: 259.6 kB / 0.5582 GB, free: 99.18 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008018/3.27, allocations: 159 kB / 0.5584 GB, free: 99.16 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001853/3.27, allocations: 49.84 kB / 0.5584 GB, free: 99.15 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.004014/3.274, allocations: 1.594 MB / 0.56 GB, free: 98.52 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.008676/3.283, allocations: 1.074 MB / 0.561 GB, free: 98.48 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 17 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,pulse2.twomPulse.filter[1].firstOrder.y,pulse2.twomPulse.filter[1].transferFunction[1].x_scaled[1],pulse2.twomPulse.filter[1].transferFunction[2].x_scaled[1],pulse2.twomPulse.filter[2].firstOrder.y,pulse2.twomPulse.filter[2].transferFunction[1].x_scaled[1],pulse2.twomPulse.filter[2].transferFunction[2].x_scaled[1],pulse2.twomPulse.filter[3].firstOrder.y,pulse2.twomPulse.filter[3].transferFunction[1].x_scaled[1],pulse2.twomPulse.filter[3].transferFunction[2].x_scaled[1],inductor.i,dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,lMains.inductor[2].i,lMains.inductor[3].i) * Number of discrete variables: 48 (pulse2.twomPulse.positiveThreshold[1].y,pulse2.twomPulse.positiveThreshold[2].y,pulse2.twomPulse.positiveThreshold[3].y,pulse2.twomPulse.negativeThreshold[1].y,pulse2.twomPulse.negativeThreshold[2].y,pulse2.twomPulse.negativeThreshold[3].y,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.pre_p[1].u,rectifier.pre_p[1].y,rectifier.pre_p[2].u,rectifier.pre_p[2].y,rectifier.pre_p[3].u,rectifier.pre_p[3].y,rectifier.pre_n[1].u,rectifier.pre_n[1].y,rectifier.pre_n[2].u,rectifier.pre_n[2].y,rectifier.pre_n[3].u,rectifier.pre_n[3].y,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2.twomPulse.timerPositive[1].entryTime,pulse2.twomPulse.timerPositive[2].entryTime,pulse2.twomPulse.timerPositive[3].entryTime,pulse2.twomPulse.timerNegative[1].entryTime,pulse2.twomPulse.timerNegative[2].entryTime,pulse2.twomPulse.timerNegative[3].entryTime,pulse2.fire_p[1],pulse2.fire_p[2],pulse2.fire_p[3],pulse2.fire_n[1],pulse2.fire_n[2],pulse2.fire_n[3]) * Number of discrete states: 15 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.pre_n[3].u,rectifier.pre_n[2].u,rectifier.pre_n[1].u,rectifier.pre_p[3].u,rectifier.pre_p[2].u,rectifier.pre_p[1].u,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[1].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (143): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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: 2 {(1,100.0%) 12,(1,100.0%) 4} * Non-linear torn systems: 1 {6 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.001177/3.284, allocations: 376.4 kB / 0.5614 GB, free: 98.36 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01314/3.298, allocations: 5.111 MB / 0.5664 GB, free: 96.29 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.107e-05/3.298, allocations: 4 kB / 0.5664 GB, free: 96.28 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00461/3.302, allocations: 1.949 MB / 0.5683 GB, free: 94.56 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004919/3.307, allocations: 0.5247 MB / 0.5688 GB, free: 94.17 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02054/3.328, allocations: 5.915 MB / 0.5746 GB, free: 89.1 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005204/3.333, allocations: 2.666 MB / 0.5772 GB, free: 86.97 MB / 394.7 MB Notification: Performance of SimCode: time 1.783e-06/3.333, allocations: 0 / 0.5772 GB, free: 86.97 MB / 394.7 MB