Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_RLV,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2mPulse_ThyristorCenterTap2mPulse_RLV",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.717/1.717, allocations: 194.9 MB / 202.6 MB, free: 6.906 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2513/1.969, allocations: 46.84 MB / 249.4 MB, free: 5.328 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09175/2.06, allocations: 44.51 MB / 293.9 MB, free: 10.9 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3008/2.361, allocations: 85.85 MB / 379.8 MB, free: 6.395 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003167/2.362, allocations: 81.52 kB / 379.9 MB, free: 6.383 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: 446 * Number of variables: 446 Notification: Performance of Generate backend data structure: time 0.1671/2.529, allocations: 37.52 MB / 417.4 MB, free: 3 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/2.529, allocations: 8 kB / 417.4 MB, free: 2.992 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009872/2.53, allocations: 233.3 kB / 417.6 MB, free: 2.762 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00816/2.538, allocations: 1.964 MB / 419.6 MB, free: 1.25 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001349/2.538, allocations: 71.39 kB / 419.6 MB, free: 1.184 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004517/2.539, allocations: 104 kB / 419.8 MB, free: 1.082 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0064/2.545, allocations: 1.924 MB / 421.7 MB, free: 15.89 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007067/2.552, allocations: 2.154 MB / 423.8 MB, free: 14.32 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.722e-05/2.552, allocations: 0 / 423.8 MB, free: 14.32 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002677/2.553, allocations: 8.797 kB / 423.8 MB, free: 14.31 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001334/2.553, allocations: 81.94 kB / 423.9 MB, free: 14.23 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02178/2.575, allocations: 7.019 MB / 430.9 MB, free: 7.203 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003958/2.579, allocations: 1.305 MB / 432.2 MB, free: 5.895 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002621/2.581, allocations: 0.8891 MB / 433.1 MB, free: 5.008 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.878e-05/2.581, allocations: 13 kB / 433.1 MB, free: 4.996 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002228/2.584, allocations: 0.7875 MB / 433.9 MB, free: 4.184 MB / 330.7 MB Notification: Performance of pre-optimization done (n=114): time 4.909e-06/2.584, allocations: 0 / 433.9 MB, free: 4.184 MB / 330.7 MB Notification: Performance of matching and sorting (n=114): time 0.004417/2.588, allocations: 1.44 MB / 435.4 MB, free: 2.734 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/2.588, allocations: 127.8 kB / 435.5 MB, free: 2.586 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002763/2.591, allocations: 0.9946 MB / 436.5 MB, free: 1.574 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003373/2.591, allocations: 45.69 kB / 436.5 MB, free: 1.523 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008807/2.592, allocations: 0.6115 MB / 437.1 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006052/2.593, allocations: 327.1 kB / 437.5 MB, free: 0.5898 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/2.593, allocations: 0 / 437.5 MB, free: 0.5898 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002134/2.593, allocations: 357.8 kB / 437.8 MB, free: 240 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001885/2.595, allocations: 0.5929 MB / 438.4 MB, free: 15.64 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002194/2.597, allocations: 0.7927 MB / 439.2 MB, free: 14.78 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001775/2.599, allocations: 0.608 MB / 439.8 MB, free: 14.17 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/2.599, allocations: 0 / 439.8 MB, free: 14.17 MB / 346.7 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.004999/2.604, allocations: 1.671 MB / 441.5 MB, free: 12.49 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008277/2.605, allocations: 1.928 MB / 443.4 MB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.018e-05/2.605, allocations: 4 kB / 443.4 MB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001876/2.607, allocations: 438.4 kB / 443.8 MB, free: 9.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001769/2.609, allocations: 179.7 kB / 444 MB, free: 9.805 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009958/2.619, allocations: 3.994 MB / 448 MB, free: 5.688 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002183/2.621, allocations: 159.1 kB / 448.2 MB, free: 5.531 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002052/2.621, allocations: 43.98 kB / 448.2 MB, free: 5.488 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/2.621, allocations: 4 kB / 448.2 MB, free: 5.484 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004578/2.626, allocations: 1.51 MB / 449.7 MB, free: 3.969 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.621e-05/2.626, allocations: 8 kB / 449.7 MB, free: 3.961 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001826/2.628, allocations: 436.8 kB / 450.2 MB, free: 3.531 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001738/2.63, allocations: 179.7 kB / 450.3 MB, free: 3.355 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009908/2.639, allocations: 3.986 MB / 454.3 MB, free: 15.26 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002028/2.642, allocations: 131.3 kB / 454.4 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001651/2.642, allocations: 40 kB / 454.5 MB, free: 15.09 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 (122): * Single equations (assignments): 121 * 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.0005089/2.642, allocations: 191.2 kB / 454.7 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000371/2.643, allocations: 126.5 kB / 454.8 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006531/2.643, allocations: 144.1 kB / 454.9 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.645e-05/2.643, allocations: 12 kB / 454.9 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/2.643, allocations: 0 / 454.9 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-05/2.643, allocations: 3.984 kB / 455 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0107/2.654, allocations: 3.302 MB / 458.3 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.059e-05/2.654, allocations: 4 kB / 458.3 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001301/2.655, allocations: 119.8 kB / 458.4 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001742/2.657, allocations: 404.8 kB / 458.8 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001975/2.657, allocations: 7.984 kB / 458.8 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009423/2.667, allocations: 3.821 MB / 462.6 MB, free: 6.828 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.071e-06/2.667, allocations: 7.938 kB / 462.6 MB, free: 6.82 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007056/2.674, allocations: 2.461 MB / 465.1 MB, free: 4.344 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009322/2.683, allocations: 3.752 MB / 468.8 MB, free: 0.5703 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001237/2.685, allocations: 355.5 kB / 469.2 MB, free: 208 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003659/2.685, allocations: 19.98 kB / 469.2 MB, free: 188 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001551/2.687, allocations: 87.92 kB / 469.3 MB, free: 100 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005558/2.687, allocations: 128.7 kB / 469.4 MB, free: 15.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001309/2.687, allocations: 35.98 kB / 469.4 MB, free: 15.94 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001868/2.689, allocations: 0.7363 MB / 470.2 MB, free: 15.19 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005277/2.695, allocations: 0.7664 MB / 470.9 MB, free: 14.42 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[1].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[3].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 78 * 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.0004725/2.695, allocations: 165.1 kB / 471.1 MB, free: 14.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007656/2.703, allocations: 2.601 MB / 473.7 MB, free: 11.63 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.247e-06/2.703, allocations: 5.25 kB / 473.7 MB, free: 11.62 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002682/2.705, allocations: 0.8939 MB / 474.6 MB, free: 10.72 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00239/2.708, allocations: 236.3 kB / 474.8 MB, free: 10.49 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01105/2.719, allocations: 2.887 MB / 477.7 MB, free: 7.559 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003112/2.722, allocations: 1.819 MB / 479.5 MB, free: 5.703 MB / 378.7 MB Notification: Performance of SimCode: time 1.342e-06/2.722, allocations: 7.938 kB / 479.5 MB, free: 5.695 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_RLV_res.mat does not exist to compare? outputFormat=mat