Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.HalfControlledBridge2mPulse,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_HalfControlledBridge2mPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.108/2.108, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.501e-05/5.527e-05, allocations: 4 kB / 292.8 MB, free: 8.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1128, allocations: 50.41 MB / 343.2 MB, free: 5.797 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4607/0.5735, allocations: 93.71 MB / 436.9 MB, free: 284 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003424/0.5739, allocations: 88.86 kB / 437 MB, free: 232 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1297/0.7036, allocations: 29.96 MB / 466.9 MB, free: 6.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.7037, allocations: 0 / 466.9 MB, free: 6.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002307/0.7039, allocations: 43.94 kB / 467 MB, free: 6.637 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 425 * Number of variables: 425 Notification: Performance of Generate backend data structure: time 0.007339/0.7113, allocations: 1.938 MB / 468.9 MB, free: 4.637 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.461e-05/0.7113, allocations: 8.031 kB / 468.9 MB, free: 4.629 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009033/0.7123, allocations: 252.8 kB / 469.2 MB, free: 4.371 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007641/0.713, allocations: 221.5 kB / 469.4 MB, free: 4.152 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008687/0.7217, allocations: 2.057 MB / 471.4 MB, free: 2.047 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002289/0.722, allocations: 127.3 kB / 471.6 MB, free: 1.922 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00073/0.7228, allocations: 176 kB / 471.7 MB, free: 1.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006933/0.7297, allocations: 2.26 MB / 474 MB, free: 15.4 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.242e-05/0.7298, allocations: 0 / 474 MB, free: 15.4 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000274/0.7301, allocations: 68 kB / 474.1 MB, free: 15.33 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001257/0.7303, allocations: 75.27 kB / 474.1 MB, free: 15.26 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006359/0.7366, allocations: 1.838 MB / 476 MB, free: 13.42 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0206/0.7573, allocations: 6.713 MB / 482.7 MB, free: 6.582 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00435/0.7617, allocations: 1.549 MB / 484.2 MB, free: 5.031 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003479/0.7653, allocations: 1.128 MB / 485.4 MB, free: 3.906 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001605/0.7655, allocations: 24.92 kB / 485.4 MB, free: 3.879 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002366/0.7678, allocations: 0.8469 MB / 486.2 MB, free: 3.012 MB / 394.7 MB Notification: Performance of pre-optimization done (n=120): time 4.889e-06/0.7679, allocations: 0 / 486.2 MB, free: 3.012 MB / 394.7 MB Notification: Performance of matching and sorting (n=120): time 0.005057/0.773, allocations: 1.648 MB / 487.9 MB, free: 1.352 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001665/0.7732, allocations: 175.2 kB / 488.1 MB, free: 1.141 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002755/0.776, allocations: 1.035 MB / 489.1 MB, free: 88 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003648/0.7764, allocations: 73.67 kB / 489.2 MB, free: 8 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001097/0.7775, allocations: 0.7298 MB / 489.9 MB, free: 15.27 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007037/0.7782, allocations: 367 kB / 490.3 MB, free: 14.9 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001245/0.7784, allocations: 28 kB / 490.3 MB, free: 14.88 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002037/0.7786, allocations: 361.9 kB / 490.6 MB, free: 14.52 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001739/0.7803, allocations: 0.6194 MB / 491.3 MB, free: 13.89 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002135/0.7825, allocations: 0.8623 MB / 492.1 MB, free: 12.93 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001922/0.7845, allocations: 0.6724 MB / 492.8 MB, free: 12.26 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.882e-05/0.7846, allocations: 4 kB / 492.8 MB, free: 12.26 MB / 410.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.005376/0.7899, allocations: 1.862 MB / 494.7 MB, free: 10.38 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00106/0.7911, allocations: 2.455 MB / 497.1 MB, free: 7.746 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.699e-05/0.7911, allocations: 7.938 kB / 497.1 MB, free: 7.738 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002218/0.7933, allocations: 0.5002 MB / 497.6 MB, free: 7.234 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001454/0.7949, allocations: 171.7 kB / 497.8 MB, free: 7.066 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01272/0.8076, allocations: 5.387 MB / 0.4914 GB, free: 1.535 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003305/0.811, allocations: 187 kB / 0.4916 GB, free: 1.352 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003639/0.8114, allocations: 51.98 kB / 0.4916 GB, free: 1.301 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.8114, allocations: 4 kB / 0.4916 GB, free: 1.297 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005027/0.8165, allocations: 1.722 MB / 0.4933 GB, free: 15.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.861e-05/0.8166, allocations: 4 kB / 0.4933 GB, free: 15.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002069/0.8187, allocations: 0.5007 MB / 0.4938 GB, free: 15.06 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001431/0.8201, allocations: 167.7 kB / 0.4939 GB, free: 14.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01266/0.8328, allocations: 5.383 MB / 0.4992 GB, free: 9.375 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002032/0.8349, allocations: 163.2 kB / 0.4994 GB, free: 9.215 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003652/0.8353, allocations: 48 kB / 0.4994 GB, free: 9.168 MB / 426.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_last,meanVoltage.y_last,$PRE.meanCurrent.y_last,meanCurrent.y_last,$whenCondition9,$whenCondition8,$whenCondition7,$PRE.rootMeanSquareVoltage.mean.y_last,rootMeanSquareVoltage.mean.y_last,$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 (123): * Single equations (assignments): 122 * 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.0007238/0.8361, allocations: 224.8 kB / 0.4996 GB, free: 8.941 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006564/0.8368, allocations: 134.4 kB / 0.4997 GB, free: 8.809 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008834/0.8377, allocations: 160.5 kB / 0.4999 GB, free: 8.652 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-05/0.8377, allocations: 12 kB / 0.4999 GB, free: 8.641 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/0.8378, allocations: 0 / 0.4999 GB, free: 8.641 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.693e-05/0.8378, allocations: 11.97 kB / 0.4999 GB, free: 8.629 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01201/0.8498, allocations: 3.692 MB / 0.5035 GB, free: 4.879 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.178e-05/0.8499, allocations: 3.938 kB / 0.5035 GB, free: 4.875 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001101/0.851, allocations: 103.8 kB / 0.5036 GB, free: 4.773 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002054/0.8531, allocations: 481.2 kB / 0.5041 GB, free: 4.301 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002799/0.8534, allocations: 27.94 kB / 0.5041 GB, free: 4.273 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0127/0.8661, allocations: 5.321 MB / 0.5093 GB, free: 14.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.8662, allocations: 0 / 0.5093 GB, free: 14.8 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007061/0.8733, allocations: 2.568 MB / 0.5118 GB, free: 12.22 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001372/0.8747, allocations: 367.2 kB / 0.5122 GB, free: 11.84 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004409/0.8752, allocations: 31.98 kB / 0.5122 GB, free: 11.81 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001633/0.8768, allocations: 107.9 kB / 0.5123 GB, free: 11.7 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007792/0.8777, allocations: 180.7 kB / 0.5125 GB, free: 11.53 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001554/0.8779, allocations: 36.08 kB / 0.5125 GB, free: 11.49 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002028/0.8799, allocations: 0.7886 MB / 0.5133 GB, free: 10.69 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.12e-07/0.8799, allocations: 0 / 0.5133 GB, free: 10.69 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003898/0.8839, allocations: 0.8371 MB / 0.5141 GB, free: 9.852 MB / 442.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_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last,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 (83): * Single equations (assignments): 73 * 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.007285/0.8912, allocations: 3.214 MB / 0.5172 GB, free: 6.609 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008845/0.9001, allocations: 2.923 MB / 0.5201 GB, free: 3.66 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.124e-05/0.9002, allocations: 5.625 kB / 0.5201 GB, free: 3.656 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003119/0.9033, allocations: 1.017 MB / 0.5211 GB, free: 2.629 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002934/0.9063, allocations: 324.3 kB / 0.5214 GB, free: 2.312 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3094/1.216, allocations: 3.256 MB / 0.5246 GB, free: 128.1 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003866/1.22, allocations: 1.714 MB / 0.5263 GB, free: 127.4 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004982/1.225, allocations: 0.5887 MB / 0.5268 GB, free: 127.4 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00227/1.227, allocations: 0.5814 MB / 0.5274 GB, free: 127.4 MB / 442.7 MB Notification: Performance of SimCode: time 3.186e-06/1.227, allocations: 0 / 0.5274 GB, free: 127.4 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1459/1.373, allocations: 42.55 MB / 0.5689 GB, free: 117.7 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002779/1.373, allocations: 233.1 kB / 0.5692 GB, free: 117.4 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.321/5.695, allocations: 0 / 0.5692 GB, free: 117.4 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.HalfControlledBridge2mPulse_res.mat does not exist to compare? outputFormat=mat