Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_HalfControlledBridge2Pulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.039/2.039, allocations: 225.8 MB / 239.3 MB, free: 11.21 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.162e-05/3.166e-05, allocations: 4 kB / 292.2 MB, free: 8.742 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.104, allocations: 50.4 MB / 342.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5056/0.6096, allocations: 89.24 MB / 431.9 MB, free: 4.656 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004149/0.6101, allocations: 77.02 kB / 432 MB, free: 4.613 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05909/0.6692, allocations: 11.35 MB / 443.3 MB, free: 11 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.6693, allocations: 0 / 443.3 MB, free: 11 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.588e-05/0.6694, allocations: 19.98 kB / 443.3 MB, free: 10.98 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: 161 * Number of variables: 161 Notification: Performance of Generate backend data structure: time 0.003166/0.6726, allocations: 0.8954 MB / 444.2 MB, free: 10.08 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/0.6726, allocations: 12.03 kB / 444.2 MB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001997/0.6728, allocations: 102.9 kB / 444.3 MB, free: 9.996 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002248/0.6731, allocations: 90.72 kB / 444.4 MB, free: 9.91 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001095/0.6742, allocations: 494.4 kB / 444.9 MB, free: 9.473 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.253e-05/0.6743, allocations: 53.73 kB / 445 MB, free: 9.438 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001462/0.6744, allocations: 73.41 kB / 445 MB, free: 9.387 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001681/0.6761, allocations: 0.6844 MB / 445.7 MB, free: 8.898 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.262e-05/0.6762, allocations: 4 kB / 445.7 MB, free: 8.895 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.607e-05/0.6763, allocations: 26.56 kB / 445.7 MB, free: 8.891 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.228e-05/0.6763, allocations: 20 kB / 445.8 MB, free: 8.871 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001364/0.6777, allocations: 0.492 MB / 446.3 MB, free: 8.559 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005734/0.6834, allocations: 2.668 MB / 448.9 MB, free: 6.367 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001364/0.6848, allocations: 0.5261 MB / 449.4 MB, free: 6.039 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008926/0.6857, allocations: 321.6 kB / 449.8 MB, free: 5.824 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.243e-05/0.6858, allocations: 8.438 kB / 449.8 MB, free: 5.816 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008107/0.6866, allocations: 338.4 kB / 450.1 MB, free: 5.562 MB / 362.7 MB Notification: Performance of pre-optimization done (n=57): time 3.317e-06/0.6866, allocations: 0 / 450.1 MB, free: 5.562 MB / 362.7 MB Notification: Performance of matching and sorting (n=57): time 0.001442/0.6881, allocations: 0.5455 MB / 450.6 MB, free: 5.164 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.856e-05/0.6882, allocations: 141 kB / 450.8 MB, free: 4.992 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007826/0.689, allocations: 433.7 kB / 451.2 MB, free: 4.664 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.307e-05/0.6891, allocations: 40.7 kB / 451.2 MB, free: 4.629 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002916/0.6894, allocations: 359.1 kB / 451.6 MB, free: 4.348 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001917/0.6896, allocations: 166.4 kB / 451.8 MB, free: 4.207 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.667e-05/0.6897, allocations: 13.5 kB / 451.8 MB, free: 4.203 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.6898, allocations: 337.2 kB / 452.1 MB, free: 3.875 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004871/0.6903, allocations: 186.9 kB / 452.3 MB, free: 3.762 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006452/0.691, allocations: 344.4 kB / 452.6 MB, free: 3.453 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005265/0.6915, allocations: 199.9 kB / 452.8 MB, free: 3.324 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.6916, allocations: 0 / 452.8 MB, free: 3.324 MB / 362.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001565/0.6931, allocations: 0.6189 MB / 453.4 MB, free: 2.875 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007002/0.6938, allocations: 1.577 MB / 455 MB, free: 1.207 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/0.6939, allocations: 4 kB / 455 MB, free: 1.203 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007561/0.6946, allocations: 147 kB / 455.2 MB, free: 1.098 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006422/0.6953, allocations: 91.08 kB / 455.3 MB, free: 1.012 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004038/0.6994, allocations: 2.317 MB / 457.6 MB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008641/0.7002, allocations: 97.75 kB / 457.7 MB, free: 14.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.639e-05/0.7003, allocations: 27.25 kB / 457.7 MB, free: 14.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.093e-05/0.7003, allocations: 4 kB / 457.7 MB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001465/0.7018, allocations: 0.5675 MB / 458.3 MB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.7018, allocations: 7.984 kB / 458.3 MB, free: 14.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006245/0.7025, allocations: 151.5 kB / 458.4 MB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005794/0.7031, allocations: 86.95 kB / 458.5 MB, free: 14.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004023/0.7071, allocations: 2.289 MB / 460.8 MB, free: 11.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000638/0.7078, allocations: 75.61 kB / 460.9 MB, free: 11.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.609e-05/0.7079, allocations: 20 kB / 460.9 MB, free: 11.9 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: 27 ($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,rectifier.diode_n1.off,rectifier.diode_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 (61): * Single equations (assignments): 60 * 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 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002747/0.7081, allocations: 164 kB / 461 MB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001964/0.7083, allocations: 63.31 kB / 461.1 MB, free: 11.67 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002104/0.7086, allocations: 65.59 kB / 461.2 MB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.638e-06/0.7086, allocations: 8 kB / 461.2 MB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.7086, allocations: 0 / 461.2 MB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-05/0.7086, allocations: 3.984 kB / 461.2 MB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003201/0.7118, allocations: 1.375 MB / 462.6 MB, free: 10.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.7119, allocations: 8.016 kB / 462.6 MB, free: 10.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004165/0.7123, allocations: 47.92 kB / 462.6 MB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006579/0.713, allocations: 136.8 kB / 462.7 MB, free: 9.969 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.044e-05/0.713, allocations: 11.95 kB / 462.8 MB, free: 9.957 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004023/0.7171, allocations: 2.301 MB / 465.1 MB, free: 7.52 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.7171, allocations: 4 kB / 465.1 MB, free: 7.516 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002284/0.7194, allocations: 0.9279 MB / 466 MB, free: 6.559 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004031/0.7198, allocations: 188.2 kB / 466.2 MB, free: 6.355 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001327/0.72, allocations: 23.88 kB / 466.2 MB, free: 6.332 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006454/0.7206, allocations: 39.97 kB / 466.2 MB, free: 6.293 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002277/0.7209, allocations: 68.41 kB / 466.3 MB, free: 6.227 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.111e-05/0.7209, allocations: 16 kB / 466.3 MB, free: 6.211 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006378/0.7216, allocations: 333.6 kB / 466.6 MB, free: 5.887 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.7216, allocations: 0 / 466.6 MB, free: 5.887 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00154/0.7232, allocations: 331.2 kB / 467 MB, free: 5.562 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * 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.diode_n1.off,rectifier.diode_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: 5 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_p2.off,rectifier.thyristor_p1.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 34 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.002759/0.7259, allocations: 1.581 MB / 468.5 MB, free: 3.941 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002898/0.7289, allocations: 1.125 MB / 469.7 MB, free: 2.801 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.417e-06/0.7289, allocations: 256 / 469.7 MB, free: 2.801 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001041/0.73, allocations: 443.4 kB / 470.1 MB, free: 2.359 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009713/0.731, allocations: 118.3 kB / 470.2 MB, free: 2.246 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004416/0.7354, allocations: 1.054 MB / 471.3 MB, free: 1.137 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009676/0.7364, allocations: 0.9469 MB / 472.2 MB, free: 168 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006875/0.7371, allocations: 235.4 kB / 472.5 MB, free: 15.93 MB / 394.7 MB Notification: Performance of SimCode: time 1.212e-06/0.7371, allocations: 7.938 kB / 472.5 MB, free: 15.92 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.09/3.827, allocations: 13.77 MB / 486.2 MB, free: 2.18 MB / 394.7 MB