Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.109/2.109, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.008e-05/4.022e-05, allocations: 4 kB / 292.8 MB, free: 8.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1122, allocations: 50.41 MB / 343.2 MB, free: 5.789 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4633/0.5756, allocations: 93.59 MB / 436.8 MB, free: 396 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002905/0.5759, allocations: 85.19 kB / 436.8 MB, free: 348 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1602/0.7362, allocations: 37.95 MB / 474.8 MB, free: 14.77 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.7362, allocations: 4 kB / 474.8 MB, free: 14.76 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002483/0.7365, allocations: 51.92 kB / 474.9 MB, free: 14.71 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.007488/0.744, allocations: 1.993 MB / 476.8 MB, free: 12.66 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/0.7441, allocations: 12.03 kB / 476.9 MB, free: 12.64 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009213/0.745, allocations: 261.4 kB / 477.1 MB, free: 12.38 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007647/0.7458, allocations: 221.4 kB / 477.3 MB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008526/0.7543, allocations: 2.093 MB / 479.4 MB, free: 10.01 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002267/0.7546, allocations: 139.5 kB / 479.6 MB, free: 9.871 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007283/0.7553, allocations: 180 kB / 479.7 MB, free: 9.695 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007345/0.7627, allocations: 2.384 MB / 482.1 MB, free: 7.227 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.364e-05/0.7628, allocations: 3.906 kB / 482.1 MB, free: 7.223 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002915/0.7631, allocations: 83.97 kB / 482.2 MB, free: 7.141 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000126/0.7632, allocations: 67.5 kB / 482.3 MB, free: 7.074 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006234/0.7695, allocations: 1.936 MB / 484.2 MB, free: 5.137 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02069/0.7902, allocations: 6.946 MB / 491.1 MB, free: 14.07 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004063/0.7943, allocations: 1.555 MB / 492.7 MB, free: 12.51 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003454/0.7978, allocations: 1.165 MB / 493.9 MB, free: 11.34 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001394/0.798, allocations: 13 kB / 493.9 MB, free: 11.33 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002332/0.8004, allocations: 0.886 MB / 494.8 MB, free: 10.43 MB / 410.7 MB Notification: Performance of pre-optimization done (n=126): time 5.741e-06/0.8005, allocations: 4 kB / 494.8 MB, free: 10.42 MB / 410.7 MB Notification: Performance of matching and sorting (n=126): time 0.004963/0.8054, allocations: 1.684 MB / 496.5 MB, free: 8.723 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001484/0.8056, allocations: 179.2 kB / 496.6 MB, free: 8.512 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002681/0.8083, allocations: 1.071 MB / 497.7 MB, free: 7.422 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004253/0.8088, allocations: 77.67 kB / 497.8 MB, free: 7.34 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001045/0.8099, allocations: 0.7651 MB / 498.5 MB, free: 6.562 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006632/0.8105, allocations: 370.9 kB / 498.9 MB, free: 6.195 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001265/0.8107, allocations: 28 kB / 498.9 MB, free: 6.168 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002187/0.8109, allocations: 365.9 kB / 499.3 MB, free: 5.805 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001778/0.8127, allocations: 0.6559 MB / 499.9 MB, free: 5.148 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002061/0.8148, allocations: 0.93 MB / 0.4891 GB, free: 4.113 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001802/0.8166, allocations: 0.7153 MB / 0.4898 GB, free: 3.398 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.367e-06/0.8166, allocations: 0 / 0.4898 GB, free: 3.398 MB / 410.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005132/0.8218, allocations: 1.976 MB / 0.4918 GB, free: 1.41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0011/0.8229, allocations: 2.458 MB / 0.4942 GB, free: 14.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.425e-05/0.823, allocations: 4 kB / 0.4942 GB, free: 14.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002247/0.8253, allocations: 0.508 MB / 0.4947 GB, free: 14.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001443/0.8267, allocations: 183.7 kB / 0.4948 GB, free: 14.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01458/0.8413, allocations: 5.532 MB / 0.5002 GB, free: 8.402 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00297/0.8444, allocations: 199.1 kB / 0.5004 GB, free: 8.207 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004394/0.8449, allocations: 44 kB / 0.5005 GB, free: 8.164 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.727e-05/0.8449, allocations: 4 kB / 0.5005 GB, free: 8.16 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007207/0.8522, allocations: 1.836 MB / 0.5023 GB, free: 6.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-05/0.8523, allocations: 8 kB / 0.5023 GB, free: 6.312 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002942/0.8552, allocations: 0.5163 MB / 0.5028 GB, free: 5.793 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001767/0.8571, allocations: 175.6 kB / 0.5029 GB, free: 5.621 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01676/0.8739, allocations: 5.516 MB / 0.5083 GB, free: 15.95 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001899/0.8758, allocations: 167.2 kB / 0.5085 GB, free: 15.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001728/0.876, allocations: 48 kB / 0.5085 GB, free: 15.74 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.000552/0.8766, allocations: 245.4 kB / 0.5088 GB, free: 15.49 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004203/0.877, allocations: 134.4 kB / 0.5089 GB, free: 15.36 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005632/0.8776, allocations: 173.5 kB / 0.5091 GB, free: 15.18 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.337e-05/0.8776, allocations: 12 kB / 0.5091 GB, free: 15.17 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.8776, allocations: 0 / 0.5091 GB, free: 15.17 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.755e-05/0.8777, allocations: 7.969 kB / 0.5091 GB, free: 15.16 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01085/0.8885, allocations: 3.807 MB / 0.5128 GB, free: 11.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.38e-05/0.8886, allocations: 8 kB / 0.5128 GB, free: 11.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009636/0.8896, allocations: 95.83 kB / 0.5129 GB, free: 11.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001999/0.8916, allocations: 493.2 kB / 0.5134 GB, free: 10.72 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001898/0.8918, allocations: 23.98 kB / 0.5134 GB, free: 10.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01356/0.9054, allocations: 5.43 MB / 0.5187 GB, free: 5.129 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.582e-06/0.9055, allocations: 0 / 0.5187 GB, free: 5.129 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01226/0.9178, allocations: 2.639 MB / 0.5213 GB, free: 2.469 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00191/0.9197, allocations: 375.2 kB / 0.5216 GB, free: 2.082 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008165/0.9206, allocations: 51.97 kB / 0.5217 GB, free: 2.031 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002713/0.9234, allocations: 111.9 kB / 0.5218 GB, free: 1.922 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001625/0.9251, allocations: 224.6 kB / 0.522 GB, free: 1.703 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003022/0.9254, allocations: 35.98 kB / 0.522 GB, free: 1.668 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003312/0.9288, allocations: 0.8087 MB / 0.5228 GB, free: 0.8477 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.154e-06/0.9288, allocations: 0 / 0.5228 GB, free: 0.8477 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.363/1.292, allocations: 0.8699 MB / 0.5237 GB, free: 127.5 MB / 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.0123/1.304, allocations: 3.292 MB / 0.5269 GB, free: 126.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01233/1.317, allocations: 3.073 MB / 0.5299 GB, free: 126.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.287e-05/1.317, allocations: 3.969 kB / 0.5299 GB, free: 126.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004607/1.321, allocations: 1.054 MB / 0.5309 GB, free: 126.4 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004153/1.326, allocations: 327.1 kB / 0.5312 GB, free: 126.4 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01595/1.342, allocations: 3.367 MB / 0.5345 GB, free: 125.7 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004071/1.346, allocations: 1.757 MB / 0.5362 GB, free: 125 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.005063/1.351, allocations: 0.6125 MB / 0.5368 GB, free: 125 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002065/1.353, allocations: 0.6209 MB / 0.5375 GB, free: 125 MB / 442.7 MB Notification: Performance of SimCode: time 2.214e-06/1.353, allocations: 0 / 0.5375 GB, free: 125 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1326/1.486, allocations: 44.24 MB / 0.5807 GB, free: 108.8 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003023/1.486, allocations: 233.8 kB / 0.5809 GB, free: 108.5 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.331/5.817, allocations: 6.812 kB / 0.5809 GB, free: 108.5 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R_res.mat does not exist to compare? outputFormat=mat