Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.104/2.104, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.569e-05/4.58e-05, allocations: 4.719 kB / 292.2 MB, free: 8.723 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1129, allocations: 50.4 MB / 342.6 MB, free: 6.297 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4396/0.5525, allocations: 89.45 MB / 432.1 MB, free: 4.75 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003211/0.5529, allocations: 84.27 kB / 432.2 MB, free: 4.703 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07236/0.6253, allocations: 14.7 MB / 446.9 MB, free: 8.266 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.6253, allocations: 0 / 446.9 MB, free: 8.266 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.229e-05/0.6254, allocations: 16 kB / 446.9 MB, free: 8.25 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.003106/0.6286, allocations: 0.8997 MB / 447.8 MB, free: 7.344 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.497e-05/0.6286, allocations: 8.031 kB / 447.8 MB, free: 7.336 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002599/0.6289, allocations: 111.4 kB / 447.9 MB, free: 7.258 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008084/0.637, allocations: 90.95 kB / 448 MB, free: 7.168 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001555/0.6386, allocations: 0.5057 MB / 448.5 MB, free: 6.711 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.814e-05/0.6387, allocations: 63.31 kB / 448.6 MB, free: 6.672 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002053/0.6389, allocations: 67.95 kB / 448.6 MB, free: 6.625 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006721/0.6457, allocations: 0.7218 MB / 449.4 MB, free: 6.105 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.037e-05/0.6457, allocations: 0 / 449.4 MB, free: 6.105 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001399/0.6459, allocations: 30.62 kB / 449.4 MB, free: 6.098 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.139e-05/0.6459, allocations: 16 kB / 449.4 MB, free: 6.082 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001992/0.648, allocations: 0.51 MB / 449.9 MB, free: 5.762 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01677/0.6647, allocations: 2.741 MB / 452.6 MB, free: 3.516 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001701/0.6665, allocations: 0.5288 MB / 453.2 MB, free: 3.195 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001607/0.6681, allocations: 391.7 kB / 453.6 MB, free: 2.918 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.759e-05/0.6682, allocations: 12.44 kB / 453.6 MB, free: 2.906 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009047/0.6773, allocations: 358.7 kB / 453.9 MB, free: 2.633 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 8.226e-06/0.6774, allocations: 0 / 453.9 MB, free: 2.633 MB / 362.7 MB Notification: Performance of matching and sorting (n=59): time 0.002332/0.6797, allocations: 0.562 MB / 454.5 MB, free: 2.223 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001337/0.6799, allocations: 145.1 kB / 454.6 MB, free: 2.051 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001216/0.6811, allocations: 440.6 kB / 455.1 MB, free: 1.715 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001434/0.6813, allocations: 47.69 kB / 455.1 MB, free: 1.672 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004059/0.6817, allocations: 361 kB / 455.5 MB, free: 1.395 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000295/0.682, allocations: 175.2 kB / 455.6 MB, free: 1.246 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.318e-05/0.6821, allocations: 14.44 kB / 455.6 MB, free: 1.242 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001859/0.6823, allocations: 335.7 kB / 456 MB, free: 0.918 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007789/0.6831, allocations: 195.5 kB / 456.2 MB, free: 0.8047 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009786/0.6841, allocations: 363 kB / 456.5 MB, free: 488 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008228/0.6849, allocations: 216.2 kB / 456.7 MB, free: 344 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.547e-05/0.685, allocations: 7.953 kB / 456.7 MB, free: 336 kB / 362.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.002599/0.6876, allocations: 0.6723 MB / 457.4 MB, free: 15.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008606/0.6885, allocations: 1.567 MB / 459 MB, free: 14.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.774e-05/0.6885, allocations: 4 kB / 459 MB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0011/0.6896, allocations: 173.5 kB / 459.1 MB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009737/0.6906, allocations: 99.81 kB / 459.2 MB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006737/0.6974, allocations: 3.591 MB / 462.8 MB, free: 9.965 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009328/0.6983, allocations: 91.55 kB / 462.9 MB, free: 9.875 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.998e-05/0.6984, allocations: 28 kB / 463 MB, free: 9.848 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.6985, allocations: 4 kB / 463 MB, free: 9.844 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001691/0.7002, allocations: 0.6198 MB / 463.6 MB, free: 9.215 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.347e-06/0.7002, allocations: 4 kB / 463.6 MB, free: 9.211 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006621/0.7009, allocations: 158.2 kB / 463.7 MB, free: 9.051 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006329/0.7015, allocations: 91.83 kB / 463.8 MB, free: 8.961 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005132/0.7066, allocations: 3.581 MB / 467.4 MB, free: 5.109 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006971/0.7074, allocations: 75.62 kB / 467.5 MB, free: 5.035 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.731e-05/0.7075, allocations: 27.95 kB / 467.5 MB, free: 5.008 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.meanVoltage.y_last,meanVoltage.y_last,$PRE.meanCurrent.y_last,meanCurrent.y_last,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y_last,rootMeanSquareVoltage.mean.y_last,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,$PRE.rectifier.thyristor_p1.off,rectifier.thyristor_p1.off,$PRE.rectifier.thyristor_p2.off,rectifier.thyristor_p2.off,$PRE.rectifier.thyristor_n1.off,rectifier.thyristor_n1.off,$PRE.rectifier.thyristor_n2.off,rectifier.thyristor_n2.off,pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$PRE.pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerPositive[1].entryTime,$PRE.pulse2.twoPulse.timerNegative[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 65 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002962/0.7078, allocations: 156.8 kB / 467.7 MB, free: 4.848 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002172/0.708, allocations: 67.23 kB / 467.7 MB, free: 4.781 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002262/0.7083, allocations: 73.91 kB / 467.8 MB, free: 4.711 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-05/0.7083, allocations: 7.984 kB / 467.8 MB, free: 4.703 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.259e-06/0.7083, allocations: 0 / 467.8 MB, free: 4.703 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.085e-05/0.7083, allocations: 3.984 kB / 467.8 MB, free: 4.699 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003537/0.7119, allocations: 1.458 MB / 469.3 MB, free: 3.176 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.7119, allocations: 0 / 469.3 MB, free: 3.176 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005373/0.7125, allocations: 55.89 kB / 469.3 MB, free: 3.121 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007512/0.7132, allocations: 153.6 kB / 469.5 MB, free: 2.965 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.897e-05/0.7133, allocations: 12.06 kB / 469.5 MB, free: 2.953 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005157/0.7185, allocations: 3.524 MB / 473 MB, free: 15.16 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.7186, allocations: 7.984 kB / 473 MB, free: 15.16 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002574/0.7211, allocations: 0.9678 MB / 474 MB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003745/0.7215, allocations: 188.4 kB / 474.2 MB, free: 13.95 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001333/0.7217, allocations: 12 kB / 474.2 MB, free: 13.94 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006667/0.7224, allocations: 47.97 kB / 474.2 MB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002697/0.7226, allocations: 84.33 kB / 474.3 MB, free: 13.81 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.143e-05/0.7227, allocations: 16 kB / 474.3 MB, free: 13.8 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006303/0.7234, allocations: 329.6 kB / 474.6 MB, free: 13.48 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.7234, allocations: 0 / 474.6 MB, free: 13.48 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001787/0.7252, allocations: 351 kB / 475 MB, free: 13.14 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,inductor.i) * Number of discrete variables: 20 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off,meanVoltage.y_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 7 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_p2.off,rectifier.thyristor_p1.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003012/0.7282, allocations: 1.627 MB / 476.6 MB, free: 11.46 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003226/0.7315, allocations: 1.358 MB / 478 MB, free: 10.07 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.625e-06/0.7315, allocations: 0 / 478 MB, free: 10.07 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001167/0.7327, allocations: 0.5323 MB / 478.5 MB, free: 9.52 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00104/0.7338, allocations: 110.7 kB / 478.6 MB, free: 9.418 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003722/0.7375, allocations: 1.156 MB / 479.8 MB, free: 8.207 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007043/0.7382, allocations: 0.9662 MB / 480.7 MB, free: 7.215 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000523/0.7388, allocations: 239.4 kB / 481 MB, free: 6.98 MB / 394.7 MB Notification: Performance of SimCode: time 1.382e-06/0.7388, allocations: 0 / 481 MB, free: 6.98 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.039/3.778, allocations: 16.94 MB / 497.9 MB, free: 6.051 MB / 410.7 MB