Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive",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.899/1.899, allocations: 194.9 MB / 202.5 MB, free: 6.93 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2797/2.179, allocations: 46.84 MB / 249.4 MB, free: 5.336 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/2.297, allocations: 44.5 MB / 293.9 MB, free: 10.92 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3712/2.668, allocations: 99.74 MB / 393.6 MB, free: 2.445 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003634/2.668, allocations: 89.5 kB / 393.7 MB, free: 2.43 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.196/2.864, allocations: 37.43 MB / 431.1 MB, free: 7.289 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.557e-05/2.864, allocations: 8 kB / 431.1 MB, free: 7.281 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001856/2.866, allocations: 245.5 kB / 431.4 MB, free: 7.039 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005922/2.872, allocations: 1.284 MB / 432.7 MB, free: 5.996 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001567/2.873, allocations: 51.56 kB / 432.7 MB, free: 5.949 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007192/2.873, allocations: 88 kB / 432.8 MB, free: 5.863 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004878/2.878, allocations: 1.084 MB / 433.9 MB, free: 5.18 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006278/2.885, allocations: 1.286 MB / 435.2 MB, free: 4.199 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001117/2.885, allocations: 15.25 kB / 435.2 MB, free: 4.188 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003533/2.885, allocations: 7.984 kB / 435.2 MB, free: 4.18 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-05/2.885, allocations: 32 kB / 435.2 MB, free: 4.148 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02403/2.909, allocations: 6.089 MB / 441.3 MB, free: 14.11 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003656/2.913, allocations: 0.5425 MB / 441.8 MB, free: 13.56 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003002/2.916, allocations: 0.5392 MB / 442.4 MB, free: 13.02 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000187/2.916, allocations: 12.77 kB / 442.4 MB, free: 13 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002463/2.919, allocations: 0.5122 MB / 442.9 MB, free: 12.47 MB / 346.7 MB Notification: Performance of pre-optimization done (n=92): time 5.2e-06/2.919, allocations: 0 / 442.9 MB, free: 12.47 MB / 346.7 MB Notification: Performance of matching and sorting (n=95): time 0.008445/2.927, allocations: 2.234 MB / 445.1 MB, free: 10.16 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001464/2.928, allocations: 170.9 kB / 445.3 MB, free: 9.953 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003366/2.931, allocations: 0.9927 MB / 446.3 MB, free: 8.949 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000314/2.931, allocations: 33.7 kB / 446.3 MB, free: 8.91 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001023/2.932, allocations: 0.5918 MB / 446.9 MB, free: 8.309 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007231/2.933, allocations: 307.6 kB / 447.2 MB, free: 8.004 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001279/2.933, allocations: 4 kB / 447.2 MB, free: 8 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002375/2.934, allocations: 353.9 kB / 447.6 MB, free: 7.648 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001418/2.935, allocations: 394.5 kB / 448 MB, free: 7.262 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002121/2.937, allocations: 0.8032 MB / 448.8 MB, free: 6.273 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001813/2.939, allocations: 494.6 kB / 449.2 MB, free: 5.789 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.642e-05/2.939, allocations: 4 kB / 449.3 MB, free: 5.785 MB / 346.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.005404/2.945, allocations: 1.434 MB / 450.7 MB, free: 4.32 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002601/2.947, allocations: 5.041 MB / 455.7 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.817e-05/2.947, allocations: 12 kB / 455.7 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001266/2.949, allocations: 213.5 kB / 455.9 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002585/2.951, allocations: 303.5 kB / 456.2 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00696/2.958, allocations: 3.59 MB / 459.8 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002811/2.961, allocations: 127.8 kB / 460 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004147/2.962, allocations: 56.06 kB / 460 MB, free: 10.35 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/2.962, allocations: 7.938 kB / 460 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004384/2.966, allocations: 1.263 MB / 461.3 MB, free: 9.059 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.584e-05/2.966, allocations: 15.98 kB / 461.3 MB, free: 9.043 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001722/2.968, allocations: 209.5 kB / 461.5 MB, free: 8.832 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003812/2.972, allocations: 303.7 kB / 461.8 MB, free: 8.535 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01139/2.983, allocations: 3.586 MB / 465.4 MB, free: 4.727 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002698/2.986, allocations: 111.9 kB / 465.5 MB, free: 4.617 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004664/2.987, allocations: 56.06 kB / 465.5 MB, free: 4.562 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.0005702/2.987, allocations: 160.3 kB / 465.7 MB, free: 4.398 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005788/2.988, allocations: 130.4 kB / 465.8 MB, free: 4.27 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005117/2.993, allocations: 1.104 MB / 466.9 MB, free: 3.125 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.368e-05/2.993, allocations: 16 kB / 467 MB, free: 3.109 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/2.993, allocations: 48 / 467 MB, free: 3.109 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.435e-05/2.993, allocations: 7.969 kB / 467 MB, free: 3.102 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008788/3.002, allocations: 2.458 MB / 469.4 MB, free: 0.5586 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.671e-05/3.002, allocations: 4 kB / 469.4 MB, free: 0.5547 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001721/3.004, allocations: 163.8 kB / 469.6 MB, free: 404 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001078/3.005, allocations: 185.6 kB / 469.8 MB, free: 212 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002705/3.005, allocations: 15.98 kB / 469.8 MB, free: 196 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006723/3.012, allocations: 3.54 MB / 473.3 MB, free: 12.43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.295e-05/3.012, allocations: 7.984 kB / 473.3 MB, free: 12.42 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00526/3.017, allocations: 1.731 MB / 475.1 MB, free: 10.61 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009879/3.027, allocations: 3.614 MB / 478.7 MB, free: 6.906 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001422/3.029, allocations: 311.4 kB / 479 MB, free: 6.582 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006632/3.03, allocations: 11.98 kB / 479 MB, free: 6.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002463/3.032, allocations: 99.89 kB / 479.1 MB, free: 6.473 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001108/3.033, allocations: 68.58 kB / 479.2 MB, free: 6.406 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005471/3.034, allocations: 27.98 kB / 479.2 MB, free: 6.379 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.002858/3.037, allocations: 0.7245 MB / 479.9 MB, free: 5.648 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006737/3.044, allocations: 0.5587 MB / 480.5 MB, free: 5.09 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.001003/3.045, allocations: 307 kB / 480.8 MB, free: 4.781 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007076/3.052, allocations: 2.152 MB / 482.9 MB, free: 2.594 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.271e-05/3.052, allocations: 0 / 482.9 MB, free: 2.594 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002948/3.055, allocations: 0.7489 MB / 483.7 MB, free: 1.828 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002928/3.058, allocations: 240.7 kB / 483.9 MB, free: 1.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01153/3.069, allocations: 2.463 MB / 486.4 MB, free: 15.06 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003077/3.073, allocations: 1.446 MB / 487.8 MB, free: 13.59 MB / 394.7 MB Notification: Performance of SimCode: time 1.823e-06/3.073, allocations: 0 / 487.8 MB, free: 13.59 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive_res.mat does not exist to compare? outputFormat=mat