Running command: "" <> buildModelFMU(ModelicaTest.Electrical.PowerConverters.ThyristorBridge2mPulse_R,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Electrical_PowerConverters_ThyristorBridge2mPulse_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.686/2.686, allocations: 270 MB / 282.6 MB, free: 1.934 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.381e-05/3.389e-05, allocations: 0 / 347.1 MB, free: 3.211 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4566/0.4566, allocations: 61.87 MB / 408.9 MB, free: 10.82 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1871/0.6438, allocations: 103.1 MB / 0.5 GB, free: 3.602 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002996/0.6441, allocations: 79.94 kB / 0.5001 GB, free: 3.523 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5115/1.156, allocations: 41.13 MB / 0.5402 GB, free: 96.59 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.904e-06/1.156, allocations: 0 / 0.5402 GB, free: 96.59 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002676/1.156, allocations: 53.31 kB / 0.5403 GB, free: 96.59 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 497 * Number of variables: 497 Notification: Performance of Generate backend data structure: time 0.007981/1.164, allocations: 2.192 MB / 0.5424 GB, free: 95.43 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.565e-05/1.164, allocations: 11.44 kB / 0.5424 GB, free: 95.43 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001116/1.165, allocations: 284.8 kB / 0.5427 GB, free: 95.27 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009458/1.166, allocations: 249.1 kB / 0.5429 GB, free: 95.14 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00874/1.175, allocations: 2.248 MB / 0.5451 GB, free: 94.03 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002125/1.175, allocations: 157.3 kB / 0.5453 GB, free: 93.96 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000833/1.176, allocations: 193.8 kB / 0.5455 GB, free: 93.9 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007556/1.184, allocations: 2.634 MB / 0.5481 GB, free: 91.59 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.38e-05/1.184, allocations: 3.938 kB / 0.5481 GB, free: 91.59 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003887/1.184, allocations: 83.91 kB / 0.5481 GB, free: 91.51 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001207/1.184, allocations: 83.83 kB / 0.5482 GB, free: 91.43 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006489/1.191, allocations: 2.147 MB / 0.5503 GB, free: 89.28 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02065/1.212, allocations: 7.643 MB / 0.5578 GB, free: 81.58 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003906/1.215, allocations: 1.759 MB / 0.5595 GB, free: 79.82 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003377/1.219, allocations: 1.312 MB / 0.5608 GB, free: 78.52 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001449/1.219, allocations: 13.31 kB / 0.5608 GB, free: 78.5 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002337/1.221, allocations: 0.994 MB / 0.5618 GB, free: 77.48 MB / 442.7 MB Notification: Performance of pre-optimization done (n=138): time 5.34e-06/1.221, allocations: 0 / 0.5618 GB, free: 77.48 MB / 442.7 MB Notification: Performance of matching and sorting (n=138): time 0.004777/1.226, allocations: 1.866 MB / 0.5636 GB, free: 75.6 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001228/1.226, allocations: 256.6 kB / 0.5638 GB, free: 75.3 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002775/1.229, allocations: 1.226 MB / 0.565 GB, free: 74.06 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000431/1.23, allocations: 81.69 kB / 0.5651 GB, free: 73.97 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009253/1.231, allocations: 0.8175 MB / 0.5659 GB, free: 73.16 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006843/1.231, allocations: 409.8 kB / 0.5663 GB, free: 72.77 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000134/1.232, allocations: 32 kB / 0.5663 GB, free: 72.73 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001319/1.232, allocations: 366.8 kB / 0.5667 GB, free: 72.37 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001765/1.233, allocations: 0.7262 MB / 0.5674 GB, free: 71.64 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002046/1.236, allocations: 1.042 MB / 0.5684 GB, free: 70.49 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001948/1.238, allocations: 0.7934 MB / 0.5692 GB, free: 69.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.449e-05/1.238, allocations: 8 kB / 0.5692 GB, free: 69.69 MB / 442.7 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.004912/1.242, allocations: 2.09 MB / 0.5712 GB, free: 67.59 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005787/1.243, allocations: 2.442 MB / 0.5736 GB, free: 64.96 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.136e-05/1.243, allocations: 8 kB / 0.5736 GB, free: 64.95 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002302/1.245, allocations: 0.5746 MB / 0.5742 GB, free: 64.37 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00151/1.247, allocations: 199.6 kB / 0.5744 GB, free: 64.18 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01186/1.259, allocations: 6.127 MB / 0.5803 GB, free: 57.91 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002292/1.261, allocations: 222.8 kB / 0.5806 GB, free: 57.69 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002392/1.262, allocations: 52 kB / 0.5806 GB, free: 57.64 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/1.262, allocations: 1.719 kB / 0.5806 GB, free: 57.64 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004363/1.266, allocations: 2.035 MB / 0.5826 GB, free: 55.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.392e-05/1.266, allocations: 8 kB / 0.5826 GB, free: 55.59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001812/1.268, allocations: 0.5633 MB / 0.5832 GB, free: 55.03 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001385/1.269, allocations: 191.6 kB / 0.5833 GB, free: 54.84 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01152/1.281, allocations: 6.162 MB / 0.5894 GB, free: 48.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001601/1.282, allocations: 187.1 kB / 0.5895 GB, free: 48.36 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001505/1.283, allocations: 52 kB / 0.5896 GB, free: 48.31 MB / 442.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: 69 ($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,$PRE.rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[1].off,$PRE.rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[2].off,$PRE.rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[3].off,$PRE.rectifier.pre_p[1].u,rectifier.pre_p[1].u,rectifier.pre_p[1].y,$PRE.rectifier.pre_p[2].u,rectifier.pre_p[2].u,rectifier.pre_p[2].y,$PRE.rectifier.pre_p[3].u,rectifier.pre_p[3].u,rectifier.pre_p[3].y,$PRE.rectifier.pre_n[1].u,rectifier.pre_n[1].u,rectifier.pre_n[1].y,$PRE.rectifier.pre_n[2].u,rectifier.pre_n[2].u,rectifier.pre_n[2].y,$PRE.rectifier.pre_n[3].u,rectifier.pre_n[3].u,rectifier.pre_n[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 (144): * Single equations (assignments): 143 * 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 38} Notification: Performance of prepare postOptimizeDAE: time 0.0005041/1.283, allocations: 249.4 kB / 0.5898 GB, free: 48.05 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005005/1.284, allocations: 146.2 kB / 0.59 GB, free: 47.91 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006038/1.284, allocations: 186.9 kB / 0.5901 GB, free: 47.72 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.411e-05/1.284, allocations: 16 kB / 0.5902 GB, free: 47.71 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.699e-06/1.284, allocations: 0 / 0.5902 GB, free: 47.71 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.771e-05/1.284, allocations: 11.92 kB / 0.5902 GB, free: 47.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009904/1.294, allocations: 4.199 MB / 0.5943 GB, free: 43.47 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/1.294, allocations: 4 kB / 0.5943 GB, free: 43.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009003/1.295, allocations: 107.8 kB / 0.5944 GB, free: 43.36 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002029/1.297, allocations: 0.5363 MB / 0.5949 GB, free: 42.82 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002409/1.298, allocations: 27.98 kB / 0.5949 GB, free: 42.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01173/1.309, allocations: 6.022 MB / 0.6008 GB, free: 36.64 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/1.309, allocations: 4 kB / 0.6008 GB, free: 36.63 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006388/1.316, allocations: 2.88 MB / 0.6036 GB, free: 33.73 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001429/1.317, allocations: 414.9 kB / 0.604 GB, free: 33.31 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004444/1.318, allocations: 47.97 kB / 0.6041 GB, free: 33.26 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001717/1.319, allocations: 131.8 kB / 0.6042 GB, free: 33.13 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008738/1.32, allocations: 233 kB / 0.6044 GB, free: 32.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001343/1.321, allocations: 48.05 kB / 0.6045 GB, free: 32.86 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002023/1.323, allocations: 0.9261 MB / 0.6054 GB, free: 31.93 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.91e-07/1.323, allocations: 0 / 0.6054 GB, free: 31.93 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004105/1.327, allocations: 0.9735 MB / 0.6063 GB, free: 30.95 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: 48 (pulse2m.twomPulse.negativeThreshold[3].y,pulse2m.twomPulse.positiveThreshold[3].y,pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.positiveThreshold[1].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.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.pre_p[1].u,rectifier.pre_p[1].y,rectifier.pre_p[2].u,rectifier.pre_p[2].y,rectifier.pre_p[3].u,rectifier.pre_p[3].y,rectifier.pre_n[1].u,rectifier.pre_n[1].y,rectifier.pre_n[2].u,rectifier.pre_n[2].y,rectifier.pre_n[3].u,rectifier.pre_n[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: 15 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.pre_n[3].u,rectifier.pre_n[2].u,rectifier.pre_n[1].u,rectifier.pre_p[3].u,rectifier.pre_p[2].u,rectifier.pre_p[1].u,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 85 * 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 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.006838/1.334, allocations: 3.543 MB / 0.6098 GB, free: 27.38 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00811/1.342, allocations: 3.326 MB / 0.613 GB, free: 24.04 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.268e-05/1.342, allocations: 0.5625 kB / 0.613 GB, free: 24.04 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002884/1.345, allocations: 1.149 MB / 0.6141 GB, free: 22.88 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002966/1.348, allocations: 381.4 kB / 0.6145 GB, free: 22.52 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01104/1.359, allocations: 3.67 MB / 0.6181 GB, free: 18.79 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001892/1.361, allocations: 1.841 MB / 0.6199 GB, free: 16.92 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001526/1.362, allocations: 0.6945 MB / 0.6206 GB, free: 16.22 MB / 442.7 MB Notification: Performance of SimCode: time 1.302e-06/1.362, allocations: 0 / 0.6206 GB, free: 16.22 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.354/4.716, allocations: 45.66 MB / 0.6652 GB, free: 2.637 MB / 474.7 MB