Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.HalfControlledBridge2mPulse,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_HalfControlledBridge2mPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.07/2.07, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.879e-05/2.878e-05, allocations: 4 kB / 249.7 MB, free: 15.18 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3092/0.3092, allocations: 44.5 MB / 294.2 MB, free: 14.31 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1621/0.4714, allocations: 86.89 MB / 381.1 MB, free: 11.05 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003595/0.4719, allocations: 87.94 kB / 381.2 MB, free: 10.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.116/0.5879, allocations: 28.19 MB / 409.4 MB, free: 14.56 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.05e-06/0.5879, allocations: 0 / 409.4 MB, free: 14.56 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002075/0.5882, allocations: 55.92 kB / 409.4 MB, free: 14.51 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: 409 * Number of variables: 409 Notification: Performance of Generate backend data structure: time 0.006912/0.5951, allocations: 1.871 MB / 411.3 MB, free: 12.57 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.611e-05/0.5952, allocations: 12.03 kB / 411.3 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001011/0.5962, allocations: 205.6 kB / 411.5 MB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008043/0.6042, allocations: 2.018 MB / 413.5 MB, free: 10.29 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001472/0.6044, allocations: 59.98 kB / 413.6 MB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006933/0.6051, allocations: 96 kB / 413.7 MB, free: 10.14 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005563/0.6107, allocations: 1.705 MB / 415.4 MB, free: 8.434 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005951/0.6167, allocations: 1.957 MB / 417.4 MB, free: 6.387 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.199e-05/0.6168, allocations: 7.938 kB / 417.4 MB, free: 6.379 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002084/0.6171, allocations: 0 / 417.4 MB, free: 6.379 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001255/0.6172, allocations: 71.14 kB / 417.4 MB, free: 6.309 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0174/0.6346, allocations: 6.182 MB / 423.6 MB, free: 16 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2786/0.9133, allocations: 1.499 MB / 425.1 MB, free: 95.32 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002705/0.916, allocations: 0.9648 MB / 426.1 MB, free: 95.29 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001405/0.9162, allocations: 11.22 kB / 426.1 MB, free: 95.29 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001891/0.9182, allocations: 0.7921 MB / 426.9 MB, free: 95.21 MB / 362.7 MB Notification: Performance of pre-optimization done (n=114): time 6.051e-06/0.9182, allocations: 0 / 426.9 MB, free: 95.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=114): time 0.004153/0.9224, allocations: 1.529 MB / 428.4 MB, free: 95.13 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/0.9225, allocations: 151.5 kB / 428.6 MB, free: 94.97 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002104/0.9246, allocations: 0.8735 MB / 429.4 MB, free: 94.84 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003621/0.9251, allocations: 48.31 kB / 429.5 MB, free: 94.8 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008252/0.9259, allocations: 0.7121 MB / 430.2 MB, free: 94.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006081/0.9265, allocations: 321 kB / 430.5 MB, free: 94.34 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.84e-05/0.9266, allocations: 4.219 kB / 430.5 MB, free: 94.34 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.9268, allocations: 360.7 kB / 430.9 MB, free: 94.03 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001444/0.9283, allocations: 0.5569 MB / 431.4 MB, free: 94.03 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001843/0.9301, allocations: 0.8157 MB / 432.2 MB, free: 93.77 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001625/0.9318, allocations: 0.6116 MB / 432.8 MB, free: 93.76 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.383e-05/0.9319, allocations: 2.031 kB / 432.9 MB, free: 93.76 MB / 362.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.004117/0.936, allocations: 1.624 MB / 434.5 MB, free: 93.66 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005818/0.9367, allocations: 2.447 MB / 436.9 MB, free: 91.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.148e-05/0.9367, allocations: 3.938 kB / 436.9 MB, free: 91.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001864/0.9386, allocations: 494.4 kB / 437.4 MB, free: 91.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001329/0.9399, allocations: 159.8 kB / 437.6 MB, free: 91.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01005/0.9501, allocations: 5.272 MB / 442.8 MB, free: 88.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001813/0.9519, allocations: 161.8 kB / 443 MB, free: 88.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002935/0.9523, allocations: 46.47 kB / 443 MB, free: 88.35 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.9523, allocations: 3.938 kB / 443 MB, free: 88.35 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003378/0.9557, allocations: 1.535 MB / 444.6 MB, free: 87.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.583e-05/0.9558, allocations: 7.125 kB / 444.6 MB, free: 87.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001553/0.9573, allocations: 490.9 kB / 445.1 MB, free: 87.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001179/0.9585, allocations: 158.2 kB / 445.2 MB, free: 87.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009784/0.9683, allocations: 5.32 MB / 450.5 MB, free: 84.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001338/0.9697, allocations: 139.5 kB / 450.7 MB, free: 84.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001263/0.9699, allocations: 46.03 kB / 450.7 MB, free: 84.59 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: 57 ($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,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,$PRE.rectifier.pre[1].u,rectifier.pre[1].u,rectifier.pre[1].y,$PRE.rectifier.pre[2].u,rectifier.pre[2].u,rectifier.pre[2].y,$PRE.rectifier.pre[3].u,rectifier.pre[3].u,rectifier.pre[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 (117): * Single equations (assignments): 116 * 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.0004642/0.9704, allocations: 181 kB / 450.9 MB, free: 84.47 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003939/0.9743, allocations: 1.527 MB / 452.4 MB, free: 83.9 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004915/0.9748, allocations: 114.9 kB / 452.5 MB, free: 83.84 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000484/0.9753, allocations: 140.4 kB / 452.7 MB, free: 83.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.592e-05/0.9754, allocations: 18.95 kB / 452.7 MB, free: 83.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/0.9754, allocations: 0 / 452.7 MB, free: 83.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.597e-05/0.9754, allocations: 6.375 kB / 452.7 MB, free: 83.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008371/0.9838, allocations: 3.221 MB / 455.9 MB, free: 82.42 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.054e-05/0.9839, allocations: 0 / 455.9 MB, free: 82.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007568/0.9846, allocations: 84.42 kB / 456 MB, free: 82.42 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001657/0.9863, allocations: 488.3 kB / 456.5 MB, free: 82.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001469/0.9865, allocations: 3.656 kB / 456.5 MB, free: 82.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009523/0.996, allocations: 5.181 MB / 461.7 MB, free: 79.31 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.514e-06/0.9961, allocations: 0 / 461.7 MB, free: 79.31 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004669/1.001, allocations: 2.35 MB / 464 MB, free: 78.29 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009467/1.002, allocations: 330.8 kB / 464.3 MB, free: 78.07 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002987/1.002, allocations: 23.14 kB / 464.4 MB, free: 78.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001169/1.003, allocations: 85.88 kB / 464.4 MB, free: 78.05 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006174/1.004, allocations: 175.1 kB / 464.6 MB, free: 78.03 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001321/1.004, allocations: 32.3 kB / 464.6 MB, free: 78.02 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001248/1.005, allocations: 0.6485 MB / 465.3 MB, free: 77.68 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.71e-07/1.005, allocations: 0 / 465.3 MB, free: 77.68 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002922/1.008, allocations: 0.7367 MB / 466 MB, free: 76.94 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: 42 (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.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,rectifier.pre[1].u,rectifier.pre[1].y,rectifier.pre[2].u,rectifier.pre[2].y,rectifier.pre[3].u,rectifier.pre[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: 9 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.pre[3].u,rectifier.pre[2].u,rectifier.pre[1].u,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[1].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 67 * 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.00494/1.013, allocations: 2.955 MB / 469 MB, free: 74.27 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005868/1.019, allocations: 2.713 MB / 471.7 MB, free: 71.85 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.052e-05/1.019, allocations: 4.625 kB / 471.7 MB, free: 71.85 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00206/1.021, allocations: 0.9674 MB / 472.7 MB, free: 70.98 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002068/1.023, allocations: 270.5 kB / 472.9 MB, free: 70.78 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007558/1.031, allocations: 2.995 MB / 475.9 MB, free: 68.18 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001418/1.032, allocations: 1.643 MB / 477.6 MB, free: 66.8 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001128/1.034, allocations: 0.5741 MB / 478.1 MB, free: 66.28 MB / 362.7 MB Notification: Performance of SimCode: time 1.142e-06/1.034, allocations: 0 / 478.1 MB, free: 66.28 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.299/4.332, allocations: 37.29 MB / 0.5034 GB, free: 30.93 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.HalfControlledBridge2mPulse_res.mat does not exist to compare? outputFormat=mat