Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RL,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_RL",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.812/1.812, allocations: 194.9 MB / 202.5 MB, free: 14.22 MB / 178.8 MB Notification: Performance of FrontEnd - loaded program: time 0.2548/2.067, allocations: 46.85 MB / 249.4 MB, free: 14.21 MB / 210.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09677/2.164, allocations: 44.5 MB / 293.9 MB, free: 1.633 MB / 242.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3266/2.491, allocations: 86.53 MB / 380.4 MB, free: 3.363 MB / 290.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003179/2.491, allocations: 84.23 kB / 380.5 MB, free: 3.352 MB / 290.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 442 * Number of variables: 442 Notification: Performance of Generate backend data structure: time 0.2099/2.701, allocations: 48.31 MB / 428.8 MB, free: 11.29 MB / 338.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/2.701, allocations: 8 kB / 428.8 MB, free: 11.28 MB / 338.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001093/2.702, allocations: 221.4 kB / 429 MB, free: 11.06 MB / 338.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008675/2.711, allocations: 2.072 MB / 431.1 MB, free: 8.945 MB / 338.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001633/2.711, allocations: 63.98 kB / 431.1 MB, free: 8.883 MB / 338.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007792/2.712, allocations: 104 kB / 431.2 MB, free: 8.781 MB / 338.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006701/2.719, allocations: 1.858 MB / 433.1 MB, free: 6.922 MB / 338.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007668/2.726, allocations: 2.133 MB / 435.2 MB, free: 4.707 MB / 338.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-05/2.726, allocations: 7.984 kB / 435.2 MB, free: 4.699 MB / 338.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003269/2.727, allocations: 4 kB / 435.3 MB, free: 4.695 MB / 338.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001242/2.727, allocations: 79.33 kB / 435.3 MB, free: 4.617 MB / 338.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01996/2.747, allocations: 6.49 MB / 441.8 MB, free: 14.01 MB / 354.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003719/2.751, allocations: 1.347 MB / 443.2 MB, free: 12.65 MB / 354.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002509/2.753, allocations: 0.8981 MB / 444.1 MB, free: 11.75 MB / 354.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001155/2.753, allocations: 16.98 kB / 444.1 MB, free: 11.73 MB / 354.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002187/2.756, allocations: 0.8235 MB / 444.9 MB, free: 10.88 MB / 354.8 MB Notification: Performance of pre-optimization done (n=122): time 5.209e-06/2.756, allocations: 3.938 kB / 444.9 MB, free: 10.88 MB / 354.8 MB Notification: Performance of matching and sorting (n=122): time 0.005499/2.761, allocations: 1.581 MB / 446.5 MB, free: 9.285 MB / 354.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001685/2.761, allocations: 153.4 kB / 446.6 MB, free: 9.105 MB / 354.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002496/2.764, allocations: 0.9206 MB / 447.6 MB, free: 8.164 MB / 354.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003799/2.764, allocations: 57.67 kB / 447.6 MB, free: 8.102 MB / 354.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00086/2.765, allocations: 0.5967 MB / 448.2 MB, free: 7.492 MB / 354.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006069/2.766, allocations: 351.1 kB / 448.6 MB, free: 7.145 MB / 354.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/2.766, allocations: 0 / 448.6 MB, free: 7.145 MB / 354.8 MB Notification: Performance of setup shared object (initialization): time 0.0002064/2.766, allocations: 365.9 kB / 448.9 MB, free: 6.781 MB / 354.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001712/2.768, allocations: 0.6442 MB / 449.6 MB, free: 6.137 MB / 354.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002091/2.77, allocations: 0.9019 MB / 450.5 MB, free: 5.133 MB / 354.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001798/2.772, allocations: 0.6894 MB / 451.1 MB, free: 4.445 MB / 354.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.877e-06/2.772, allocations: 0 / 451.1 MB, free: 4.445 MB / 354.8 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.005043/2.777, allocations: 1.857 MB / 453 MB, free: 2.574 MB / 354.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.001129/2.778, allocations: 2.439 MB / 455.4 MB, free: 15.95 MB / 370.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.873e-05/2.778, allocations: 8 kB / 455.5 MB, free: 15.94 MB / 370.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002267/2.78, allocations: 497.9 kB / 455.9 MB, free: 15.45 MB / 370.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00151/2.782, allocations: 175.7 kB / 456.1 MB, free: 15.28 MB / 370.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01213/2.794, allocations: 4.713 MB / 460.8 MB, free: 10.44 MB / 370.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002034/2.796, allocations: 159.1 kB / 461 MB, free: 10.29 MB / 370.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002344/2.797, allocations: 51.98 kB / 461 MB, free: 10.23 MB / 370.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/2.797, allocations: 7.938 kB / 461 MB, free: 10.23 MB / 370.8 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004982/2.802, allocations: 1.7 MB / 462.7 MB, free: 8.52 MB / 370.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.813e-05/2.802, allocations: 8 kB / 462.7 MB, free: 8.512 MB / 370.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001947/2.804, allocations: 0.4891 MB / 463.2 MB, free: 8.02 MB / 370.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001463/2.805, allocations: 167.8 kB / 463.4 MB, free: 7.855 MB / 370.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01127/2.816, allocations: 4.71 MB / 468.1 MB, free: 3.027 MB / 370.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001896/2.818, allocations: 131.3 kB / 468.2 MB, free: 2.898 MB / 370.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000247/2.819, allocations: 51.98 kB / 468.3 MB, free: 2.848 MB / 370.8 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 (136): * Single equations (assignments): 135 * 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 28} Notification: Performance of prepare postOptimizeDAE: time 0.0005092/2.819, allocations: 189.1 kB / 468.5 MB, free: 2.648 MB / 370.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004019/2.82, allocations: 122.6 kB / 468.6 MB, free: 2.527 MB / 370.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000598/2.82, allocations: 151.7 kB / 468.7 MB, free: 2.379 MB / 370.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.758e-05/2.82, allocations: 12 kB / 468.7 MB, free: 2.367 MB / 370.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/2.82, allocations: 0 / 468.7 MB, free: 2.367 MB / 370.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.033e-05/2.82, allocations: 7.969 kB / 468.8 MB, free: 2.359 MB / 370.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009389/2.83, allocations: 3.245 MB / 472 MB, free: 15.07 MB / 386.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/2.83, allocations: 4 kB / 472 MB, free: 15.06 MB / 386.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00102/2.831, allocations: 95.81 kB / 472.1 MB, free: 14.97 MB / 386.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00191/2.833, allocations: 472.5 kB / 472.6 MB, free: 14.5 MB / 386.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002129/2.833, allocations: 7.984 kB / 472.6 MB, free: 14.49 MB / 386.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01065/2.844, allocations: 4.576 MB / 477.1 MB, free: 9.797 MB / 386.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.512e-06/2.844, allocations: 0 / 477.1 MB, free: 9.797 MB / 386.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006805/2.85, allocations: 2.539 MB / 479.7 MB, free: 7.238 MB / 386.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009356/2.86, allocations: 3.851 MB / 483.5 MB, free: 3.363 MB / 386.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001279/2.861, allocations: 351.4 kB / 483.9 MB, free: 3 MB / 386.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003829/2.862, allocations: 28.17 kB / 483.9 MB, free: 2.973 MB / 386.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001371/2.863, allocations: 91.81 kB / 484 MB, free: 2.883 MB / 386.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004685/2.864, allocations: 128.7 kB / 484.1 MB, free: 2.758 MB / 386.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000123/2.864, allocations: 31.98 kB / 484.2 MB, free: 2.727 MB / 386.8 MB Notification: Performance of sort global known variables: time 0.002061/2.866, allocations: 0.6761 MB / 484.8 MB, free: 2.039 MB / 386.8 MB Notification: Performance of remove unused functions: time 0.009924/2.876, allocations: 0.755 MB / 485.6 MB, free: 1.281 MB / 386.8 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: 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_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[2].off,rectifier.thyristor_n.idealThyristor[1].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 79 * 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 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009231/2.877, allocations: 181.1 kB / 485.8 MB, free: 1.098 MB / 386.8 MB Notification: Performance of simCode: created initialization part: time 0.01247/2.889, allocations: 2.82 MB / 488.6 MB, free: 14.25 MB / 402.8 MB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/2.889, allocations: 1.625 kB / 488.6 MB, free: 14.25 MB / 402.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002768/2.892, allocations: 0.9421 MB / 489.5 MB, free: 13.3 MB / 402.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002516/2.895, allocations: 259.8 kB / 489.8 MB, free: 13.05 MB / 402.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0111/2.906, allocations: 2.867 MB / 492.6 MB, free: 10.14 MB / 402.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003116/2.909, allocations: 1.786 MB / 494.4 MB, free: 8.32 MB / 402.8 MB Notification: Performance of SimCode: time 1.783e-06/2.909, allocations: 0 / 494.4 MB, free: 8.32 MB / 402.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RL_res.mat does not exist to compare? outputFormat=mat