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.293/2.293, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.521e-05/4.534e-05, allocations: 4 kB / 255.5 MB, free: 3.062 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09922/0.09932, allocations: 44.49 MB / 300 MB, free: 6.512 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4532/0.5526, allocations: 87.28 MB / 387.2 MB, free: 12.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003549/0.553, allocations: 88.47 kB / 387.3 MB, free: 12.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1737/0.7268, allocations: 47.05 MB / 434.4 MB, free: 13.02 MB / 330.7 MB Notification: Performance of FrontEnd: time 5.781e-06/0.7268, allocations: 3.984 kB / 434.4 MB, free: 13.02 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.000186/0.727, allocations: 51.53 kB / 434.4 MB, free: 13.01 MB / 330.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.006915/0.734, allocations: 1.933 MB / 436.4 MB, free: 11.25 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.09e-05/0.7341, allocations: 16.03 kB / 436.4 MB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008439/0.7349, allocations: 255.1 kB / 436.6 MB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007418/0.7357, allocations: 221.4 kB / 436.9 MB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008568/0.7443, allocations: 2.065 MB / 438.9 MB, free: 9.293 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002105/0.7445, allocations: 134 kB / 439 MB, free: 9.215 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006506/0.7452, allocations: 177.3 kB / 439.2 MB, free: 9.098 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007044/0.7523, allocations: 2.326 MB / 441.5 MB, free: 7.5 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.536e-05/0.7524, allocations: 0 / 441.5 MB, free: 7.5 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002897/0.7527, allocations: 70.06 kB / 441.6 MB, free: 7.484 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001325/0.7528, allocations: 77.97 kB / 441.7 MB, free: 7.41 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006716/0.7596, allocations: 1.87 MB / 443.6 MB, free: 5.605 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02128/0.7809, allocations: 6.801 MB / 450.4 MB, free: 14.73 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005152/0.7861, allocations: 1.66 MB / 452 MB, free: 13.06 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002601/0.7888, allocations: 0.9256 MB / 452.9 MB, free: 12.13 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001086/0.7889, allocations: 9 kB / 453 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002294/0.7912, allocations: 0.8623 MB / 453.8 MB, free: 11.24 MB / 346.7 MB Notification: Performance of pre-optimization done (n=122): time 5.159e-06/0.7913, allocations: 4 kB / 453.8 MB, free: 11.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=122): time 0.004923/0.7962, allocations: 1.626 MB / 455.4 MB, free: 9.602 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001532/0.7964, allocations: 153.5 kB / 455.6 MB, free: 9.422 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002775/0.7992, allocations: 1.031 MB / 456.6 MB, free: 8.371 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004112/0.7997, allocations: 85.67 kB / 456.7 MB, free: 8.281 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001041/0.8007, allocations: 0.7315 MB / 457.4 MB, free: 7.551 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006804/0.8014, allocations: 366.2 kB / 457.8 MB, free: 7.203 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.8016, allocations: 28 kB / 457.8 MB, free: 7.176 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000228/0.8018, allocations: 362.8 kB / 458.2 MB, free: 6.812 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001762/0.8036, allocations: 0.6403 MB / 458.8 MB, free: 6.172 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002046/0.8056, allocations: 0.9019 MB / 459.7 MB, free: 5.18 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001888/0.8076, allocations: 0.6882 MB / 460.4 MB, free: 4.488 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.017e-05/0.8076, allocations: 4 kB / 460.4 MB, free: 4.484 MB / 346.7 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.004995/0.8126, allocations: 1.838 MB / 462.3 MB, free: 2.637 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0013/0.814, allocations: 2.444 MB / 464.7 MB, free: 4 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.442e-05/0.814, allocations: 4 kB / 464.7 MB, free: 0 / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002194/0.8162, allocations: 0.4979 MB / 465.2 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001455/0.8177, allocations: 171.7 kB / 465.4 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01203/0.8298, allocations: 5.22 MB / 470.6 MB, free: 9.969 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002201/0.832, allocations: 187.1 kB / 470.8 MB, free: 9.785 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002285/0.8323, allocations: 48 kB / 470.8 MB, free: 9.738 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.8323, allocations: 4 kB / 470.8 MB, free: 9.734 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004827/0.8372, allocations: 1.777 MB / 472.6 MB, free: 7.953 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.555e-05/0.8373, allocations: 11.94 kB / 472.6 MB, free: 7.941 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001765/0.839, allocations: 497 kB / 473.1 MB, free: 7.453 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00138/0.8405, allocations: 167.6 kB / 473.3 MB, free: 7.289 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01189/0.8524, allocations: 5.279 MB / 478.5 MB, free: 1.879 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001509/0.8539, allocations: 159.3 kB / 478.7 MB, free: 1.723 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001789/0.8542, allocations: 44 kB / 478.7 MB, free: 1.68 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.0005987/0.8548, allocations: 248.2 kB / 479 MB, free: 1.426 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005057/0.8553, allocations: 126.4 kB / 479.1 MB, free: 1.301 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006022/0.8559, allocations: 172.5 kB / 479.3 MB, free: 1.133 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.517e-05/0.8559, allocations: 12 kB / 479.3 MB, free: 1.121 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.278e-06/0.856, allocations: 3.938 kB / 479.3 MB, free: 1.117 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.669e-05/0.856, allocations: 3.984 kB / 479.3 MB, free: 1.113 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00997/0.866, allocations: 3.546 MB / 482.8 MB, free: 13.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.024e-05/0.866, allocations: 0 / 482.8 MB, free: 13.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001018/0.8671, allocations: 95.81 kB / 482.9 MB, free: 13.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002027/0.8691, allocations: 472.7 kB / 483.4 MB, free: 12.97 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003081/0.8695, allocations: 23.98 kB / 483.4 MB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01259/0.8821, allocations: 5.154 MB / 488.6 MB, free: 7.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.8822, allocations: 0 / 488.6 MB, free: 7.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007191/0.8894, allocations: 2.571 MB / 491.1 MB, free: 5.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001499/0.891, allocations: 359.3 kB / 491.5 MB, free: 4.699 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005969/0.8916, allocations: 47.98 kB / 491.5 MB, free: 4.652 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001682/0.8933, allocations: 111.8 kB / 491.6 MB, free: 4.543 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009945/0.8944, allocations: 224.6 kB / 491.9 MB, free: 4.324 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002019/0.8946, allocations: 35.98 kB / 491.9 MB, free: 4.289 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002264/0.8969, allocations: 0.7806 MB / 492.7 MB, free: 3.496 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.092e-06/0.8969, allocations: 0 / 492.7 MB, free: 3.496 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004607/0.9016, allocations: 0.8488 MB / 493.5 MB, free: 2.645 MB / 378.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.007577/0.9092, allocations: 3.211 MB / 496.7 MB, free: 15.41 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.008547/0.9178, allocations: 2.938 MB / 499.7 MB, free: 12.46 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.258e-05/0.9179, allocations: 0.5625 kB / 499.7 MB, free: 12.46 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002917/0.9208, allocations: 1.021 MB / 0.489 GB, free: 11.43 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002845/0.9237, allocations: 312.2 kB / 0.4893 GB, free: 11.12 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01181/0.9356, allocations: 3.258 MB / 0.4924 GB, free: 7.809 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002671/0.9383, allocations: 1.687 MB / 0.4941 GB, free: 6.09 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001799/0.9402, allocations: 0.6204 MB / 0.4947 GB, free: 5.469 MB / 394.7 MB Notification: Performance of SimCode: time 2.545e-06/0.9402, allocations: 4 kB / 0.4947 GB, free: 5.465 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.768/4.708, allocations: 39.75 MB / 0.5335 GB, free: 121.1 MB / 410.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