Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_R,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2Pulse_ThyristorCenterTap2Pulse_R",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.65/1.65, allocations: 194.9 MB / 202.6 MB, free: 6.895 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2092/1.859, allocations: 46.85 MB / 249.4 MB, free: 5.309 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08956/1.948, allocations: 44.49 MB / 293.9 MB, free: 10.87 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2843/2.233, allocations: 80.83 MB / 374.7 MB, free: 7.137 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003102/2.233, allocations: 81.72 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.04975/2.283, allocations: 12.56 MB / 387.4 MB, free: 2.68 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/2.283, allocations: 7.75 kB / 387.4 MB, free: 2.68 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001823/2.283, allocations: 81.81 kB / 387.5 MB, free: 2.637 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009791/2.284, allocations: 473.5 kB / 387.9 MB, free: 2.324 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.01e-05/2.284, allocations: 19.48 kB / 388 MB, free: 2.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001141/2.284, allocations: 34.41 kB / 388 MB, free: 2.32 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001167/2.285, allocations: 389.1 kB / 388.4 MB, free: 2.297 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00132/2.287, allocations: 0.5108 MB / 388.9 MB, free: 2.137 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.831e-05/2.287, allocations: 4 kB / 388.9 MB, free: 2.133 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.226e-05/2.287, allocations: 7.719 kB / 388.9 MB, free: 2.129 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.54e-05/2.287, allocations: 11.47 kB / 388.9 MB, free: 2.129 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004943/2.292, allocations: 2.084 MB / 391 MB, free: 0.8945 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008485/2.293, allocations: 323.9 kB / 391.3 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006904/2.294, allocations: 231.8 kB / 391.5 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.48e-05/2.294, allocations: 4.078 kB / 391.5 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000554/2.294, allocations: 269.4 kB / 391.8 MB, free: 0.6836 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 3.657e-06/2.294, allocations: 0 / 391.8 MB, free: 0.6836 MB / 298.7 MB Notification: Performance of matching and sorting (n=44): time 0.001077/2.295, allocations: 368 kB / 392.2 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.755e-05/2.295, allocations: 135.8 kB / 392.3 MB, free: 440 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006904/2.296, allocations: 351 kB / 392.6 MB, free: 16.29 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.663e-05/2.296, allocations: 33.05 kB / 392.7 MB, free: 16.26 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000193/2.296, allocations: 250.7 kB / 392.9 MB, free: 16.07 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001256/2.296, allocations: 126.9 kB / 393 MB, free: 15.98 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.672e-05/2.297, allocations: 0 / 393 MB, free: 15.98 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001634/2.297, allocations: 357.5 kB / 393.4 MB, free: 15.65 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004105/2.297, allocations: 144.1 kB / 393.5 MB, free: 15.64 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005492/2.298, allocations: 287.8 kB / 393.8 MB, free: 15.45 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004512/2.298, allocations: 170.6 kB / 394 MB, free: 15.4 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.232e-06/2.298, allocations: 1.5 kB / 394 MB, free: 15.4 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001401/2.3, allocations: 485 kB / 394.4 MB, free: 15.28 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006731/2.3, allocations: 1.652 MB / 396.1 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.546e-05/2.3, allocations: 7.812 kB / 396.1 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005556/2.301, allocations: 90.72 kB / 396.2 MB, free: 13.51 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006579/2.302, allocations: 84.52 kB / 396.3 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002749/2.304, allocations: 1.66 MB / 397.9 MB, free: 12.19 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009415/2.305, allocations: 77.52 kB / 398 MB, free: 12.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.897e-05/2.305, allocations: 19.44 kB / 398 MB, free: 12.16 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/2.305, allocations: 8.156 kB / 398 MB, free: 12.15 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00121/2.307, allocations: 405.6 kB / 398.4 MB, free: 12.08 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/2.307, allocations: 5.375 kB / 398.4 MB, free: 12.08 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004524/2.307, allocations: 90.16 kB / 398.5 MB, free: 12.06 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00059/2.308, allocations: 75.97 kB / 398.6 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002712/2.31, allocations: 1.668 MB / 400.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007785/2.311, allocations: 59.09 kB / 400.3 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.375e-05/2.311, allocations: 20.25 kB / 400.3 MB, free: 10.7 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.0002809/2.312, allocations: 142.5 kB / 400.5 MB, free: 10.57 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001465/2.312, allocations: 46.56 kB / 400.5 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002029/2.312, allocations: 52.88 kB / 400.6 MB, free: 10.53 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/2.312, allocations: 4.469 kB / 400.6 MB, free: 10.53 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/2.312, allocations: 5.375 kB / 400.6 MB, free: 10.53 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.562e-05/2.312, allocations: 3.984 kB / 400.6 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002555/2.315, allocations: 1.087 MB / 401.7 MB, free: 9.977 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/2.315, allocations: 0 / 401.7 MB, free: 9.977 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004129/2.315, allocations: 37.52 kB / 401.7 MB, free: 9.969 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000444/2.316, allocations: 80.28 kB / 401.8 MB, free: 9.949 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.069e-05/2.316, allocations: 18.61 kB / 401.8 MB, free: 9.934 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002584/2.318, allocations: 1.631 MB / 403.4 MB, free: 8.641 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/2.318, allocations: 3.906 kB / 403.4 MB, free: 8.637 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001735/2.32, allocations: 0.6857 MB / 404.1 MB, free: 8.391 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002253/2.322, allocations: 1.243 MB / 405.4 MB, free: 7.77 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003433/2.323, allocations: 164.5 kB / 405.5 MB, free: 7.633 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001349/2.323, allocations: 7.172 kB / 405.5 MB, free: 7.629 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006715/2.323, allocations: 41.47 kB / 405.6 MB, free: 7.613 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00014/2.324, allocations: 35.22 kB / 405.6 MB, free: 7.598 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.727e-05/2.324, allocations: 11.88 kB / 405.6 MB, free: 7.598 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.00051/2.324, allocations: 258.8 kB / 405.9 MB, free: 7.496 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.003224/2.327, allocations: 252.6 kB / 406.1 MB, free: 7.445 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.00028/2.328, allocations: 133.2 kB / 406.3 MB, free: 7.34 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002261/2.33, allocations: 0.825 MB / 407.1 MB, free: 7.062 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.636e-06/2.33, allocations: 2 kB / 407.1 MB, free: 7.062 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007665/2.331, allocations: 314.3 kB / 407.4 MB, free: 6.926 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007177/2.332, allocations: 57.47 kB / 407.5 MB, free: 6.914 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002883/2.334, allocations: 0.7487 MB / 408.2 MB, free: 6.574 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008876/2.335, allocations: 0.9501 MB / 409.2 MB, free: 5.766 MB / 314.7 MB Notification: Performance of SimCode: time 1.031e-06/2.335, allocations: 5.281 kB / 409.2 MB, free: 5.762 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_R_res.mat does not exist to compare? outputFormat=mat