Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|meanCurrent.x|meanVoltage.x|rootMeanSquareVoltage.mean.x|idealthyristor.off|meanCurrent.y|meanVoltage.y|pulse2.twoPulse.timerNegative.1..entryTime|pulse2.twoPulse.timerPositive.1..entryTime|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R") Notification: Performance of loadModel(Modelica): time 2.221/2.221, allocations: 194.9 MB / 211.2 MB, free: 8.152 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.073e-05/3.061e-05, allocations: 3.906 kB / 258.8 MB, free: 8.484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3441/0.3441, allocations: 44.5 MB / 303.3 MB, free: 12.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R): time 0.005437/0.3496, allocations: 2.954 MB / 306.3 MB, free: 10.39 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002909/0.3526, allocations: 0.9677 MB / 307.2 MB, free: 9.613 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004727/0.3531, allocations: 21.66 kB / 307.3 MB, free: 9.609 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004223/0.3536, allocations: 72.58 kB / 307.3 MB, free: 9.547 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000601/0.3542, allocations: 139.5 kB / 307.5 MB, free: 9.422 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007635/0.355, allocations: 169.6 kB / 307.6 MB, free: 9.289 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007287/0.3557, allocations: 273 kB / 307.9 MB, free: 9.074 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004047/0.3561, allocations: 168.9 kB / 308.1 MB, free: 8.906 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000317/0.3565, allocations: 135.6 kB / 308.2 MB, free: 8.773 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002902/0.3568, allocations: 147.4 kB / 308.3 MB, free: 8.629 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.202e-05/0.3569, allocations: 16 kB / 308.3 MB, free: 8.613 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.574e-05/0.3569, allocations: 12 kB / 308.4 MB, free: 8.602 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001206/0.3571, allocations: 75.69 kB / 308.4 MB, free: 8.527 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001168/0.3572, allocations: 32 kB / 308.5 MB, free: 8.496 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006674/0.3579, allocations: 464.6 kB / 308.9 MB, free: 8.043 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.3579, allocations: 0 / 308.9 MB, free: 8.043 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.885e-06/0.3579, allocations: 0 / 308.9 MB, free: 8.043 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.438e-05/0.3579, allocations: 0 / 308.9 MB, free: 8.043 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.001782/0.3597, allocations: 0.6712 MB / 309.6 MB, free: 7.32 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.3598, allocations: 8.031 kB / 309.6 MB, free: 7.312 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001791/0.36, allocations: 55.44 kB / 309.7 MB, free: 7.258 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008369/0.3608, allocations: 367 kB / 310 MB, free: 6.863 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.544e-05/0.3609, allocations: 36.98 kB / 310 MB, free: 6.828 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/0.361, allocations: 40 kB / 310.1 MB, free: 6.789 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001237/0.3623, allocations: 443 kB / 310.5 MB, free: 6.344 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.365e-05/0.3623, allocations: 0 / 310.5 MB, free: 6.344 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.982e-05/0.3624, allocations: 19.98 kB / 310.5 MB, free: 6.324 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.398e-05/0.3624, allocations: 8 kB / 310.5 MB, free: 6.316 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00105/0.3635, allocations: 323.8 kB / 310.9 MB, free: 5.996 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00398/0.3675, allocations: 1.571 MB / 312.4 MB, free: 4.328 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008738/0.3684, allocations: 270.8 kB / 312.7 MB, free: 4.055 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.021e-05/0.3685, allocations: 4 kB / 312.7 MB, free: 4.051 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006808/0.3692, allocations: 248.9 kB / 312.9 MB, free: 3.789 MB / 250.7 MB Notification: Performance of pre-optimization done (n=31): time 2.885e-06/0.3692, allocations: 0 / 312.9 MB, free: 3.789 MB / 250.7 MB Notification: Performance of matching and sorting (n=31): time 0.002011/0.3712, allocations: 0.5379 MB / 313.5 MB, free: 3.223 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.045e-05/0.3713, allocations: 118.7 kB / 313.6 MB, free: 3.082 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005127/0.3719, allocations: 283.6 kB / 313.9 MB, free: 2.797 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 6.764e-05/0.372, allocations: 37.7 kB / 313.9 MB, free: 2.754 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002396/0.3722, allocations: 282.6 kB / 314.2 MB, free: 2.477 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.3723, allocations: 90.73 kB / 314.3 MB, free: 2.387 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.441e-05/0.3724, allocations: 12 kB / 314.3 MB, free: 2.375 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.3725, allocations: 322.8 kB / 314.6 MB, free: 2.051 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004139/0.373, allocations: 120.8 kB / 314.7 MB, free: 1.93 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005339/0.3735, allocations: 259.1 kB / 315 MB, free: 1.613 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004488/0.374, allocations: 141.1 kB / 315.1 MB, free: 1.477 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.374, allocations: 0 / 315.1 MB, free: 1.477 MB / 250.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.00123/0.3752, allocations: 415.5 kB / 315.5 MB, free: 1.062 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007601/0.376, allocations: 1.663 MB / 317.2 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.643e-05/0.3761, allocations: 7.938 kB / 317.2 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003465/0.3764, allocations: 48.83 kB / 317.2 MB, free: 15.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004805/0.3769, allocations: 67.84 kB / 317.3 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001978/0.3789, allocations: 1.499 MB / 318.8 MB, free: 13.51 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005561/0.3795, allocations: 59.78 kB / 318.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.708e-05/0.3796, allocations: 23.95 kB / 318.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.3796, allocations: 4 kB / 318.9 MB, free: 13.42 MB / 266.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001044/0.3807, allocations: 360.3 kB / 319.2 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/0.3807, allocations: 4.531 kB / 319.2 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002302/0.3809, allocations: 48.83 kB / 319.3 MB, free: 13.01 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003916/0.3813, allocations: 63.84 kB / 319.4 MB, free: 12.95 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001869/0.3832, allocations: 1.495 MB / 320.8 MB, free: 11.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004384/0.3837, allocations: 47.77 kB / 320.9 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.044e-05/0.3838, allocations: 16 kB / 320.9 MB, free: 11.25 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition2,$whenCondition1,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.twoPulse.fire_n[1],pulse2.fire_p,$PRE.idealthyristor.off,idealthyristor.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004389/0.3842, allocations: 208.8 kB / 321.1 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.3843, allocations: 35.66 kB / 321.1 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001169/0.3845, allocations: 35.95 kB / 321.2 MB, free: 10.97 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/0.3845, allocations: 8 kB / 321.2 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.3845, allocations: 0 / 321.2 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.267e-06/0.3845, allocations: 7.922 kB / 321.2 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002325/0.3869, allocations: 0.9026 MB / 322.1 MB, free: 9.984 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.3869, allocations: 0 / 322.1 MB, free: 9.984 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003157/0.3873, allocations: 35.98 kB / 322.1 MB, free: 9.949 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002453/0.3875, allocations: 40.78 kB / 322.2 MB, free: 9.906 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.59e-05/0.3876, allocations: 8 kB / 322.2 MB, free: 9.898 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001773/0.3894, allocations: 1.422 MB / 323.6 MB, free: 8.344 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/0.3894, allocations: 4 kB / 323.6 MB, free: 8.34 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001715/0.3911, allocations: 0.6029 MB / 324.2 MB, free: 7.699 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002597/0.3914, allocations: 140.7 kB / 324.4 MB, free: 7.543 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.235e-05/0.3915, allocations: 4 kB / 324.4 MB, free: 7.539 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004158/0.392, allocations: 35.97 kB / 324.4 MB, free: 7.504 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001423/0.3921, allocations: 31.91 kB / 324.4 MB, free: 7.473 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.62e-05/0.3922, allocations: 15.98 kB / 324.4 MB, free: 7.457 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003662/0.3926, allocations: 219.1 kB / 324.7 MB, free: 7.246 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3926, allocations: 0 / 324.7 MB, free: 7.246 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.001059/0.3936, allocations: 191.3 kB / 324.8 MB, free: 7.059 MB / 266.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: 15 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.twoPulse.fire_n[1],pulse2.fire_p,idealthyristor.off) * Number of discrete states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,idealthyristor.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 21 * 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 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002294/0.3939, allocations: 127 kB / 325 MB, free: 6.926 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001946/0.3959, allocations: 0.725 MB / 325.7 MB, free: 6.176 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.706e-06/0.3959, allocations: 3.906 kB / 325.7 MB, free: 6.172 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006895/0.3966, allocations: 287.2 kB / 326 MB, free: 5.879 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005196/0.3971, allocations: 45.06 kB / 326 MB, free: 5.832 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002456/0.3996, allocations: 0.9926 MB / 327 MB, free: 4.801 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005429/0.4002, allocations: 0.8463 MB / 327.9 MB, free: 3.93 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001651/0.4004, allocations: 27.44 kB / 327.9 MB, free: 3.902 MB / 266.7 MB Notification: Performance of SimCode: time 9.62e-07/0.4004, allocations: 0 / 327.9 MB, free: 3.902 MB / 266.7 MB Notification: Performance of Templates: time 0.0153/0.4157, allocations: 6.512 MB / 334.4 MB, free: 13.39 MB / 282.7 MB