Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RL,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_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.708/1.708, allocations: 194.9 MB / 202.6 MB, free: 14.31 MB / 178.8 MB Notification: Performance of FrontEnd - loaded program: time 0.2114/1.919, allocations: 46.85 MB / 249.4 MB, free: 14.22 MB / 210.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09313/2.012, allocations: 44.5 MB / 293.9 MB, free: 1.633 MB / 242.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3045/2.317, allocations: 86.53 MB / 380.5 MB, free: 3.395 MB / 290.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000338/2.317, allocations: 84.78 kB / 380.5 MB, free: 3.379 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.2156/2.533, allocations: 48.32 MB / 428.9 MB, free: 11.27 MB / 338.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/2.533, allocations: 12 kB / 428.9 MB, free: 11.26 MB / 338.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001054/2.534, allocations: 221.4 kB / 429.1 MB, free: 11.04 MB / 338.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009417/2.543, allocations: 2.065 MB / 431.1 MB, free: 8.93 MB / 338.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000135/2.544, allocations: 64 kB / 431.2 MB, free: 8.867 MB / 338.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004952/2.544, allocations: 108 kB / 431.3 MB, free: 8.762 MB / 338.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006625/2.551, allocations: 1.858 MB / 433.2 MB, free: 6.902 MB / 338.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00746/2.558, allocations: 2.132 MB / 435.3 MB, free: 4.688 MB / 338.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.368e-05/2.558, allocations: 11.98 kB / 435.3 MB, free: 4.676 MB / 338.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002604/2.559, allocations: 0 / 435.3 MB, free: 4.676 MB / 338.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001354/2.559, allocations: 83.34 kB / 435.4 MB, free: 4.594 MB / 338.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02067/2.579, allocations: 6.482 MB / 441.9 MB, free: 14 MB / 354.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003899/2.583, allocations: 1.351 MB / 443.2 MB, free: 12.63 MB / 354.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002566/2.586, allocations: 0.9059 MB / 444.1 MB, free: 11.72 MB / 354.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001043/2.586, allocations: 13 kB / 444.1 MB, free: 11.71 MB / 354.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002996/2.589, allocations: 0.8157 MB / 445 MB, free: 10.86 MB / 354.8 MB Notification: Performance of pre-optimization done (n=122): time 1.018e-05/2.589, allocations: 0 / 445 MB, free: 10.86 MB / 354.8 MB Notification: Performance of matching and sorting (n=122): time 0.005397/2.595, allocations: 1.581 MB / 446.5 MB, free: 9.273 MB / 354.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000131/2.595, allocations: 161.4 kB / 446.7 MB, free: 9.086 MB / 354.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002419/2.597, allocations: 0.9205 MB / 447.6 MB, free: 8.145 MB / 354.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003247/2.598, allocations: 57.67 kB / 447.7 MB, free: 8.082 MB / 354.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008401/2.598, allocations: 0.5967 MB / 448.3 MB, free: 7.473 MB / 354.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005588/2.599, allocations: 347.1 kB / 448.6 MB, free: 7.129 MB / 354.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001088/2.599, allocations: 0 / 448.6 MB, free: 7.129 MB / 354.8 MB Notification: Performance of setup shared object (initialization): time 0.0002029/2.599, allocations: 365.9 kB / 449 MB, free: 6.766 MB / 354.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001854/2.601, allocations: 0.6403 MB / 449.6 MB, free: 6.125 MB / 354.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002129/2.603, allocations: 0.9019 MB / 450.5 MB, free: 5.121 MB / 354.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001894/2.605, allocations: 0.6855 MB / 451.2 MB, free: 4.438 MB / 354.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.577e-06/2.605, allocations: 0 / 451.2 MB, free: 4.438 MB / 354.8 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.00532/2.611, allocations: 1.862 MB / 453.1 MB, free: 2.562 MB / 354.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.001089/2.612, allocations: 2.442 MB / 455.5 MB, free: 15.93 MB / 370.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.118e-05/2.612, allocations: 4 kB / 455.5 MB, free: 15.93 MB / 370.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00222/2.614, allocations: 497.9 kB / 456 MB, free: 15.44 MB / 370.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001587/2.616, allocations: 183.7 kB / 456.2 MB, free: 15.26 MB / 370.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01181/2.627, allocations: 4.724 MB / 460.9 MB, free: 10.41 MB / 370.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002097/2.63, allocations: 155 kB / 461.1 MB, free: 10.26 MB / 370.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001691/2.63, allocations: 44 kB / 461.1 MB, free: 10.22 MB / 370.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/2.63, allocations: 4 kB / 461.1 MB, free: 10.21 MB / 370.8 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005069/2.635, allocations: 1.697 MB / 462.8 MB, free: 8.512 MB / 370.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-05/2.635, allocations: 15.98 kB / 462.8 MB, free: 8.496 MB / 370.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002293/2.637, allocations: 492.8 kB / 463.3 MB, free: 8.012 MB / 370.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001632/2.639, allocations: 167.7 kB / 463.5 MB, free: 7.848 MB / 370.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01202/2.651, allocations: 4.713 MB / 468.2 MB, free: 3.016 MB / 370.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001921/2.653, allocations: 127.3 kB / 468.3 MB, free: 2.891 MB / 370.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001872/2.653, allocations: 47.94 kB / 468.3 MB, free: 2.844 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.0005298/2.654, allocations: 205 kB / 468.5 MB, free: 2.629 MB / 370.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003235/2.654, allocations: 122.6 kB / 468.7 MB, free: 2.508 MB / 370.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006277/2.655, allocations: 147.7 kB / 468.8 MB, free: 2.363 MB / 370.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.778e-05/2.655, allocations: 12 kB / 468.8 MB, free: 2.352 MB / 370.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/2.655, allocations: 4 kB / 468.8 MB, free: 2.348 MB / 370.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.641e-05/2.655, allocations: 3.984 kB / 468.8 MB, free: 2.344 MB / 370.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009854/2.665, allocations: 3.241 MB / 472.1 MB, free: 15.05 MB / 386.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.084e-05/2.665, allocations: 3.938 kB / 472.1 MB, free: 15.05 MB / 386.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001097/2.666, allocations: 99.83 kB / 472.2 MB, free: 14.95 MB / 386.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002112/2.668, allocations: 460.5 kB / 472.6 MB, free: 14.5 MB / 386.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002154/2.668, allocations: 11.98 kB / 472.6 MB, free: 14.49 MB / 386.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01192/2.68, allocations: 4.58 MB / 477.2 MB, free: 9.785 MB / 386.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/2.68, allocations: 4 kB / 477.2 MB, free: 9.781 MB / 386.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007675/2.688, allocations: 2.535 MB / 479.7 MB, free: 7.227 MB / 386.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01004/2.698, allocations: 3.851 MB / 483.6 MB, free: 3.352 MB / 386.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001254/2.699, allocations: 355.5 kB / 483.9 MB, free: 2.984 MB / 386.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003809/2.7, allocations: 31.97 kB / 484 MB, free: 2.953 MB / 386.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001549/2.701, allocations: 91.83 kB / 484.1 MB, free: 2.863 MB / 386.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005268/2.702, allocations: 128.7 kB / 484.2 MB, free: 2.738 MB / 386.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001284/2.702, allocations: 28 kB / 484.2 MB, free: 2.711 MB / 386.8 MB Notification: Performance of sort global known variables: time 0.001681/2.704, allocations: 0.6722 MB / 484.9 MB, free: 2.027 MB / 386.8 MB Notification: Performance of remove unused functions: time 0.005235/2.709, allocations: 0.7628 MB / 485.7 MB, free: 1.262 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.0004961/2.709, allocations: 181.1 kB / 485.8 MB, free: 1.078 MB / 386.8 MB Notification: Performance of simCode: created initialization part: time 0.00821/2.718, allocations: 2.812 MB / 488.6 MB, free: 14.25 MB / 402.8 MB Notification: Performance of simCode: created event and clocks part: time 9.979e-06/2.718, allocations: 7.938 kB / 488.6 MB, free: 14.24 MB / 402.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002764/2.721, allocations: 0.9476 MB / 489.6 MB, free: 13.29 MB / 402.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002457/2.723, allocations: 247.3 kB / 489.8 MB, free: 13.04 MB / 402.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01029/2.733, allocations: 2.871 MB / 492.7 MB, free: 10.12 MB / 402.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002996/2.736, allocations: 1.786 MB / 494.5 MB, free: 8.301 MB / 402.8 MB Notification: Performance of SimCode: time 1.523e-06/2.736, allocations: 0 / 494.5 MB, free: 8.301 MB / 402.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RL_res.mat does not exist to compare? outputFormat=mat