Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_RL,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2mPulse_ThyristorCenterTap2mPulse_RL",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.83/1.83, allocations: 194.9 MB / 202.6 MB, free: 6.898 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2569/2.087, allocations: 46.84 MB / 249.4 MB, free: 5.328 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/2.192, allocations: 44.5 MB / 293.9 MB, free: 10.89 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3321/2.524, allocations: 85.62 MB / 379.5 MB, free: 6.363 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003253/2.525, allocations: 85.19 kB / 379.6 MB, free: 6.348 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: 440 * Number of variables: 440 Notification: Performance of Generate backend data structure: time 0.1698/2.695, allocations: 37.21 MB / 416.8 MB, free: 3.305 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.222e-05/2.695, allocations: 16 kB / 416.8 MB, free: 3.289 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001308/2.696, allocations: 225.3 kB / 417.1 MB, free: 3.066 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00922/2.705, allocations: 1.968 MB / 419 MB, free: 1.551 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002028/2.706, allocations: 63.44 kB / 419.1 MB, free: 1.492 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008328/2.706, allocations: 104 kB / 419.2 MB, free: 1.391 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007128/2.714, allocations: 1.92 MB / 421.1 MB, free: 204 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007034/2.721, allocations: 2.15 MB / 423.3 MB, free: 14.63 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.332e-05/2.721, allocations: 0 / 423.3 MB, free: 14.63 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002703/2.721, allocations: 7.906 kB / 423.3 MB, free: 14.62 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001214/2.721, allocations: 74.39 kB / 423.4 MB, free: 14.55 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02221/2.743, allocations: 6.962 MB / 430.3 MB, free: 7.73 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003761/2.747, allocations: 1.3 MB / 431.6 MB, free: 6.426 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002574/2.75, allocations: 0.8848 MB / 432.5 MB, free: 5.539 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000101/2.75, allocations: 16.84 kB / 432.5 MB, free: 5.527 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002294/2.752, allocations: 0.7875 MB / 433.3 MB, free: 4.719 MB / 330.7 MB Notification: Performance of pre-optimization done (n=113): time 5.23e-06/2.752, allocations: 0 / 433.3 MB, free: 4.719 MB / 330.7 MB Notification: Performance of matching and sorting (n=113): time 0.004485/2.757, allocations: 1.425 MB / 434.7 MB, free: 3.281 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001186/2.757, allocations: 131.8 kB / 434.9 MB, free: 3.129 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002796/2.76, allocations: 0.9934 MB / 435.8 MB, free: 2.117 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003388/2.76, allocations: 45.62 kB / 435.9 MB, free: 2.066 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009108/2.761, allocations: 0.604 MB / 436.5 MB, free: 1.461 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006483/2.762, allocations: 319.4 kB / 436.8 MB, free: 1.148 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001217/2.762, allocations: 4 kB / 436.8 MB, free: 1.145 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002064/2.762, allocations: 345.9 kB / 437.2 MB, free: 0.8008 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001739/2.764, allocations: 0.596 MB / 437.7 MB, free: 212 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002005/2.766, allocations: 0.7938 MB / 438.5 MB, free: 15.34 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001702/2.768, allocations: 0.6041 MB / 439.1 MB, free: 14.74 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/2.768, allocations: 0 / 439.1 MB, free: 14.74 MB / 346.7 MB Notification: Performance of matching and sorting (n=147) (initialization): time 0.004879/2.773, allocations: 1.667 MB / 440.8 MB, free: 13.06 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009598/2.774, allocations: 1.928 MB / 442.7 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.525e-05/2.774, allocations: 4 kB / 442.7 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001862/2.775, allocations: 431.1 kB / 443.2 MB, free: 10.56 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001698/2.777, allocations: 179.7 kB / 443.3 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009923/2.787, allocations: 4.003 MB / 447.3 MB, free: 6.262 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002036/2.789, allocations: 151.2 kB / 447.5 MB, free: 6.113 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001623/2.789, allocations: 43.98 kB / 447.5 MB, free: 6.07 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/2.789, allocations: 4 kB / 447.5 MB, free: 6.066 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004571/2.794, allocations: 1.502 MB / 449 MB, free: 4.559 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.154e-05/2.794, allocations: 7.906 kB / 449 MB, free: 4.551 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00184/2.796, allocations: 437 kB / 449.5 MB, free: 4.121 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001584/2.798, allocations: 180.1 kB / 449.6 MB, free: 3.945 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009784/2.807, allocations: 3.982 MB / 453.6 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001922/2.809, allocations: 135.4 kB / 453.8 MB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001574/2.809, allocations: 43.94 kB / 453.8 MB, free: 15.68 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 57 ($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,rectifier.andCondition_p[1].y,rectifier.andCondition_p[2].y,rectifier.andCondition_p[3].y,rectifier.andCondition_n[1].y,rectifier.andCondition_n[2].y,rectifier.andCondition_n[3].y,$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,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 (121): * Single equations (assignments): 120 * 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 21} Notification: Performance of prepare postOptimizeDAE: time 0.0005286/2.81, allocations: 184.4 kB / 454 MB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003948/2.81, allocations: 126.5 kB / 454.1 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006521/2.811, allocations: 148.1 kB / 454.3 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-05/2.811, allocations: 12 kB / 454.3 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/2.811, allocations: 0 / 454.3 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.695e-05/2.811, allocations: 3.984 kB / 454.3 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.011/2.822, allocations: 3.292 MB / 457.6 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.145e-05/2.822, allocations: 0 / 457.6 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001314/2.824, allocations: 119.8 kB / 457.7 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001716/2.825, allocations: 400.8 kB / 458.1 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002185/2.826, allocations: 15.92 kB / 458.1 MB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009503/2.835, allocations: 3.821 MB / 461.9 MB, free: 7.426 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/2.835, allocations: 0 / 461.9 MB, free: 7.426 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006894/2.842, allocations: 2.453 MB / 464.4 MB, free: 4.957 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009407/2.851, allocations: 3.741 MB / 468.1 MB, free: 1.195 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00131/2.853, allocations: 355.3 kB / 468.4 MB, free: 0.8281 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003829/2.853, allocations: 19.98 kB / 468.5 MB, free: 0.8086 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001608/2.855, allocations: 95.91 kB / 468.6 MB, free: 0.7148 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000542/2.855, allocations: 120.8 kB / 468.7 MB, free: 0.5977 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001317/2.856, allocations: 31.98 kB / 468.7 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.001961/2.858, allocations: 0.7361 MB / 469.4 MB, free: 15.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005679/2.863, allocations: 0.76 MB / 470.2 MB, free: 15.06 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,inductor.i) * Number of discrete variables: 42 (pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.negativeThreshold[3].y,pulse2m.twomPulse.positiveThreshold[3].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.positiveThreshold[1].y,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p[1].y,rectifier.andCondition_p[2].y,rectifier.andCondition_p[3].y,rectifier.andCondition_n[1].y,rectifier.andCondition_n[2].y,rectifier.andCondition_n[3].y,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,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: 9 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 77 * 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 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004862/2.864, allocations: 168.6 kB / 470.4 MB, free: 14.89 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.008014/2.872, allocations: 2.582 MB / 473 MB, free: 12.29 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.166e-06/2.872, allocations: 4.062 kB / 473 MB, free: 12.28 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002836/2.875, allocations: 0.8978 MB / 473.9 MB, free: 11.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002573/2.877, allocations: 240.1 kB / 474.1 MB, free: 11.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0114/2.889, allocations: 2.867 MB / 477 MB, free: 8.227 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003422/2.892, allocations: 1.818 MB / 478.8 MB, free: 6.375 MB / 378.7 MB Notification: Performance of SimCode: time 1.883e-06/2.892, allocations: 0 / 478.8 MB, free: 6.375 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_RL_res.mat does not exist to compare? outputFormat=mat