Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_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.669/1.669, allocations: 194.9 MB / 202.6 MB, free: 6.898 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2447/1.914, allocations: 46.84 MB / 249.4 MB, free: 5.297 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08812/2.002, allocations: 44.5 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.281/2.283, allocations: 78.61 MB / 372.5 MB, free: 7.125 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003048/2.284, allocations: 85.75 kB / 372.6 MB, free: 7.125 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: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.03788/2.322, allocations: 9.503 MB / 382.1 MB, free: 4.391 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/2.322, allocations: 11.69 kB / 382.1 MB, free: 4.391 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001426/2.322, allocations: 50.28 kB / 382.2 MB, free: 4.367 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007248/2.323, allocations: 373.4 kB / 382.5 MB, free: 4.086 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.89e-05/2.323, allocations: 15.19 kB / 382.6 MB, free: 4.086 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.256e-05/2.323, allocations: 27.22 kB / 382.6 MB, free: 4.082 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007997/2.323, allocations: 273.6 kB / 382.8 MB, free: 4.059 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009179/2.324, allocations: 377 kB / 383.2 MB, free: 3.938 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.368e-05/2.324, allocations: 3.938 kB / 383.2 MB, free: 3.934 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.138e-05/2.325, allocations: 7.844 kB / 383.2 MB, free: 3.93 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.277e-05/2.325, allocations: 11.67 kB / 383.2 MB, free: 3.926 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003394/2.328, allocations: 1.453 MB / 384.7 MB, free: 3.055 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004709/2.328, allocations: 214.4 kB / 384.9 MB, free: 3.012 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002144/2.329, allocations: 82.12 kB / 385 MB, free: 3 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.022e-05/2.329, allocations: 11.67 kB / 385 MB, free: 2.992 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003941/2.329, allocations: 182.5 kB / 385.2 MB, free: 2.898 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 2.925e-06/2.329, allocations: 0 / 385.2 MB, free: 2.898 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008072/2.33, allocations: 251 kB / 385.4 MB, free: 2.812 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.959e-05/2.33, allocations: 118.7 kB / 385.5 MB, free: 2.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004164/2.33, allocations: 275.2 kB / 385.8 MB, free: 2.547 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.944e-05/2.331, allocations: 33.62 kB / 385.8 MB, free: 2.512 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/2.331, allocations: 210.2 kB / 386 MB, free: 2.348 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.943e-05/2.331, allocations: 80.09 kB / 386.1 MB, free: 2.293 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.553e-05/2.331, allocations: 3.938 kB / 386.1 MB, free: 2.289 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001664/2.331, allocations: 340 kB / 386.5 MB, free: 17.97 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002708/2.331, allocations: 105.4 kB / 386.6 MB, free: 17.96 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003482/2.332, allocations: 235.5 kB / 386.8 MB, free: 17.77 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002936/2.332, allocations: 115.7 kB / 386.9 MB, free: 17.74 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/2.332, allocations: 7.75 kB / 386.9 MB, free: 17.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.000847/2.333, allocations: 363.4 kB / 387.3 MB, free: 17.62 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005827/2.333, allocations: 1.659 MB / 388.9 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/2.333, allocations: 3.875 kB / 388.9 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003193/2.334, allocations: 46.73 kB / 389 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004939/2.334, allocations: 65.69 kB / 389 MB, free: 15.85 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001589/2.336, allocations: 1.342 MB / 390.4 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006911/2.337, allocations: 66.78 kB / 390.4 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.848e-05/2.337, allocations: 22.59 kB / 390.5 MB, free: 14.57 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.704e-06/2.337, allocations: 3.875 kB / 390.5 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007312/2.337, allocations: 294.6 kB / 390.8 MB, free: 14.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/2.337, allocations: 7.75 kB / 390.8 MB, free: 14.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001935/2.338, allocations: 49.92 kB / 390.8 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004098/2.338, allocations: 50.45 kB / 390.9 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001444/2.339, allocations: 1.357 MB / 392.2 MB, free: 13.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005584/2.34, allocations: 46.78 kB / 392.3 MB, free: 13.19 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.476e-05/2.34, allocations: 22.66 kB / 392.3 MB, free: 13.18 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: 21 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition2,$whenCondition1,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_n,$PRE.idealthyristor.off,idealthyristor.off,idealthyristor.fire) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001958/2.34, allocations: 134.5 kB / 392.4 MB, free: 13.06 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.731e-05/2.34, allocations: 31.28 kB / 392.4 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001317/2.341, allocations: 40.83 kB / 392.5 MB, free: 13.02 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.778e-06/2.341, allocations: 0 / 392.5 MB, free: 13.02 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/2.341, allocations: 3.875 kB / 392.5 MB, free: 13.02 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/2.341, allocations: 7.938 kB / 392.5 MB, free: 13.02 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001568/2.342, allocations: 0.7313 MB / 393.2 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-06/2.342, allocations: 0 / 393.2 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002597/2.342, allocations: 19.39 kB / 393.2 MB, free: 12.6 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001987/2.343, allocations: 38.31 kB / 393.3 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.073e-05/2.343, allocations: 3.984 kB / 393.3 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001427/2.344, allocations: 1.331 MB / 394.6 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/2.344, allocations: 3.984 kB / 394.6 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001003/2.345, allocations: 480.9 kB / 395.1 MB, free: 11.13 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001406/2.347, allocations: 0.9629 MB / 396.1 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002422/2.347, allocations: 131.6 kB / 396.2 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.389e-05/2.347, allocations: 3.984 kB / 396.2 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005232/2.348, allocations: 39.06 kB / 396.2 MB, free: 10.41 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.168e-05/2.348, allocations: 19.59 kB / 396.2 MB, free: 10.4 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.006e-05/2.348, allocations: 7.875 kB / 396.3 MB, free: 10.4 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0003265/2.348, allocations: 208.7 kB / 396.5 MB, free: 10.31 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00287/2.351, allocations: 178.2 kB / 396.6 MB, free: 10.27 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 15 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_n,idealthyristor.off,idealthyristor.fire) * Number of discrete states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,idealthyristor.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 19 * 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 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002108/2.351, allocations: 126.3 kB / 396.8 MB, free: 10.16 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001371/2.352, allocations: 0.6205 MB / 397.4 MB, free: 9.91 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/2.353, allocations: 1.281 kB / 397.4 MB, free: 9.91 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004127/2.353, allocations: 214.8 kB / 397.6 MB, free: 9.797 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004743/2.353, allocations: 35.62 kB / 397.6 MB, free: 9.789 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002052/2.356, allocations: 0.5592 MB / 398.2 MB, free: 9.52 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006528/2.356, allocations: 0.884 MB / 399.1 MB, free: 8.738 MB / 314.7 MB Notification: Performance of SimCode: time 1.032e-06/2.356, allocations: 0 / 399.1 MB, free: 8.738 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.Rectifier1Pulse.Thyristor1Pulse_R_res.mat does not exist to compare? outputFormat=mat