Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RLV_Characteristic,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_RLV_Characteristic",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.734/1.734, allocations: 194.9 MB / 202.5 MB, free: 6.926 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2443/1.979, allocations: 46.85 MB / 249.4 MB, free: 5.34 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08958/2.068, allocations: 44.5 MB / 293.9 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2923/2.361, allocations: 87.16 MB / 381 MB, free: 5.781 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002986/2.361, allocations: 84.47 kB / 381.1 MB, free: 5.766 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: 450 * Number of variables: 450 Notification: Performance of Generate backend data structure: time 0.1707/2.532, allocations: 37.99 MB / 419.1 MB, free: 1.391 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/2.532, allocations: 12 kB / 419.1 MB, free: 1.379 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001087/2.533, allocations: 225.3 kB / 419.3 MB, free: 1.156 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008385/2.541, allocations: 2.075 MB / 421.4 MB, free: 15.58 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001291/2.541, allocations: 66.66 kB / 421.5 MB, free: 15.52 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004413/2.542, allocations: 100 kB / 421.6 MB, free: 15.42 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006117/2.548, allocations: 1.875 MB / 423.4 MB, free: 14.27 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007161/2.555, allocations: 2.156 MB / 425.6 MB, free: 12.69 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.938e-05/2.555, allocations: 4.688 kB / 425.6 MB, free: 12.69 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002831/2.556, allocations: 4.875 kB / 425.6 MB, free: 12.68 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001731/2.556, allocations: 89.14 kB / 425.7 MB, free: 12.6 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02042/2.576, allocations: 6.565 MB / 432.3 MB, free: 6.16 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004192/2.581, allocations: 1.476 MB / 433.7 MB, free: 4.688 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002747/2.583, allocations: 0.954 MB / 434.7 MB, free: 3.727 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001302/2.584, allocations: 13 kB / 434.7 MB, free: 3.715 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002462/2.586, allocations: 0.8352 MB / 435.5 MB, free: 2.855 MB / 330.7 MB Notification: Performance of pre-optimization done (n=126): time 5.31e-06/2.586, allocations: 4 kB / 435.5 MB, free: 2.852 MB / 330.7 MB Notification: Performance of matching and sorting (n=126): time 0.00487/2.591, allocations: 1.584 MB / 437.1 MB, free: 1.266 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001272/2.591, allocations: 157.5 kB / 437.3 MB, free: 1.082 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002321/2.593, allocations: 0.9055 MB / 438.2 MB, free: 160 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003812/2.594, allocations: 57.67 kB / 438.2 MB, free: 96 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008583/2.595, allocations: 0.593 MB / 438.8 MB, free: 15.5 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006534/2.595, allocations: 365.1 kB / 439.2 MB, free: 15.14 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/2.596, allocations: 0 / 439.2 MB, free: 15.14 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002063/2.596, allocations: 361.9 kB / 439.5 MB, free: 14.79 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001851/2.598, allocations: 0.6481 MB / 440.2 MB, free: 14.14 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002168/2.6, allocations: 0.9097 MB / 441.1 MB, free: 13.12 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001953/2.602, allocations: 0.7012 MB / 441.8 MB, free: 12.42 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.84e-05/2.602, allocations: 4 kB / 441.8 MB, free: 12.42 MB / 346.7 MB Notification: Performance of matching and sorting (n=171) (initialization): time 0.005399/2.607, allocations: 1.861 MB / 443.7 MB, free: 10.54 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001109/2.608, allocations: 2.446 MB / 446.1 MB, free: 7.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.159e-05/2.609, allocations: 7.984 kB / 446.1 MB, free: 7.902 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002181/2.611, allocations: 0.4902 MB / 446.6 MB, free: 7.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001601/2.612, allocations: 195.6 kB / 446.8 MB, free: 7.219 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01119/2.624, allocations: 4.718 MB / 451.5 MB, free: 2.383 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001957/2.626, allocations: 147.1 kB / 451.7 MB, free: 2.238 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001866/2.626, allocations: 52.03 kB / 451.7 MB, free: 2.188 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/2.626, allocations: 6.031 kB / 451.7 MB, free: 2.184 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004593/2.63, allocations: 1.719 MB / 453.4 MB, free: 468 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.391e-05/2.631, allocations: 4.812 kB / 453.4 MB, free: 464 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001912/2.632, allocations: 0.493 MB / 453.9 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001595/2.634, allocations: 179.6 kB / 454.1 MB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01113/2.645, allocations: 4.717 MB / 458.8 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002012/2.647, allocations: 135.1 kB / 459 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000187/2.648, allocations: 47.98 kB / 459 MB, free: 10.77 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 (138): * Single equations (assignments): 137 * 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.0005459/2.648, allocations: 189.2 kB / 459.2 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004148/2.649, allocations: 126.5 kB / 459.3 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006208/2.649, allocations: 152.6 kB / 459.5 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.947e-05/2.649, allocations: 12 kB / 459.5 MB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/2.649, allocations: 0 / 459.5 MB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.728e-05/2.649, allocations: 7.969 kB / 459.5 MB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01005/2.659, allocations: 3.301 MB / 462.8 MB, free: 6.945 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.094e-05/2.659, allocations: 3.938 kB / 462.8 MB, free: 6.941 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001191/2.661, allocations: 127.8 kB / 462.9 MB, free: 6.816 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00195/2.663, allocations: 469.1 kB / 463.4 MB, free: 6.355 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002575/2.663, allocations: 11.98 kB / 463.4 MB, free: 6.344 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01404/2.677, allocations: 4.575 MB / 468 MB, free: 1.656 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/2.677, allocations: 0 / 468 MB, free: 1.656 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01199/2.689, allocations: 2.606 MB / 470.6 MB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02904/2.718, allocations: 3.922 MB / 474.5 MB, free: 11.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001444/2.72, allocations: 359.3 kB / 474.8 MB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000556/2.72, allocations: 27.97 kB / 474.9 MB, free: 10.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002108/2.722, allocations: 103.9 kB / 475 MB, free: 10.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006409/2.723, allocations: 124.8 kB / 475.1 MB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001459/2.723, allocations: 35.92 kB / 475.1 MB, free: 10.44 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001727/2.725, allocations: 0.6686 MB / 475.8 MB, free: 9.762 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006256/2.731, allocations: 0.7783 MB / 476.6 MB, free: 8.98 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_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[1].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 83 * 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.0007763/2.732, allocations: 197.3 kB / 476.8 MB, free: 8.781 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.009007/2.741, allocations: 2.847 MB / 479.6 MB, free: 5.914 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/2.741, allocations: 0 / 479.6 MB, free: 5.914 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002811/2.744, allocations: 0.9708 MB / 480.6 MB, free: 4.938 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002541/2.746, allocations: 255.2 kB / 480.8 MB, free: 4.688 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01115/2.758, allocations: 2.915 MB / 483.7 MB, free: 1.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003217/2.761, allocations: 1.794 MB / 485.5 MB, free: 15.9 MB / 394.7 MB Notification: Performance of SimCode: time 1.593e-06/2.761, allocations: 0 / 485.5 MB, free: 15.9 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RLV_Characteristic_res.mat does not exist to compare? outputFormat=mat