Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RLV,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_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.757/1.757, allocations: 194.9 MB / 202.6 MB, free: 6.887 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2153/1.972, allocations: 46.85 MB / 249.4 MB, free: 5.328 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09233/2.064, allocations: 44.5 MB / 293.9 MB, free: 10.87 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3093/2.374, allocations: 86.61 MB / 380.5 MB, free: 6.215 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003257/2.374, allocations: 90.94 kB / 380.6 MB, free: 6.199 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: 448 * Number of variables: 448 Notification: Performance of Generate backend data structure: time 0.1561/2.53, allocations: 37.49 MB / 418.1 MB, free: 2.34 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/2.53, allocations: 8 kB / 418.1 MB, free: 2.332 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009907/2.531, allocations: 221.4 kB / 418.3 MB, free: 2.113 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008889/2.54, allocations: 2.069 MB / 420.4 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001291/2.54, allocations: 63.94 kB / 420.5 MB, free: 488 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004486/2.541, allocations: 100 kB / 420.6 MB, free: 388 kB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006189/2.547, allocations: 1.876 MB / 422.4 MB, free: 15.23 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006754/2.554, allocations: 2.159 MB / 424.6 MB, free: 13.65 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.549e-05/2.554, allocations: 0 / 424.6 MB, free: 13.65 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002622/2.554, allocations: 4.75 kB / 424.6 MB, free: 13.64 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001277/2.554, allocations: 77.77 kB / 424.7 MB, free: 13.57 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02056/2.575, allocations: 6.541 MB / 431.2 MB, free: 7.133 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003835/2.579, allocations: 1.359 MB / 432.6 MB, free: 5.773 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0026/2.581, allocations: 0.9306 MB / 433.5 MB, free: 4.844 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.084e-05/2.581, allocations: 16.2 kB / 433.5 MB, free: 4.832 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002185/2.584, allocations: 0.8235 MB / 434.3 MB, free: 3.984 MB / 330.7 MB Notification: Performance of pre-optimization done (n=123): time 4.749e-06/2.584, allocations: 0 / 434.3 MB, free: 3.984 MB / 330.7 MB Notification: Performance of matching and sorting (n=123): time 0.005123/2.589, allocations: 1.577 MB / 435.9 MB, free: 2.402 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001346/2.589, allocations: 164.7 kB / 436.1 MB, free: 2.211 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00246/2.591, allocations: 0.9208 MB / 437 MB, free: 1.27 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003379/2.592, allocations: 53.69 kB / 437.1 MB, free: 1.211 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000833/2.593, allocations: 0.6035 MB / 437.7 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005847/2.593, allocations: 350.8 kB / 438 MB, free: 268 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/2.593, allocations: 0 / 438 MB, free: 268 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002467/2.594, allocations: 361.9 kB / 438.4 MB, free: 15.9 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001859/2.595, allocations: 0.6403 MB / 439 MB, free: 15.26 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002139/2.598, allocations: 0.9058 MB / 439.9 MB, free: 14.25 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001894/2.6, allocations: 0.6935 MB / 440.6 MB, free: 13.56 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.093e-06/2.6, allocations: 0 / 440.6 MB, free: 13.56 MB / 346.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.005347/2.605, allocations: 1.869 MB / 442.5 MB, free: 11.68 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001037/2.606, allocations: 2.435 MB / 444.9 MB, free: 9.059 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.387e-05/2.606, allocations: 8 kB / 444.9 MB, free: 9.051 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002219/2.608, allocations: 497.3 kB / 445.4 MB, free: 8.562 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001621/2.61, allocations: 183.7 kB / 445.6 MB, free: 8.383 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01178/2.622, allocations: 4.713 MB / 450.3 MB, free: 3.551 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002075/2.624, allocations: 155 kB / 450.4 MB, free: 3.398 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001727/2.624, allocations: 48 kB / 450.5 MB, free: 3.352 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/2.624, allocations: 11.98 kB / 450.5 MB, free: 3.34 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004929/2.629, allocations: 1.7 MB / 452.2 MB, free: 1.633 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.306e-05/2.629, allocations: 8 kB / 452.2 MB, free: 1.625 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002102/2.631, allocations: 0.4899 MB / 452.7 MB, free: 1.133 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00148/2.633, allocations: 171.7 kB / 452.9 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0117/2.644, allocations: 4.711 MB / 457.6 MB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001945/2.646, allocations: 135.1 kB / 457.7 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001662/2.647, allocations: 48 kB / 457.8 MB, free: 11.95 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 (137): * Single equations (assignments): 136 * 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.0005314/2.647, allocations: 201.1 kB / 457.9 MB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003344/2.647, allocations: 122.5 kB / 458.1 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006196/2.648, allocations: 147.8 kB / 458.2 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.326e-05/2.648, allocations: 12 kB / 458.2 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/2.648, allocations: 0 / 458.2 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.634e-05/2.648, allocations: 3.984 kB / 458.2 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009567/2.658, allocations: 3.276 MB / 461.5 MB, free: 8.164 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.678e-06/2.658, allocations: 0 / 461.5 MB, free: 8.164 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001088/2.659, allocations: 99.81 kB / 461.6 MB, free: 8.066 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002054/2.661, allocations: 481.2 kB / 462.1 MB, free: 7.594 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001343/2.661, allocations: 7.922 kB / 462.1 MB, free: 7.586 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01157/2.673, allocations: 4.578 MB / 466.7 MB, free: 2.895 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/2.673, allocations: 0 / 466.7 MB, free: 2.895 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006928/2.68, allocations: 2.551 MB / 469.2 MB, free: 332 kB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009354/2.689, allocations: 3.867 MB / 473.1 MB, free: 12.44 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001226/2.69, allocations: 355.3 kB / 473.4 MB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000382/2.691, allocations: 27.98 kB / 473.4 MB, free: 12.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001522/2.692, allocations: 91.81 kB / 473.5 MB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005167/2.693, allocations: 120.8 kB / 473.7 MB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000155/2.693, allocations: 35.98 kB / 473.7 MB, free: 11.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001694/2.695, allocations: 0.6802 MB / 474.4 MB, free: 11.11 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005389/2.7, allocations: 0.7588 MB / 475.1 MB, free: 10.35 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: 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[3].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[2].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 80 * 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.0005165/2.701, allocations: 189.3 kB / 475.3 MB, free: 10.16 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.008338/2.709, allocations: 2.825 MB / 478.1 MB, free: 7.312 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.197e-06/2.709, allocations: 7.797 kB / 478.1 MB, free: 7.309 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002857/2.712, allocations: 0.9537 MB / 479.1 MB, free: 6.348 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002567/2.715, allocations: 247.3 kB / 479.3 MB, free: 6.102 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0107/2.725, allocations: 2.868 MB / 482.2 MB, free: 3.195 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003014/2.728, allocations: 1.79 MB / 484 MB, free: 1.371 MB / 378.7 MB Notification: Performance of SimCode: time 1.312e-06/2.728, allocations: 4 kB / 484 MB, free: 1.367 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_RLV_res.mat does not exist to compare? outputFormat=mat