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.975/1.975, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.592e-05/3.597e-05, allocations: 4 kB / 255.5 MB, free: 3.07 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1162, allocations: 44.51 MB / 300 MB, free: 6.496 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4655/0.5817, allocations: 87.56 MB / 387.5 MB, free: 12.71 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003061/0.5821, allocations: 92.23 kB / 387.6 MB, free: 12.7 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.104/0.686, allocations: 28.48 MB / 416.1 MB, free: 4.387 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.6861, allocations: 0 / 416.1 MB, free: 4.387 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001443/0.6863, allocations: 50.94 kB / 416.2 MB, free: 4.375 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.004882/0.6911, allocations: 1.871 MB / 418 MB, free: 3.211 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.6912, allocations: 15.5 kB / 418 MB, free: 3.207 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000434/0.6917, allocations: 238.2 kB / 418.3 MB, free: 3.121 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004699/0.6921, allocations: 210.2 kB / 418.5 MB, free: 3.016 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007342/0.6995, allocations: 2.017 MB / 420.5 MB, free: 2.223 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000146/0.6997, allocations: 129 kB / 420.6 MB, free: 2.215 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004507/0.7002, allocations: 160.1 kB / 420.8 MB, free: 2.215 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004843/0.705, allocations: 2.163 MB / 422.9 MB, free: 1.633 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.335e-05/0.7051, allocations: 3.938 kB / 423 MB, free: 1.629 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002321/0.7054, allocations: 68.22 kB / 423 MB, free: 1.629 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.184e-05/0.7055, allocations: 69.33 kB / 423.1 MB, free: 1.621 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006907/0.7124, allocations: 1.767 MB / 424.9 MB, free: 1.426 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01963/0.7321, allocations: 6.507 MB / 431.4 MB, free: 14.69 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007441/0.7396, allocations: 1.542 MB / 432.9 MB, free: 14.43 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003997/0.7437, allocations: 1.1 MB / 434 MB, free: 14.01 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001126/0.7438, allocations: 16.56 kB / 434 MB, free: 14 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002545/0.7464, allocations: 0.8121 MB / 434.8 MB, free: 13.51 MB / 330.7 MB Notification: Performance of pre-optimization done (n=114): time 5.331e-06/0.7464, allocations: 0 / 434.8 MB, free: 13.51 MB / 330.7 MB Notification: Performance of matching and sorting (n=114): time 0.006434/0.7529, allocations: 1.611 MB / 436.4 MB, free: 12.05 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001499/0.753, allocations: 149.5 kB / 436.6 MB, free: 11.87 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003169/0.7562, allocations: 1.003 MB / 437.6 MB, free: 10.84 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002729/0.7565, allocations: 65.69 kB / 437.7 MB, free: 10.77 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001098/0.7576, allocations: 0.7043 MB / 438.4 MB, free: 10.07 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006102/0.7583, allocations: 342.5 kB / 438.7 MB, free: 9.742 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001482/0.7584, allocations: 24 kB / 438.7 MB, free: 9.719 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002595/0.7587, allocations: 362.8 kB / 439.1 MB, free: 9.355 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002111/0.7608, allocations: 0.5804 MB / 439.7 MB, free: 8.773 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002526/0.7634, allocations: 0.8376 MB / 440.5 MB, free: 7.84 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002266/0.7657, allocations: 0.6294 MB / 441.1 MB, free: 7.211 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.42e-05/0.7657, allocations: 4 kB / 441.1 MB, free: 7.207 MB / 330.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.006094/0.7718, allocations: 1.716 MB / 442.8 MB, free: 5.477 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001398/0.7732, allocations: 2.446 MB / 445.3 MB, free: 2.844 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.926e-05/0.7733, allocations: 4 kB / 445.3 MB, free: 2.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002799/0.7761, allocations: 0.4964 MB / 445.8 MB, free: 2.34 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001657/0.7778, allocations: 163.7 kB / 445.9 MB, free: 2.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0156/0.7934, allocations: 5.399 MB / 451.3 MB, free: 12.65 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001847/0.7953, allocations: 187.1 kB / 451.5 MB, free: 12.47 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001281/0.7954, allocations: 44 kB / 451.6 MB, free: 12.43 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.293e-05/0.7955, allocations: 4 kB / 451.6 MB, free: 12.42 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004174/0.7997, allocations: 1.652 MB / 453.2 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.67e-05/0.7997, allocations: 8 kB / 453.2 MB, free: 10.76 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001756/0.8015, allocations: 497.3 kB / 453.7 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.8025, allocations: 155.7 kB / 453.9 MB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01189/0.8144, allocations: 5.461 MB / 459.3 MB, free: 4.523 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001381/0.8159, allocations: 159.2 kB / 459.5 MB, free: 4.367 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001305/0.816, allocations: 47.98 kB / 459.5 MB, free: 4.32 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.0005042/0.8165, allocations: 219.8 kB / 459.8 MB, free: 4.102 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004574/0.817, allocations: 122.5 kB / 459.9 MB, free: 3.98 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005479/0.8176, allocations: 160.1 kB / 460 MB, free: 3.82 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.701e-05/0.8176, allocations: 16 kB / 460 MB, free: 3.805 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.839e-06/0.8176, allocations: 0 / 460 MB, free: 3.805 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.958e-05/0.8176, allocations: 7.922 kB / 460 MB, free: 3.797 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009585/0.8272, allocations: 3.526 MB / 463.6 MB, free: 236 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.177e-06/0.8273, allocations: 0 / 463.6 MB, free: 236 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007868/0.8281, allocations: 83.89 kB / 463.7 MB, free: 152 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001897/0.83, allocations: 487.5 kB / 464.1 MB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001112/0.8301, allocations: 27.98 kB / 464.2 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01164/0.8418, allocations: 5.316 MB / 469.5 MB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.8418, allocations: 0 / 469.5 MB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005816/0.8476, allocations: 2.435 MB / 471.9 MB, free: 7.746 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001065/0.8488, allocations: 355.2 kB / 472.3 MB, free: 7.379 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003126/0.8491, allocations: 39.92 kB / 472.3 MB, free: 7.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001277/0.8504, allocations: 103.9 kB / 472.4 MB, free: 7.238 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006184/0.851, allocations: 172.7 kB / 472.6 MB, free: 7.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000108/0.8511, allocations: 31.98 kB / 472.6 MB, free: 7.039 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001788/0.8529, allocations: 0.7602 MB / 473.4 MB, free: 6.266 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.853, allocations: 0 / 473.4 MB, free: 6.266 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003404/0.8564, allocations: 0.8098 MB / 474.2 MB, free: 5.453 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.006537/0.8629, allocations: 3.062 MB / 477.2 MB, free: 2.363 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007373/0.8704, allocations: 2.785 MB / 480 MB, free: 15.56 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/0.8704, allocations: 0.5625 kB / 480 MB, free: 15.56 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003206/0.8736, allocations: 0.9899 MB / 481 MB, free: 14.56 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003139/0.8768, allocations: 308.2 kB / 481.3 MB, free: 14.26 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01289/0.8897, allocations: 3.07 MB / 484.4 MB, free: 11.13 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009077/0.8989, allocations: 1.647 MB / 486 MB, free: 9.457 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001865/0.9008, allocations: 0.5774 MB / 486.6 MB, free: 8.879 MB / 378.7 MB Notification: Performance of SimCode: time 1.282e-06/0.9008, allocations: 0 / 486.6 MB, free: 8.879 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.393/4.293, allocations: 37.88 MB / 0.5122 GB, free: 2.996 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