Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.HalfControlledBridge2mPulse,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_HalfControlledBridge2mPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.981/1.981, allocations: 194.9 MB / 208 MB, free: 3.273 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.981e-05/4.004e-05, allocations: 0 / 255.5 MB, free: 2.625 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1081, allocations: 44.5 MB / 300 MB, free: 6.066 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4595/0.5676, allocations: 87.57 MB / 387.6 MB, free: 12.33 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003158/0.568, allocations: 89.83 kB / 387.7 MB, free: 12.33 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1067/0.6748, allocations: 28.49 MB / 416.1 MB, free: 3.914 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.6748, allocations: 0 / 416.1 MB, free: 3.914 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001849/0.675, allocations: 46.59 kB / 416.2 MB, free: 3.902 MB / 314.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.006382/0.6814, allocations: 1.87 MB / 418.1 MB, free: 2.738 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/0.6815, allocations: 11.66 kB / 418.1 MB, free: 2.738 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007369/0.6822, allocations: 246.3 kB / 418.3 MB, free: 2.645 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000672/0.6829, allocations: 205.9 kB / 418.5 MB, free: 2.543 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007408/0.6903, allocations: 2.021 MB / 420.5 MB, free: 1.75 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001411/0.6905, allocations: 124.7 kB / 420.7 MB, free: 1.742 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003785/0.6909, allocations: 161 kB / 420.8 MB, free: 1.742 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00527/0.6962, allocations: 2.169 MB / 423 MB, free: 1.16 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.236e-05/0.6963, allocations: 7.812 kB / 423 MB, free: 1.156 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002404/0.6966, allocations: 66 kB / 423.1 MB, free: 1.156 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.185e-05/0.6967, allocations: 64.58 kB / 423.1 MB, free: 1.148 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004914/0.7016, allocations: 1.762 MB / 424.9 MB, free: 0.957 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01675/0.7184, allocations: 6.51 MB / 431.4 MB, free: 14.21 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004052/0.7225, allocations: 1.543 MB / 432.9 MB, free: 13.95 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003001/0.7256, allocations: 1.106 MB / 434 MB, free: 13.72 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001108/0.7257, allocations: 12.25 kB / 434.1 MB, free: 13.71 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001983/0.7277, allocations: 0.8106 MB / 434.9 MB, free: 13.21 MB / 330.7 MB Notification: Performance of pre-optimization done (n=114): time 4.689e-06/0.7278, allocations: 0 / 434.9 MB, free: 13.21 MB / 330.7 MB Notification: Performance of matching and sorting (n=114): time 0.004478/0.7322, allocations: 1.608 MB / 436.5 MB, free: 11.59 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001216/0.7324, allocations: 153.5 kB / 436.6 MB, free: 11.41 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002422/0.7348, allocations: 1.003 MB / 437.6 MB, free: 10.39 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000317/0.7352, allocations: 69.69 kB / 437.7 MB, free: 10.31 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009614/0.7362, allocations: 0.7094 MB / 438.4 MB, free: 9.598 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006701/0.7369, allocations: 345.5 kB / 438.7 MB, free: 9.27 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001128/0.737, allocations: 24 kB / 438.8 MB, free: 9.246 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002003/0.7372, allocations: 353.9 kB / 439.1 MB, free: 8.895 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001568/0.7388, allocations: 0.5804 MB / 439.7 MB, free: 8.312 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001735/0.7405, allocations: 0.8376 MB / 440.5 MB, free: 7.379 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001518/0.7421, allocations: 0.6333 MB / 441.2 MB, free: 6.746 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.005e-05/0.7421, allocations: 3.938 kB / 441.2 MB, free: 6.742 MB / 330.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.004532/0.7466, allocations: 1.786 MB / 443 MB, free: 4.941 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001046/0.7477, allocations: 2.446 MB / 445.4 MB, free: 2.309 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.073e-05/0.7477, allocations: 8 kB / 445.4 MB, free: 2.301 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002042/0.7498, allocations: 0.5002 MB / 445.9 MB, free: 1.797 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001241/0.7511, allocations: 159.7 kB / 446.1 MB, free: 1.641 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01145/0.7625, allocations: 5.396 MB / 451.5 MB, free: 12.12 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001819/0.7644, allocations: 183.1 kB / 451.6 MB, free: 11.94 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001291/0.7645, allocations: 48 kB / 451.7 MB, free: 11.89 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/0.7646, allocations: 8 kB / 451.7 MB, free: 11.89 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004025/0.7686, allocations: 1.645 MB / 453.3 MB, free: 10.24 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.52e-05/0.7686, allocations: 8 kB / 453.3 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001829/0.7705, allocations: 0.4974 MB / 453.8 MB, free: 9.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001086/0.7716, allocations: 159.7 kB / 454 MB, free: 9.574 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01141/0.783, allocations: 5.39 MB / 459.4 MB, free: 4.051 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001716/0.7848, allocations: 167.2 kB / 459.5 MB, free: 3.887 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000132/0.7849, allocations: 44 kB / 459.6 MB, free: 3.844 MB / 346.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.0004792/0.7854, allocations: 216.8 kB / 459.8 MB, free: 3.625 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003049/0.7857, allocations: 126.4 kB / 459.9 MB, free: 3.5 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005115/0.7863, allocations: 168.1 kB / 460.1 MB, free: 3.336 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.669e-05/0.7863, allocations: 12 kB / 460.1 MB, free: 3.324 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.7863, allocations: 4 kB / 460.1 MB, free: 3.32 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.429e-05/0.7863, allocations: 3.984 kB / 460.1 MB, free: 3.316 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009311/0.7957, allocations: 3.521 MB / 463.6 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.157e-06/0.7957, allocations: 4 kB / 463.6 MB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007882/0.7965, allocations: 91.77 kB / 463.7 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001836/0.7984, allocations: 480.6 kB / 464.2 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001494/0.7985, allocations: 23.98 kB / 464.2 MB, free: 15.17 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01188/0.8104, allocations: 5.324 MB / 469.5 MB, free: 9.707 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.8105, allocations: 0 / 469.5 MB, free: 9.707 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006089/0.8166, allocations: 2.442 MB / 472 MB, free: 7.25 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001105/0.8177, allocations: 351.2 kB / 472.3 MB, free: 6.887 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003239/0.8181, allocations: 31.98 kB / 472.4 MB, free: 6.855 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001339/0.8194, allocations: 103.9 kB / 472.5 MB, free: 6.754 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006612/0.8201, allocations: 176.7 kB / 472.6 MB, free: 6.582 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001153/0.8203, allocations: 28 kB / 472.7 MB, free: 6.555 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001903/0.8222, allocations: 0.7602 MB / 473.4 MB, free: 5.781 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.8222, allocations: 0 / 473.4 MB, free: 5.781 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00372/0.826, allocations: 0.8177 MB / 474.2 MB, free: 4.961 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.006748/0.8327, allocations: 3.066 MB / 477.3 MB, free: 1.867 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007711/0.8405, allocations: 2.82 MB / 480.1 MB, free: 15.03 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.004e-05/0.8406, allocations: 0 / 480.1 MB, free: 15.03 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002744/0.8433, allocations: 0.9934 MB / 481.1 MB, free: 14.03 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00243/0.8458, allocations: 301.7 kB / 481.4 MB, free: 13.73 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009988/0.8558, allocations: 3.126 MB / 484.5 MB, free: 10.56 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002053/0.8579, allocations: 1.673 MB / 486.2 MB, free: 8.852 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002644/0.8606, allocations: 0.5368 MB / 486.7 MB, free: 8.312 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001241/0.8619, allocations: 0.5598 MB / 487.3 MB, free: 7.754 MB / 378.7 MB Notification: Performance of SimCode: time 1.383e-06/0.8619, allocations: 4 kB / 487.3 MB, free: 7.75 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.399/1.261, allocations: 41.31 MB / 0.5162 GB, free: 118.8 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002536/1.261, allocations: 238.1 kB / 0.5165 GB, free: 118.4 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.157/5.418, allocations: 0 / 0.5165 GB, free: 118.4 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.HalfControlledBridge2mPulse_res.mat does not exist to compare? outputFormat=mat