Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_RLV,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTapmPulse_ThyristorCenterTapmPulse_RLV",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.714/1.714, allocations: 194.9 MB / 202.6 MB, free: 6.887 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2529/1.967, allocations: 46.84 MB / 249.4 MB, free: 5.324 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08942/2.057, allocations: 44.51 MB / 293.9 MB, free: 10.87 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2986/2.355, allocations: 84.58 MB / 378.5 MB, free: 6.637 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003111/2.356, allocations: 84.14 kB / 378.6 MB, free: 6.625 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: 330 * Number of variables: 330 Notification: Performance of Generate backend data structure: time 0.12/2.476, allocations: 29.46 MB / 408.1 MB, free: 10.41 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/2.476, allocations: 8 kB / 408.1 MB, free: 10.4 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006215/2.476, allocations: 169.9 kB / 408.2 MB, free: 10.23 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00678/2.483, allocations: 1.628 MB / 409.9 MB, free: 8.973 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00011/2.483, allocations: 47.5 kB / 409.9 MB, free: 8.93 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003104/2.484, allocations: 76 kB / 410 MB, free: 8.855 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004137/2.488, allocations: 1.309 MB / 411.3 MB, free: 8.047 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004292/2.492, allocations: 1.537 MB / 412.8 MB, free: 6.906 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.145e-05/2.492, allocations: 0 / 412.8 MB, free: 6.906 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001846/2.492, allocations: 4 kB / 412.8 MB, free: 6.902 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001/2.493, allocations: 62.2 kB / 412.9 MB, free: 6.844 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01397/2.507, allocations: 4.754 MB / 417.6 MB, free: 3.184 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002242/2.509, allocations: 0.8616 MB / 418.5 MB, free: 2.594 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001594/2.51, allocations: 0.5582 MB / 419.1 MB, free: 2.199 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.69e-05/2.511, allocations: 12.59 kB / 419.1 MB, free: 2.188 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001334/2.512, allocations: 0.5427 MB / 419.6 MB, free: 1.781 MB / 314.7 MB Notification: Performance of pre-optimization done (n=82): time 3.887e-06/2.512, allocations: 0 / 419.6 MB, free: 1.781 MB / 314.7 MB Notification: Performance of matching and sorting (n=82): time 0.003059/2.515, allocations: 0.9274 MB / 420.5 MB, free: 1.086 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001192/2.515, allocations: 152.3 kB / 420.7 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001765/2.517, allocations: 0.6904 MB / 421.4 MB, free: 304 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001936/2.517, allocations: 41.69 kB / 421.4 MB, free: 256 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006311/2.518, allocations: 0.4903 MB / 421.9 MB, free: 15.76 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003382/2.518, allocations: 232.2 kB / 422.1 MB, free: 15.53 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.015e-05/2.518, allocations: 0 / 422.1 MB, free: 15.53 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002821/2.518, allocations: 402.7 kB / 422.5 MB, free: 15.13 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001152/2.52, allocations: 397.8 kB / 422.9 MB, free: 14.74 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001373/2.521, allocations: 0.6241 MB / 423.5 MB, free: 14.02 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001161/2.522, allocations: 436.3 kB / 424 MB, free: 13.59 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.678e-06/2.522, allocations: 4 kB / 424 MB, free: 13.59 MB / 330.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.003268/2.526, allocations: 1.15 MB / 425.1 MB, free: 12.43 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00107/2.527, allocations: 2.528 MB / 427.7 MB, free: 9.703 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.863e-05/2.527, allocations: 4 kB / 427.7 MB, free: 9.699 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000983/2.528, allocations: 220.7 kB / 427.9 MB, free: 9.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001298/2.529, allocations: 151.8 kB / 428 MB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004966/2.534, allocations: 2.555 MB / 430.6 MB, free: 6.664 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001634/2.536, allocations: 135.2 kB / 430.7 MB, free: 6.531 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000115/2.536, allocations: 36 kB / 430.7 MB, free: 6.496 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.021e-05/2.536, allocations: 4 kB / 430.7 MB, free: 6.492 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0029/2.539, allocations: 1.029 MB / 431.8 MB, free: 5.461 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/2.539, allocations: 4.062 kB / 431.8 MB, free: 5.457 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008822/2.54, allocations: 224.8 kB / 432 MB, free: 5.234 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001122/2.541, allocations: 147.7 kB / 432.1 MB, free: 5.09 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004905/2.546, allocations: 2.548 MB / 434.7 MB, free: 2.426 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001517/2.547, allocations: 119.3 kB / 434.8 MB, free: 2.309 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001079/2.547, allocations: 36 kB / 434.8 MB, free: 2.273 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 48 ($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,rectifier.andCondition_p[1].y,rectifier.andCondition_p[2].y,rectifier.andCondition_p[3].y,$PRE.rectifier.thyristor.idealThyristor[1].off,rectifier.thyristor.idealThyristor[1].off,$PRE.rectifier.thyristor.idealThyristor[2].off,rectifier.thyristor.idealThyristor[2].off,$PRE.rectifier.thyristor.idealThyristor[3].off,rectifier.thyristor.idealThyristor[3].off,pulsem.twomPulse.positiveThreshold[1].y,pulsem.twomPulse.positiveThreshold[2].y,pulsem.twomPulse.positiveThreshold[3].y,pulsem.twomPulse.negativeThreshold[1].y,pulsem.twomPulse.negativeThreshold[2].y,pulsem.twomPulse.negativeThreshold[3].y,$PRE.pulsem.twomPulse.timerPositive[1].entryTime,pulsem.twomPulse.timerPositive[1].entryTime,$PRE.pulsem.twomPulse.timerPositive[2].entryTime,pulsem.twomPulse.timerPositive[2].entryTime,$PRE.pulsem.twomPulse.timerPositive[3].entryTime,pulsem.twomPulse.timerPositive[3].entryTime,$PRE.pulsem.twomPulse.timerNegative[1].entryTime,pulsem.twomPulse.timerNegative[1].entryTime,$PRE.pulsem.twomPulse.timerNegative[2].entryTime,pulsem.twomPulse.timerNegative[2].entryTime,$PRE.pulsem.twomPulse.timerNegative[3].entryTime,pulsem.twomPulse.timerNegative[3].entryTime,pulsem.fire_p[1],pulsem.fire_p[2],pulsem.fire_p[3],pulsem.fire_n[1],pulsem.fire_n[2],pulsem.fire_n[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 106 * 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 {3 10} Notification: Performance of prepare postOptimizeDAE: time 0.0003866/2.548, allocations: 164.8 kB / 435 MB, free: 2.113 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002284/2.548, allocations: 86.97 kB / 435.1 MB, free: 2.027 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004035/2.548, allocations: 104.6 kB / 435.2 MB, free: 1.922 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.264e-05/2.548, allocations: 8 kB / 435.2 MB, free: 1.914 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-05/2.548, allocations: 11.89 kB / 435.2 MB, free: 1.902 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.364e-05/2.548, allocations: 3.984 kB / 435.2 MB, free: 1.898 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006485/2.555, allocations: 2.306 MB / 437.5 MB, free: 15.56 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/2.555, allocations: 0 / 437.5 MB, free: 15.56 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007958/2.556, allocations: 83.95 kB / 437.6 MB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000804/2.557, allocations: 196.7 kB / 437.8 MB, free: 15.28 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.765e-05/2.557, allocations: 4 kB / 437.8 MB, free: 15.28 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004641/2.561, allocations: 2.47 MB / 440.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.206e-06/2.561, allocations: 4 kB / 440.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004124/2.566, allocations: 1.602 MB / 441.9 MB, free: 11.04 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005567/2.571, allocations: 2.559 MB / 444.4 MB, free: 8.441 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007986/2.572, allocations: 259.8 kB / 444.7 MB, free: 8.168 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002433/2.572, allocations: 15.94 kB / 444.7 MB, free: 8.152 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001173/2.573, allocations: 79.92 kB / 444.8 MB, free: 8.074 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003572/2.574, allocations: 88.52 kB / 444.9 MB, free: 7.988 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.604e-05/2.574, allocations: 23.98 kB / 444.9 MB, free: 7.965 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.001194/2.575, allocations: 0.5069 MB / 445.4 MB, free: 7.457 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004319/2.579, allocations: 0.5367 MB / 445.9 MB, free: 6.918 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,inductor.i) * Number of discrete variables: 36 (pulsem.twomPulse.negativeThreshold[2].y,pulsem.twomPulse.positiveThreshold[2].y,pulsem.twomPulse.negativeThreshold[1].y,pulsem.twomPulse.positiveThreshold[1].y,pulsem.twomPulse.negativeThreshold[3].y,pulsem.twomPulse.positiveThreshold[3].y,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p[1].y,rectifier.andCondition_p[2].y,rectifier.andCondition_p[3].y,rectifier.thyristor.idealThyristor[1].off,rectifier.thyristor.idealThyristor[2].off,rectifier.thyristor.idealThyristor[3].off,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulsem.twomPulse.timerPositive[1].entryTime,pulsem.twomPulse.timerPositive[2].entryTime,pulsem.twomPulse.timerPositive[3].entryTime,pulsem.twomPulse.timerNegative[1].entryTime,pulsem.twomPulse.timerNegative[2].entryTime,pulsem.twomPulse.timerNegative[3].entryTime,pulsem.fire_p[1],pulsem.fire_p[2],pulsem.fire_p[3],pulsem.fire_n[1],pulsem.fire_n[2],pulsem.fire_n[3]) * Number of discrete states: 6 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor.idealThyristor[3].off,rectifier.thyristor.idealThyristor[1].off,rectifier.thyristor.idealThyristor[2].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 60 * 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 {3 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003669/2.58, allocations: 156.6 kB / 446.1 MB, free: 6.758 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004773/2.585, allocations: 1.778 MB / 447.9 MB, free: 4.965 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/2.585, allocations: 0 / 447.9 MB, free: 4.965 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001759/2.586, allocations: 0.6487 MB / 448.5 MB, free: 4.309 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001618/2.588, allocations: 151.1 kB / 448.7 MB, free: 4.16 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006925/2.595, allocations: 1.992 MB / 450.7 MB, free: 2.121 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002121/2.597, allocations: 1.475 MB / 452.1 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of SimCode: time 1.272e-06/2.597, allocations: 0 / 452.1 MB, free: 0.6172 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_RLV_res.mat does not exist to compare? outputFormat=mat