Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RLV_Characteristic,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2Pulse_ThyristorCenterTap2Pulse_RLV_Characteristic",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.825/1.825, allocations: 194.9 MB / 202.5 MB, free: 6.93 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2814/2.106, allocations: 46.84 MB / 249.4 MB, free: 5.359 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/2.212, allocations: 44.51 MB / 293.9 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3999/2.612, allocations: 81.58 MB / 375.4 MB, free: 7.148 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003262/2.612, allocations: 86.77 kB / 375.5 MB, free: 7.148 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: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.05535/2.668, allocations: 13.36 MB / 388.9 MB, free: 2.223 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/2.668, allocations: 11.5 kB / 388.9 MB, free: 2.223 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003913/2.668, allocations: 77.34 kB / 389 MB, free: 2.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001371/2.669, allocations: 497 kB / 389.5 MB, free: 1.852 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.438e-05/2.67, allocations: 23.2 kB / 389.5 MB, free: 1.848 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001944/2.67, allocations: 38.31 kB / 389.5 MB, free: 1.848 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001423/2.671, allocations: 420.1 kB / 389.9 MB, free: 1.816 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001843/2.673, allocations: 0.5386 MB / 390.5 MB, free: 1.652 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.957e-05/2.673, allocations: 0 / 390.5 MB, free: 1.652 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-05/2.673, allocations: 7.859 kB / 390.5 MB, free: 1.648 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.76e-05/2.673, allocations: 15.5 kB / 390.5 MB, free: 1.648 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006169/2.679, allocations: 2.185 MB / 392.7 MB, free: 368 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001801/2.681, allocations: 469.9 kB / 393.1 MB, free: 280 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008978/2.682, allocations: 262.5 kB / 393.4 MB, free: 244 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.201e-05/2.682, allocations: 5.5 kB / 393.4 MB, free: 244 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007829/2.683, allocations: 281.6 kB / 393.7 MB, free: 120 kB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 4.379e-06/2.683, allocations: 0 / 393.7 MB, free: 120 kB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.001411/2.685, allocations: 410.2 kB / 394.1 MB, free: 12 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001601/2.685, allocations: 144.8 kB / 394.2 MB, free: 15.85 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008286/2.686, allocations: 342.3 kB / 394.5 MB, free: 15.71 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001738/2.686, allocations: 29.61 kB / 394.6 MB, free: 15.68 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003138/2.686, allocations: 262.1 kB / 394.8 MB, free: 15.48 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002699/2.687, allocations: 146.6 kB / 395 MB, free: 15.38 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.075e-05/2.687, allocations: 0 / 395 MB, free: 15.38 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002298/2.687, allocations: 361.5 kB / 395.3 MB, free: 15.05 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005244/2.687, allocations: 143.3 kB / 395.5 MB, free: 15.04 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006578/2.688, allocations: 302 kB / 395.8 MB, free: 14.85 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005616/2.689, allocations: 171.3 kB / 395.9 MB, free: 14.82 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.017e-05/2.689, allocations: 1.312 kB / 395.9 MB, free: 14.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001756/2.691, allocations: 0.4985 MB / 396.4 MB, free: 14.69 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007944/2.691, allocations: 1.66 MB / 398.1 MB, free: 12.94 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.2e-05/2.691, allocations: 4.688 kB / 398.1 MB, free: 12.94 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005764/2.692, allocations: 81.45 kB / 398.2 MB, free: 12.92 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000897/2.693, allocations: 108.8 kB / 398.3 MB, free: 12.89 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002743/2.696, allocations: 1.555 MB / 399.8 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009848/2.697, allocations: 74.11 kB / 399.9 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/2.697, allocations: 25.48 kB / 399.9 MB, free: 11.57 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/2.697, allocations: 4.125 kB / 399.9 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00145/2.698, allocations: 428.5 kB / 400.4 MB, free: 11.49 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.114e-05/2.698, allocations: 3.625 kB / 400.4 MB, free: 11.49 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004316/2.699, allocations: 81.11 kB / 400.4 MB, free: 11.47 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008261/2.7, allocations: 108.4 kB / 400.5 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002516/2.702, allocations: 1.561 MB / 402.1 MB, free: 10.15 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009321/2.703, allocations: 62.09 kB / 402.2 MB, free: 10.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001044/2.703, allocations: 20.38 kB / 402.2 MB, free: 10.12 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 (63): * Single equations (assignments): 62 * 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 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003367/2.704, allocations: 139.6 kB / 402.3 MB, free: 10 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002128/2.704, allocations: 52.09 kB / 402.4 MB, free: 9.977 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000235/2.704, allocations: 53.34 kB / 402.4 MB, free: 9.961 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.094e-05/2.704, allocations: 5.5 kB / 402.4 MB, free: 9.961 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/2.704, allocations: 1.375 kB / 402.4 MB, free: 9.961 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/2.704, allocations: 3.984 kB / 402.4 MB, free: 9.957 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003346/2.708, allocations: 1.161 MB / 403.6 MB, free: 9.387 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-05/2.708, allocations: 1.625 kB / 403.6 MB, free: 9.387 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007443/2.709, allocations: 79.86 kB / 403.7 MB, free: 9.363 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004386/2.709, allocations: 66.27 kB / 403.7 MB, free: 9.348 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.932e-05/2.709, allocations: 6 kB / 403.7 MB, free: 9.348 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002476/2.712, allocations: 1.534 MB / 405.3 MB, free: 8.07 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.378e-06/2.712, allocations: 3.938 kB / 405.3 MB, free: 8.066 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002129/2.714, allocations: 0.7401 MB / 406 MB, free: 7.816 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002843/2.717, allocations: 1.336 MB / 407.4 MB, free: 7.188 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005271/2.717, allocations: 178.6 kB / 407.5 MB, free: 7.039 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001948/2.718, allocations: 2.062 kB / 407.5 MB, free: 7.039 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008344/2.718, allocations: 47.52 kB / 407.6 MB, free: 7.023 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002198/2.719, allocations: 41.69 kB / 407.6 MB, free: 7.008 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.925e-05/2.719, allocations: 10.56 kB / 407.6 MB, free: 7.008 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0005743/2.719, allocations: 253 kB / 407.9 MB, free: 6.906 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.003625/2.723, allocations: 268.2 kB / 408.1 MB, free: 6.852 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,inductor.i) * 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 (43): * Single equations (assignments): 37 * 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 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004128/2.723, allocations: 126.5 kB / 408.3 MB, free: 6.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002712/2.726, allocations: 0.8544 MB / 409.1 MB, free: 6.477 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.949e-06/2.726, allocations: 1.094 kB / 409.1 MB, free: 6.477 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009318/2.727, allocations: 331.8 kB / 409.4 MB, free: 6.34 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000903/2.728, allocations: 58.69 kB / 409.5 MB, free: 6.328 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004/2.732, allocations: 0.88 MB / 410.4 MB, free: 5.91 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001307/2.734, allocations: 0.9774 MB / 411.4 MB, free: 5.094 MB / 314.7 MB Notification: Performance of SimCode: time 2.033e-06/2.734, allocations: 0 / 411.4 MB, free: 5.094 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_RLV_Characteristic_res.mat does not exist to compare? outputFormat=mat