Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_Characteristic,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RLV_Characteristic",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.69/1.69, allocations: 194.9 MB / 202.6 MB, free: 13.48 MB / 174.1 MB Notification: Performance of FrontEnd - loaded program: time 0.2401/1.93, allocations: 46.85 MB / 249.4 MB, free: 6.004 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0895/2.02, allocations: 44.5 MB / 293.9 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3029/2.323, allocations: 82.29 MB / 376.2 MB, free: 27.82 MB / 318.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003059/2.323, allocations: 84.27 kB / 376.3 MB, free: 27.82 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.06303/2.386, allocations: 14.53 MB / 390.8 MB, free: 26.2 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/2.386, allocations: 7.812 kB / 390.8 MB, free: 26.2 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004167/2.387, allocations: 96.94 kB / 390.9 MB, free: 26.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001451/2.388, allocations: 0.4979 MB / 391.4 MB, free: 25.88 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.302e-05/2.388, allocations: 23.53 kB / 391.4 MB, free: 25.88 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001953/2.388, allocations: 46.3 kB / 391.5 MB, free: 25.88 MB / 318.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001763/2.39, allocations: 478.1 kB / 392 MB, free: 25.88 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001898/2.392, allocations: 0.6204 MB / 392.6 MB, free: 25.75 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.602e-05/2.392, allocations: 14.98 kB / 392.6 MB, free: 25.75 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001052/2.392, allocations: 0 / 392.6 MB, free: 25.75 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.928e-05/2.392, allocations: 15.66 kB / 392.6 MB, free: 25.75 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006756/2.399, allocations: 2.541 MB / 395.2 MB, free: 24.7 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00196/2.401, allocations: 0.5624 MB / 395.7 MB, free: 24.65 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001261/2.402, allocations: 401.8 kB / 396.1 MB, free: 24.62 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.686e-05/2.403, allocations: 4.406 kB / 396.1 MB, free: 24.62 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008563/2.403, allocations: 329.4 kB / 396.4 MB, free: 24.54 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 3.827e-06/2.403, allocations: 0 / 396.4 MB, free: 24.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=61): time 0.001905/2.405, allocations: 0.5426 MB / 397 MB, free: 24.45 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.569e-05/2.406, allocations: 111.1 kB / 397.1 MB, free: 24.32 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007034/2.406, allocations: 355.9 kB / 397.4 MB, free: 24.21 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001685/2.406, allocations: 29.61 kB / 397.5 MB, free: 24.18 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002337/2.407, allocations: 269.1 kB / 397.7 MB, free: 24 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002311/2.407, allocations: 176.5 kB / 397.9 MB, free: 23.89 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.19e-05/2.407, allocations: 3.875 kB / 397.9 MB, free: 23.89 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/2.407, allocations: 365.6 kB / 398.3 MB, free: 23.57 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005591/2.408, allocations: 185.7 kB / 398.4 MB, free: 23.57 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006412/2.408, allocations: 340.5 kB / 398.8 MB, free: 23.39 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006015/2.409, allocations: 198.1 kB / 399 MB, free: 23.39 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/2.409, allocations: 0 / 399 MB, free: 23.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001793/2.411, allocations: 0.6261 MB / 399.6 MB, free: 23.27 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003324/2.411, allocations: 1.571 MB / 401.2 MB, free: 21.62 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.618e-05/2.411, allocations: 7.875 kB / 401.2 MB, free: 21.62 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008967/2.412, allocations: 156.8 kB / 401.3 MB, free: 21.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009786/2.413, allocations: 113.4 kB / 401.4 MB, free: 21.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004708/2.418, allocations: 3.295 MB / 404.7 MB, free: 19.05 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00104/2.419, allocations: 77.11 kB / 404.8 MB, free: 19.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.862e-05/2.419, allocations: 26.41 kB / 404.8 MB, free: 19.02 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.137e-05/2.419, allocations: 3.906 kB / 404.8 MB, free: 19.02 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001592/2.421, allocations: 0.5348 MB / 405.4 MB, free: 18.96 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.474e-05/2.421, allocations: 3.906 kB / 405.4 MB, free: 18.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000773/2.422, allocations: 153.5 kB / 405.5 MB, free: 18.95 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008683/2.422, allocations: 111.1 kB / 405.6 MB, free: 18.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004575/2.427, allocations: 3.288 MB / 408.9 MB, free: 16.4 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009642/2.428, allocations: 59.3 kB / 409 MB, free: 16.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.424e-05/2.428, allocations: 28.45 kB / 409 MB, free: 16.38 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 29 ($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_p1.off,rectifier.thyristor_p1.off,$PRE.rectifier.thyristor_p2.off,rectifier.thyristor_p2.off,$PRE.rectifier.thyristor_n1.off,rectifier.thyristor_n1.off,$PRE.rectifier.thyristor_n2.off,rectifier.thyristor_n2.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 (67): * Single equations (assignments): 65 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002987/2.428, allocations: 140.1 kB / 409.1 MB, free: 16.25 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002026/2.429, allocations: 56.39 kB / 409.2 MB, free: 16.22 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002532/2.429, allocations: 58.98 kB / 409.3 MB, free: 16.21 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/2.429, allocations: 11.72 kB / 409.3 MB, free: 16.21 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/2.429, allocations: 0 / 409.3 MB, free: 16.21 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/2.429, allocations: 4.031 kB / 409.3 MB, free: 16.21 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003262/2.432, allocations: 1.269 MB / 410.5 MB, free: 15.89 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.578e-06/2.432, allocations: 9.828 kB / 410.5 MB, free: 15.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008102/2.433, allocations: 74.19 kB / 410.6 MB, free: 15.88 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007748/2.434, allocations: 147.7 kB / 410.8 MB, free: 15.86 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000115/2.434, allocations: 9.359 kB / 410.8 MB, free: 15.86 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004523/2.439, allocations: 3.263 MB / 414 MB, free: 13.33 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.652e-06/2.439, allocations: 3.906 kB / 414 MB, free: 13.32 MB / 318.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002357/2.441, allocations: 0.8905 MB / 414.9 MB, free: 13.13 MB / 318.1 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003185/2.444, allocations: 1.553 MB / 416.5 MB, free: 28.56 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005074/2.445, allocations: 182.7 kB / 416.7 MB, free: 28.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001707/2.445, allocations: 5.875 kB / 416.7 MB, free: 28.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008525/2.446, allocations: 44.8 kB / 416.7 MB, free: 28.43 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002051/2.446, allocations: 55.11 kB / 416.8 MB, free: 28.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.456e-05/2.446, allocations: 17.02 kB / 416.8 MB, free: 28.43 MB / 334.1 MB Notification: Performance of sort global known variables: time 0.0005077/2.447, allocations: 262.3 kB / 417 MB, free: 28.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.003687/2.45, allocations: 317.4 kB / 417.3 MB, free: 28.28 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,inductor.i) * Number of discrete variables: 20 (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_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.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: 7 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 38 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003635/2.451, allocations: 143.8 kB / 417.5 MB, free: 28.17 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003067/2.454, allocations: 1.248 MB / 418.7 MB, free: 27.72 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.613e-06/2.454, allocations: 0 / 418.7 MB, free: 27.72 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001104/2.455, allocations: 490.2 kB / 419.2 MB, free: 27.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00088/2.456, allocations: 73.89 kB / 419.3 MB, free: 27.49 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00396/2.46, allocations: 1.025 MB / 420.3 MB, free: 27.14 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009678/2.461, allocations: 0.9966 MB / 421.3 MB, free: 26.43 MB / 334.1 MB Notification: Performance of SimCode: time 1.312e-06/2.461, allocations: 0 / 421.3 MB, free: 26.43 MB / 334.1 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_Characteristic_res.mat does not exist to compare? outputFormat=mat