 **********
 **   18 **HESSE 
 **********

 FCN=   9758.817     FROM HESSE     STATUS=OK           629 CALLS     2256 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22204E-09    3.4843        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.9488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.850        6.1014        .27827E-03   -1.5636    
   4  Prefactor     3.6249        2.3523        .52983E-03   -1.5670    
   5  Prefactor     50.088        13.596        .14139E-03   -1.5566    
   6  Prefactor     3.5193        14.379        .53936E-03   -1.5670    
   7  norm           .0000        .50200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72164E-09    4.7868        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .77711        .77871        .54551E-03   -1.5690    
  10  Prefactor     .17208E-08    3.8715        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.0061        8.0103        .37800E-03   -1.5655    
  12  norm           .0000        .50530        .25816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.1571        2.6484        .70038E-03   -1.5679    
  14  Prefactor     28.021        49.351        .18243E-03   -1.5602    
  15  norm           .0000        1.6473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.584        21.799        .27303E-03   -1.5634    
  17  Prefactor     6.3570        4.4001        .39897E-03   -1.5658    
  18  Prefactor     31.788        51.108        .17241E-03   -1.5595    
  19  Prefactor     121.64        86.638        .91593E-04   -1.5487    
  20  Prefactor     13.800        9.7044        .27040E-03   -1.5634    
  21  norm          4.9753        9.8315        .44023E-03   -1.5663    
  22  Prefactor     13.046        10.866        .27641E-03   -1.5636    
  23  Prefactor     2.3119        38.952        .66782E-03   -1.5678    
  24  norm          4.9602        4.4945        .45134E-03   -1.5663    
  25  norm          .83267E-09    3.3228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          11.344        9.3920        .29837E-03   -1.5641    
  27  Prefactor     7.9530        16.476        .34490E-03   -1.5652    
  28  Normalizat    1.1153        .17935        .65613E-01   -.89263    
  29  Prefactor     .77262        .12506        .43358E-01   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32737e-06
Minuit parameter uncertainties:
  1  5.36068e-05
  2  4.77342e-06
  3  6.10143
  4  2.35231
  5  13.5963
  6  14.2272
  7  2.51612e-07
  8  0.0001179
  9  0.778712
  10  0.000162378
  11  8.01027
  12  8.4348e-07
  13  2.6484
  14  49.3521
  15  1.56814e-06
  16  21.7994
  17  4.40009
  18  51.1082
  19  86.6388
  20  9.70444
  21  9.83157
  22  10.8661
  23  18.9795
  24  4.49453
  25  0.000103795
  26  9.39202
  27  16.4764
  28  0.179452
  29  0.125101
/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)
 **********
 **   18 **HESSE 
 **********

 FCN=   9758.817     FROM HESSE     STATUS=OK           629 CALLS     2256 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22204E-09    3.4843        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.9488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.850        6.1014        .27827E-03   -1.5636    
   4  Prefactor     3.6249        2.3523        .52983E-03   -1.5670    
   5  Prefactor     50.088        13.596        .14139E-03   -1.5566    
   6  Prefactor     3.5193        14.379        .53936E-03   -1.5670    
   7  norm           .0000        .50200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72164E-09    4.7868        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .77711        .77871        .54551E-03   -1.5690    
  10  Prefactor     .17208E-08    3.8715        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.0061        8.0103        .37800E-03   -1.5655    
  12  norm           .0000        .50530        .25816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.1571        2.6484        .70038E-03   -1.5679    
  14  Prefactor     28.021        49.351        .18243E-03   -1.5602    
  15  norm           .0000        1.6473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.584        21.799        .27303E-03   -1.5634    
  17  Prefactor     6.3570        4.4001        .39897E-03   -1.5658    
  18  Prefactor     31.788        51.108        .17241E-03   -1.5595    
  19  Prefactor     121.64        86.638        .91593E-04   -1.5487    
  20  Prefactor     13.800        9.7044        .27040E-03   -1.5634    
  21  norm          4.9753        9.8315        .44023E-03   -1.5663    
  22  Prefactor     13.046        10.866        .27641E-03   -1.5636    
  23  Prefactor     2.3119        38.952        .66782E-03   -1.5678    
  24  norm          4.9602        4.4945        .45134E-03   -1.5663    
  25  norm          .83267E-09    3.3228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          11.344        9.3920        .29837E-03   -1.5641    
  27  Prefactor     7.9530        16.476        .34490E-03   -1.5652    
  28  Normalizat    1.1153        .17935        .65613E-01   -.89263    
  29  Prefactor     .77262        .12506        .43358E-01   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32737e-06
Minuit parameter uncertainties:
  1  5.36068e-05
  2  4.77342e-06
  3  6.10143
  4  2.35231
  5  13.5963
  6  14.2272
  7  2.51612e-07
  8  0.0001179
  9  0.778712
  10  0.000162378
  11  8.01027
  12  8.4348e-07
  13  2.6484
  14  49.3521
  15  1.56814e-06
  16  21.7994
  17  4.40009
  18  51.1082
  19  86.6388
  20  9.70444
  21  9.83157
  22  10.8661
  23  18.9795
  24  4.49453
  25  0.000103795
  26  9.39202
  27  16.4764
  28  0.179452
  29  0.125101

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

 **********
 **   18 **HESSE 
 **********

 FCN=   9758.817     FROM HESSE     STATUS=OK           629 CALLS     2256 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22204E-09    3.4843        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.9488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.850        6.1014        .27827E-03   -1.5636    
   4  Prefactor     3.6249        2.3523        .52983E-03   -1.5670    
   5  Prefactor     50.088        13.596        .14139E-03   -1.5566    
   6  Prefactor     3.5193        14.379        .53936E-03   -1.5670    
   7  norm           .0000        .50200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72164E-09    4.7868        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .77711        .77871        .54551E-03   -1.5690    
  10  Prefactor     .17208E-08    3.8715        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.0061        8.0103        .37800E-03   -1.5655    
  12  norm           .0000        .50530        .25816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.1571        2.6484        .70038E-03   -1.5679    
  14  Prefactor     28.021        49.351        .18243E-03   -1.5602    
  15  norm           .0000        1.6473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.584        21.799        .27303E-03   -1.5634    
  17  Prefactor     6.3570        4.4001        .39897E-03   -1.5658    
  18  Prefactor     31.788        51.108        .17241E-03   -1.5595    
  19  Prefactor     121.64        86.638        .91593E-04   -1.5487    
  20  Prefactor     13.800        9.7044        .27040E-03   -1.5634    
  21  norm          4.9753        9.8315        .44023E-03   -1.5663    
  22  Prefactor     13.046        10.866        .27641E-03   -1.5636    
  23  Prefactor     2.3119        38.952        .66782E-03   -1.5678    
  24  norm          4.9602        4.4945        .45134E-03   -1.5663    
  25  norm          .83267E-09    3.3228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          11.344        9.3920        .29837E-03   -1.5641    
  27  Prefactor     7.9530        16.476        .34490E-03   -1.5652    
  28  Normalizat    1.1153        .17935        .65613E-01   -.89263    
  29  Prefactor     .77262        .12506        .43358E-01   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32737e-06
Minuit parameter uncertainties:
  1  5.36068e-05
  2  4.77342e-06
  3  6.10143
  4  2.35231
  5  13.5963
  6  14.2272
  7  2.51612e-07
  8  0.0001179
  9  0.778712
  10  0.000162378
  11  8.01027
  12  8.4348e-07
  13  2.6484
  14  49.3521
  15  1.56814e-06
  16  21.7994
  17  4.40009
  18  51.1082
  19  86.6388
  20  9.70444
  21  9.83157
  22  10.8661
  23  18.9795
  24  4.49453
  25  0.000103795
  26  9.39202
  27  16.4764
  28  0.179452
  29  0.125101
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9758.81672566

Extracting fit parameters...

4FGL J1740.6+5346
   Spectrum: PowerLaw
372    Prefactor:  3.179e+01  5.111e+01  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.165e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  1.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  7.726e-01  1.251e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.115e+00  1.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.56
Ra Dec: 265.159 53.770
Photon Flux Upper Limit: 7.83859574401e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00595670195655 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27006689/likelihoodResults_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9758.74834405
delta logL = 0.0683816096534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9758.74634086
delta logL = 0.0703848016219

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.706       1.0000          .0000       .10000E+07
     2 'Index     '    2.5015       1.0000          .0000       10.000    
     3 'Normalizat'    1.1064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77589       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9758.746     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      307 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.700        60.112        .85879E-05   -.14546E-02
   2  Index         2.5018        1.2403        .92605E-02   -.63222E-04
   3  Normalizat    1.1064        .20099        .29124E-03   -.10985E-03
   4  Prefactor     .77593        .14554        .24808E-03   -.18138E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.7003
  Index      = 2.50182
  Normalizat = 1.10642
  Prefactor  = 0.775933
 **********
 **   18 **HESSE 
 **********

 FCN=   9758.746     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.700        45.302        .17176E-05   -1.5615    
   2  Index         2.5018        .93994        .37042E-03   -.52318    
   3  Normalizat    1.1064        .20032        .11649E-04   -.89546    
   4  Prefactor     .77593        .14515        .99231E-05   -1.0062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82003e-10
Minuit parameter uncertainties:
  1  45.3022
  2  0.947483
  3  0.200454
  4  0.145224
 **********
 **   18 **HESSE 
 **********

 FCN=   9758.817     FROM HESSE     STATUS=OK           629 CALLS     2256 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22204E-09    3.4843        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.9488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.850        6.1014        .27827E-03   -1.5636    
   4  Prefactor     3.6249        2.3523        .52983E-03   -1.5670    
   5  Prefactor     50.088        13.596        .14139E-03   -1.5566    
   6  Prefactor     3.5193        14.379        .53936E-03   -1.5670    
   7  norm           .0000        .50200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72164E-09    4.7868        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .77711        .77871        .54551E-03   -1.5690    
  10  Prefactor     .17208E-08    3.8715        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.0061        8.0103        .37800E-03   -1.5655    
  12  norm           .0000        .50530        .25816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.1571        2.6484        .70038E-03   -1.5679    
  14  Prefactor     28.021        49.351        .18243E-03   -1.5602    
  15  norm           .0000        1.6473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.584        21.799        .27303E-03   -1.5634    
  17  Prefactor     6.3570        4.4001        .39897E-03   -1.5658    
  18  Prefactor     31.788        51.108        .17241E-03   -1.5595    
  19  Prefactor     121.64        86.638        .91593E-04   -1.5487    
  20  Prefactor     13.800        9.7044        .27040E-03   -1.5634    
  21  norm          4.9753        9.8315        .44023E-03   -1.5663    
  22  Prefactor     13.046        10.866        .27641E-03   -1.5636    
  23  Prefactor     2.3119        38.952        .66782E-03   -1.5678    
  24  norm          4.9602        4.4945        .45134E-03   -1.5663    
  25  norm          .83267E-09    3.3228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          11.344        9.3920        .29837E-03   -1.5641    
  27  Prefactor     7.9530        16.476        .34490E-03   -1.5652    
  28  Normalizat    1.1153        .17935        .65613E-01   -.89263    
  29  Prefactor     .77262        .12506        .43358E-01   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32737e-06
Minuit parameter uncertainties:
  1  5.36068e-05
  2  4.77342e-06
  3  6.10143
  4  2.35231
  5  13.5963
  6  14.2272
  7  2.51612e-07
  8  0.0001179
  9  0.778712
  10  0.000162378
  11  8.01027
  12  8.4348e-07
  13  2.6484
  14  49.3521
  15  1.56814e-06
  16  21.7994
  17  4.40009
  18  51.1082
  19  86.6388
  20  9.70444
  21  9.83157
  22  10.8661
  23  18.9795
  24  4.49453
  25  0.000103795
  26  9.39202
  27  16.4764
  28  0.179452
  29  0.125101
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9758.74634058
delta logL = 0.0703850748305

Extracting fit parameters...

4FGL J1740.6+5346
   Spectrum: PowerLaw
372    Prefactor:  2.170e+01  4.530e+01  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.502e+00  9.475e-01  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  1.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  7.759e-01  1.452e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.106e+00  2.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.56
Ra Dec: 265.159 53.770

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/27006689/cmap_HighResolution_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-03', job_status='DONE', photon_flux_upper_limit='7.84e-08', time_completed='2026-05-21 13:32:46.431992', job_id='27006689', GAL2='0.78', fit_tolerance='1e-08', EG2='1.11', EG='1.12', time_epoch_completed='1779395566.43', return_code2='0', ts='0.56', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='7.04e-02', ts2='0.71', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='2166' AND source_name='4FGL J1740.6+5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu May 21 13:32:46 PDT 2026

Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9758.81672566

Extracting fit parameters...

4FGL J1740.6+5346
   Spectrum: PowerLaw
372    Prefactor:  3.179e+01  5.111e+01  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.165e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  1.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  7.726e-01  1.251e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.115e+00  1.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.56
Ra Dec: 265.159 53.770
Photon Flux Upper Limit: 7.83859574401e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00595670195655 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27006816/likelihoodResults_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9758.74834405
delta logL = 0.0683816096534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9758.74634086
delta logL = 0.0703848016219

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.706       1.0000          .0000       .10000E+07
     2 'Index     '    2.5015       1.0000          .0000       10.000    
     3 'Normalizat'    1.1064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77589       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9758.746     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      307 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.700        60.112        .85879E-05   -.14546E-02
   2  Index         2.5018        1.2403        .92605E-02   -.63222E-04
   3  Normalizat    1.1064        .20099        .29124E-03   -.10985E-03
   4  Prefactor     .77593        .14554        .24808E-03   -.18138E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.7003
  Index      = 2.50182
  Normalizat = 1.10642
  Prefactor  = 0.775933
 **********
 **   18 **HESSE 
 **********

 FCN=   9758.746     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.700        45.302        .17176E-05   -1.5615    
   2  Index         2.5018        .93994        .37042E-03   -.52318    
   3  Normalizat    1.1064        .20032        .11649E-04   -.89546    
   4  Prefactor     .77593        .14515        .99231E-05   -1.0062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82003e-10
Minuit parameter uncertainties:
  1  45.3022
  2  0.947483
  3  0.200454
  4  0.145224
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9758.74634058
delta logL = 0.0703850748305

Extracting fit parameters...

4FGL J1740.6+5346
   Spectrum: PowerLaw
372    Prefactor:  2.170e+01  4.530e+01  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.502e+00  9.475e-01  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  1.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  7.759e-01  1.452e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.106e+00  2.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.56
Ra Dec: 265.159 53.770

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/27006816/cmap_HighResolution_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-03', job_status='DONE', photon_flux_upper_limit='7.84e-08', time_completed='2026-05-21 13:33:26.314971', job_id='27006816', GAL2='0.78', fit_tolerance='1e-08', EG2='1.11', EG='1.12', time_epoch_completed='1779395606.32', return_code2='0', ts='0.56', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='7.04e-02', ts2='0.71', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='2166' AND source_name='4FGL J1740.6+5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu May 21 13:33:26 PDT 2026

Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9758.81672566

Extracting fit parameters...

4FGL J1740.6+5346
   Spectrum: PowerLaw
372    Prefactor:  3.179e+01  5.111e+01  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.165e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  1.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  7.726e-01  1.251e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.115e+00  1.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.56
Ra Dec: 265.159 53.770
Photon Flux Upper Limit: 7.83859574401e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00595670195655 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27006840/likelihoodResults_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9758.74834405
delta logL = 0.0683816096534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9758.74634086
delta logL = 0.0703848016219

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.706       1.0000          .0000       .10000E+07
     2 'Index     '    2.5015       1.0000          .0000       10.000    
     3 'Normalizat'    1.1064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77589       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9758.746     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      307 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.700        60.112        .85879E-05   -.14546E-02
   2  Index         2.5018        1.2403        .92605E-02   -.63222E-04
   3  Normalizat    1.1064        .20099        .29124E-03   -.10985E-03
   4  Prefactor     .77593        .14554        .24808E-03   -.18138E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.7003
  Index      = 2.50182
  Normalizat = 1.10642
  Prefactor  = 0.775933
 **********
 **   18 **HESSE 
 **********

 FCN=   9758.746     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.700        45.302        .17176E-05   -1.5615    
   2  Index         2.5018        .93994        .37042E-03   -.52318    
   3  Normalizat    1.1064        .20032        .11649E-04   -.89546    
   4  Prefactor     .77593        .14515        .99231E-05   -1.0062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82003e-10
Minuit parameter uncertainties:
  1  45.3022
  2  0.947483
  3  0.200454
  4  0.145224
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9758.74634058
delta logL = 0.0703850748305

Extracting fit parameters...

4FGL J1740.6+5346
   Spectrum: PowerLaw
372    Prefactor:  2.170e+01  4.530e+01  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.502e+00  9.475e-01  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  1.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  7.759e-01  1.452e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.106e+00  2.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.56
Ra Dec: 265.159 53.770

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/27006840/cmap_HighResolution_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-03', job_status='DONE', photon_flux_upper_limit='7.84e-08', time_completed='2026-05-21 13:33:35.714205', job_id='27006840', GAL2='0.78', fit_tolerance='1e-08', EG2='1.11', EG='1.12', time_epoch_completed='1779395615.71', return_code2='0', ts='0.56', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='7.04e-02', ts2='0.71', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='2166' AND source_name='4FGL J1740.6+5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu May 21 13:33:35 PDT 2026

tfile=/lscratch/kocevski/27006961/ltcube_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/27006961/ft2_4FGL_J1740.6+5346_daily_bin2166.fits
.....................!
real 8.60
user 7.91
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/27006961/ft1_filtered_4FGL_J1740.6+5346_daily_bin2166.fits evtable="EVENTS" scfile=/lscratch/kocevski/27006961/ft2_4FGL_J1740.6+5346_daily_bin2166.fits sctable="SC_DATA" expcube=/lscratch/kocevski/27006961/ltcube_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.fits outfile=/lscratch/kocevski/27006961/expmap_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/27006961/ltcube_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.fits
.....................!
real 72.52
user 67.20
sys 4.25

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 206 point sources and 0 extended sources

Setting source of interest to:
4FGL J1740.6+5346 @ 265.159 53.7701

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/27006961/ft1_filtered_4FGL_J1740.6+5346_daily_bin2166.fits scfile=/lscratch/kocevski/27006961/ft2_4FGL_J1740.6+5346_daily_bin2166.fits outfile=/lscratch/kocevski/27006961/cmap_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=265.159 yref=53.7701 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.69
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/27006961/ft1_filtered_4FGL_J1740.6+5346_daily_bin2166.fits scfile=/lscratch/kocevski/27006961/ft2_4FGL_J1740.6+5346_daily_bin2166.fits outfile=/lscratch/kocevski/27006961/cmap_HighResolution_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=265.159 yref=53.7701 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.63
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/27006961/ft1_filtered_4FGL_J1740.6+5346_daily_bin2166.fits evtable="EVENTS" scfile=/lscratch/kocevski/27006961/ft2_4FGL_J1740.6+5346_daily_bin2166.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/27006961/Model_4FGL_J1740.6+5346_daily_bin2166.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GALDone.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9758.81672566

Extracting fit parameters...

4FGL J1740.6+5346
   Spectrum: PowerLaw
372    Prefactor:  3.179e+01  5.111e+01  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.165e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  1.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  7.726e-01  1.251e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.115e+00  1.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.56
Ra Dec: 265.159 53.770
Photon Flux Upper Limit: 7.83859574401e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00595670195655 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27006833/likelihoodResults_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9758.74834405
delta logL = 0.0683816096534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9758.74634086
delta logL = 0.0703848016219

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.706       1.0000          .0000       .10000E+07
     2 'Index     '    2.5015       1.0000          .0000       10.000    
     3 'Normalizat'    1.1064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77589       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9758.746     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      307 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.700        60.112        .85879E-05   -.14546E-02
   2  Index         2.5018        1.2403        .92605E-02   -.63222E-04
   3  Normalizat    1.1064        .20099        .29124E-03   -.10985E-03
   4  Prefactor     .77593        .14554        .24808E-03   -.18138E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.7003
  Index      = 2.50182
  Normalizat = 1.10642
  Prefactor  = 0.775933
 **********
 **   18 **HESSE 
 **********

 FCN=   9758.746     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.700        45.302        .17176E-05   -1.5615    
   2  Index         2.5018        .93994        .37042E-03   -.52318    
   3  Normalizat    1.1064        .20032        .11649E-04   -.89546    
   4  Prefactor     .77593        .14515        .99231E-05   -1.0062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82003e-10
Minuit parameter uncertainties:
  1  45.3022
  2  0.947483
  3  0.200454
  4  0.145224
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9758.74634058
delta logL = 0.0703850748305

Extracting fit parameters...

4FGL J1740.6+5346
   Spectrum: PowerLaw
372    Prefactor:  2.170e+01  4.530e+01  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.502e+00  9.475e-01  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  1.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  7.759e-01  1.452e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.106e+00  2.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.56
Ra Dec: 265.159 53.770

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/27006833/cmap_HighResolution_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-03', job_status='DONE', photon_flux_upper_limit='7.84e-08', time_completed='2026-05-21 13:33:55.252309', job_id='27006833', GAL2='0.78', fit_tolerance='1e-08', EG2='1.11', EG='1.12', time_epoch_completed='1779395635.25', return_code2='0', ts='0.56', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='7.04e-02', ts2='0.71', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='2166' AND source_name='4FGL J1740.6+5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu May 21 13:33:55 PDT 2026

number of points = 7414
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1740.6+5346_daily_bin2166
RA = 265.159, Dec = 53.7701
tmin = 800755201, tmax = 801014401
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='27007067', job_status='RUN', time_executed='2026-05-21 13:32:23.889754', time_epoch_executed='1779395543.89' WHERE source_name='4FGL J1740.6+5346' and cadence='daily' and bin_id='2166'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/27007067

Creating custom pfile directory:
/lscratch/kocevski/27007067/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=800755201.0 && nMetStart<801014401.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=800755201.0 && nMetStart<801014401.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/27007067/ft1_4FGL_J1740.6+5346_daily_bin2166.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=800755201.0 && nMetStart<801014401.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/27007067/ft2_4FGL_J1740.6+5346_daily_bin2166.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/27007067/ft1_4FGL_J1740.6+5346_daily_bin2166.fits outfile=/lscratch/kocevski/27007067/ft1_filteredMKT_4FGL_J1740.6+5346_daily_bin2166.fits ra=265.159 dec=53.7701 rad=12.0 tmin=800755201.0 tmax=801014401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.44
user 2.06
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/27007067/ft2_4FGL_J1740.6+5346_daily_bin2166.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/27007067/ft2_4FGL_J1740.6+5346_daily_bin2166.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/27007067/ft1_filteredMKT_4FGL_J1740.6+5346_daily_bin2166.fits evtable="EVENTS" outfile="/lscratch/kocevski/27007067/ft1_filtered_4FGL_J1740.6+5346_daily_bin2166.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.47
user 0.17
sys 0.13

Number of photons that the gtmktime cut: 965

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/27007067/ft1_filtered_4FGL_J1740.6+5346_daily_bin2166.fits" evtable="EVENTS" scfile=/lscratch/kocevski/27007067/ft2_4FGL_J1740.6+5346_daily_bin2166.fits sctable="SC_DATA" ouDone.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9758.81672566

Extracting fit parameters...

4FGL J1740.6+5346
   Spectrum: PowerLaw
372    Prefactor:  3.179e+01  5.111e+01  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.165e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  1.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  7.726e-01  1.251e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.115e+00  1.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.56
Ra Dec: 265.159 53.770
Photon Flux Upper Limit: 7.83859574401e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00595670195655 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27006859/likelihoodResults_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9758.74834405
delta logL = 0.0683816096534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9758.74634086
delta logL = 0.0703848016219

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.706       1.0000          .0000       .10000E+07
     2 'Index     '    2.5015       1.0000          .0000       10.000    
     3 'Normalizat'    1.1064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77589       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9758.746     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      307 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.700        60.112        .85879E-05   -.14546E-02
   2  Index         2.5018        1.2403        .92605E-02   -.63222E-04
   3  Normalizat    1.1064        .20099        .29124E-03   -.10985E-03
   4  Prefactor     .77593        .14554        .24808E-03   -.18138E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.7003
  Index      = 2.50182
  Normalizat = 1.10642
  Prefactor  = 0.775933
 **********
 **   18 **HESSE 
 **********

 FCN=   9758.746     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.700        45.302        .17176E-05   -1.5615    
   2  Index         2.5018        .93994        .37042E-03   -.52318    
   3  Normalizat    1.1064        .20032        .11649E-04   -.89546    
   4  Prefactor     .77593        .14515        .99231E-05   -1.0062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82003e-10
Minuit parameter uncertainties:
  1  45.3022
  2  0.947483
  3  0.200454
  4  0.145224
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9758.74634058
delta logL = 0.0703850748305

Extracting fit parameters...

4FGL J1740.6+5346
   Spectrum: PowerLaw
372    Prefactor:  2.170e+01  4.530e+01  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.502e+00  9.475e-01  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  1.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  7.759e-01  1.452e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.106e+00  2.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.56
Ra Dec: 265.159 53.770

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/27006859/cmap_HighResolution_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-03', job_status='DONE', photon_flux_upper_limit='7.84e-08', time_completed='2026-05-21 13:34:01.246365', job_id='27006859', GAL2='0.78', fit_tolerance='1e-08', EG2='1.11', EG='1.12', time_epoch_completed='1779395641.25', return_code2='0', ts='0.56', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='7.04e-02', ts2='0.71', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='2166' AND source_name='4FGL J1740.6+5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu May 21 13:34:01 PDT 2026

tfile=/lscratch/kocevski/27007067/ltcube_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/27007067/ft2_4FGL_J1740.6+5346_daily_bin2166.fits
.....................!
real 6.97
user 6.58
sys 0.19

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/27007067/ft1_filtered_4FGL_J1740.6+5346_daily_bin2166.fits evtable="EVENTS" scfile=/lscratch/kocevski/27007067/ft2_4FGL_J1740.6+5346_daily_bin2166.fits sctable="SC_DATA" expcube=/lscratch/kocevski/27007067/ltcube_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.fits outfile=/lscratch/kocevski/27007067/expmap_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/27007067/ltcube_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.fits
.....................!
real 59.54
user 55.58
sys 3.40

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 206 point sources and 0 extended sources

Setting source of interest to:
4FGL J1740.6+5346 @ 265.159 53.7701

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/27007067/ft1_filtered_4FGL_J1740.6+5346_daily_bin2166.fits scfile=/lscratch/kocevski/27007067/ft2_4FGL_J1740.6+5346_daily_bin2166.fits outfile=/lscratch/kocevski/27007067/cmap_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=265.159 yref=53.7701 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.19
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/27007067/ft1_filtered_4FGL_J1740.6+5346_daily_bin2166.fits scfile=/lscratch/kocevski/27007067/ft2_4FGL_J1740.6+5346_daily_bin2166.fits outfile=/lscratch/kocevski/27007067/cmap_HighResolution_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=265.159 yref=53.7701 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.42
user 0.19
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/27007067/ft1_filtered_4FGL_J1740.6+5346_daily_bin2166.fits evtable="EVENTS" scfile=/lscratch/kocevski/27007067/ft2_4FGL_J1740.6+5346_daily_bin2166.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/27007067/Model_4FGL_J1740.6+5346_daily_bin2166.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/27006961/ft1_filtered_4FGL_J1740.6+5346_daily_bin2166.fits.....................!
real 36.09
user 34.43
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/27006961/ft1_filtered_4FGL_J1740.6+5346_daily_bin2166.fits', '/lscratch/kocevski/27006961/ft2_4FGL_J1740.6+5346_daily_bin2166.fits', expMap='/lscratch/kocevski/27006961/expmap_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.fits', expCube='/lscratch/kocevski/27006961/ltcube_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/27006961/Model_4FGL_J1740.6+5346_daily_bin2166.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1740.6+5346'

4FGL J1740.6+5346
   Spectrum: PowerLaw
372    Prefactor:  8.657e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.165e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  1.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/27006961/ft1_filtered_4FGL_J1740.6+5346_daily_bin2166.fits
Spacecraft file(s): /lscratch/kocevski/27006961/ft2_4FGL_J1740.6+5346_daily_bin2166.fits
Exposure map: /lscratch/kocevski/27006961/expmap_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.fits
Exposure cube: /lscratch/kocevski/27006961/ltcube_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/27006961/Model_4FGL_J1740.6+5346_daily_bin2166.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 9762.74386976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9758.81943476

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .47813E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .54334E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    12.934       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.6324       1.0000          .0000       .10000E+07
     5 'Prefactor '    50.027       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.5102       1.0000          .0000       .10000E+07
     7 'norm      '    .82157E-08   1.0000          .0000       .10000E+07
     8 'Prefactor '    .36821E-06   1.0000          .0000       .10000E+07
     9 'norm      '    .77850       1.0000          .0000       .10000E+07
    10 'Prefactor '    .18300E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    7.0345       1.0000          .0000       .10000E+07
    12 'norm      '    .22061E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    2.1612       1.0000          .0000       .10000E+07
    14 'Prefactor '    30.057       1.0000          .0000       .10000E+07
    15 'norm      '    .16537E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    13.434       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.3222       1.0000          .0000       .10000E+07
    18 'Prefactor '    33.649       1.0000          .0000       .10000E+07
    19 'Prefactor '    119.22       1.0000          .0000       .10000E+07
    20 'Prefactor '    13.695       1.0000          .0000       .10000E+07
    21 'norm      '    5.2084       1.0000          .0000       .10000E+07
    22 'Prefactor '    13.107       1.0000          .0000       .10000E+07
    23 'Prefactor '    2.3538       1.0000          .0000       .10000E+07
    24 'norm      '    4.9599       1.0000          .0000       .10000E+07
    25 'norm      '    .28718E-03   1.0000          .0000       .10000E+07
    26 'norm      '    11.256       1.0000          .0000       .10000E+07
    27 'Prefactor '    8.4364       1.0000          .0000       .10000E+07
    28 'Normalizat'    1.1137       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .77250       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9758.817     FROM MIGRAD    STATUS=CONVERGED    212 CALLS     1627 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22204E-09    3.4814        .25652E-07** at limit **
   2  Prefactor      .0000        1.9518        .23853E-06** at limit **
   3  Prefactor     12.850        6.1225       -.11550E-06    .30324E-02
   4  Prefactor     3.6249        2.3514        .31262E-07    .40464E-03
   5  Prefactor     50.088        4.7650        .23259E-07   -.53317E-01
   6  Prefactor     3.5193        13.265       -.11040E-05   -.95811E-02
   7  norm           .0000        .52074        .10183E-06** at limit **
   8  Prefactor     .72164E-09    4.7898        .25446E-06** at limit **
   9  norm          .77711        .77354       -.10885E-06   -.62418E-03
  10  Prefactor     .17208E-08    3.8364       -.12890E-06** at limit **
  11  Prefactor     7.0061        7.9626        .66661E-08    .40486E-02
  12  norm           .0000        2.6278       -.10101E-06** at limit **
  13  Prefactor     2.1571        2.6330       -.57673E-07   -.18058E-04
  14  Prefactor     28.021        39.673        .77865E-06    .72303E-01
  15  norm           .0000        1.6482       -.49433E-07** at limit **
  16  Prefactor     13.584        21.735        .31347E-07    .59708E-02
  17  Prefactor     6.3570        4.2434        .14434E-06    .13927E-02
  18  Prefactor     31.788        33.260        .85245E-06   -.95384E-01
  19  Prefactor     121.64        85.888        .40536E-06   -.23022E-01
  20  Prefactor     13.800        6.9134        .27740E-06    .85169E-01
  21  norm          4.9753        8.5874        .22015E-06   -.16492E-01
  22  Prefactor     13.046        9.5662       -.95492E-07    .44670E-01
  23  Prefactor     2.3119        32.138        .23907E-05    .42832E-02
  24  norm          4.9602        4.4877       -.13004E-07   -.19585E-03
  25  norm          .83267E-09    3.3091       -.38267E-06** at limit **
  26  norm          11.344        2.8372        .35393E-07   -.24663E-01
  27  Prefactor     7.9530        16.308       -.11461E-06    .17218E-02
  28  Normalizat    1.1153        .21056        .50628E-05    .14968E-04
  29  Prefactor     .77262        .14719       -.32621E-05    .92537E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.22045e-10
  Prefactor  = 0
  Prefactor  = 12.8496
  Prefactor  = 3.62494
  Prefactor  = 50.0877
  Prefactor  = 3.5193
  norm       = 0
  Prefactor  = 7.21645e-10
  norm       = 0.777105
  Prefactor  = 1.72085e-09
  Prefactor  = 7.00606
  norm       = 0
  Prefactor  = 2.1571
  Prefactor  = 28.0212
  norm       = 0
  Prefactor  = 13.5836
  Prefactor  = 6.35699
  Prefactor  = 31.7877
  Prefactor  = 121.642
  Prefactor  = 13.8005
  norm       = 4.97526
  Prefactor  = 13.0456
  Prefactor  = 2.3119
  norm       = 4.9602
  norm       = 8.32667e-10
  norm       = 11.3442
  Prefactor  = 7.95297
  Normalizat = 1.11528
  Prefactor  = 0.772619
 **********
 **   18 **HESSE 
 **********

 FCN=   9758.817     FROM HESSE     STATUS=OK           629 CALLS     2256 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22204E-09    3.4843        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.9488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.850        6.1014        .27827E-03   -1.5636    
   4  Prefactor     3.6249        2.3523        .52983E-03   -1.5670    
   5  Prefactor     50.088        13.596        .14139E-03   -1.5566    
   6  Prefactor     3.5193        14.379        .53936E-03   -1.5670    
   7  norm           .0000        .50200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72164E-09    4.7868        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .77711        .77871        .54551E-03   -1.5690    
  10  Prefactor     .17208E-08    3.8715        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.0061        8.0103        .37800E-03   -1.5655    
  12  norm           .0000        .50530        .25816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.1571        2.6484        .70038E-03   -1.5679    
  14  Prefactor     28.021        49.351        .18243E-03   -1.5602    
  15  norm           .0000        1.6473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.584        21.799        .27303E-03   -1.5634    
  17  Prefactor     6.3570        4.4001        .39897E-03   -1.5658    
  18  Prefactor     31.788        51.108        .17241E-03   -1.5595    
  19  Prefactor     121.64        86.638        .91593E-04   -1.5487    
  20  Prefactor     13.800        9.7044        .27040E-03   -1.5634    
  21  norm          4.9753        9.8315        .44023E-03   -1.5663    
  22  Prefactor     13.046        10.866        .27641E-03   -1.5636    
  23  Prefactor     2.3119        38.952        .66782E-03   -1.5678    
  24  norm          4.9602        4.4945        .45134E-03   -1.5663    
  25  norm          .83267E-09    3.3228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          11.344        9.3920        .29837E-03   -1.5641    
  27  Prefactor     7.9530        16.476        .34490E-03   -1.5652    
  28  Normalizat    1.1153        .17935        .65613E-01   -.89263    
  29  Prefactor     .77262        .12506        .43358E-01   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32737e-06
Minuit parameter uncertainties:
  1  5.36068e-05
  2  4.77342e-06
  3  6.10143
  4  2.35231
  5  13.5963
  6  14.2272
  7  2.51612e-07
  8  0.0001179
  9  0.778712
  10  0.000162378
  11  8.01027
  12  8.4348e-07
  13  2.6484
  14  49.3521
  15  1.56814e-06
  16  21.7994
  17  4.40009
  18  51.1082
  19  86.6388
  20  9.70444
  21  9.83157
  22  10.8661
  23  18.9795
  24  4.49453
  25  0.000103795
  26  9.39202
  27  16.4764
  28  0.179452
  29  0.125101
_V02
Working on...
/lscratch/kocevski/27007067/ft1_filtered_4FGL_J1740.6+5346_daily_bin2166.fits.....................!
real 29.68
user 28.42
sys 0.81

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/27007067/ft1_filtered_4FGL_J1740.6+5346_daily_bin2166.fits', '/lscratch/kocevski/27007067/ft2_4FGL_J1740.6+5346_daily_bin2166.fits', expMap='/lscratch/kocevski/27007067/expmap_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.fits', expCube='/lscratch/kocevski/27007067/ltcube_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/27007067/Model_4FGL_J1740.6+5346_daily_bin2166.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1740.6+5346'

4FGL J1740.6+5346
   Spectrum: PowerLaw
372    Prefactor:  8.657e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.165e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  1.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/27007067/ft1_filtered_4FGL_J1740.6+5346_daily_bin2166.fits
Spacecraft file(s): /lscratch/kocevski/27007067/ft2_4FGL_J1740.6+5346_daily_bin2166.fits
Exposure map: /lscratch/kocevski/27007067/expmap_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.fits
Exposure cube: /lscratch/kocevski/27007067/ltcube_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/27007067/Model_4FGL_J1740.6+5346_daily_bin2166.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 9762.74386976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9758.81943476

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .47813E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .54334E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    12.934       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.6324       1.0000          .0000       .10000E+07
     5 'Prefactor '    50.027       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.5102       1.0000          .0000       .10000E+07
     7 'norm      '    .82157E-08   1.0000          .0000       .10000E+07
     8 'Prefactor '    .36821E-06   1.0000          .0000       .10000E+07
     9 'norm      '    .77850       1.0000          .0000       .10000E+07
    10 'Prefactor '    .18300E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    7.0345       1.0000          .0000       .10000E+07
    12 'norm      '    .22061E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    2.1612       1.0000          .0000       .10000E+07
    14 'Prefactor '    30.057       1.0000          .0000       .10000E+07
    15 'norm      '    .16537E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    13.434       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.3222       1.0000          .0000       .10000E+07
    18 'Prefactor '    33.649       1.0000          .0000       .10000E+07
    19 'Prefactor '    119.22       1.0000          .0000       .10000E+07
    20 'Prefactor '    13.695       1.0000          .0000       .10000E+07
    21 'norm      '    5.2084       1.0000          .0000       .10000E+07
    22 'Prefactor '    13.107       1.0000          .0000       .10000E+07
    23 'Prefactor '    2.3538       1.0000          .0000       .10000E+07
    24 'norm      '    4.9599       1.0000          .0000       .10000E+07
    25 'norm      '    .28718E-03   1.0000          .0000       .10000E+07
    26 'norm      '    11.256       1.0000          .0000       .10000E+07
    27 'Prefactor '    8.4364       1.0000          .0000       .10000E+07
    28 'Normalizat'    1.1137       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .77250       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9758.817     FROM MIGRAD    STATUS=CONVERGED    212 CALLS     1627 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22204E-09    3.4814        .25652E-07** at limit **
   2  Prefactor      .0000        1.9518        .23853E-06** at limit **
   3  Prefactor     12.850        6.1225       -.11550E-06    .30324E-02
   4  Prefactor     3.6249        2.3514        .31262E-07    .40464E-03
   5  Prefactor     50.088        4.7650        .23259E-07   -.53317E-01
   6  Prefactor     3.5193        13.265       -.11040E-05   -.95811E-02
   7  norm           .0000        .52074        .10183E-06** at limit **
   8  Prefactor     .72164E-09    4.7898        .25446E-06** at limit **
   9  norm          .77711        .77354       -.10885E-06   -.62418E-03
  10  Prefactor     .17208E-08    3.8364       -.12890E-06** at limit **
  11  Prefactor     7.0061        7.9626        .66661E-08    .40486E-02
  12  norm           .0000        2.6278       -.10101E-06** at limit **
  13  Prefactor     2.1571        2.6330       -.57673E-07   -.18058E-04
  14  Prefactor     28.021        39.673        .77865E-06    .72303E-01
  15  norm           .0000        1.6482       -.49433E-07** at limit **
  16  Prefactor     13.584        21.735        .31347E-07    .59708E-02
  17  Prefactor     6.3570        4.2434        .14434E-06    .13927E-02
  18  Prefactor     31.788        33.260        .85245E-06   -.95384E-01
  19  Prefactor     121.64        85.888        .40536E-06   -.23022E-01
  20  Prefactor     13.800        6.9134        .27740E-06    .85169E-01
  21  norm          4.9753        8.5874        .22015E-06   -.16492E-01
  22  Prefactor     13.046        9.5662       -.95492E-07    .44670E-01
  23  Prefactor     2.3119        32.138        .23907E-05    .42832E-02
  24  norm          4.9602        4.4877       -.13004E-07   -.19585E-03
  25  norm          .83267E-09    3.3091       -.38267E-06** at limit **
  26  norm          11.344        2.8372        .35393E-07   -.24663E-01
  27  Prefactor     7.9530        16.308       -.11461E-06    .17218E-02
  28  Normalizat    1.1153        .21056        .50628E-05    .14968E-04
  29  Prefactor     .77262        .14719       -.32621E-05    .92537E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.22045e-10
  Prefactor  = 0
  Prefactor  = 12.8496
  Prefactor  = 3.62494
  Prefactor  = 50.0877
  Prefactor  = 3.5193
  norm       = 0
  Prefactor  = 7.21645e-10
  norm       = 0.777105
  Prefactor  = 1.72085e-09
  Prefactor  = 7.00606
  norm       = 0
  Prefactor  = 2.1571
  Prefactor  = 28.0212
  norm       = 0
  Prefactor  = 13.5836
  Prefactor  = 6.35699
  Prefactor  = 31.7877
  Prefactor  = 121.642
  Prefactor  = 13.8005
  norm       = 4.97526
  Prefactor  = 13.0456
  Prefactor  = 2.3119
  norm       = 4.9602
  norm       = 8.32667e-10
  norm       = 11.3442
  Prefactor  = 7.95297
  Normalizat = 1.11528
  Prefactor  = 0.772619
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9758.81672566

Extracting fit parameters...

4FGL J1740.6+5346
   Spectrum: PowerLaw
372    Prefactor:  3.179e+01  5.111e+01  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.165e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  1.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  7.726e-01  1.251e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.115e+00  1.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.56
Ra Dec: 265.159 53.770
Photon Flux Upper Limit: 7.83859574401e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00595670195655 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27006961/likelihoodResults_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9758.74834405
delta logL = 0.0683816096534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9758.74634086
delta logL = 0.0703848016219

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.706       1.0000          .0000       .10000E+07
     2 'Index     '    2.5015       1.0000          .0000       10.000    
     3 'Normalizat'    1.1064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77589       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9758.746     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      307 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.700        60.112        .85879E-05   -.14546E-02
   2  Index         2.5018        1.2403        .92605E-02   -.63222E-04
   3  Normalizat    1.1064        .20099        .29124E-03   -.10985E-03
   4  Prefactor     .77593        .14554        .24808E-03   -.18138E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.7003
  Index      = 2.50182
  Normalizat = 1.10642
  Prefactor  = 0.775933
 **********
 **   18 **HESSE 
 **********

 FCN=   9758.746     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.700        45.302        .17176E-05   -1.5615    
   2  Index         2.5018        .93994        .37042E-03   -.52318    
   3  Normalizat    1.1064        .20032        .11649E-04   -.89546    
   4  Prefactor     .77593        .14515        .99231E-05   -1.0062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82003e-10
Minuit parameter uncertainties:
  1  45.3022
  2  0.947483
  3  0.200454
  4  0.145224
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9758.74634058
delta logL = 0.0703850748305

Extracting fit parameters...

4FGL J1740.6+5346
   Spectrum: PowerLaw
372    Prefactor:  2.170e+01  4.530e+01  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.502e+00  9.475e-01  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  1.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  7.759e-01  1.452e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.106e+00  2.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.56
Ra Dec: 265.159 53.770

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/27006961/cmap_HighResolution_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-03', job_status='DONE', photon_flux_upper_limit='7.84e-08', time_completed='2026-05-21 13:38:12.142585', job_id='27006961', GAL2='0.78', fit_tolerance='1e-08', EG2='1.11', EG='1.12', time_epoch_completed='1779395892.14', return_code2='0', ts='0.56', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='7.04e-02', ts2='0.71', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='2166' AND source_name='4FGL J1740.6+5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu May 21 13:38:12 PDT 2026

 **********
 **   18 **HESSE 
 **********

 FCN=   9758.817     FROM HESSE     STATUS=OK           629 CALLS     2256 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22204E-09    3.4843        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.9488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.850        6.1014        .27827E-03   -1.5636    
   4  Prefactor     3.6249        2.3523        .52983E-03   -1.5670    
   5  Prefactor     50.088        13.596        .14139E-03   -1.5566    
   6  Prefactor     3.5193        14.379        .53936E-03   -1.5670    
   7  norm           .0000        .50200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72164E-09    4.7868        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .77711        .77871        .54551E-03   -1.5690    
  10  Prefactor     .17208E-08    3.8715        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.0061        8.0103        .37800E-03   -1.5655    
  12  norm           .0000        .50530        .25816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.1571        2.6484        .70038E-03   -1.5679    
  14  Prefactor     28.021        49.351        .18243E-03   -1.5602    
  15  norm           .0000        1.6473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.584        21.799        .27303E-03   -1.5634    
  17  Prefactor     6.3570        4.4001        .39897E-03   -1.5658    
  18  Prefactor     31.788        51.108        .17241E-03   -1.5595    
  19  Prefactor     121.64        86.638        .91593E-04   -1.5487    
  20  Prefactor     13.800        9.7044        .27040E-03   -1.5634    
  21  norm          4.9753        9.8315        .44023E-03   -1.5663    
  22  Prefactor     13.046        10.866        .27641E-03   -1.5636    
  23  Prefactor     2.3119        38.952        .66782E-03   -1.5678    
  24  norm          4.9602        4.4945        .45134E-03   -1.5663    
  25  norm          .83267E-09    3.3228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          11.344        9.3920        .29837E-03   -1.5641    
  27  Prefactor     7.9530        16.476        .34490E-03   -1.5652    
  28  Normalizat    1.1153        .17935        .65613E-01   -.89263    
  29  Prefactor     .77262        .12506        .43358E-01   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32737e-06
Minuit parameter uncertainties:
  1  5.36068e-05
  2  4.77342e-06
  3  6.10143
  4  2.35231
  5  13.5963
  6  14.2272
  7  2.51612e-07
  8  0.0001179
  9  0.778712
  10  0.000162378
  11  8.01027
  12  8.4348e-07
  13  2.6484
  14  49.3521
  15  1.56814e-06
  16  21.7994
  17  4.40009
  18  51.1082
  19  86.6388
  20  9.70444
  21  9.83157
  22  10.8661
  23  18.9795
  24  4.49453
  25  0.000103795
  26  9.39202
  27  16.4764
  28  0.179452
  29  0.125101
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9758.81672566

Extracting fit parameters...

4FGL J1740.6+5346
   Spectrum: PowerLaw
372    Prefactor:  3.179e+01  5.111e+01  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.165e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  1.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  7.726e-01  1.251e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.115e+00  1.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.56
Ra Dec: 265.159 53.770
Photon Flux Upper Limit: 7.83859574401e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00595670195655 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27007067/likelihoodResults_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9758.74834405
delta logL = 0.0683816096534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9758.74634086
delta logL = 0.0703848016219

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.706       1.0000          .0000       .10000E+07
     2 'Index     '    2.5015       1.0000          .0000       10.000    
     3 'Normalizat'    1.1064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77589       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9758.746     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      307 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.700        60.112        .85879E-05   -.14546E-02
   2  Index         2.5018        1.2403        .92605E-02   -.63222E-04
   3  Normalizat    1.1064        .20099        .29124E-03   -.10985E-03
   4  Prefactor     .77593        .14554        .24808E-03   -.18138E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.7003
  Index      = 2.50182
  Normalizat = 1.10642
  Prefactor  = 0.775933
 **********
 **   18 **HESSE 
 **********

 FCN=   9758.746     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.700        45.302        .17176E-05   -1.5615    
   2  Index         2.5018        .93994        .37042E-03   -.52318    
   3  Normalizat    1.1064        .20032        .11649E-04   -.89546    
   4  Prefactor     .77593        .14515        .99231E-05   -1.0062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82003e-10
Minuit parameter uncertainties:
  1  45.3022
  2  0.947483
  3  0.200454
  4  0.145224
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9758.74634058
delta logL = 0.0703850748305

Extracting fit parameters...

4FGL J1740.6+5346
   Spectrum: PowerLaw
372    Prefactor:  2.170e+01  4.530e+01  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.502e+00  9.475e-01  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  1.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  7.759e-01  1.452e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.106e+00  2.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.56
Ra Dec: 265.159 53.770

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/27007067/cmap_HighResolution_800755201_801014401_4FGL_J1740.6+5346_daily_bin2166.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-03', job_status='DONE', photon_flux_upper_limit='7.84e-08', time_completed='2026-05-21 13:39:19.496871', job_id='27007067', GAL2='0.78', fit_tolerance='1e-08', EG2='1.11', EG='1.12', time_epoch_completed='1779395959.5', return_code2='0', ts='0.56', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='7.04e-02', ts2='0.71', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='2166' AND source_name='4FGL J1740.6+5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu May 21 13:39:19 PDT 2026

