Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.148/2.148, allocations: 225.8 MB / 238.8 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.9e-05/3.904e-05, allocations: 4 kB / 292.2 MB, free: 8.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1109, allocations: 50.42 MB / 342.7 MB, free: 5.793 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4987/0.6096, allocations: 93.59 MB / 436.3 MB, free: 412 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003208/0.61, allocations: 85.58 kB / 436.3 MB, free: 364 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1668/0.7768, allocations: 37.95 MB / 474.3 MB, free: 14.77 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.7769, allocations: 0 / 474.3 MB, free: 14.77 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002605/0.7772, allocations: 47.94 kB / 474.3 MB, free: 14.73 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 0.008035/0.7852, allocations: 1.985 MB / 476.3 MB, free: 12.68 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.467e-05/0.7853, allocations: 12.02 kB / 476.3 MB, free: 12.67 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001196/0.7865, allocations: 269.3 kB / 476.6 MB, free: 12.4 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00099/0.7875, allocations: 229.4 kB / 476.8 MB, free: 12.17 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009144/0.7967, allocations: 2.089 MB / 478.9 MB, free: 10.02 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002488/0.797, allocations: 139.5 kB / 479 MB, free: 9.887 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007925/0.7978, allocations: 172 kB / 479.2 MB, free: 9.719 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008368/0.8062, allocations: 2.388 MB / 481.6 MB, free: 7.246 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.786e-05/0.8063, allocations: 7.906 kB / 481.6 MB, free: 7.238 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003388/0.8067, allocations: 72 kB / 481.7 MB, free: 7.168 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001378/0.8068, allocations: 75.48 kB / 481.8 MB, free: 7.094 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006904/0.8138, allocations: 1.932 MB / 483.7 MB, free: 5.16 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02261/0.8364, allocations: 6.95 MB / 490.6 MB, free: 14.09 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004294/0.8408, allocations: 1.559 MB / 492.2 MB, free: 12.52 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003592/0.8444, allocations: 1.165 MB / 493.4 MB, free: 11.36 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001681/0.8447, allocations: 9 kB / 493.4 MB, free: 11.35 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002646/0.8473, allocations: 0.886 MB / 494.3 MB, free: 10.45 MB / 410.7 MB Notification: Performance of pre-optimization done (n=126): time 6.332e-06/0.8474, allocations: 0 / 494.3 MB, free: 10.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=126): time 0.005277/0.8527, allocations: 1.684 MB / 495.9 MB, free: 8.746 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000175/0.8529, allocations: 187.2 kB / 496.1 MB, free: 8.527 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00361/0.8565, allocations: 1.071 MB / 497.2 MB, free: 7.438 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000496/0.8571, allocations: 77.67 kB / 497.3 MB, free: 7.355 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001536/0.8587, allocations: 0.7534 MB / 498 MB, free: 6.59 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009556/0.8597, allocations: 374.9 kB / 498.4 MB, free: 6.219 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000182/0.8599, allocations: 24 kB / 498.4 MB, free: 6.195 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003011/0.8602, allocations: 365.9 kB / 498.8 MB, free: 5.832 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002656/0.8629, allocations: 0.6598 MB / 499.4 MB, free: 5.172 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003465/0.8664, allocations: 0.93 MB / 0.4886 GB, free: 4.137 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002937/0.8694, allocations: 0.7153 MB / 0.4893 GB, free: 3.422 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.571e-05/0.8695, allocations: 4 kB / 0.4893 GB, free: 3.418 MB / 410.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.008565/0.8781, allocations: 1.972 MB / 0.4913 GB, free: 1.434 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001546/0.8797, allocations: 2.458 MB / 0.4937 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-05/0.8798, allocations: 8 kB / 0.4937 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003106/0.8829, allocations: 0.5198 MB / 0.4942 GB, free: 14.26 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00203/0.885, allocations: 175.7 kB / 0.4943 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01875/0.9038, allocations: 5.531 MB / 0.4997 GB, free: 8.418 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002851/0.9067, allocations: 195 kB / 0.4999 GB, free: 8.227 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003972/0.9072, allocations: 48 kB / 0.5 GB, free: 8.18 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.43e-05/0.9072, allocations: 4 kB / 0.5 GB, free: 8.176 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007275/0.9145, allocations: 1.835 MB / 0.5018 GB, free: 6.336 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.592e-05/0.9146, allocations: 4 kB / 0.5018 GB, free: 6.332 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002884/0.9175, allocations: 0.5249 MB / 0.5023 GB, free: 5.805 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001894/0.9195, allocations: 171.7 kB / 0.5025 GB, free: 5.637 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01712/0.9367, allocations: 5.512 MB / 0.5078 GB, free: 15.97 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002045/0.9388, allocations: 167.1 kB / 0.508 GB, free: 15.81 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003287/0.9392, allocations: 52 kB / 0.508 GB, free: 15.76 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 69 ($PRE.meanVoltage.y_last,meanVoltage.y_last,$PRE.meanCurrent.y_last,meanCurrent.y_last,$whenCondition9,$whenCondition8,$whenCondition7,$PRE.rootMeanSquareVoltage.mean.y_last,rootMeanSquareVoltage.mean.y_last,$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,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.positiveThreshold[3].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.negativeThreshold[3].y,$PRE.pulse2m.twomPulse.timerPositive[1].entryTime,pulse2m.twomPulse.timerPositive[1].entryTime,$PRE.pulse2m.twomPulse.timerPositive[2].entryTime,pulse2m.twomPulse.timerPositive[2].entryTime,$PRE.pulse2m.twomPulse.timerPositive[3].entryTime,pulse2m.twomPulse.timerPositive[3].entryTime,$PRE.pulse2m.twomPulse.timerNegative[1].entryTime,pulse2m.twomPulse.timerNegative[1].entryTime,$PRE.pulse2m.twomPulse.timerNegative[2].entryTime,pulse2m.twomPulse.timerNegative[2].entryTime,$PRE.pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.fire_p[1],pulse2m.fire_p[2],pulse2m.fire_p[3],pulse2m.fire_n[1],pulse2m.fire_n[2],pulse2m.fire_n[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (135): * Single equations (assignments): 134 * 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 {6 32} Notification: Performance of prepare postOptimizeDAE: time 0.0005909/0.9398, allocations: 241.4 kB / 0.5083 GB, free: 15.51 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004985/0.9403, allocations: 134.4 kB / 0.5084 GB, free: 15.38 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006352/0.9409, allocations: 177.5 kB / 0.5086 GB, free: 15.2 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-05/0.941, allocations: 12 kB / 0.5086 GB, free: 15.19 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.941, allocations: 4 kB / 0.5086 GB, free: 15.19 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.605e-05/0.941, allocations: 3.984 kB / 0.5086 GB, free: 15.18 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01207/0.9531, allocations: 3.811 MB / 0.5123 GB, free: 11.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.411e-05/0.9532, allocations: 0 / 0.5123 GB, free: 11.32 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001015/0.9542, allocations: 95.83 kB / 0.5124 GB, free: 11.22 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002123/0.9563, allocations: 492.5 kB / 0.5129 GB, free: 10.74 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002815/0.9567, allocations: 23.98 kB / 0.5129 GB, free: 10.71 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01289/0.9696, allocations: 5.423 MB / 0.5182 GB, free: 5.156 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/0.9696, allocations: 3.984 kB / 0.5182 GB, free: 5.152 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007104/0.9768, allocations: 2.647 MB / 0.5208 GB, free: 2.48 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001363/0.9782, allocations: 375.2 kB / 0.5211 GB, free: 2.094 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005184/0.9787, allocations: 47.97 kB / 0.5212 GB, free: 2.047 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001712/0.9805, allocations: 103.9 kB / 0.5213 GB, free: 1.945 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001051/0.9816, allocations: 232.6 kB / 0.5215 GB, free: 1.719 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001939/0.9818, allocations: 31.98 kB / 0.5215 GB, free: 1.688 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002154/0.984, allocations: 0.8049 MB / 0.5223 GB, free: 0.8711 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.81e-07/0.984, allocations: 0 / 0.5223 GB, free: 0.8711 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004327/0.9884, allocations: 0.8683 MB / 0.5232 GB, free: 0 / 442.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: 48 (pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.negativeThreshold[3].y,pulse2m.twomPulse.positiveThreshold[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_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last,pulse2m.twomPulse.timerPositive[1].entryTime,pulse2m.twomPulse.timerPositive[2].entryTime,pulse2m.twomPulse.timerPositive[3].entryTime,pulse2m.twomPulse.timerNegative[1].entryTime,pulse2m.twomPulse.timerNegative[2].entryTime,pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.fire_p[1],pulse2m.fire_p[2],pulse2m.fire_p[3],pulse2m.fire_n[1],pulse2m.fire_n[2],pulse2m.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[3].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[1].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 79 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 32} Notification: Performance of Backend phase and start with SimCode phase: time 0.008339/1.322, allocations: 3.306 MB / 0.5264 GB, free: 127.1 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008612/1.331, allocations: 3.069 MB / 0.5294 GB, free: 126.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.032e-05/1.331, allocations: 3.406 kB / 0.5294 GB, free: 126.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003101/1.334, allocations: 1.06 MB / 0.5304 GB, free: 126.6 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002882/1.337, allocations: 318.2 kB / 0.5307 GB, free: 126.6 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01199/1.349, allocations: 3.367 MB / 0.534 GB, free: 125.9 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003073/1.352, allocations: 1.755 MB / 0.5357 GB, free: 125.2 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003796/1.356, allocations: 0.6142 MB / 0.5363 GB, free: 125.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001566/1.358, allocations: 0.6234 MB / 0.5369 GB, free: 125.2 MB / 442.7 MB Notification: Performance of SimCode: time 1.333e-06/1.358, allocations: 3.312 kB / 0.537 GB, free: 125.2 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1176/1.475, allocations: 44.23 MB / 0.5801 GB, free: 108.9 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002389/1.476, allocations: 237.8 kB / 0.5804 GB, free: 108.6 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.389/5.865, allocations: 0 / 0.5804 GB, free: 108.6 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R_res.mat does not exist to compare? outputFormat=mat