Running command: translateModel(ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|meanCurrent.x|meanVoltage.x|rootMeanSquareVoltage.mean.x|meanCurrent.y|meanVoltage.y|pulse2m.twomPulse.timerNegative.1..entryTime|pulse2m.twomPulse.timerNegative.2..entryTime|pulse2m.twomPulse.timerNegative.3..entryTime|pulse2m.twomPulse.timerPositive.1..entryTime|pulse2m.twomPulse.timerPositive.2..entryTime|pulse2m.twomPulse.timerPositive.3..entryTime|rectifier.pre.1..u|rectifier.pre.2..u|rectifier.pre.3..u|rectifier.thyristor_p.idealThyristor.1..off|rectifier.thyristor_p.idealThyristor.2..off|rectifier.thyristor_p.idealThyristor.3..off|rootMeanSquareVoltage.mean.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse") Notification: Performance of loadModel(ModelicaTest): time 2.493/2.493, allocations: 269 MB / 284.1 MB, free: 3.633 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.162e-05/3.153e-05, allocations: 7.984 kB / 349 MB, free: 10.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1326, allocations: 61.9 MB / 410.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse): time 0.008987/0.1416, allocations: 5.203 MB / 416.1 MB, free: 7.625 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.004966/0.1466, allocations: 1.691 MB / 417.8 MB, free: 5.93 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001189/0.1479, allocations: 55.81 kB / 417.9 MB, free: 5.875 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001368/0.1493, allocations: 278.5 kB / 418.2 MB, free: 5.602 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002175/0.1515, allocations: 414.6 kB / 418.6 MB, free: 5.195 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00139/0.1529, allocations: 271.5 kB / 418.8 MB, free: 4.93 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.003054/0.156, allocations: 1.162 MB / 420 MB, free: 3.766 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002318/0.1584, allocations: 1.127 MB / 421.1 MB, free: 2.621 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00146/0.1599, allocations: 0.5843 MB / 421.7 MB, free: 2.035 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001592/0.1615, allocations: 0.7122 MB / 422.4 MB, free: 1.32 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005699/0.1621, allocations: 68 kB / 422.5 MB, free: 1.254 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003737/0.1625, allocations: 72 kB / 422.6 MB, free: 1.184 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006455/0.1632, allocations: 454.4 kB / 423 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006649/0.1639, allocations: 172 kB / 423.2 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3273/0.4911, allocations: 2.889 MB / 426.1 MB, free: 5.211 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.4912, allocations: 0.5 kB / 426.1 MB, free: 5.211 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.829e-06/0.4912, allocations: 0.8438 kB / 426.1 MB, free: 5.211 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002083/0.4914, allocations: 0 / 426.1 MB, free: 5.211 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 470 * Number of variables: 470 Notification: Performance of Generate backend data structure: time 0.00846/0.4999, allocations: 2.097 MB / 428.1 MB, free: 4.27 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/0.5, allocations: 10.12 kB / 428.2 MB, free: 4.27 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001662/0.5017, allocations: 240.2 kB / 428.4 MB, free: 4.148 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004799/0.5065, allocations: 1.361 MB / 429.8 MB, free: 3.762 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002274/0.5068, allocations: 146.9 kB / 429.9 MB, free: 3.754 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000985/0.5078, allocations: 183.8 kB / 430.1 MB, free: 3.754 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00972/0.5175, allocations: 2.585 MB / 432.7 MB, free: 3.578 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.508e-05/0.5176, allocations: 3.5 kB / 432.7 MB, free: 3.578 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003902/0.518, allocations: 76.45 kB / 432.7 MB, free: 3.578 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001283/0.5182, allocations: 76.36 kB / 432.8 MB, free: 3.574 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008537/0.5267, allocations: 2.278 MB / 435.1 MB, free: 3.555 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0221/0.5489, allocations: 7.376 MB / 442.5 MB, free: 100 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005147/0.5541, allocations: 1.823 MB / 444.3 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001476/0.5543, allocations: 13.41 kB / 444.3 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00301/0.5573, allocations: 1.02 MB / 445.3 MB, free: 14.47 MB / 362.7 MB Notification: Performance of pre-optimization done (n=134): time 5.099e-06/0.5573, allocations: 1.219 kB / 445.3 MB, free: 14.47 MB / 362.7 MB Notification: Performance of matching and sorting (n=134): time 0.01843/0.5758, allocations: 3.876 MB / 449.2 MB, free: 12.44 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001734/0.576, allocations: 257.7 kB / 449.5 MB, free: 12.16 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003249/0.5792, allocations: 1.175 MB / 450.6 MB, free: 11.51 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005181/0.5798, allocations: 68.81 kB / 450.7 MB, free: 11.45 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001164/0.581, allocations: 0.8069 MB / 451.5 MB, free: 10.73 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000864/0.5819, allocations: 406.1 kB / 451.9 MB, free: 10.4 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001456/0.5821, allocations: 34.44 kB / 451.9 MB, free: 10.37 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002045/0.5823, allocations: 366.7 kB / 452.3 MB, free: 10.02 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002392/0.5847, allocations: 0.7349 MB / 453 MB, free: 9.633 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002958/0.5877, allocations: 1.074 MB / 454.1 MB, free: 8.848 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002606/0.5903, allocations: 0.8134 MB / 454.9 MB, free: 8.426 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.579e-05/0.5904, allocations: 0 / 454.9 MB, free: 8.426 MB / 362.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.006338/0.5968, allocations: 2.126 MB / 457 MB, free: 7.352 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001423/0.5982, allocations: 2.8 MB / 459.8 MB, free: 4.363 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.303e-05/0.5983, allocations: 6.188 kB / 459.8 MB, free: 4.363 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002546/0.6008, allocations: 0.5437 MB / 460.4 MB, free: 4.082 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001641/0.6025, allocations: 189.8 kB / 460.6 MB, free: 4.051 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01456/0.6171, allocations: 6.06 MB / 466.6 MB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002369/0.6195, allocations: 222.6 kB / 466.9 MB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003059/0.6199, allocations: 52 kB / 466.9 MB, free: 14.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.6199, allocations: 4 kB / 466.9 MB, free: 14.14 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005864/0.6258, allocations: 2.032 MB / 468.9 MB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.671e-05/0.6259, allocations: 8.625 kB / 468.9 MB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001978/0.6279, allocations: 0.5359 MB / 469.5 MB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001562/0.6294, allocations: 191.9 kB / 469.7 MB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0141/0.6436, allocations: 6.078 MB / 475.7 MB, free: 5.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00175/0.6454, allocations: 195 kB / 475.9 MB, free: 5.039 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002405/0.6457, allocations: 44 kB / 476 MB, free: 4.996 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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 (138): * Single equations (assignments): 137 * 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 36} Notification: Performance of prepare postOptimizeDAE: time 0.002555/0.6482, allocations: 0.7642 MB / 476.7 MB, free: 4.242 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00065/0.6489, allocations: 146.2 kB / 476.9 MB, free: 4.098 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000671/0.6496, allocations: 186.7 kB / 477.1 MB, free: 3.906 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.919e-05/0.6496, allocations: 12 kB / 477.1 MB, free: 3.895 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.839e-05/0.6496, allocations: 3.984 kB / 477.1 MB, free: 3.891 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.615e-05/0.6497, allocations: 7.984 kB / 477.1 MB, free: 3.883 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01295/0.6626, allocations: 4.04 MB / 481.1 MB, free: 15.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.246e-05/0.6627, allocations: 0 / 481.1 MB, free: 15.82 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001212/0.6639, allocations: 117.9 kB / 481.2 MB, free: 15.71 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002375/0.6663, allocations: 0.528 MB / 481.8 MB, free: 15.18 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003244/0.6667, allocations: 35.94 kB / 481.8 MB, free: 15.14 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0146/0.6813, allocations: 6.04 MB / 487.9 MB, free: 8.984 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.6814, allocations: 0 / 487.9 MB, free: 8.984 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008952/0.6903, allocations: 3.056 MB / 490.9 MB, free: 5.898 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00165/0.692, allocations: 410.9 kB / 491.3 MB, free: 5.477 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006854/0.6928, allocations: 35.98 kB / 491.3 MB, free: 5.441 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001937/0.6947, allocations: 123.9 kB / 491.5 MB, free: 5.32 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009144/0.6957, allocations: 193 kB / 491.7 MB, free: 5.129 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001751/0.6959, allocations: 35.98 kB / 491.7 MB, free: 5.094 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002349/0.6982, allocations: 0.9004 MB / 492.6 MB, free: 4.188 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.01e-07/0.6983, allocations: 0 / 492.6 MB, free: 4.188 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004732/0.703, allocations: 0.9653 MB / 493.6 MB, free: 3.219 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 42 (pulse2m.twomPulse.negativeThreshold[3].y,pulse2m.twomPulse.positiveThreshold[3].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.positiveThreshold[2].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[1].off,rectifier.thyristor_p.idealThyristor[2].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 83 * 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 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006144/0.7037, allocations: 182.6 kB / 493.7 MB, free: 3.043 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01067/0.7144, allocations: 3.436 MB / 497.2 MB, free: 15.63 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.406e-05/0.7144, allocations: 4.5 kB / 497.2 MB, free: 15.63 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004043/0.7185, allocations: 1.273 MB / 498.4 MB, free: 14.37 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003238/0.7218, allocations: 361.9 kB / 498.8 MB, free: 14.02 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01292/0.7347, allocations: 4.542 MB / 0.4915 GB, free: 9.441 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002668/0.7375, allocations: 1.801 MB / 0.4933 GB, free: 7.609 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007612/0.7383, allocations: 95.42 kB / 0.4934 GB, free: 7.516 MB / 410.7 MB Notification: Performance of SimCode: time 1.172e-06/0.7383, allocations: 0 / 0.4934 GB, free: 7.516 MB / 410.7 MB Notification: Performance of Templates: time 0.0758/0.8141, allocations: 34.43 MB / 0.527 GB, free: 5.195 MB / 442.7 MB