Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.HalfControlledBridge2mPulse,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_HalfControlledBridge2mPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.033/2.033, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.551e-05/3.568e-05, allocations: 4 kB / 292.2 MB, free: 8.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1076, allocations: 50.41 MB / 342.7 MB, free: 6.297 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4556/0.5632, allocations: 93.75 MB / 436.4 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003204/0.5636, allocations: 83.02 kB / 436.5 MB, free: 456 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1224/0.686, allocations: 29.96 MB / 466.4 MB, free: 7.055 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.6861, allocations: 0 / 466.4 MB, free: 7.055 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002332/0.6863, allocations: 51.94 kB / 466.5 MB, free: 7.004 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.007506/0.6939, allocations: 1.938 MB / 468.4 MB, free: 5.004 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.977e-05/0.6939, allocations: 15.97 kB / 468.5 MB, free: 4.988 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009243/0.6949, allocations: 244.8 kB / 468.7 MB, free: 4.738 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008034/0.6957, allocations: 213.5 kB / 468.9 MB, free: 4.527 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008511/0.7042, allocations: 2.061 MB / 471 MB, free: 2.418 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002095/0.7045, allocations: 135.3 kB / 471.1 MB, free: 2.285 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006685/0.7052, allocations: 164 kB / 471.3 MB, free: 2.125 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007037/0.7122, allocations: 2.26 MB / 473.5 MB, free: 15.78 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.425e-05/0.7124, allocations: 0 / 473.5 MB, free: 15.78 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002846/0.7127, allocations: 71.98 kB / 473.6 MB, free: 15.71 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001225/0.7128, allocations: 75.27 kB / 473.7 MB, free: 15.63 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006144/0.7189, allocations: 1.849 MB / 475.5 MB, free: 13.78 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01986/0.7389, allocations: 6.701 MB / 482.2 MB, free: 6.953 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004064/0.743, allocations: 1.541 MB / 483.7 MB, free: 5.41 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003172/0.7462, allocations: 1.135 MB / 484.9 MB, free: 4.277 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001195/0.7464, allocations: 20.95 kB / 484.9 MB, free: 4.254 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002166/0.7485, allocations: 0.8469 MB / 485.8 MB, free: 3.387 MB / 394.7 MB Notification: Performance of pre-optimization done (n=120): time 4.578e-06/0.7486, allocations: 0 / 485.8 MB, free: 3.387 MB / 394.7 MB Notification: Performance of matching and sorting (n=120): time 0.004666/0.7533, allocations: 1.652 MB / 487.4 MB, free: 1.723 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001493/0.7535, allocations: 179.2 kB / 487.6 MB, free: 1.508 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002615/0.7561, allocations: 1.047 MB / 488.6 MB, free: 452 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003539/0.7565, allocations: 65.69 kB / 488.7 MB, free: 380 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009254/0.7575, allocations: 0.7166 MB / 489.4 MB, free: 15.64 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006293/0.7581, allocations: 359 kB / 489.8 MB, free: 15.29 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.7582, allocations: 28 kB / 489.8 MB, free: 15.26 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001902/0.7584, allocations: 362.7 kB / 490.1 MB, free: 14.9 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001597/0.76, allocations: 0.6156 MB / 490.8 MB, free: 14.28 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001918/0.762, allocations: 0.8739 MB / 491.6 MB, free: 13.31 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001755/0.7638, allocations: 0.6685 MB / 492.3 MB, free: 12.64 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.071e-05/0.7638, allocations: 0 / 492.3 MB, free: 12.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.00459/0.7684, allocations: 1.79 MB / 494.1 MB, free: 10.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00106/0.7695, allocations: 2.444 MB / 496.5 MB, free: 8.211 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.737e-05/0.7696, allocations: 4 kB / 496.5 MB, free: 8.207 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002102/0.7717, allocations: 0.5003 MB / 497 MB, free: 7.703 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001396/0.7731, allocations: 179.7 kB / 497.2 MB, free: 7.527 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01189/0.785, allocations: 5.391 MB / 0.4908 GB, free: 1.992 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001985/0.7871, allocations: 190.9 kB / 0.491 GB, free: 1.805 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002071/0.7873, allocations: 44 kB / 0.491 GB, free: 1.762 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.7873, allocations: 4 kB / 0.491 GB, free: 1.758 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004292/0.7916, allocations: 1.726 MB / 0.4927 GB, free: 28 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.014e-05/0.7917, allocations: 7.984 kB / 0.4927 GB, free: 20 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001782/0.7935, allocations: 496.9 kB / 0.4932 GB, free: 15.53 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00135/0.7949, allocations: 167.7 kB / 0.4934 GB, free: 15.37 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01175/0.8067, allocations: 5.446 MB / 0.4987 GB, free: 9.785 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001381/0.8081, allocations: 163.2 kB / 0.4989 GB, free: 9.625 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001607/0.8083, allocations: 48 kB / 0.4989 GB, free: 9.578 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.0004863/0.8088, allocations: 220.6 kB / 0.4991 GB, free: 9.355 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004758/0.8093, allocations: 138.3 kB / 0.4992 GB, free: 9.219 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005477/0.8099, allocations: 164.5 kB / 0.4994 GB, free: 9.055 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-05/0.8099, allocations: 12 kB / 0.4994 GB, free: 9.043 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-05/0.8099, allocations: 8.125 kB / 0.4994 GB, free: 9.035 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.063e-05/0.8099, allocations: 7.969 kB / 0.4994 GB, free: 9.027 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01041/0.8204, allocations: 3.681 MB / 0.503 GB, free: 5.289 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.219e-05/0.8204, allocations: 0 / 0.503 GB, free: 5.289 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000925/0.8214, allocations: 95.77 kB / 0.5031 GB, free: 5.195 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001903/0.8233, allocations: 485.2 kB / 0.5036 GB, free: 4.719 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002239/0.8235, allocations: 31.94 kB / 0.5036 GB, free: 4.688 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01168/0.8352, allocations: 5.333 MB / 0.5088 GB, free: 15.21 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.237e-06/0.8353, allocations: 0 / 0.5088 GB, free: 15.21 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006181/0.8415, allocations: 2.564 MB / 0.5113 GB, free: 12.62 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001197/0.8427, allocations: 359.3 kB / 0.5117 GB, free: 12.25 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003751/0.8431, allocations: 31.98 kB / 0.5117 GB, free: 12.22 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001478/0.8446, allocations: 111.9 kB / 0.5118 GB, free: 12.11 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007296/0.8454, allocations: 176.7 kB / 0.512 GB, free: 11.94 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001246/0.8455, allocations: 31.98 kB / 0.512 GB, free: 11.91 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001963/0.8475, allocations: 0.7847 MB / 0.5128 GB, free: 11.11 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.82e-07/0.8476, allocations: 0 / 0.5128 GB, free: 11.11 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003794/0.8514, allocations: 0.8371 MB / 0.5136 GB, free: 10.27 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.00681/0.8582, allocations: 3.218 MB / 0.5167 GB, free: 7.031 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007943/0.8662, allocations: 2.882 MB / 0.5195 GB, free: 4.129 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.508e-05/0.8663, allocations: 0.5625 kB / 0.5195 GB, free: 4.125 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003016/0.8693, allocations: 1.017 MB / 0.5205 GB, free: 3.098 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002762/0.8721, allocations: 336.8 kB / 0.5208 GB, free: 2.766 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2943/1.166, allocations: 3.193 MB / 0.524 GB, free: 128.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002512/1.169, allocations: 1.68 MB / 0.5256 GB, free: 127.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001674/1.171, allocations: 0.5998 MB / 0.5262 GB, free: 127.8 MB / 442.7 MB Notification: Performance of SimCode: time 1.312e-06/1.171, allocations: 2.297 kB / 0.5262 GB, free: 127.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.348/4.519, allocations: 39.36 MB / 0.5646 GB, free: 120.4 MB / 442.7 MB