Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_DC_Drive,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_DC_Drive",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.803/1.803, allocations: 194.9 MB / 202.6 MB, free: 6.902 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2372/2.04, allocations: 46.85 MB / 249.4 MB, free: 5.332 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/2.144, allocations: 44.5 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3507/2.495, allocations: 102.5 MB / 396.5 MB, free: 1.262 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003517/2.495, allocations: 90.06 kB / 396.6 MB, free: 1.246 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: 732 * Number of variables: 732 Notification: Performance of Generate backend data structure: time 0.3255/2.821, allocations: 67.61 MB / 464.2 MB, free: 7.383 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/2.821, allocations: 8 kB / 464.2 MB, free: 7.375 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002748/2.823, allocations: 439.2 kB / 464.6 MB, free: 6.941 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02126/2.845, allocations: 4.077 MB / 468.7 MB, free: 2.785 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002679/2.845, allocations: 103.9 kB / 468.8 MB, free: 2.684 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001326/2.846, allocations: 179.9 kB / 468.9 MB, free: 2.508 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01206/2.858, allocations: 3.225 MB / 472.2 MB, free: 15.28 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01224/2.871, allocations: 3.438 MB / 475.6 MB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001195/2.871, allocations: 7.938 kB / 475.6 MB, free: 11.69 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004353/2.871, allocations: 4 kB / 475.6 MB, free: 11.69 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001801/2.872, allocations: 121.4 kB / 475.7 MB, free: 11.57 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0418/2.913, allocations: 12.25 MB / 488 MB, free: 15.02 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005727/2.919, allocations: 1.601 MB / 489.6 MB, free: 13.41 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005516/2.925, allocations: 1.534 MB / 491.1 MB, free: 11.88 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002205/2.925, allocations: 18 kB / 491.1 MB, free: 11.86 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004077/2.929, allocations: 1.36 MB / 492.5 MB, free: 10.46 MB / 394.7 MB Notification: Performance of pre-optimization done (n=179): time 6.151e-06/2.929, allocations: 0 / 492.5 MB, free: 10.46 MB / 394.7 MB Notification: Performance of matching and sorting (n=183): time 0.02049/2.95, allocations: 5.964 MB / 498.5 MB, free: 4.398 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002008/2.95, allocations: 295 kB / 498.8 MB, free: 4.051 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006348/2.956, allocations: 2.176 MB / 0.4892 GB, free: 1.848 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006029/2.957, allocations: 57.67 kB / 0.4892 GB, free: 1.785 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001584/2.959, allocations: 1.075 MB / 0.4903 GB, free: 0.6914 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001197/2.96, allocations: 0.5662 MB / 0.4909 GB, free: 120 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001986/2.96, allocations: 0 / 0.4909 GB, free: 120 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.1472/3.107, allocations: 397 kB / 0.4912 GB, free: 127.4 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003324/3.111, allocations: 1.173 MB / 0.4924 GB, free: 127.4 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00338/3.114, allocations: 1.792 MB / 0.4941 GB, free: 126.7 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003758/3.118, allocations: 1.387 MB / 0.4955 GB, free: 126.7 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.697e-05/3.118, allocations: 7.188 kB / 0.4955 GB, free: 126.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.009676/3.127, allocations: 3.604 MB / 0.499 GB, free: 126.4 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001545/3.129, allocations: 7.235 MB / 0.5061 GB, free: 119 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.949e-05/3.129, allocations: 19.06 kB / 0.5061 GB, free: 119 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00232/3.132, allocations: 0.5726 MB / 0.5067 GB, free: 119 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004443/3.136, allocations: 0.5012 MB / 0.5071 GB, free: 119 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01183/3.148, allocations: 7.274 MB / 0.5142 GB, free: 115.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005341/3.153, allocations: 298.9 kB / 0.5145 GB, free: 115.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004949/3.154, allocations: 93.11 kB / 0.5146 GB, free: 115.3 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/3.154, allocations: 3.281 kB / 0.5146 GB, free: 115.3 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008761/3.163, allocations: 3.315 MB / 0.5179 GB, free: 115 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.355e-05/3.163, allocations: 17 kB / 0.5179 GB, free: 115 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002121/3.165, allocations: 0.5786 MB / 0.5184 GB, free: 115 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004457/3.169, allocations: 0.4929 MB / 0.5189 GB, free: 115 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01175/3.181, allocations: 7.283 MB / 0.526 GB, free: 111.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00514/3.186, allocations: 278.6 kB / 0.5263 GB, free: 111.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004639/3.187, allocations: 94.44 kB / 0.5264 GB, free: 111.3 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 79 * Number of states: 0 () * Number of discrete variables: 69 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition9,$whenCondition8,$whenCondition7,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[1].off,$PRE.rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[2].off,$PRE.rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[3].off,$PRE.rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[1].off,$PRE.rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[2].off,$PRE.rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[3].off,$PRE.rectifier.pre_p[1].u,rectifier.pre_p[1].u,rectifier.pre_p[1].y,$PRE.rectifier.pre_p[2].u,rectifier.pre_p[2].u,rectifier.pre_p[2].y,$PRE.rectifier.pre_p[3].u,rectifier.pre_p[3].u,rectifier.pre_p[3].y,$PRE.rectifier.pre_n[1].u,rectifier.pre_n[1].u,rectifier.pre_n[1].y,$PRE.rectifier.pre_n[2].u,rectifier.pre_n[2].u,rectifier.pre_n[2].y,$PRE.rectifier.pre_n[3].u,rectifier.pre_n[3].u,rectifier.pre_n[3].y,pulse2.twomPulse.positiveThreshold[1].y,pulse2.twomPulse.positiveThreshold[2].y,pulse2.twomPulse.positiveThreshold[3].y,pulse2.twomPulse.negativeThreshold[1].y,pulse2.twomPulse.negativeThreshold[2].y,pulse2.twomPulse.negativeThreshold[3].y,$PRE.pulse2.twomPulse.timerPositive[1].entryTime,pulse2.twomPulse.timerPositive[1].entryTime,$PRE.pulse2.twomPulse.timerPositive[2].entryTime,pulse2.twomPulse.timerPositive[2].entryTime,$PRE.pulse2.twomPulse.timerPositive[3].entryTime,pulse2.twomPulse.timerPositive[3].entryTime,$PRE.pulse2.twomPulse.timerNegative[1].entryTime,pulse2.twomPulse.timerNegative[1].entryTime,$PRE.pulse2.twomPulse.timerNegative[2].entryTime,pulse2.twomPulse.timerNegative[2].entryTime,$PRE.pulse2.twomPulse.timerNegative[3].entryTime,pulse2.twomPulse.timerNegative[3].entryTime,pulse2.fire_p[1],pulse2.fire_p[2],pulse2.fire_p[3],pulse2.fire_n[1],pulse2.fire_n[2],pulse2.fire_n[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (255): * Single equations (assignments): 252 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 12,(1,100.0%) 4} * Non-linear torn systems: 1 {6 19} Notification: Performance of prepare postOptimizeDAE: time 0.0007705/3.188, allocations: 218.2 kB / 0.5266 GB, free: 111.2 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007482/3.188, allocations: 243.3 kB / 0.5268 GB, free: 111.2 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007788/3.196, allocations: 2.903 MB / 0.5297 GB, free: 110.9 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.63e-05/3.196, allocations: 23.17 kB / 0.5297 GB, free: 110.9 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.497e-05/3.196, allocations: 5.125 kB / 0.5297 GB, free: 110.9 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.399e-05/3.196, allocations: 10.27 kB / 0.5297 GB, free: 110.9 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01748/3.214, allocations: 6.281 MB / 0.5358 GB, free: 110.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.439e-05/3.214, allocations: 0 / 0.5358 GB, free: 110.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002644/3.216, allocations: 271.1 kB / 0.5361 GB, free: 110.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001973/3.218, allocations: 0.5296 MB / 0.5366 GB, free: 110.1 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003055/3.219, allocations: 34.56 kB / 0.5366 GB, free: 110.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01102/3.23, allocations: 7.08 MB / 0.5436 GB, free: 105.8 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.354e-06/3.23, allocations: 0 / 0.5436 GB, free: 105.8 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0105/3.24, allocations: 4.598 MB / 0.548 GB, free: 103.8 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01978/3.26, allocations: 9.574 MB / 0.5574 GB, free: 99.67 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00237/3.263, allocations: 0.6042 MB / 0.558 GB, free: 99.31 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000823/3.264, allocations: 56.34 kB / 0.558 GB, free: 99.29 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003926/3.267, allocations: 251.7 kB / 0.5583 GB, free: 99.29 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005887/3.268, allocations: 160.7 kB / 0.5584 GB, free: 99.27 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002024/3.268, allocations: 52.17 kB / 0.5585 GB, free: 99.25 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.003778/3.272, allocations: 1.598 MB / 0.56 GB, free: 98.63 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.008594/3.281, allocations: 1.07 MB / 0.5611 GB, free: 98.59 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 17 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,pulse2.twomPulse.filter[1].firstOrder.y,pulse2.twomPulse.filter[1].transferFunction[1].x_scaled[1],pulse2.twomPulse.filter[1].transferFunction[2].x_scaled[1],pulse2.twomPulse.filter[2].firstOrder.y,pulse2.twomPulse.filter[2].transferFunction[1].x_scaled[1],pulse2.twomPulse.filter[2].transferFunction[2].x_scaled[1],pulse2.twomPulse.filter[3].firstOrder.y,pulse2.twomPulse.filter[3].transferFunction[1].x_scaled[1],pulse2.twomPulse.filter[3].transferFunction[2].x_scaled[1],inductor.i,dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,lMains.inductor[2].i,lMains.inductor[3].i) * Number of discrete variables: 48 (pulse2.twomPulse.positiveThreshold[1].y,pulse2.twomPulse.positiveThreshold[2].y,pulse2.twomPulse.positiveThreshold[3].y,pulse2.twomPulse.negativeThreshold[1].y,pulse2.twomPulse.negativeThreshold[2].y,pulse2.twomPulse.negativeThreshold[3].y,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.pre_p[1].u,rectifier.pre_p[1].y,rectifier.pre_p[2].u,rectifier.pre_p[2].y,rectifier.pre_p[3].u,rectifier.pre_p[3].y,rectifier.pre_n[1].u,rectifier.pre_n[1].y,rectifier.pre_n[2].u,rectifier.pre_n[2].y,rectifier.pre_n[3].u,rectifier.pre_n[3].y,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2.twomPulse.timerPositive[1].entryTime,pulse2.twomPulse.timerPositive[2].entryTime,pulse2.twomPulse.timerPositive[3].entryTime,pulse2.twomPulse.timerNegative[1].entryTime,pulse2.twomPulse.timerNegative[2].entryTime,pulse2.twomPulse.timerNegative[3].entryTime,pulse2.fire_p[1],pulse2.fire_p[2],pulse2.fire_p[3],pulse2.fire_n[1],pulse2.fire_n[2],pulse2.fire_n[3]) * Number of discrete states: 15 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.pre_n[3].u,rectifier.pre_n[2].u,rectifier.pre_n[1].u,rectifier.pre_p[3].u,rectifier.pre_p[2].u,rectifier.pre_p[1].u,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[1].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (143): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 12,(1,100.0%) 4} * Non-linear torn systems: 1 {6 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.001122/3.282, allocations: 381.7 kB / 0.5615 GB, free: 98.47 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01306/3.295, allocations: 5.111 MB / 0.5664 GB, free: 96.32 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.183e-05/3.295, allocations: 4.25 kB / 0.5664 GB, free: 96.32 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004651/3.3, allocations: 1.95 MB / 0.5684 GB, free: 94.6 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004829/3.305, allocations: 0.5163 MB / 0.5689 GB, free: 94.21 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01979/3.324, allocations: 5.912 MB / 0.5746 GB, free: 89.14 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004665/3.329, allocations: 2.672 MB / 0.5772 GB, free: 87 MB / 394.7 MB Notification: Performance of SimCode: time 1.953e-06/3.329, allocations: 0 / 0.5772 GB, free: 87 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_DC_Drive_res.mat does not exist to compare? outputFormat=mat