Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.136/2.136, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.377e-05/2.374e-05, allocations: 4 kB / 249.7 MB, free: 15.18 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3158/0.3159, allocations: 44.5 MB / 294.2 MB, free: 14.23 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1599/0.4758, allocations: 86.12 MB / 380.3 MB, free: 11.76 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003501/0.4762, allocations: 91.94 kB / 380.4 MB, free: 11.67 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1423/0.6186, allocations: 35.13 MB / 415.6 MB, free: 8.285 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.6187, allocations: 0 / 415.6 MB, free: 8.285 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000193/0.6189, allocations: 51.94 kB / 415.6 MB, free: 8.234 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 436 * Number of variables: 436 Notification: Performance of Generate backend data structure: time 0.007023/0.6259, allocations: 1.923 MB / 417.5 MB, free: 6.246 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.594e-05/0.626, allocations: 8.031 kB / 417.5 MB, free: 6.238 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009983/0.627, allocations: 225.4 kB / 417.8 MB, free: 6.016 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008293/0.6353, allocations: 2.042 MB / 419.8 MB, free: 3.93 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001284/0.6355, allocations: 63.98 kB / 419.9 MB, free: 3.867 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004448/0.636, allocations: 100 kB / 420 MB, free: 3.77 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005292/0.6413, allocations: 1.791 MB / 421.8 MB, free: 1.977 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.29/0.9313, allocations: 2.076 MB / 423.8 MB, free: 93.43 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.02e-05/0.9315, allocations: 3.438 kB / 423.8 MB, free: 93.43 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002417/0.9317, allocations: 5.797 kB / 423.8 MB, free: 93.43 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001735/0.9319, allocations: 73.98 kB / 423.9 MB, free: 93.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01803/0.9499, allocations: 6.406 MB / 430.3 MB, free: 92.24 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00446/0.9545, allocations: 1.617 MB / 431.9 MB, free: 92.2 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002544/0.9571, allocations: 0.9924 MB / 432.9 MB, free: 92.18 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001286/0.9572, allocations: 13.8 kB / 432.9 MB, free: 92.18 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0019/0.9591, allocations: 0.8198 MB / 433.8 MB, free: 92.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=120): time 4.759e-06/0.9592, allocations: 0 / 433.8 MB, free: 92.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=120): time 0.003823/0.963, allocations: 1.563 MB / 435.3 MB, free: 91.95 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.847e-05/0.9631, allocations: 152.6 kB / 435.5 MB, free: 91.79 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001825/0.965, allocations: 0.8917 MB / 436.4 MB, free: 91.63 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003024/0.9653, allocations: 58.61 kB / 436.4 MB, free: 91.6 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007275/0.9661, allocations: 0.7401 MB / 437.2 MB, free: 91.24 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004667/0.9665, allocations: 333.4 kB / 437.5 MB, free: 91.03 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.589e-05/0.9666, allocations: 1.859 kB / 437.5 MB, free: 91.03 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.9668, allocations: 371.8 kB / 437.9 MB, free: 90.69 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001238/0.968, allocations: 0.6067 MB / 438.5 MB, free: 90.46 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001397/0.9694, allocations: 0.8594 MB / 439.3 MB, free: 89.93 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001322/0.9708, allocations: 0.6486 MB / 440 MB, free: 89.7 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.478e-06/0.9708, allocations: 0 / 440 MB, free: 89.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.0036/0.9744, allocations: 1.718 MB / 441.7 MB, free: 89.08 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005617/0.975, allocations: 2.446 MB / 444.1 MB, free: 86.49 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.174e-05/0.9751, allocations: 7.438 kB / 444.1 MB, free: 86.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001828/0.9769, allocations: 0.5087 MB / 444.6 MB, free: 86.33 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001215/0.9782, allocations: 169.8 kB / 444.8 MB, free: 86.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009896/0.9881, allocations: 5.395 MB / 450.2 MB, free: 83.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001776/0.9899, allocations: 160.5 kB / 450.4 MB, free: 83.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001689/0.9901, allocations: 47.09 kB / 450.4 MB, free: 83.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/0.9901, allocations: 7.875 kB / 450.4 MB, free: 83.2 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003432/0.9936, allocations: 1.626 MB / 452 MB, free: 82.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.37e-05/0.9937, allocations: 7.75 kB / 452.1 MB, free: 82.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001534/0.9952, allocations: 0.5053 MB / 452.6 MB, free: 82.47 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001162/0.9964, allocations: 159.6 kB / 452.7 MB, free: 82.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009822/1.006, allocations: 5.443 MB / 458.2 MB, free: 79.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001221/1.008, allocations: 132.6 kB / 458.3 MB, free: 79.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/1.008, allocations: 41.88 kB / 458.3 MB, free: 79.31 MB / 362.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,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,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 (129): * Single equations (assignments): 128 * 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.0004426/1.008, allocations: 203.2 kB / 458.5 MB, free: 79.15 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003577/1.012, allocations: 1.555 MB / 460.1 MB, free: 78.56 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004333/1.012, allocations: 124.8 kB / 460.2 MB, free: 78.49 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004832/1.013, allocations: 140.6 kB / 460.3 MB, free: 78.4 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.418e-05/1.013, allocations: 14.5 kB / 460.4 MB, free: 78.4 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/1.013, allocations: 0 / 460.4 MB, free: 78.4 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.469e-05/1.013, allocations: 6.75 kB / 460.4 MB, free: 78.4 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00788/1.021, allocations: 3.336 MB / 463.7 MB, free: 77.03 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.04e-05/1.021, allocations: 0 / 463.7 MB, free: 77.03 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007393/1.021, allocations: 86.34 kB / 463.8 MB, free: 77.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001626/1.023, allocations: 490.2 kB / 464.3 MB, free: 76.86 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001524/1.023, allocations: 9.797 kB / 464.3 MB, free: 76.85 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009612/1.033, allocations: 5.263 MB / 469.5 MB, free: 73.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.304e-06/1.033, allocations: 3.516 kB / 469.5 MB, free: 73.84 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004727/1.038, allocations: 2.424 MB / 472 MB, free: 71.92 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009301/1.039, allocations: 341.9 kB / 472.3 MB, free: 71.6 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003364/1.039, allocations: 26.75 kB / 472.3 MB, free: 71.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00116/1.04, allocations: 86.25 kB / 472.4 MB, free: 71.52 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007355/1.041, allocations: 225.8 kB / 472.6 MB, free: 71.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001054/1.041, allocations: 38.42 kB / 472.7 MB, free: 71.36 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001198/1.042, allocations: 0.6638 MB / 473.3 MB, free: 70.76 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.11e-07/1.042, allocations: 0 / 473.3 MB, free: 70.76 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003077/1.045, allocations: 0.7644 MB / 474.1 MB, free: 70 MB / 362.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,rootMeanSquareVoltage.mean.y,meanCurrent.y,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_n.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[1].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 73 * 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.004944/1.05, allocations: 3.056 MB / 477.1 MB, free: 67.23 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006199/1.057, allocations: 2.852 MB / 480 MB, free: 64.68 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.009e-05/1.057, allocations: 2.188 kB / 480 MB, free: 64.68 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002167/1.059, allocations: 0.9872 MB / 481 MB, free: 63.79 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002172/1.061, allocations: 272.1 kB / 481.3 MB, free: 63.59 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008877/1.07, allocations: 3.074 MB / 484.3 MB, free: 60.92 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001563/1.072, allocations: 1.683 MB / 486 MB, free: 59.52 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001253/1.073, allocations: 0.5966 MB / 486.6 MB, free: 58.98 MB / 362.7 MB Notification: Performance of SimCode: time 1.233e-06/1.073, allocations: 0 / 486.6 MB, free: 58.98 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.214/4.287, allocations: 38.76 MB / 0.5131 GB, free: 20.62 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R_res.mat does not exist to compare? outputFormat=mat