Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_R",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.837/1.837, allocations: 194.9 MB / 202.5 MB, free: 6.941 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2652/2.103, allocations: 46.85 MB / 249.4 MB, free: 5.324 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09368/2.196, allocations: 44.5 MB / 293.9 MB, free: 10.92 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3232/2.52, allocations: 86.06 MB / 379.9 MB, free: 6.328 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004131/2.52, allocations: 88.56 kB / 380 MB, free: 6.312 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: 436 * Number of variables: 436 Notification: Performance of Generate backend data structure: time 0.1741/2.694, allocations: 36.84 MB / 416.8 MB, free: 3.363 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/2.694, allocations: 11.94 kB / 416.9 MB, free: 3.352 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009895/2.695, allocations: 217.4 kB / 417.1 MB, free: 3.137 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009148/2.705, allocations: 2.047 MB / 419.1 MB, free: 1.582 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001331/2.705, allocations: 67.09 kB / 419.2 MB, free: 1.52 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004986/2.705, allocations: 100 kB / 419.3 MB, free: 1.422 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005827/2.711, allocations: 1.849 MB / 421.1 MB, free: 292 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006456/2.718, allocations: 2.12 MB / 423.2 MB, free: 14.73 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.181e-05/2.718, allocations: 7.25 kB / 423.3 MB, free: 14.73 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00024/2.718, allocations: 4 kB / 423.3 MB, free: 14.73 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001215/2.718, allocations: 71.36 kB / 423.3 MB, free: 14.66 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0255/2.744, allocations: 6.459 MB / 429.8 MB, free: 8.445 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003624/2.747, allocations: 1.335 MB / 431.1 MB, free: 7.109 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00278/2.75, allocations: 1.013 MB / 432.1 MB, free: 6.102 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.11e-05/2.75, allocations: 16.94 kB / 432.2 MB, free: 6.086 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002091/2.752, allocations: 0.804 MB / 433 MB, free: 5.258 MB / 330.7 MB Notification: Performance of pre-optimization done (n=120): time 4.869e-06/2.752, allocations: 3.938 kB / 433 MB, free: 5.254 MB / 330.7 MB Notification: Performance of matching and sorting (n=120): time 0.004698/2.757, allocations: 1.567 MB / 434.5 MB, free: 3.684 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001282/2.757, allocations: 153.5 kB / 434.7 MB, free: 3.5 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002327/2.76, allocations: 0.9046 MB / 435.6 MB, free: 2.574 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003333/2.76, allocations: 57.67 kB / 435.6 MB, free: 2.512 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008169/2.761, allocations: 0.5952 MB / 436.2 MB, free: 1.914 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006795/2.761, allocations: 345 kB / 436.6 MB, free: 1.578 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/2.762, allocations: 0 / 436.6 MB, free: 1.578 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002039/2.762, allocations: 369.8 kB / 436.9 MB, free: 1.211 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001683/2.764, allocations: 0.6273 MB / 437.6 MB, free: 0.582 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00204/2.766, allocations: 0.8856 MB / 438.4 MB, free: 15.61 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002179/2.768, allocations: 0.6817 MB / 439.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.736e-05/2.768, allocations: 4 kB / 439.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.008738/2.777, allocations: 1.845 MB / 441 MB, free: 13.06 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001543/2.778, allocations: 2.434 MB / 443.4 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.983e-05/2.778, allocations: 7.984 kB / 443.4 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003489/2.782, allocations: 0.5237 MB / 443.9 MB, free: 9.902 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002076/2.784, allocations: 171.7 kB / 444.1 MB, free: 9.734 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01854/2.803, allocations: 4.985 MB / 449.1 MB, free: 4.637 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003129/2.806, allocations: 155.1 kB / 449.2 MB, free: 4.484 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004545/2.806, allocations: 47.98 kB / 449.3 MB, free: 4.438 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/2.806, allocations: 6.031 kB / 449.3 MB, free: 4.434 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007326/2.814, allocations: 1.681 MB / 451 MB, free: 2.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.485e-05/2.814, allocations: 12.12 kB / 451 MB, free: 2.738 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003333/2.817, allocations: 0.52 MB / 451.5 MB, free: 2.215 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002054/2.819, allocations: 163.7 kB / 451.7 MB, free: 2.055 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01856/2.838, allocations: 4.992 MB / 456.7 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002869/2.841, allocations: 131.2 kB / 456.8 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004994/2.841, allocations: 48 kB / 456.8 MB, free: 12.77 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.positiveThreshold[3].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.negativeThreshold[3].y,$PRE.pulse2m.twomPulse.timerPositive[1].entryTime,pulse2m.twomPulse.timerPositive[1].entryTime,$PRE.pulse2m.twomPulse.timerPositive[2].entryTime,pulse2m.twomPulse.timerPositive[2].entryTime,$PRE.pulse2m.twomPulse.timerPositive[3].entryTime,pulse2m.twomPulse.timerPositive[3].entryTime,$PRE.pulse2m.twomPulse.timerNegative[1].entryTime,pulse2m.twomPulse.timerNegative[1].entryTime,$PRE.pulse2m.twomPulse.timerNegative[2].entryTime,pulse2m.twomPulse.timerNegative[2].entryTime,$PRE.pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.fire_p[1],pulse2m.fire_p[2],pulse2m.fire_p[3],pulse2m.fire_n[1],pulse2m.fire_n[2],pulse2m.fire_n[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * 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): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 32} Notification: Performance of prepare postOptimizeDAE: time 0.0008123/2.842, allocations: 193.1 kB / 457 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006793/2.843, allocations: 130.4 kB / 457.2 MB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009482/2.844, allocations: 143.6 kB / 457.3 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.731e-05/2.844, allocations: 12 kB / 457.3 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/2.844, allocations: 0 / 457.3 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-05/2.844, allocations: 7.969 kB / 457.3 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01528/2.859, allocations: 3.373 MB / 460.7 MB, free: 8.879 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-05/2.859, allocations: 0 / 460.7 MB, free: 8.879 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001316/2.861, allocations: 91.83 kB / 460.8 MB, free: 8.789 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003074/2.864, allocations: 0.4889 MB / 461.3 MB, free: 8.297 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002711/2.864, allocations: 8 kB / 461.3 MB, free: 8.289 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.017/2.881, allocations: 4.824 MB / 466.1 MB, free: 3.352 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.607e-06/2.881, allocations: 4 kB / 466.1 MB, free: 3.348 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009209/2.89, allocations: 2.496 MB / 468.6 MB, free: 0.8359 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01266/2.903, allocations: 3.77 MB / 472.4 MB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001873/2.905, allocations: 343.4 kB / 472.7 MB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000796/2.906, allocations: 35.97 kB / 472.7 MB, free: 12.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002315/2.908, allocations: 84.11 kB / 472.8 MB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008846/2.909, allocations: 128.7 kB / 472.9 MB, free: 12.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002231/2.91, allocations: 43.91 kB / 473 MB, free: 12.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.002518/2.912, allocations: 0.6642 MB / 473.7 MB, free: 11.72 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.008164/2.92, allocations: 0.7511 MB / 474.4 MB, free: 10.97 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 48 (pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.negativeThreshold[3].y,pulse2m.twomPulse.positiveThreshold[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,pulse2m.twomPulse.timerPositive[1].entryTime,pulse2m.twomPulse.timerPositive[2].entryTime,pulse2m.twomPulse.timerPositive[3].entryTime,pulse2m.twomPulse.timerNegative[1].entryTime,pulse2m.twomPulse.timerNegative[2].entryTime,pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.fire_p[1],pulse2m.fire_p[2],pulse2m.fire_p[3],pulse2m.fire_n[1],pulse2m.fire_n[2],pulse2m.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_n.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[1].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 73 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 32} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007694/2.921, allocations: 177.2 kB / 474.6 MB, free: 10.79 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01161/2.933, allocations: 2.792 MB / 477.4 MB, free: 7.977 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.426e-05/2.933, allocations: 5.625 kB / 477.4 MB, free: 7.973 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004058/2.937, allocations: 0.9341 MB / 478.3 MB, free: 7.031 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003541/2.941, allocations: 260 kB / 478.6 MB, free: 6.773 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01469/2.955, allocations: 2.789 MB / 481.4 MB, free: 3.938 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004227/2.96, allocations: 1.77 MB / 483.1 MB, free: 2.133 MB / 378.7 MB Notification: Performance of SimCode: time 1.803e-06/2.96, allocations: 0 / 483.1 MB, free: 2.133 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R_res.mat does not exist to compare? outputFormat=mat