Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.HalfControlledBridge2mPulse,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_HalfControlledBridge2mPulse",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.661/1.661, allocations: 194.9 MB / 202.5 MB, free: 6.934 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2318/1.893, allocations: 46.84 MB / 249.4 MB, free: 5.352 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/2.026, allocations: 44.5 MB / 293.9 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4163/2.442, allocations: 86.83 MB / 380.7 MB, free: 6.023 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003196/2.442, allocations: 87.16 kB / 380.8 MB, free: 6.008 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: 409 * Number of variables: 409 Notification: Performance of Generate backend data structure: time 0.1285/2.571, allocations: 29.86 MB / 410.6 MB, free: 8.367 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.041e-05/2.571, allocations: 8 kB / 410.6 MB, free: 8.359 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001288/2.572, allocations: 205.6 kB / 410.8 MB, free: 8.156 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008875/2.581, allocations: 2.033 MB / 412.9 MB, free: 6.605 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001313/2.581, allocations: 63.55 kB / 412.9 MB, free: 6.547 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005438/2.582, allocations: 95.25 kB / 413 MB, free: 6.457 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005827/2.588, allocations: 1.75 MB / 414.8 MB, free: 5.387 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007245/2.595, allocations: 1.997 MB / 416.8 MB, free: 3.918 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.537e-05/2.595, allocations: 0 / 416.8 MB, free: 3.918 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002468/2.595, allocations: 11.92 kB / 416.8 MB, free: 3.906 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001145/2.595, allocations: 71.08 kB / 416.9 MB, free: 3.84 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01942/2.615, allocations: 6.221 MB / 423.1 MB, free: 15.08 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003853/2.619, allocations: 1.295 MB / 424.4 MB, free: 13.79 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003142/2.622, allocations: 0.9949 MB / 425.4 MB, free: 12.8 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001042/2.622, allocations: 9 kB / 425.4 MB, free: 12.79 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00206/2.624, allocations: 0.7727 MB / 426.2 MB, free: 11.99 MB / 330.7 MB Notification: Performance of pre-optimization done (n=114): time 4.739e-06/2.624, allocations: 0 / 426.2 MB, free: 11.99 MB / 330.7 MB Notification: Performance of matching and sorting (n=114): time 0.004907/2.629, allocations: 1.531 MB / 427.7 MB, free: 10.46 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001436/2.629, allocations: 152.3 kB / 427.8 MB, free: 10.28 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002418/2.632, allocations: 0.8948 MB / 428.7 MB, free: 9.367 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003619/2.632, allocations: 53.67 kB / 428.8 MB, free: 9.309 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008301/2.633, allocations: 0.5639 MB / 429.3 MB, free: 8.738 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006458/2.634, allocations: 326.1 kB / 429.7 MB, free: 8.422 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.755e-05/2.634, allocations: 0 / 429.7 MB, free: 8.422 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002136/2.634, allocations: 353.9 kB / 430 MB, free: 8.07 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001632/2.636, allocations: 0.5843 MB / 430.6 MB, free: 7.488 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001879/2.638, allocations: 0.8415 MB / 431.4 MB, free: 6.555 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001658/2.639, allocations: 0.6275 MB / 432.1 MB, free: 5.926 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.15e-05/2.639, allocations: 7.938 kB / 432.1 MB, free: 5.918 MB / 330.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.00471/2.644, allocations: 1.737 MB / 433.8 MB, free: 4.168 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001231/2.645, allocations: 2.444 MB / 436.2 MB, free: 1.539 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.284e-05/2.645, allocations: 7.984 kB / 436.3 MB, free: 1.531 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002338/2.648, allocations: 0.4964 MB / 436.8 MB, free: 1.031 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001398/2.649, allocations: 163.6 kB / 436.9 MB, free: 0.8711 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01178/2.661, allocations: 4.909 MB / 441.8 MB, free: 11.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001989/2.663, allocations: 155.1 kB / 442 MB, free: 11.69 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002144/2.663, allocations: 44 kB / 442 MB, free: 11.65 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/2.663, allocations: 4 kB / 442 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004455/2.668, allocations: 1.576 MB / 443.6 MB, free: 10.06 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.914e-05/2.668, allocations: 8 kB / 443.6 MB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002095/2.67, allocations: 0.501 MB / 444.1 MB, free: 9.547 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001317/2.671, allocations: 155.7 kB / 444.3 MB, free: 9.395 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01229/2.684, allocations: 4.91 MB / 449.2 MB, free: 4.371 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002029/2.686, allocations: 131.2 kB / 449.3 MB, free: 4.242 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002038/2.686, allocations: 51.98 kB / 449.3 MB, free: 4.191 MB / 346.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: 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,$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,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,$PRE.rectifier.pre[1].u,rectifier.pre[1].u,rectifier.pre[1].y,$PRE.rectifier.pre[2].u,rectifier.pre[2].u,rectifier.pre[2].y,$PRE.rectifier.pre[3].u,rectifier.pre[3].u,rectifier.pre[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 (117): * Single equations (assignments): 116 * 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.0004736/2.686, allocations: 180.5 kB / 449.5 MB, free: 4.008 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003878/2.687, allocations: 118.6 kB / 449.6 MB, free: 3.891 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005844/2.687, allocations: 135.5 kB / 449.8 MB, free: 3.754 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.729e-05/2.687, allocations: 12 kB / 449.8 MB, free: 3.742 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.345e-06/2.687, allocations: 0 / 449.8 MB, free: 3.742 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.602e-05/2.688, allocations: 3.984 kB / 449.8 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01021/2.698, allocations: 3.271 MB / 453.1 MB, free: 452 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.006e-05/2.698, allocations: 0 / 453.1 MB, free: 452 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008449/2.699, allocations: 83.89 kB / 453.1 MB, free: 368 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002015/2.701, allocations: 488.8 kB / 453.6 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001832/2.701, allocations: 7.938 kB / 453.6 MB, free: 15.87 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01346/2.714, allocations: 4.789 MB / 458.4 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.481e-06/2.714, allocations: 0 / 458.4 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006101/2.721, allocations: 2.414 MB / 460.8 MB, free: 8.531 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008443/2.729, allocations: 3.663 MB / 464.5 MB, free: 4.852 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00132/2.73, allocations: 339.4 kB / 464.8 MB, free: 4.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003417/2.731, allocations: 15.98 kB / 464.8 MB, free: 4.484 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001374/2.732, allocations: 87.91 kB / 464.9 MB, free: 4.398 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000432/2.733, allocations: 104.8 kB / 465 MB, free: 4.297 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001134/2.733, allocations: 32.3 kB / 465.1 MB, free: 4.266 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.001746/2.735, allocations: 0.664 MB / 465.7 MB, free: 3.59 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006632/2.741, allocations: 0.7237 MB / 466.4 MB, free: 2.863 MB / 362.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: 42 (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.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,rectifier.pre[1].u,rectifier.pre[1].y,rectifier.pre[2].u,rectifier.pre[2].y,rectifier.pre[3].u,rectifier.pre[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: 9 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.pre[3].u,rectifier.pre[2].u,rectifier.pre[1].u,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[1].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 67 * 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.0007774/2.742, allocations: 164.3 kB / 466.6 MB, free: 2.695 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007779/2.75, allocations: 2.658 MB / 469.3 MB, free: 16 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.445e-06/2.75, allocations: 0.5 kB / 469.3 MB, free: 16 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002749/2.753, allocations: 0.903 MB / 470.2 MB, free: 15.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002369/2.755, allocations: 255.8 kB / 470.4 MB, free: 14.85 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01216/2.767, allocations: 2.708 MB / 473.1 MB, free: 12.09 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004904/2.772, allocations: 1.709 MB / 474.8 MB, free: 10.35 MB / 378.7 MB Notification: Performance of SimCode: time 1.803e-06/2.772, allocations: 3.938 kB / 474.8 MB, free: 10.35 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.HalfControlledBridge2mPulse_res.mat does not exist to compare? outputFormat=mat