Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.HalfControlledBridge2mPulse,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_HalfControlledBridge2mPulse",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.773/1.773, allocations: 194.9 MB / 202.6 MB, free: 6.891 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.244/2.018, allocations: 46.85 MB / 249.4 MB, free: 5.336 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/2.128, allocations: 44.5 MB / 293.9 MB, free: 10.86 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3073/2.435, allocations: 86.83 MB / 380.8 MB, free: 6.062 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003094/2.436, allocations: 88.94 kB / 380.8 MB, free: 6.047 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.1235/2.559, allocations: 29.87 MB / 410.7 MB, free: 8.27 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/2.559, allocations: 8 kB / 410.7 MB, free: 8.262 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008908/2.56, allocations: 213.6 kB / 410.9 MB, free: 8.051 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008565/2.569, allocations: 2.022 MB / 412.9 MB, free: 6.508 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001247/2.569, allocations: 59.48 kB / 413 MB, free: 6.453 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004142/2.569, allocations: 92 kB / 413.1 MB, free: 6.363 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005668/2.575, allocations: 1.757 MB / 414.9 MB, free: 5.289 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005935/2.581, allocations: 1.996 MB / 416.8 MB, free: 3.824 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.97e-05/2.581, allocations: 0 / 416.8 MB, free: 3.824 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002482/2.581, allocations: 7.984 kB / 416.9 MB, free: 3.816 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001137/2.581, allocations: 70.27 kB / 416.9 MB, free: 3.75 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01864/2.6, allocations: 6.24 MB / 423.2 MB, free: 14.97 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003487/2.604, allocations: 1.289 MB / 424.5 MB, free: 13.68 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002787/2.606, allocations: 0.9914 MB / 425.4 MB, free: 12.7 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.765e-05/2.607, allocations: 13 kB / 425.5 MB, free: 12.68 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002051/2.609, allocations: 0.765 MB / 426.2 MB, free: 11.89 MB / 330.7 MB Notification: Performance of pre-optimization done (n=114): time 4.719e-06/2.609, allocations: 0 / 426.2 MB, free: 11.89 MB / 330.7 MB Notification: Performance of matching and sorting (n=114): time 0.004929/2.614, allocations: 1.54 MB / 427.8 MB, free: 10.35 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/2.614, allocations: 149.5 kB / 427.9 MB, free: 10.18 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002341/2.616, allocations: 0.8948 MB / 428.8 MB, free: 9.262 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002777/2.616, allocations: 49.67 kB / 428.9 MB, free: 9.207 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007674/2.617, allocations: 0.5648 MB / 429.4 MB, free: 8.637 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005264/2.618, allocations: 323 kB / 429.7 MB, free: 8.324 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.903e-05/2.618, allocations: 0 / 429.7 MB, free: 8.324 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001954/2.618, allocations: 357.9 kB / 430.1 MB, free: 7.969 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001671/2.62, allocations: 0.5843 MB / 430.7 MB, free: 7.387 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001927/2.622, allocations: 0.8415 MB / 431.5 MB, free: 6.453 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001743/2.623, allocations: 0.6275 MB / 432.1 MB, free: 5.824 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.395e-06/2.623, allocations: 0 / 432.1 MB, free: 5.824 MB / 330.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.004954/2.628, allocations: 1.737 MB / 433.9 MB, free: 4.074 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001012/2.629, allocations: 2.437 MB / 436.3 MB, free: 1.449 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.459e-05/2.629, allocations: 11.94 kB / 436.3 MB, free: 1.438 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002356/2.632, allocations: 0.5003 MB / 436.8 MB, free: 0.9336 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001443/2.633, allocations: 171.6 kB / 437 MB, free: 0.7656 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01245/2.646, allocations: 4.898 MB / 441.9 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002026/2.648, allocations: 151.1 kB / 442 MB, free: 11.6 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001564/2.648, allocations: 44 kB / 442.1 MB, free: 11.55 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/2.648, allocations: 4 kB / 442.1 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004501/2.653, allocations: 1.576 MB / 443.7 MB, free: 9.969 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.739e-05/2.653, allocations: 4.062 kB / 443.7 MB, free: 9.965 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002192/2.655, allocations: 0.5046 MB / 444.2 MB, free: 9.457 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001326/2.656, allocations: 163.7 kB / 444.3 MB, free: 9.297 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01233/2.669, allocations: 4.901 MB / 449.2 MB, free: 4.277 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00187/2.67, allocations: 139.2 kB / 449.4 MB, free: 4.141 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001506/2.671, allocations: 47.98 kB / 449.4 MB, free: 4.094 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.0005035/2.671, allocations: 184.5 kB / 449.6 MB, free: 3.906 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00032/2.671, allocations: 114.6 kB / 449.7 MB, free: 3.793 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005859/2.672, allocations: 143.5 kB / 449.8 MB, free: 3.648 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.519e-05/2.672, allocations: 8 kB / 449.8 MB, free: 3.641 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/2.672, allocations: 4 kB / 449.9 MB, free: 3.637 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.629e-05/2.672, allocations: 3.984 kB / 449.9 MB, free: 3.633 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009754/2.682, allocations: 3.262 MB / 453.1 MB, free: 360 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.316e-05/2.682, allocations: 4 kB / 453.1 MB, free: 356 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008492/2.683, allocations: 87.83 kB / 453.2 MB, free: 268 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002155/2.685, allocations: 496.8 kB / 453.7 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001296/2.685, allocations: 7.984 kB / 453.7 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01195/2.697, allocations: 4.78 MB / 458.5 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/2.697, allocations: 4 kB / 458.5 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00637/2.704, allocations: 2.406 MB / 460.9 MB, free: 8.434 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008576/2.712, allocations: 3.659 MB / 464.6 MB, free: 4.758 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001142/2.713, allocations: 339.3 kB / 464.9 MB, free: 4.406 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003384/2.714, allocations: 19.98 kB / 464.9 MB, free: 4.387 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00147/2.715, allocations: 91.91 kB / 465 MB, free: 4.297 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004561/2.716, allocations: 104.8 kB / 465.1 MB, free: 4.195 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001185/2.716, allocations: 28 kB / 465.1 MB, free: 4.168 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.001643/2.717, allocations: 0.6679 MB / 465.8 MB, free: 3.488 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004999/2.722, allocations: 0.7198 MB / 466.5 MB, free: 2.766 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.0004343/2.723, allocations: 168.6 kB / 466.7 MB, free: 2.594 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007832/2.731, allocations: 2.657 MB / 469.3 MB, free: 15.92 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/2.731, allocations: 0 / 469.3 MB, free: 15.92 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002757/2.734, allocations: 0.9085 MB / 470.2 MB, free: 15 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002475/2.736, allocations: 259.2 kB / 470.5 MB, free: 14.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01021/2.746, allocations: 2.696 MB / 473.2 MB, free: 12 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002738/2.749, allocations: 1.721 MB / 474.9 MB, free: 10.25 MB / 378.7 MB Notification: Performance of SimCode: time 1.553e-06/2.749, allocations: 0 / 474.9 MB, free: 10.25 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.HalfControlledBridge2mPulse_res.mat does not exist to compare? outputFormat=mat