Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_R,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2Pulse_ThyristorCenterTap2Pulse_R",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.834/1.834, allocations: 194.9 MB / 202.5 MB, free: 6.914 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2768/2.111, allocations: 46.84 MB / 249.4 MB, free: 5.352 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/2.218, allocations: 44.5 MB / 293.9 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3539/2.572, allocations: 80.82 MB / 374.7 MB, free: 7.141 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003405/2.572, allocations: 90.47 kB / 374.8 MB, free: 7.137 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.05221/2.624, allocations: 12.56 MB / 387.3 MB, free: 2.703 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/2.624, allocations: 7.469 kB / 387.3 MB, free: 2.703 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003403/2.625, allocations: 77.38 kB / 387.4 MB, free: 2.664 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001271/2.626, allocations: 468.4 kB / 387.9 MB, free: 2.352 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.969e-05/2.626, allocations: 23.02 kB / 387.9 MB, free: 2.348 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001401/2.626, allocations: 33.78 kB / 387.9 MB, free: 2.348 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001241/2.627, allocations: 382.4 kB / 388.3 MB, free: 2.324 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/2.629, allocations: 0.5143 MB / 388.8 MB, free: 2.164 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.463e-05/2.629, allocations: 3.938 kB / 388.8 MB, free: 2.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.482e-05/2.629, allocations: 3.906 kB / 388.8 MB, free: 2.156 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.782e-05/2.629, allocations: 15.5 kB / 388.8 MB, free: 2.156 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005529/2.634, allocations: 2.071 MB / 390.9 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009436/2.635, allocations: 340.8 kB / 391.2 MB, free: 0.8711 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006894/2.636, allocations: 226 kB / 391.5 MB, free: 0.8398 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.123e-05/2.636, allocations: 4.203 kB / 391.5 MB, free: 0.8398 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009005/2.637, allocations: 269.6 kB / 391.7 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 4.298e-06/2.637, allocations: 0 / 391.7 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of matching and sorting (n=44): time 0.001253/2.639, allocations: 365.8 kB / 392.1 MB, free: 0.6172 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.226e-05/2.639, allocations: 140.2 kB / 392.2 MB, free: 468 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007626/2.639, allocations: 350.2 kB / 392.6 MB, free: 16.32 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000141/2.64, allocations: 29.52 kB / 392.6 MB, free: 16.29 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002751/2.64, allocations: 250.8 kB / 392.8 MB, free: 16.1 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001637/2.64, allocations: 129.9 kB / 393 MB, free: 16 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.787e-05/2.64, allocations: 0 / 393 MB, free: 16 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001957/2.64, allocations: 362.6 kB / 393.3 MB, free: 15.67 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004434/2.641, allocations: 139.6 kB / 393.5 MB, free: 15.66 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005101/2.641, allocations: 290.6 kB / 393.7 MB, free: 15.47 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004664/2.642, allocations: 164.7 kB / 393.9 MB, free: 15.43 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.366e-06/2.642, allocations: 1.344 kB / 393.9 MB, free: 15.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001513/2.643, allocations: 487.2 kB / 394.4 MB, free: 15.31 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008476/2.644, allocations: 1.658 MB / 396 MB, free: 13.56 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.395e-05/2.644, allocations: 3.906 kB / 396 MB, free: 13.56 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006781/2.645, allocations: 88.81 kB / 396.1 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007094/2.646, allocations: 83.91 kB / 396.2 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003076/2.649, allocations: 1.662 MB / 397.9 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/2.65, allocations: 81.61 kB / 397.9 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.181e-05/2.65, allocations: 19.59 kB / 398 MB, free: 12.18 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/2.65, allocations: 3.719 kB / 398 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001273/2.651, allocations: 407.5 kB / 398.4 MB, free: 12.1 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.193e-05/2.651, allocations: 5.125 kB / 398.4 MB, free: 12.1 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004828/2.652, allocations: 93.53 kB / 398.5 MB, free: 12.08 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006224/2.653, allocations: 79.61 kB / 398.5 MB, free: 12.06 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002954/2.656, allocations: 1.655 MB / 400.2 MB, free: 10.76 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008614/2.656, allocations: 62.88 kB / 400.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.413e-05/2.657, allocations: 19.62 kB / 400.3 MB, free: 10.73 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 25 ($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_p.off,rectifier.thyristor_p.off,$PRE.rectifier.thyristor_n.off,rectifier.thyristor_n.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 (56): * Single equations (assignments): 55 * 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 {2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0003528/2.657, allocations: 137.5 kB / 400.4 MB, free: 10.6 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001798/2.657, allocations: 50.94 kB / 400.5 MB, free: 10.58 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002254/2.657, allocations: 56.62 kB / 400.5 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/2.657, allocations: 4.969 kB / 400.5 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/2.657, allocations: 1.25 kB / 400.5 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.241e-05/2.657, allocations: 3.984 kB / 400.5 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002979/2.66, allocations: 1.088 MB / 401.6 MB, free: 10 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/2.66, allocations: 5.312 kB / 401.6 MB, free: 9.996 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004404/2.661, allocations: 36.61 kB / 401.7 MB, free: 9.992 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004678/2.661, allocations: 84 kB / 401.7 MB, free: 9.969 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.123e-05/2.662, allocations: 18.61 kB / 401.8 MB, free: 9.953 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002829/2.664, allocations: 1.627 MB / 403.4 MB, free: 8.664 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.858e-06/2.664, allocations: 5.281 kB / 403.4 MB, free: 8.66 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00193/2.666, allocations: 0.6883 MB / 404.1 MB, free: 8.41 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002566/2.669, allocations: 1.245 MB / 405.3 MB, free: 7.789 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004824/2.67, allocations: 160 kB / 405.5 MB, free: 7.652 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001388/2.67, allocations: 5.656 kB / 405.5 MB, free: 7.652 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006753/2.67, allocations: 36.84 kB / 405.5 MB, free: 7.641 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000162/2.671, allocations: 41 kB / 405.6 MB, free: 7.621 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.824e-05/2.671, allocations: 13.5 kB / 405.6 MB, free: 7.621 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0005458/2.671, allocations: 256.9 kB / 405.8 MB, free: 7.52 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.003557/2.675, allocations: 250 kB / 406.1 MB, free: 7.469 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 18 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,rectifier.thyristor_p.off,rectifier.thyristor_n.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: 5 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_n.off,rectifier.thyristor_p.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 29 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004306/2.675, allocations: 135.5 kB / 406.2 MB, free: 7.359 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00265/2.678, allocations: 0.821 MB / 407 MB, free: 7.086 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.078e-05/2.678, allocations: 5.156 kB / 407 MB, free: 7.082 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009004/2.679, allocations: 310.2 kB / 407.3 MB, free: 6.953 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008632/2.68, allocations: 66.47 kB / 407.4 MB, free: 6.934 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003533/2.683, allocations: 0.7508 MB / 408.1 MB, free: 6.59 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001413/2.685, allocations: 0.9531 MB / 409.1 MB, free: 5.781 MB / 314.7 MB Notification: Performance of SimCode: time 1.884e-06/2.685, allocations: 0 / 409.1 MB, free: 5.781 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_R_res.mat does not exist to compare? outputFormat=mat