Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_R",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.802/1.802, allocations: 194.9 MB / 202.6 MB, free: 6.898 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2141/2.016, allocations: 46.84 MB / 249.4 MB, free: 5.332 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09207/2.108, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3055/2.414, allocations: 86.06 MB / 380 MB, free: 6.367 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003236/2.414, allocations: 88.66 kB / 380.1 MB, free: 6.352 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.1568/2.571, allocations: 36.85 MB / 416.9 MB, free: 3.355 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.098e-05/2.571, allocations: 11.94 kB / 416.9 MB, free: 3.344 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001143/2.572, allocations: 221.4 kB / 417.1 MB, free: 3.125 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008707/2.581, allocations: 2.048 MB / 419.2 MB, free: 1.566 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001261/2.581, allocations: 67.16 kB / 419.3 MB, free: 1.504 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004199/2.582, allocations: 100 kB / 419.4 MB, free: 1.406 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005813/2.588, allocations: 1.85 MB / 421.2 MB, free: 276 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00623/2.594, allocations: 2.125 MB / 423.3 MB, free: 14.72 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.267e-05/2.594, allocations: 0 / 423.3 MB, free: 14.72 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002553/2.594, allocations: 7.984 kB / 423.3 MB, free: 14.71 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001226/2.594, allocations: 76.23 kB / 423.4 MB, free: 14.64 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02083/2.615, allocations: 6.447 MB / 429.9 MB, free: 8.387 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003921/2.619, allocations: 1.339 MB / 431.2 MB, free: 7.047 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002927/2.622, allocations: 1.009 MB / 432.2 MB, free: 6.043 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.812e-05/2.622, allocations: 20.42 kB / 432.2 MB, free: 6.027 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002211/2.625, allocations: 0.8078 MB / 433 MB, free: 5.195 MB / 330.7 MB Notification: Performance of pre-optimization done (n=120): time 4.95e-06/2.625, allocations: 0 / 433 MB, free: 5.195 MB / 330.7 MB Notification: Performance of matching and sorting (n=120): time 0.005017/2.63, allocations: 1.564 MB / 434.6 MB, free: 3.625 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001178/2.63, allocations: 153.2 kB / 434.8 MB, free: 3.445 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002418/2.632, allocations: 0.9124 MB / 435.7 MB, free: 2.512 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003468/2.633, allocations: 57.67 kB / 435.7 MB, free: 2.449 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008548/2.633, allocations: 0.5924 MB / 436.3 MB, free: 1.852 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000625/2.634, allocations: 346.2 kB / 436.7 MB, free: 1.516 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/2.634, allocations: 0 / 436.7 MB, free: 1.516 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002044/2.634, allocations: 361.8 kB / 437 MB, free: 1.156 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00183/2.636, allocations: 0.6312 MB / 437.6 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002094/2.638, allocations: 0.8926 MB / 438.5 MB, free: 15.54 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001895/2.64, allocations: 0.6778 MB / 439.2 MB, free: 14.86 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.08e-05/2.64, allocations: 4 kB / 439.2 MB, free: 14.86 MB / 346.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.005513/2.646, allocations: 1.844 MB / 441.1 MB, free: 13 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001092/2.647, allocations: 2.439 MB / 443.5 MB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.445e-05/2.647, allocations: 4 kB / 443.5 MB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002451/2.65, allocations: 0.5237 MB / 444 MB, free: 9.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001503/2.651, allocations: 171.7 kB / 444.2 MB, free: 9.672 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01301/2.664, allocations: 4.979 MB / 449.2 MB, free: 4.578 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002083/2.666, allocations: 159.1 kB / 449.3 MB, free: 4.422 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001704/2.666, allocations: 44 kB / 449.4 MB, free: 4.379 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/2.666, allocations: 4 kB / 449.4 MB, free: 4.375 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004879/2.671, allocations: 1.684 MB / 451.1 MB, free: 2.688 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.968e-05/2.671, allocations: 4 kB / 451.1 MB, free: 2.684 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00225/2.674, allocations: 0.5246 MB / 451.6 MB, free: 2.156 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001419/2.675, allocations: 163.7 kB / 451.7 MB, free: 1.996 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01276/2.688, allocations: 4.988 MB / 456.7 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001917/2.69, allocations: 131.2 kB / 456.9 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001673/2.69, allocations: 51.94 kB / 456.9 MB, free: 12.71 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.0005414/2.691, allocations: 189.2 kB / 457.1 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003628/2.691, allocations: 134.4 kB / 457.2 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006134/2.692, allocations: 139.6 kB / 457.4 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.038e-05/2.692, allocations: 12 kB / 457.4 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.824e-06/2.692, allocations: 4 kB / 457.4 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.638e-05/2.692, allocations: 3.984 kB / 457.4 MB, free: 12.22 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01037/2.702, allocations: 3.377 MB / 460.8 MB, free: 8.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.227e-06/2.702, allocations: 0 / 460.8 MB, free: 8.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000888/2.703, allocations: 83.89 kB / 460.8 MB, free: 8.738 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00216/2.705, allocations: 0.4888 MB / 461.3 MB, free: 8.246 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001434/2.705, allocations: 11.98 kB / 461.3 MB, free: 8.234 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01236/2.718, allocations: 4.834 MB / 466.2 MB, free: 3.289 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/2.718, allocations: 0 / 466.2 MB, free: 3.289 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006677/2.724, allocations: 2.492 MB / 468.7 MB, free: 0.7734 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008852/2.733, allocations: 3.775 MB / 472.4 MB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0012/2.735, allocations: 347.4 kB / 472.8 MB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003789/2.735, allocations: 23.98 kB / 472.8 MB, free: 12.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001482/2.737, allocations: 91.91 kB / 472.9 MB, free: 12.51 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005011/2.737, allocations: 120.7 kB / 473 MB, free: 12.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001304/2.737, allocations: 43.86 kB / 473.1 MB, free: 12.35 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001659/2.739, allocations: 0.6681 MB / 473.7 MB, free: 11.67 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005333/2.744, allocations: 0.755 MB / 474.5 MB, free: 10.91 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.0004717/2.745, allocations: 181.4 kB / 474.7 MB, free: 10.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.008228/2.753, allocations: 2.793 MB / 477.5 MB, free: 7.914 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.795e-06/2.753, allocations: 0 / 477.5 MB, free: 7.914 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002858/2.756, allocations: 0.9395 MB / 478.4 MB, free: 6.969 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002485/2.758, allocations: 247.4 kB / 478.6 MB, free: 6.723 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01079/2.769, allocations: 2.793 MB / 481.4 MB, free: 3.883 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00309/2.772, allocations: 1.759 MB / 483.2 MB, free: 2.09 MB / 378.7 MB Notification: Performance of SimCode: time 1.413e-06/2.772, allocations: 4 kB / 483.2 MB, free: 2.086 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.RectifierBridge2mPulse.ThyristorBridge2mPulse_R_res.mat does not exist to compare? outputFormat=mat