Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive",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.678/1.678, allocations: 194.9 MB / 202.6 MB, free: 6.891 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2336/1.911, allocations: 46.84 MB / 249.4 MB, free: 5.332 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08796/1.999, allocations: 44.51 MB / 293.9 MB, free: 10.86 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3148/2.314, allocations: 99.75 MB / 393.7 MB, free: 2.461 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003214/2.315, allocations: 89.59 kB / 393.8 MB, free: 2.445 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: 365 * Number of variables: 365 Notification: Performance of Generate backend data structure: time 0.1679/2.482, allocations: 37.41 MB / 431.2 MB, free: 7.25 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.255e-05/2.483, allocations: 12 kB / 431.2 MB, free: 7.238 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001631/2.484, allocations: 245.5 kB / 431.4 MB, free: 6.996 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004893/2.489, allocations: 1.283 MB / 432.7 MB, free: 5.961 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001088/2.489, allocations: 48 kB / 432.8 MB, free: 5.914 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003468/2.49, allocations: 95.17 kB / 432.8 MB, free: 5.824 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003857/2.494, allocations: 1.082 MB / 433.9 MB, free: 5.145 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004289/2.498, allocations: 1.296 MB / 435.2 MB, free: 4.152 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.392e-05/2.498, allocations: 4 kB / 435.2 MB, free: 4.148 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001896/2.498, allocations: 0 / 435.2 MB, free: 4.148 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-05/2.498, allocations: 36 kB / 435.3 MB, free: 4.113 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01666/2.515, allocations: 6.098 MB / 441.4 MB, free: 14.03 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001928/2.517, allocations: 0.5464 MB / 441.9 MB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001688/2.519, allocations: 0.5314 MB / 442.4 MB, free: 12.94 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.436e-05/2.519, allocations: 12.72 kB / 442.5 MB, free: 12.93 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001373/2.52, allocations: 0.5122 MB / 443 MB, free: 12.39 MB / 346.7 MB Notification: Performance of pre-optimization done (n=92): time 4.288e-06/2.52, allocations: 0 / 443 MB, free: 12.39 MB / 346.7 MB Notification: Performance of matching and sorting (n=95): time 0.007059/2.527, allocations: 2.234 MB / 445.2 MB, free: 10.08 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001291/2.527, allocations: 178.9 kB / 445.4 MB, free: 9.871 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002785/2.53, allocations: 0.9927 MB / 446.4 MB, free: 8.867 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002713/2.53, allocations: 29.7 kB / 446.4 MB, free: 8.832 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007764/2.531, allocations: 0.5957 MB / 447 MB, free: 8.227 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005286/2.532, allocations: 307.6 kB / 447.3 MB, free: 7.922 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.913e-05/2.532, allocations: 0 / 447.3 MB, free: 7.922 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002001/2.532, allocations: 353.9 kB / 447.6 MB, free: 7.57 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001213/2.533, allocations: 398.5 kB / 448 MB, free: 7.18 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001609/2.535, allocations: 0.8071 MB / 448.8 MB, free: 6.188 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001427/2.536, allocations: 498.5 kB / 449.3 MB, free: 5.699 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.148e-05/2.536, allocations: 4 kB / 449.3 MB, free: 5.695 MB / 346.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.004211/2.541, allocations: 1.427 MB / 450.8 MB, free: 4.234 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002347/2.543, allocations: 5.041 MB / 455.8 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.001e-05/2.543, allocations: 12 kB / 455.8 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001188/2.544, allocations: 213.7 kB / 456 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002547/2.547, allocations: 307.5 kB / 456.3 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006362/2.553, allocations: 3.586 MB / 459.9 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002589/2.556, allocations: 127.9 kB / 460 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001647/2.556, allocations: 56 kB / 460.1 MB, free: 10.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.005e-05/2.556, allocations: 4 kB / 460.1 MB, free: 10.26 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003724/2.56, allocations: 1.259 MB / 461.3 MB, free: 8.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.861e-05/2.56, allocations: 16 kB / 461.4 MB, free: 8.965 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001001/2.561, allocations: 209.8 kB / 461.6 MB, free: 8.754 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002332/2.563, allocations: 295.5 kB / 461.8 MB, free: 8.465 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006162/2.569, allocations: 3.586 MB / 465.4 MB, free: 4.652 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00237/2.572, allocations: 115.8 kB / 465.5 MB, free: 4.539 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001455/2.572, allocations: 56.06 kB / 465.6 MB, free: 4.484 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,$PRE.rectifier.thyristor_p1.off,rectifier.thyristor_p1.off,$PRE.rectifier.thyristor_p2.off,rectifier.thyristor_p2.off,$PRE.rectifier.thyristor_n1.off,rectifier.thyristor_n1.off,$PRE.rectifier.thyristor_n2.off,rectifier.thyristor_n2.off,pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$PRE.pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerPositive[1].entryTime,$PRE.pulse2.twoPulse.timerNegative[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (144): * Single equations (assignments): 142 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 1 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0004219/2.572, allocations: 168.6 kB / 465.8 MB, free: 4.312 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003379/2.573, allocations: 130.4 kB / 465.9 MB, free: 4.184 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003502/2.576, allocations: 1.116 MB / 467 MB, free: 3.027 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-05/2.576, allocations: 8 kB / 467 MB, free: 3.02 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.988e-06/2.576, allocations: 4 kB / 467 MB, free: 3.016 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.538e-05/2.576, allocations: 3.984 kB / 467 MB, free: 3.012 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006666/2.583, allocations: 2.447 MB / 469.5 MB, free: 492 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.218e-05/2.583, allocations: 7.984 kB / 469.5 MB, free: 484 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001584/2.585, allocations: 163.8 kB / 469.6 MB, free: 320 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009592/2.586, allocations: 181.6 kB / 469.8 MB, free: 132 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000105/2.586, allocations: 11.98 kB / 469.8 MB, free: 120 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006121/2.592, allocations: 3.543 MB / 473.4 MB, free: 12.35 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.275e-06/2.592, allocations: 8.062 kB / 473.4 MB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005813/2.598, allocations: 1.734 MB / 475.1 MB, free: 10.52 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01111/2.609, allocations: 3.61 MB / 478.7 MB, free: 6.828 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001333/2.61, allocations: 311.4 kB / 479 MB, free: 6.504 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000471/2.611, allocations: 12 kB / 479 MB, free: 6.492 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002398/2.613, allocations: 103.9 kB / 479.1 MB, free: 6.391 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003244/2.614, allocations: 68.58 kB / 479.2 MB, free: 6.324 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001389/2.614, allocations: 27.98 kB / 479.2 MB, free: 6.297 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.002797/2.617, allocations: 0.7285 MB / 480 MB, free: 5.562 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.007972/2.625, allocations: 0.5548 MB / 480.5 MB, free: 5.004 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,pulse2.twoPulse.filter[1].firstOrder.y,pulse2.twoPulse.filter[1].transferFunction[1].x_scaled[1],pulse2.twoPulse.filter[1].transferFunction[2].x_scaled[1],inductor.i,dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,lMains.i) * Number of discrete variables: 20 (pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 7 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_p2.off,rectifier.thyristor_p1.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 1 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008687/2.625, allocations: 309.6 kB / 480.8 MB, free: 4.695 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007657/2.633, allocations: 2.153 MB / 483 MB, free: 2.508 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/2.633, allocations: 0 / 483 MB, free: 2.508 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002709/2.636, allocations: 0.7525 MB / 483.7 MB, free: 1.738 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003031/2.639, allocations: 245.6 kB / 484 MB, free: 1.496 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01231/2.651, allocations: 2.459 MB / 486.4 MB, free: 14.97 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002947/2.654, allocations: 1.45 MB / 487.9 MB, free: 13.5 MB / 394.7 MB Notification: Performance of SimCode: time 1.283e-06/2.654, allocations: 0 / 487.9 MB, free: 13.5 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive_res.mat does not exist to compare? outputFormat=mat