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 1.941/1.941, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.508e-05/3.524e-05, allocations: 4 kB / 255.4 MB, free: 3.086 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1235, allocations: 44.51 MB / 299.9 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4423/0.5659, allocations: 87.55 MB / 387.5 MB, free: 12.73 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003274/0.5662, allocations: 92.94 kB / 387.6 MB, free: 12.73 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1279/0.6942, allocations: 28.49 MB / 416.1 MB, free: 4.43 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.6943, allocations: 7.812 kB / 416.1 MB, free: 4.426 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002437/0.6945, allocations: 46.91 kB / 416.1 MB, free: 4.414 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.006604/0.7011, allocations: 1.879 MB / 418 MB, free: 3.242 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/0.7012, allocations: 11.66 kB / 418 MB, free: 3.242 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008378/0.7021, allocations: 241.7 kB / 418.3 MB, free: 3.156 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007738/0.7028, allocations: 206.6 kB / 418.5 MB, free: 3.055 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007632/0.7105, allocations: 2.02 MB / 420.5 MB, free: 2.258 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000176/0.7107, allocations: 123.2 kB / 420.6 MB, free: 2.254 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006633/0.7114, allocations: 160.6 kB / 420.8 MB, free: 2.25 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006096/0.7175, allocations: 2.187 MB / 422.9 MB, free: 1.664 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.364e-05/0.7176, allocations: 0 / 422.9 MB, free: 1.664 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000255/0.7179, allocations: 73.11 kB / 423 MB, free: 1.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.393e-05/0.718, allocations: 60.84 kB / 423.1 MB, free: 1.656 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005369/0.7234, allocations: 1.795 MB / 424.9 MB, free: 1.445 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01825/0.7417, allocations: 6.508 MB / 431.4 MB, free: 14.73 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004298/0.7461, allocations: 1.562 MB / 432.9 MB, free: 14.45 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003052/0.7492, allocations: 1.1 MB / 434 MB, free: 14.02 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001393/0.7494, allocations: 12.5 kB / 434.1 MB, free: 14.02 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00211/0.7515, allocations: 0.8145 MB / 434.9 MB, free: 13.53 MB / 330.7 MB Notification: Performance of pre-optimization done (n=114): time 8.296e-06/0.7515, allocations: 0 / 434.9 MB, free: 13.53 MB / 330.7 MB Notification: Performance of matching and sorting (n=114): time 0.004821/0.7564, allocations: 1.61 MB / 436.5 MB, free: 12.02 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001401/0.7566, allocations: 153.5 kB / 436.6 MB, free: 11.84 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002659/0.7592, allocations: 1.003 MB / 437.6 MB, free: 10.82 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003748/0.7597, allocations: 65.69 kB / 437.7 MB, free: 10.75 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009283/0.7606, allocations: 0.7004 MB / 438.4 MB, free: 10.04 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006742/0.7613, allocations: 345.5 kB / 438.7 MB, free: 9.715 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001246/0.7615, allocations: 24 kB / 438.8 MB, free: 9.691 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001938/0.7617, allocations: 362.7 kB / 439.1 MB, free: 9.328 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001672/0.7634, allocations: 0.5882 MB / 439.7 MB, free: 8.738 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001955/0.7653, allocations: 0.8402 MB / 440.5 MB, free: 7.805 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00179/0.7672, allocations: 0.6371 MB / 441.2 MB, free: 7.164 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.839e-05/0.7672, allocations: 0 / 441.2 MB, free: 7.164 MB / 330.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.004822/0.7721, allocations: 1.728 MB / 442.9 MB, free: 5.43 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001262/0.7734, allocations: 2.453 MB / 445.4 MB, free: 2.789 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.904e-05/0.7735, allocations: 8 kB / 445.4 MB, free: 2.781 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002316/0.7758, allocations: 0.4885 MB / 445.9 MB, free: 2.289 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001358/0.7772, allocations: 163.8 kB / 446 MB, free: 2.129 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01242/0.7897, allocations: 5.395 MB / 451.4 MB, free: 12.6 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001962/0.7917, allocations: 183.2 kB / 451.6 MB, free: 12.42 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002338/0.792, allocations: 40 kB / 451.6 MB, free: 12.38 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.792, allocations: 4 kB / 451.6 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004412/0.7964, allocations: 1.667 MB / 453.3 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.587e-05/0.7965, allocations: 8 kB / 453.3 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001796/0.7983, allocations: 0.4932 MB / 453.8 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001275/0.7996, allocations: 151.7 kB / 453.9 MB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01206/0.8117, allocations: 5.465 MB / 459.4 MB, free: 4.457 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001377/0.8132, allocations: 159.2 kB / 459.6 MB, free: 4.301 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001553/0.8134, allocations: 47.98 kB / 459.6 MB, free: 4.254 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.0005149/0.8139, allocations: 220.8 kB / 459.8 MB, free: 4.031 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004994/0.8144, allocations: 122.6 kB / 459.9 MB, free: 3.91 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005648/0.815, allocations: 160.1 kB / 460.1 MB, free: 3.75 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.69e-05/0.815, allocations: 12 kB / 460.1 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.086e-06/0.815, allocations: 0 / 460.1 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.571e-05/0.8151, allocations: 3.984 kB / 460.1 MB, free: 3.734 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01045/0.8255, allocations: 3.538 MB / 463.7 MB, free: 164 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.05e-05/0.8256, allocations: 0 / 463.7 MB, free: 164 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008269/0.8264, allocations: 83.83 kB / 463.7 MB, free: 80 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001944/0.8284, allocations: 481.4 kB / 464.2 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002236/0.8287, allocations: 27.97 kB / 464.2 MB, free: 15.58 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.012/0.8407, allocations: 5.316 MB / 469.6 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.8407, allocations: 0 / 469.6 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006081/0.8468, allocations: 2.427 MB / 472 MB, free: 7.688 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001246/0.8481, allocations: 351.3 kB / 472.3 MB, free: 7.324 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003579/0.8485, allocations: 35.98 kB / 472.4 MB, free: 7.289 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001383/0.8499, allocations: 107.8 kB / 472.5 MB, free: 7.184 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007101/0.8507, allocations: 172.7 kB / 472.6 MB, free: 7.012 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001133/0.8508, allocations: 35.98 kB / 472.7 MB, free: 6.977 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001916/0.8527, allocations: 0.7602 MB / 473.4 MB, free: 6.203 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.443e-06/0.8528, allocations: 0 / 473.4 MB, free: 6.203 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003775/0.8566, allocations: 0.8098 MB / 474.2 MB, free: 5.391 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.006885/0.8635, allocations: 3.063 MB / 477.3 MB, free: 2.301 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008083/0.8716, allocations: 2.846 MB / 480.1 MB, free: 15.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.288e-05/0.8717, allocations: 0.5625 kB / 480.1 MB, free: 15.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00289/0.8746, allocations: 1.012 MB / 481.2 MB, free: 14.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002613/0.8773, allocations: 304.2 kB / 481.5 MB, free: 14.11 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01047/0.8878, allocations: 3.087 MB / 484.5 MB, free: 10.96 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002068/0.8899, allocations: 1.643 MB / 486.2 MB, free: 9.293 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001634/0.8916, allocations: 0.5735 MB / 486.8 MB, free: 8.719 MB / 378.7 MB Notification: Performance of SimCode: time 2.214e-06/0.8916, allocations: 0 / 486.8 MB, free: 8.719 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.893/4.784, allocations: 38.05 MB / 0.5125 GB, free: 2.668 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.HalfControlledBridge2mPulse_res.mat does not exist to compare? outputFormat=mat