Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.116/2.116, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.318e-05/2.326e-05, allocations: 0 / 249.7 MB, free: 15.18 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.32/0.32, allocations: 44.51 MB / 294.2 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1794/0.4994, allocations: 86.6 MB / 380.8 MB, free: 11.32 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004243/0.4999, allocations: 91.94 kB / 380.9 MB, free: 11.23 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4453/0.9453, allocations: 46.54 MB / 427.4 MB, free: 93.07 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.875e-06/0.9453, allocations: 1.062 kB / 427.4 MB, free: 93.07 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002233/0.9456, allocations: 54.64 kB / 427.5 MB, free: 93.06 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: 442 * Number of variables: 442 Notification: Performance of Generate backend data structure: time 0.007471/0.9531, allocations: 1.939 MB / 429.4 MB, free: 92.26 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.579e-05/0.9531, allocations: 10.12 kB / 429.5 MB, free: 92.26 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001167/0.9543, allocations: 224.2 kB / 429.7 MB, free: 92.15 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00805/0.9624, allocations: 2.054 MB / 431.7 MB, free: 91.79 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001495/0.9626, allocations: 63.8 kB / 431.8 MB, free: 91.79 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006384/0.9632, allocations: 101.9 kB / 431.9 MB, free: 91.79 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005695/0.969, allocations: 1.806 MB / 433.7 MB, free: 91.78 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006088/0.9751, allocations: 2.099 MB / 435.8 MB, free: 91.52 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.012e-05/0.9752, allocations: 3.906 kB / 435.8 MB, free: 91.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002289/0.9755, allocations: 3.781 kB / 435.8 MB, free: 91.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001064/0.9756, allocations: 77.52 kB / 435.9 MB, free: 91.51 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0168/0.9924, allocations: 6.45 MB / 442.3 MB, free: 90.11 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004203/0.9967, allocations: 1.63 MB / 444 MB, free: 89.46 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001848/0.9986, allocations: 0.8639 MB / 444.8 MB, free: 89.16 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001112/0.9987, allocations: 23.58 kB / 444.8 MB, free: 89.15 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001732/1, allocations: 0.8287 MB / 445.7 MB, free: 88.81 MB / 362.7 MB Notification: Performance of pre-optimization done (n=122): time 5.33e-06/1, allocations: 4 kB / 445.7 MB, free: 88.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=122): time 0.003732/1.004, allocations: 1.547 MB / 447.2 MB, free: 88.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.093e-05/1.004, allocations: 151.8 kB / 447.4 MB, free: 88.07 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001831/1.006, allocations: 0.903 MB / 448.3 MB, free: 87.66 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003164/1.007, allocations: 55.58 kB / 448.3 MB, free: 87.62 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000743/1.007, allocations: 0.744 MB / 449.1 MB, free: 87.02 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004753/1.008, allocations: 348.4 kB / 449.4 MB, free: 86.76 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001012/1.008, allocations: 0 / 449.4 MB, free: 86.76 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001206/1.008, allocations: 364.7 kB / 449.8 MB, free: 86.43 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001286/1.009, allocations: 0.6171 MB / 450.4 MB, free: 86.18 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001462/1.011, allocations: 0.8755 MB / 451.3 MB, free: 85.64 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001348/1.012, allocations: 0.6625 MB / 451.9 MB, free: 85.39 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.137e-06/1.012, allocations: 0 / 451.9 MB, free: 85.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.00369/1.016, allocations: 1.733 MB / 453.7 MB, free: 84.76 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005125/1.016, allocations: 2.442 MB / 456.1 MB, free: 82.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.952e-05/1.017, allocations: 6.75 kB / 456.1 MB, free: 82.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001713/1.018, allocations: 490.6 kB / 456.6 MB, free: 82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00132/1.02, allocations: 174.4 kB / 456.8 MB, free: 81.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009369/1.029, allocations: 5.122 MB / 461.9 MB, free: 79.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001795/1.031, allocations: 159.2 kB / 462 MB, free: 78.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001831/1.031, allocations: 47.31 kB / 462.1 MB, free: 78.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/1.031, allocations: 9.453 kB / 462.1 MB, free: 78.97 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003605/1.035, allocations: 1.642 MB / 463.7 MB, free: 78.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.966e-05/1.035, allocations: 3.781 kB / 463.7 MB, free: 78.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001471/1.036, allocations: 480.9 kB / 464.2 MB, free: 78.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001256/1.038, allocations: 166.7 kB / 464.4 MB, free: 78.22 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009352/1.047, allocations: 5.17 MB / 469.5 MB, free: 74.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00142/1.048, allocations: 128.5 kB / 469.7 MB, free: 74.85 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000186/1.049, allocations: 51.25 kB / 469.7 MB, free: 74.8 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 (136): * Single equations (assignments): 135 * 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 28} Notification: Performance of prepare postOptimizeDAE: time 0.0004908/1.049, allocations: 203 kB / 469.9 MB, free: 74.61 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003889/1.053, allocations: 1.545 MB / 471.5 MB, free: 73.27 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005348/1.054, allocations: 122.5 kB / 471.6 MB, free: 73.14 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005204/1.054, allocations: 147 kB / 471.7 MB, free: 73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-05/1.054, allocations: 8 kB / 471.7 MB, free: 73 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/1.054, allocations: 11.33 kB / 471.7 MB, free: 72.99 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.665e-05/1.054, allocations: 6.984 kB / 471.7 MB, free: 72.99 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007866/1.062, allocations: 3.212 MB / 475 MB, free: 70.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-05/1.062, allocations: 0 / 475 MB, free: 70.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009591/1.063, allocations: 106.8 kB / 475.1 MB, free: 70.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001619/1.065, allocations: 458.5 kB / 475.5 MB, free: 69.91 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001968/1.065, allocations: 11.8 kB / 475.5 MB, free: 69.9 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009273/1.074, allocations: 5.004 MB / 480.5 MB, free: 65.41 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/1.074, allocations: 4 kB / 480.5 MB, free: 65.41 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005184/1.08, allocations: 2.476 MB / 483 MB, free: 63.22 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001194/1.081, allocations: 347.6 kB / 483.3 MB, free: 62.9 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000406/1.081, allocations: 31.36 kB / 483.4 MB, free: 62.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001324/1.083, allocations: 84.7 kB / 483.5 MB, free: 62.82 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008073/1.083, allocations: 226.5 kB / 483.7 MB, free: 62.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001118/1.084, allocations: 35.75 kB / 483.7 MB, free: 62.66 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001315/1.085, allocations: 0.6561 MB / 484.4 MB, free: 62.06 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.41e-07/1.085, allocations: 0 / 484.4 MB, free: 62.06 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003521/1.089, allocations: 0.7781 MB / 485.1 MB, free: 61.28 MB / 362.7 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: 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[1].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[3].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 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.005511/1.094, allocations: 3.112 MB / 488.3 MB, free: 58.46 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006388/1.101, allocations: 2.856 MB / 491.1 MB, free: 55.91 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.788e-06/1.101, allocations: 4.625 kB / 491.1 MB, free: 55.9 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002306/1.103, allocations: 0.9957 MB / 492.1 MB, free: 55 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002313/1.105, allocations: 270.9 kB / 492.4 MB, free: 54.81 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01042/1.116, allocations: 3.159 MB / 495.5 MB, free: 51.61 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002213/1.118, allocations: 1.687 MB / 497.2 MB, free: 49.89 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001711/1.12, allocations: 0.6203 MB / 497.8 MB, free: 49.27 MB / 362.7 MB Notification: Performance of SimCode: time 1.643e-06/1.12, allocations: 4 kB / 497.8 MB, free: 49.27 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.302/4.422, allocations: 39.08 MB / 0.5243 GB, free: 10.43 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_RL_res.mat does not exist to compare? outputFormat=mat