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

 FCN=   6028.479     FROM HESSE     STATUS=OK           420 CALLS     2245 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.455        43.147        .18226E-03   -1.5598    
   2  Prefactor     5.9866        6.8083        .41070E-03   -1.5659    
   3  Prefactor     11.787        7.1126        .29147E-03   -1.5639    
   4  Prefactor     .17764E-08    3.3062        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .11102E-09    33.135        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.5440        4.9828        .34280E-03   -1.5650    
   7  norm          7.2148        6.7830        .37329E-03   -1.5654    
   8  Prefactor     .14564E-05    42.090        .15514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .13878E-08    3.5107        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.0240        7.9390        .58200E-03   -1.5673    
  11  Prefactor     45.735        72.261        .14802E-03   -1.5573    
  12  norm          21.069        8.8113        .21786E-03   -1.5616    
  13  Prefactor     .11102E-09    1.8469        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.3904        76.960        .48272E-03   -1.5666    
  15  Prefactor     .11102E-09    1.1659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.8033        1.7694        .60742E-03   -1.5674    
  17  Prefactor     27.310        30.095        .19126E-03   -1.5603    
  18  Prefactor     .29365E-07    6.8443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.7458        6.4845        .52339E-03   -1.5669    
  20  norm          .28477E-07    6.8331        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .38858E-09    3.0083        .75170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .90322        .17685        .44946E-01   -.96347    
  23  Prefactor     .96472        .17579        .45823E-01   -.93915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54242e-06
Minuit parameter uncertainties:
  1  43.1479
  2  6.80828
  3  7.11264
  4  0.000154271
  5  0.000108974
  6  4.98278
  7  6.78304
  8  0.015659
  9  0.000140563
  10  7.93902
  11  72.2628
  12  8.81129
  13  3.13715e-05
  14  36.7639
  15  2.07107e-05
  16  1.76935
  17  30.0955
  18  0.000896508
  19  6.48453
  20  0.000882328
  21  6.63962e-05
  22  0.176964
  23  0.175895
 **********
 **   18 **HESSE 
 **********

 FCN=   6028.479     FROM HESSE     STATUS=OK           420 CALLS     2245 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.455        43.147        .18226E-03   -1.5598    
   2  Prefactor     5.9866        6.8083        .41070E-03   -1.5659    
   3  Prefactor     11.787        7.1126        .29147E-03   -1.5639    
   4  Prefactor     .17764E-08    3.3062        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .11102E-09    33.135        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.5440        4.9828        .34280E-03   -1.5650    
   7  norm          7.2148        6.7830        .37329E-03   -1.5654    
   8  Prefactor     .14564E-05    42.090        .15514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .13878E-08    3.5107        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.0240        7.9390        .58200E-03   -1.5673    
  11  Prefactor     45.735        72.261        .14802E-03   -1.5573    
  12  norm          21.069        8.8113        .21786E-03   -1.5616    
  13  Prefactor     .11102E-09    1.8469        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.3904        76.960        .48272E-03   -1.5666    
  15  Prefactor     .11102E-09    1.1659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.8033        1.7694        .60742E-03   -1.5674    
  17  Prefactor     27.310        30.095        .19126E-03   -1.5603    
  18  Prefactor     .29365E-07    6.8443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.7458        6.4845        .52339E-03   -1.5669    
  20  norm          .28477E-07    6.8331        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .38858E-09    3.0083        .75170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .90322        .17685        .44946E-01   -.96347    
  23  Prefactor     .96472        .17579        .45823E-01   -.93915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54242e-06
Minuit parameter uncertainties:
  1  43.1479
  2  6.80828
  3  7.11264
  4  0.000154271
  5  0.000108974
  6  4.98278
  7  6.78304
  8  0.015659
  9  0.000140563
  10  7.93902
  11  72.2628
  12  8.81129
  13  3.13715e-05
  14  36.7639
  15  2.07107e-05
  16  1.76935
  17  30.0955
  18  0.000896508
  19  6.48453
  20  0.000882328
  21  6.63962e-05
  22  0.176964
  23  0.175895
/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)

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

Done.

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

Extracting fit parameters...

4FGL J0059.4-5654
   Spectrum: LogParabola
156         norm:  1.388e-09  1.406e-04  0.000e+00  1.000e+06 ( 1.000e-12)
157        alpha:  2.454e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
158         beta:  2.009e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
159           Eb:  7.467e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  9.647e-01  1.759e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  9.032e-01  1.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 14.864 -56.909
Photon Flux Upper Limit: 6.3298696629e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.03138469938e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19646774/likelihoodResults_711072001_711331201_4FGL_J0059.4-5654_daily_bin1820.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): 102
logL (Free Index) = 6028.47928582
delta logL = -0.000144307499795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6028.47914774
delta logL = -6.22627248958e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62523E-05   1.0000          .0000       .10000E+07
     2 'alpha     '    .88262       1.0000          .0000       5.0000    
     3 'Normalizat'    .90341       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96477       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6028.479     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      242 TOTAL
                     EDM=   .35E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .40116        .42118E-03** at limit **
   2  alpha         3.9888        1.2308        .35761E-04     .0000    
   3  Normalizat    .90322        1.2385       -.96963E-05   -.32844E-04
   4  Prefactor     .96472        1.3061        .10484E-04   -.36948E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 3.98883
  Normalizat = 0.903218
  Prefactor  = 0.96472
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6028.479     FROM HESSE     STATUS=FAILED         7 CALLS      249 TOTAL
                     EDM=   .35E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .40116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8189        1.2308        .35761E-04    .63793    
   3  Normalizat    .90322        1.2385       -.96963E-05   -.96347    
   4  Prefactor     .96472        1.3061        .10484E-04   -.93915    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.47052e-12
Minuit parameter uncertainties:
  1  1.5742e-06
  2  1.32481
  3  1.28117
  4  1.35293
Done.

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

Extracting fit parameters...

4FGL J0059.4-5654
   Spectrum: LogParabola
156         norm:  1.388e-09  1.406e-04  0.000e+00  1.000e+06 ( 1.000e-12)
157        alpha:  2.454e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
158         beta:  2.009e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
159           Eb:  7.467e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  9.647e-01  1.759e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  9.032e-01  1.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 14.864 -56.909
Photon Flux Upper Limit: 6.3298696629e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.03138469938e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19646773/likelihoodResults_711072001_711331201_4FGL_J0059.4-5654_daily_bin1820.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): 102
logL (Free Index) = 6028.47928582
delta logL = -0.000144307499795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6028.47914774
delta logL = -6.22627248958e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62523E-05   1.0000          .0000       .10000E+07
     2 'alpha     '    .88262       1.0000          .0000       5.0000    
     3 'Normalizat'    .90341       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96477       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6028.479     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      242 TOTAL
                     EDM=   .35E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .40116        .42118E-03** at limit **
   2  alpha         3.9888        1.2308        .35761E-04     .0000    
   3  Normalizat    .90322        1.2385       -.96963E-05   -.32844E-04
   4  Prefactor     .96472        1.3061        .10484E-04   -.36948E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 3.98883
  Normalizat = 0.903218
  Prefactor  = 0.96472
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6028.479     FROM HESSE     STATUS=FAILED         7 CALLS      249 TOTAL
                     EDM=   .35E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .40116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8189        1.2308        .35761E-04    .63793    
   3  Normalizat    .90322        1.2385       -.96963E-05   -.96347    
   4  Prefactor     .96472        1.3061        .10484E-04   -.93915    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.47052e-12
Minuit parameter uncertainties:
  1  1.5742e-06
  2  1.32481
  3  1.28117
  4  1.35293
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 6028.47914151
delta logL = 2.09183781408e-10

Extracting fit parameters...

4FGL J0059.4-5654
   Spectrum: LogParabola
156         norm:  0.000e+00  1.574e-06  0.000e+00  1.000e+06 ( 1.000e-12)
157        alpha:  3.989e+00  1.325e+00  0.000e+00  5.000e+00 ( 1.000e+00)
158         beta:  2.009e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
159           Eb:  7.467e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  9.647e-01  1.353e+00  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  9.032e-01  1.281e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 14.864 -56.909

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/19646774/cmap_HighResolution_711072001_711331201_4FGL_J0059.4-5654_daily_bin1820.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-05', job_status='DONE', photon_flux_upper_limit='6.33e-08', time_completed='2023-07-18 00:22:57.913612', job_id='19646774', GAL2='0.96', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1689664977.91', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.09e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1820' AND source_name='4FGL J0059.4-5654' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 18 00:22:58 PDT 2023

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 6028.47914151
delta logL = 2.09183781408e-10

Extracting fit parameters...

4FGL J0059.4-5654
   Spectrum: LogParabola
156         norm:  0.000e+00  1.574e-06  0.000e+00  1.000e+06 ( 1.000e-12)
157        alpha:  3.989e+00  1.325e+00  0.000e+00  5.000e+00 ( 1.000e+00)
158         beta:  2.009e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
159           Eb:  7.467e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  9.647e-01  1.353e+00  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  9.032e-01  1.281e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 14.864 -56.909

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/19646773/cmap_HighResolution_711072001_711331201_4FGL_J0059.4-5654_daily_bin1820.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-05', job_status='DONE', photon_flux_upper_limit='6.33e-08', time_completed='2023-07-18 00:22:59.977821', job_id='19646773', GAL2='0.96', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1689664979.98', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.09e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1820' AND source_name='4FGL J0059.4-5654' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 18 00:23:00 PDT 2023

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


Performing analysis on: 4FGL_J0059.4-5654_daily_bin1820
RA = 14.8643, Dec = -56.9089
tmin = 711072001, tmax = 711331201
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='19650032', job_status='RUN', time_executed='2023-07-18 00:22:24.456201', time_epoch_executed='1689664944.46' WHERE source_name='4FGL J0059.4-5654' and cadence='daily' and bin_id='1820'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19650032

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19650032/ft1_4FGL_J0059.4-5654_daily_bin1820.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19650032/ft2_4FGL_J0059.4-5654_daily_bin1820.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19650032/ft1_4FGL_J0059.4-5654_daily_bin1820.fits outfile=/lscratch/kocevski/19650032/ft1_filteredMKT_4FGL_J0059.4-5654_daily_bin1820.fits ra=14.8643 dec=-56.9089 rad=12.0 tmin=711072001.0 tmax=711331201.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 3.13
user 1.64
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19650032/ft2_4FGL_J0059.4-5654_daily_bin1820.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19650032/ft2_4FGL_J0059.4-5654_daily_bin1820.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/19650032/ft1_filteredMKT_4FGL_J0059.4-5654_daily_bin1820.fits evtable="EVENTS" outfile="/lscratch/kocevski/19650032/ft1_filtered_4FGL_J0059.4-5654_daily_bin1820.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.63
user 0.18
sys 0.14

Number of photons that the gtmktime cut: 558

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19650032/ft1_filtered_4FGL_J0059.4-5654_daily_bin1820.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19650032/ft2_4FGL_J0059.4-5654_daily_bin1820.fits sctable="SC_DATA" 20.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19648525/Model_4FGL_J0059.4-5654_daily_bin1820.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
adding source SMC-Galaxy
Working on...
/lscratch/kocevski/19648525/ft1_filtered_4FGL_J0059.4-5654_daily_bin1820.fits.....................!
real 571.35
user 564.80
sys 1.90

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19648525/ft1_filtered_4FGL_J0059.4-5654_daily_bin1820.fits', '/lscratch/kocevski/19648525/ft2_4FGL_J0059.4-5654_daily_bin1820.fits', expMap='/lscratch/kocevski/19648525/expmap_711072001_711331201_4FGL_J0059.4-5654_daily_bin1820.fits', expCube='/lscratch/kocevski/19648525/ltcube_711072001_711331201_4FGL_J0059.4-5654_daily_bin1820.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19648525/Model_4FGL_J0059.4-5654_daily_bin1820.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0059.4-5654'

4FGL J0059.4-5654
   Spectrum: LogParabola
156         norm:  2.069e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
157        alpha:  2.454e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
158         beta:  2.009e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
159           Eb:  7.467e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19648525/ft1_filtered_4FGL_J0059.4-5654_daily_bin1820.fits
Spacecraft file(s): /lscratch/kocevski/19648525/ft2_4FGL_J0059.4-5654_daily_bin1820.fits
Exposure map: /lscratch/kocevski/19648525/expmap_711072001_711331201_4FGL_J0059.4-5654_daily_bin1820.fits
Exposure cube: /lscratch/kocevski/19648525/ltcube_711072001_711331201_4FGL_J0059.4-5654_daily_bin1820.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19648525/Model_4FGL_J0059.4-5654_daily_bin1820.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.113       1.0000          .0000       .10000E+07
     2 'Prefactor '    5.9707       1.0000          .0000       .10000E+07
     3 'Prefactor '    11.792       1.0000          .0000       .10000E+07
     4 'Prefactor '    .32522E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .90022E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    8.5395       1.0000          .0000       .10000E+07
     7 'norm      '    7.2114       1.0000          .0000       .10000E+07
     8 'Prefactor '    .50671E-01   1.0000          .0000       .10000E+07
     9 'norm      '    .38767E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    3.0370       1.0000          .0000       .10000E+07
    11 'Prefactor '    45.650       1.0000          .0000       .10000E+07
    12 'norm      '    21.081       1.0000          .0000       .10000E+07
    13 'Prefactor '    .33851E-05   1.0000          .0000       .10000E+07
    14 'norm      '    4.3497       1.0000          .0000       .10000E+07
    15 'Prefactor '    .75495E-08   1.0000          .0000       .10000E+07
    16 'norm      '    2.8026       1.0000          .0000       .10000E+07
    17 'Prefactor '    27.347       1.0000          .0000       .10000E+07
    18 'Prefactor '    .25229E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    3.7190       1.0000          .0000       .10000E+07
    20 'norm      '    .19861E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .23638E-01   1.0000          .0000       .10000E+07
    22 'Normalizat'    .90345       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96459       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6028.479     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     1825 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.455        41.891        .92503E-07    .22542E-01
   2  Prefactor     5.9866        6.5384        .60103E-07    .95121E-02
   3  Prefactor     11.787        5.2134       -.41274E-08    .97509E-01
   4  Prefactor     .17764E-08    3.2658       -.65117E-07** at limit **
   5  norm          .11102E-09    33.148       -.63447E-07** at limit **
   6  Prefactor     8.5440        4.9651       -.50388E-07   -.49467E-02
   7  norm          7.2148        2.3421        .17386E-07   -.21301E-01
   8  Prefactor     .14564E-05    10.598       -.64643E-07** at limit **
   9  norm          .13878E-08    3.4930        .14802E-06** at limit **
  10  Prefactor     3.0240        4.9598        .13075E-07   -.21961E-01
  11  Prefactor     45.735        13.060        .28410E-07   -.10824    
  12  norm          21.069        2.0091        .59080E-08    .21710E-01
  13  Prefactor     .11102E-09    1.8468       -.80168E-07** at limit **
  14  norm          4.3904        3.7619        .17904E-07    .67907E-02
  15  Prefactor     .11102E-09    1.1648        .92845E-07** at limit **
  16  norm          2.8033        1.7667        .66713E-07    .13402E-01
  17  Prefactor     27.310        2.7758       -.27170E-08   -.36048E-01
  18  Prefactor     .29365E-07    6.2737        .24231E-07** at limit **
  19  Prefactor     3.7458        6.1033        .52728E-07   -.65631E-02
  20  norm          .28477E-07    6.2758       -.38543E-07** at limit **
  21  Prefactor     .38858E-09    15.131       -.17834E-06** at limit **
  22  Normalizat    .90322        .20653       -.11896E-05    .10193E-03
  23  Prefactor     .96472        .20742        .15171E-05    .14785E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.4545
  Prefactor  = 5.98663
  Prefactor  = 11.7869
  Prefactor  = 1.77636e-09
  norm       = 1.11022e-10
  Prefactor  = 8.54396
  norm       = 7.21476
  Prefactor  = 1.45639e-06
  norm       = 1.38778e-09
  Prefactor  = 3.02397
  Prefactor  = 45.7355
  norm       = 21.0693
  Prefactor  = 1.11022e-10
  norm       = 4.3904
  Prefactor  = 1.11022e-10
  norm       = 2.80326
  Prefactor  = 27.3099
  Prefactor  = 2.93654e-08
  Prefactor  = 3.74583
  norm       = 2.84772e-08
  Prefactor  = 3.88578e-10
  Normalizat = 0.903217
  Prefactor  = 0.964721
 **********
 **   18 **HESSE 
 **********

 FCN=   6028.479     FROM HESSE     STATUS=OK           420 CALLS     2245 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.455        43.147        .18226E-03   -1.5598    
   2  Prefactor     5.9866        6.8083        .41070E-03   -1.5659    
   3  Prefactor     11.787        7.1126        .29147E-03   -1.5639    
   4  Prefactor     .17764E-08    3.3062        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .11102E-09    33.135        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.5440        4.9828        .34280E-03   -1.5650    
   7  norm          7.2148        6.7830        .37329E-03   -1.5654    
   8  Prefactor     .14564E-05    42.090        .15514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .13878E-08    3.5107        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.0240        7.9390        .58200E-03   -1.5673    
  11  Prefactor     45.735        72.261        .14802E-03   -1.5573    
  12  norm          21.069        8.8113        .21786E-03   -1.5616    
  13  Prefactor     .11102E-09    1.8469        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.3904        76.960        .48272E-03   -1.5666    
  15  Prefactor     .11102E-09    1.1659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.8033        1.7694        .60742E-03   -1.5674    
  17  Prefactor     27.310        30.095        .19126E-03   -1.5603    
  18  Prefactor     .29365E-07    6.8443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.7458        6.4845        .52339E-03   -1.5669    
  20  norm          .28477E-07    6.8331        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .38858E-09    3.0083        .75170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .90322        .17685        .44946E-01   -.96347    
  23  Prefactor     .96472        .17579        .45823E-01   -.93915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54242e-06
Minuit parameter uncertainties:
  1  43.1479
  2  6.80828
  3  7.11264
  4  0.000154271
  5  0.000108974
  6  4.98278
  7  6.78304
  8  0.015659
  9  0.000140563
  10  7.93902
  11  72.2628
  12  8.81129
  13  3.13715e-05
  14  36.7639
  15  2.07107e-05
  16  1.76935
  17  30.0955
  18  0.000896508
  19  6.48453
  20  0.000882328
  21  6.63962e-05
  22  0.176964
  23  0.175895
outfile=/lscratch/kocevski/19650032/ltcube_711072001_711331201_4FGL_J0059.4-5654_daily_bin1820.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/19650032/ft2_4FGL_J0059.4-5654_daily_bin1820.fits
.....................!
real 7.26
user 6.75
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19650032/ft1_filtered_4FGL_J0059.4-5654_daily_bin1820.fits evtable="EVENTS" scfile=/lscratch/kocevski/19650032/ft2_4FGL_J0059.4-5654_daily_bin1820.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19650032/ltcube_711072001_711331201_4FGL_J0059.4-5654_daily_bin1820.fits outfile=/lscratch/kocevski/19650032/expmap_711072001_711331201_4FGL_J0059.4-5654_daily_bin1820.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/19650032/ltcube_711072001_711331201_4FGL_J0059.4-5654_daily_bin1820.fits
.....................!
real 59.91
user 55.79
sys 3.51

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
Extended source SMC-Galaxy in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/SMC-Galaxy.fits is the correct path to the extended template.
Added 196 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0059.4-5654 @ 14.8643 -56.9089

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19650032/ft1_filtered_4FGL_J0059.4-5654_daily_bin1820.fits scfile=/lscratch/kocevski/19650032/ft2_4FGL_J0059.4-5654_daily_bin1820.fits outfile=/lscratch/kocevski/19650032/cmap_711072001_711331201_4FGL_J0059.4-5654_daily_bin1820.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=14.8643 yref=-56.9089 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.20
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19650032/ft1_filtered_4FGL_J0059.4-5654_daily_bin1820.fits scfile=/lscratch/kocevski/19650032/ft2_4FGL_J0059.4-5654_daily_bin1820.fits outfile=/lscratch/kocevski/19650032/cmap_HighResolution_711072001_711331201_4FGL_J0059.4-5654_daily_bin1820.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=14.8643 yref=-56.9089 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.65
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19650032/ft1_filtered_4FGL_J0059.4-5654_daily_bin1820.fits evtable="EVENTS" scfile=/lscratch/kocevski/19650032/ft2_4FGL_J0059.4-5654_daily_bin18Done.

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

Extracting fit parameters...

4FGL J0059.4-5654
   Spectrum: LogParabola
156         norm:  1.388e-09  1.406e-04  0.000e+00  1.000e+06 ( 1.000e-12)
157        alpha:  2.454e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
158         beta:  2.009e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
159           Eb:  7.467e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  9.647e-01  1.759e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  9.032e-01  1.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 14.864 -56.909
Photon Flux Upper Limit: 6.3298696629e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.03138469938e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19648525/likelihoodResults_711072001_711331201_4FGL_J0059.4-5654_daily_bin1820.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): 102
logL (Free Index) = 6028.47928582
delta logL = -0.000144307499795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6028.47914774
delta logL = -6.22627248958e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62523E-05   1.0000          .0000       .10000E+07
     2 'alpha     '    .88262       1.0000          .0000       5.0000    
     3 'Normalizat'    .90341       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96477       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6028.479     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      242 TOTAL
                     EDM=   .35E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .40116        .42118E-03** at limit **
   2  alpha         3.9888        1.2308        .35761E-04     .0000    
   3  Normalizat    .90322        1.2385       -.96963E-05   -.32844E-04
   4  Prefactor     .96472        1.3061        .10484E-04   -.36948E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 3.98883
  Normalizat = 0.903218
  Prefactor  = 0.96472
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6028.479     FROM HESSE     STATUS=FAILED         7 CALLS      249 TOTAL
                     EDM=   .35E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .40116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8189        1.2308        .35761E-04    .63793    
   3  Normalizat    .90322        1.2385       -.96963E-05   -.96347    
   4  Prefactor     .96472        1.3061        .10484E-04   -.93915    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.47052e-12
Minuit parameter uncertainties:
  1  1.5742e-06
  2  1.32481
  3  1.28117
  4  1.35293
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 6028.47914151
delta logL = 2.09183781408e-10

Extracting fit parameters...

4FGL J0059.4-5654
   Spectrum: LogParabola
156         norm:  0.000e+00  1.574e-06  0.000e+00  1.000e+06 ( 1.000e-12)
157        alpha:  3.989e+00  1.325e+00  0.000e+00  5.000e+00 ( 1.000e+00)
158         beta:  2.009e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
159           Eb:  7.467e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  9.647e-01  1.353e+00  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  9.032e-01  1.281e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 14.864 -56.909

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/19648525/cmap_HighResolution_711072001_711331201_4FGL_J0059.4-5654_daily_bin1820.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-05', job_status='DONE', photon_flux_upper_limit='6.33e-08', time_completed='2023-07-18 00:26:22.499553', job_id='19648525', GAL2='0.96', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1689665182.5', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.09e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1820' AND source_name='4FGL J0059.4-5654' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 18 00:26:22 PDT 2023

20.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19649066/Model_4FGL_J0059.4-5654_daily_bin1820.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
adding source SMC-Galaxy
Working on...
/lscratch/kocevski/19649066/ft1_filtered_4FGL_J0059.4-5654_daily_bin1820.fits.....................!
real 522.07
user 517.61
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19649066/ft1_filtered_4FGL_J0059.4-5654_daily_bin1820.fits', '/lscratch/kocevski/19649066/ft2_4FGL_J0059.4-5654_daily_bin1820.fits', expMap='/lscratch/kocevski/19649066/expmap_711072001_711331201_4FGL_J0059.4-5654_daily_bin1820.fits', expCube='/lscratch/kocevski/19649066/ltcube_711072001_711331201_4FGL_J0059.4-5654_daily_bin1820.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19649066/Model_4FGL_J0059.4-5654_daily_bin1820.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0059.4-5654'

4FGL J0059.4-5654
   Spectrum: LogParabola
156         norm:  2.069e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
157        alpha:  2.454e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
158         beta:  2.009e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
159           Eb:  7.467e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19649066/ft1_filtered_4FGL_J0059.4-5654_daily_bin1820.fits
Spacecraft file(s): /lscratch/kocevski/19649066/ft2_4FGL_J0059.4-5654_daily_bin1820.fits
Exposure map: /lscratch/kocevski/19649066/expmap_711072001_711331201_4FGL_J0059.4-5654_daily_bin1820.fits
Exposure cube: /lscratch/kocevski/19649066/ltcube_711072001_711331201_4FGL_J0059.4-5654_daily_bin1820.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19649066/Model_4FGL_J0059.4-5654_daily_bin1820.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.113       1.0000          .0000       .10000E+07
     2 'Prefactor '    5.9707       1.0000          .0000       .10000E+07
     3 'Prefactor '    11.792       1.0000          .0000       .10000E+07
     4 'Prefactor '    .32522E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .90022E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    8.5395       1.0000          .0000       .10000E+07
     7 'norm      '    7.2114       1.0000          .0000       .10000E+07
     8 'Prefactor '    .50671E-01   1.0000          .0000       .10000E+07
     9 'norm      '    .38767E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    3.0370       1.0000          .0000       .10000E+07
    11 'Prefactor '    45.650       1.0000          .0000       .10000E+07
    12 'norm      '    21.081       1.0000          .0000       .10000E+07
    13 'Prefactor '    .33851E-05   1.0000          .0000       .10000E+07
    14 'norm      '    4.3497       1.0000          .0000       .10000E+07
    15 'Prefactor '    .75495E-08   1.0000          .0000       .10000E+07
    16 'norm      '    2.8026       1.0000          .0000       .10000E+07
    17 'Prefactor '    27.347       1.0000          .0000       .10000E+07
    18 'Prefactor '    .25229E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    3.7190       1.0000          .0000       .10000E+07
    20 'norm      '    .19861E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .23638E-01   1.0000          .0000       .10000E+07
    22 'Normalizat'    .90345       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96459       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6028.479     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     1825 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.455        41.891        .92503E-07    .22542E-01
   2  Prefactor     5.9866        6.5384        .60103E-07    .95121E-02
   3  Prefactor     11.787        5.2134       -.41274E-08    .97509E-01
   4  Prefactor     .17764E-08    3.2658       -.65117E-07** at limit **
   5  norm          .11102E-09    33.148       -.63447E-07** at limit **
   6  Prefactor     8.5440        4.9651       -.50388E-07   -.49467E-02
   7  norm          7.2148        2.3421        .17386E-07   -.21301E-01
   8  Prefactor     .14564E-05    10.598       -.64643E-07** at limit **
   9  norm          .13878E-08    3.4930        .14802E-06** at limit **
  10  Prefactor     3.0240        4.9598        .13075E-07   -.21961E-01
  11  Prefactor     45.735        13.060        .28410E-07   -.10824    
  12  norm          21.069        2.0091        .59080E-08    .21710E-01
  13  Prefactor     .11102E-09    1.8468       -.80168E-07** at limit **
  14  norm          4.3904        3.7619        .17904E-07    .67907E-02
  15  Prefactor     .11102E-09    1.1648        .92845E-07** at limit **
  16  norm          2.8033        1.7667        .66713E-07    .13402E-01
  17  Prefactor     27.310        2.7758       -.27170E-08   -.36048E-01
  18  Prefactor     .29365E-07    6.2737        .24231E-07** at limit **
  19  Prefactor     3.7458        6.1033        .52728E-07   -.65631E-02
  20  norm          .28477E-07    6.2758       -.38543E-07** at limit **
  21  Prefactor     .38858E-09    15.131       -.17834E-06** at limit **
  22  Normalizat    .90322        .20653       -.11896E-05    .10193E-03
  23  Prefactor     .96472        .20742        .15171E-05    .14785E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.4545
  Prefactor  = 5.98663
  Prefactor  = 11.7869
  Prefactor  = 1.77636e-09
  norm       = 1.11022e-10
  Prefactor  = 8.54396
  norm       = 7.21476
  Prefactor  = 1.45639e-06
  norm       = 1.38778e-09
  Prefactor  = 3.02397
  Prefactor  = 45.7355
  norm       = 21.0693
  Prefactor  = 1.11022e-10
  norm       = 4.3904
  Prefactor  = 1.11022e-10
  norm       = 2.80326
  Prefactor  = 27.3099
  Prefactor  = 2.93654e-08
  Prefactor  = 3.74583
  norm       = 2.84772e-08
  Prefactor  = 3.88578e-10
  Normalizat = 0.903217
  Prefactor  = 0.964721
 **********
 **   18 **HESSE 
 **********

 FCN=   6028.479     FROM HESSE     STATUS=OK           420 CALLS     2245 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.455        43.147        .18226E-03   -1.5598    
   2  Prefactor     5.9866        6.8083        .41070E-03   -1.5659    
   3  Prefactor     11.787        7.1126        .29147E-03   -1.5639    
   4  Prefactor     .17764E-08    3.3062        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .11102E-09    33.135        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.5440        4.9828        .34280E-03   -1.5650    
   7  norm          7.2148        6.7830        .37329E-03   -1.5654    
   8  Prefactor     .14564E-05    42.090        .15514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .13878E-08    3.5107        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.0240        7.9390        .58200E-03   -1.5673    
  11  Prefactor     45.735        72.261        .14802E-03   -1.5573    
  12  norm          21.069        8.8113        .21786E-03   -1.5616    
  13  Prefactor     .11102E-09    1.8469        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.3904        76.960        .48272E-03   -1.5666    
  15  Prefactor     .11102E-09    1.1659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.8033        1.7694        .60742E-03   -1.5674    
  17  Prefactor     27.310        30.095        .19126E-03   -1.5603    
  18  Prefactor     .29365E-07    6.8443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.7458        6.4845        .52339E-03   -1.5669    
  20  norm          .28477E-07    6.8331        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .38858E-09    3.0083        .75170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .90322        .17685        .44946E-01   -.96347    
  23  Prefactor     .96472        .17579        .45823E-01   -.93915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54242e-06
Minuit parameter uncertainties:
  1  43.1479
  2  6.80828
  3  7.11264
  4  0.000154271
  5  0.000108974
  6  4.98278
  7  6.78304
  8  0.015659
  9  0.000140563
  10  7.93902
  11  72.2628
  12  8.81129
  13  3.13715e-05
  14  36.7639
  15  2.07107e-05
  16  1.76935
  17  30.0955
  18  0.000896508
  19  6.48453
  20  0.000882328
  21  6.63962e-05
  22  0.176964
  23  0.175895
Done.

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

Extracting fit parameters...

4FGL J0059.4-5654
   Spectrum: LogParabola
156         norm:  1.388e-09  1.406e-04  0.000e+00  1.000e+06 ( 1.000e-12)
157        alpha:  2.454e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
158         beta:  2.009e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
159           Eb:  7.467e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  9.647e-01  1.759e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  9.032e-01  1.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 14.864 -56.909
Photon Flux Upper Limit: 6.3298696629e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.03138469938e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19649066/likelihoodResults_711072001_711331201_4FGL_J0059.4-5654_daily_bin1820.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): 102
logL (Free Index) = 6028.47928582
delta logL = -0.000144307499795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6028.47914774
delta logL = -6.22627248958e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62523E-05   1.0000          .0000       .10000E+07
     2 'alpha     '    .88262       1.0000          .0000       5.0000    
     3 'Normalizat'    .90341       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96477       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6028.479     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      242 TOTAL
                     EDM=   .35E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .40116        .42118E-03** at limit **
   2  alpha         3.9888        1.2308        .35761E-04     .0000    
   3  Normalizat    .90322        1.2385       -.96963E-05   -.32844E-04
   4  Prefactor     .96472        1.3061        .10484E-04   -.36948E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 3.98883
  Normalizat = 0.903218
  Prefactor  = 0.96472
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6028.479     FROM HESSE     STATUS=FAILED         7 CALLS      249 TOTAL
                     EDM=   .35E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .40116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8189        1.2308        .35761E-04    .63793    
   3  Normalizat    .90322        1.2385       -.96963E-05   -.96347    
   4  Prefactor     .96472        1.3061        .10484E-04   -.93915    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.47052e-12
Minuit parameter uncertainties:
  1  1.5742e-06
  2  1.32481
  3  1.28117
  4  1.35293
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 6028.47914151
delta logL = 2.09183781408e-10

Extracting fit parameters...

4FGL J0059.4-5654
   Spectrum: LogParabola
156         norm:  0.000e+00  1.574e-06  0.000e+00  1.000e+06 ( 1.000e-12)
157        alpha:  3.989e+00  1.325e+00  0.000e+00  5.000e+00 ( 1.000e+00)
158         beta:  2.009e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
159           Eb:  7.467e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  9.647e-01  1.353e+00  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  9.032e-01  1.281e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 14.864 -56.909

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/19649066/cmap_HighResolution_711072001_711331201_4FGL_J0059.4-5654_daily_bin1820.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-05', job_status='DONE', photon_flux_upper_limit='6.33e-08', time_completed='2023-07-18 00:29:47.627523', job_id='19649066', GAL2='0.96', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1689665387.63', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.09e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1820' AND source_name='4FGL J0059.4-5654' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 18 00:29:48 PDT 2023

20.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19650032/Model_4FGL_J0059.4-5654_daily_bin1820.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
adding source SMC-Galaxy
Working on...
/lscratch/kocevski/19650032/ft1_filtered_4FGL_J0059.4-5654_daily_bin1820.fits.....................!
real 539.88
user 535.27
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19650032/ft1_filtered_4FGL_J0059.4-5654_daily_bin1820.fits', '/lscratch/kocevski/19650032/ft2_4FGL_J0059.4-5654_daily_bin1820.fits', expMap='/lscratch/kocevski/19650032/expmap_711072001_711331201_4FGL_J0059.4-5654_daily_bin1820.fits', expCube='/lscratch/kocevski/19650032/ltcube_711072001_711331201_4FGL_J0059.4-5654_daily_bin1820.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19650032/Model_4FGL_J0059.4-5654_daily_bin1820.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0059.4-5654'

4FGL J0059.4-5654
   Spectrum: LogParabola
156         norm:  2.069e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
157        alpha:  2.454e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
158         beta:  2.009e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
159           Eb:  7.467e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19650032/ft1_filtered_4FGL_J0059.4-5654_daily_bin1820.fits
Spacecraft file(s): /lscratch/kocevski/19650032/ft2_4FGL_J0059.4-5654_daily_bin1820.fits
Exposure map: /lscratch/kocevski/19650032/expmap_711072001_711331201_4FGL_J0059.4-5654_daily_bin1820.fits
Exposure cube: /lscratch/kocevski/19650032/ltcube_711072001_711331201_4FGL_J0059.4-5654_daily_bin1820.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19650032/Model_4FGL_J0059.4-5654_daily_bin1820.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.113       1.0000          .0000       .10000E+07
     2 'Prefactor '    5.9707       1.0000          .0000       .10000E+07
     3 'Prefactor '    11.792       1.0000          .0000       .10000E+07
     4 'Prefactor '    .32522E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .90022E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    8.5395       1.0000          .0000       .10000E+07
     7 'norm      '    7.2114       1.0000          .0000       .10000E+07
     8 'Prefactor '    .50671E-01   1.0000          .0000       .10000E+07
     9 'norm      '    .38767E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    3.0370       1.0000          .0000       .10000E+07
    11 'Prefactor '    45.650       1.0000          .0000       .10000E+07
    12 'norm      '    21.081       1.0000          .0000       .10000E+07
    13 'Prefactor '    .33851E-05   1.0000          .0000       .10000E+07
    14 'norm      '    4.3497       1.0000          .0000       .10000E+07
    15 'Prefactor '    .75495E-08   1.0000          .0000       .10000E+07
    16 'norm      '    2.8026       1.0000          .0000       .10000E+07
    17 'Prefactor '    27.347       1.0000          .0000       .10000E+07
    18 'Prefactor '    .25229E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    3.7190       1.0000          .0000       .10000E+07
    20 'norm      '    .19861E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .23638E-01   1.0000          .0000       .10000E+07
    22 'Normalizat'    .90345       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96459       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6028.479     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     1825 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.455        41.891        .92503E-07    .22542E-01
   2  Prefactor     5.9866        6.5384        .60103E-07    .95121E-02
   3  Prefactor     11.787        5.2134       -.41274E-08    .97509E-01
   4  Prefactor     .17764E-08    3.2658       -.65117E-07** at limit **
   5  norm          .11102E-09    33.148       -.63447E-07** at limit **
   6  Prefactor     8.5440        4.9651       -.50388E-07   -.49467E-02
   7  norm          7.2148        2.3421        .17386E-07   -.21301E-01
   8  Prefactor     .14564E-05    10.598       -.64643E-07** at limit **
   9  norm          .13878E-08    3.4930        .14802E-06** at limit **
  10  Prefactor     3.0240        4.9598        .13075E-07   -.21961E-01
  11  Prefactor     45.735        13.060        .28410E-07   -.10824    
  12  norm          21.069        2.0091        .59080E-08    .21710E-01
  13  Prefactor     .11102E-09    1.8468       -.80168E-07** at limit **
  14  norm          4.3904        3.7619        .17904E-07    .67907E-02
  15  Prefactor     .11102E-09    1.1648        .92845E-07** at limit **
  16  norm          2.8033        1.7667        .66713E-07    .13402E-01
  17  Prefactor     27.310        2.7758       -.27170E-08   -.36048E-01
  18  Prefactor     .29365E-07    6.2737        .24231E-07** at limit **
  19  Prefactor     3.7458        6.1033        .52728E-07   -.65631E-02
  20  norm          .28477E-07    6.2758       -.38543E-07** at limit **
  21  Prefactor     .38858E-09    15.131       -.17834E-06** at limit **
  22  Normalizat    .90322        .20653       -.11896E-05    .10193E-03
  23  Prefactor     .96472        .20742        .15171E-05    .14785E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.4545
  Prefactor  = 5.98663
  Prefactor  = 11.7869
  Prefactor  = 1.77636e-09
  norm       = 1.11022e-10
  Prefactor  = 8.54396
  norm       = 7.21476
  Prefactor  = 1.45639e-06
  norm       = 1.38778e-09
  Prefactor  = 3.02397
  Prefactor  = 45.7355
  norm       = 21.0693
  Prefactor  = 1.11022e-10
  norm       = 4.3904
  Prefactor  = 1.11022e-10
  norm       = 2.80326
  Prefactor  = 27.3099
  Prefactor  = 2.93654e-08
  Prefactor  = 3.74583
  norm       = 2.84772e-08
  Prefactor  = 3.88578e-10
  Normalizat = 0.903217
  Prefactor  = 0.964721
 **********
 **   18 **HESSE 
 **********

 FCN=   6028.479     FROM HESSE     STATUS=OK           420 CALLS     2245 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.455        43.147        .18226E-03   -1.5598    
   2  Prefactor     5.9866        6.8083        .41070E-03   -1.5659    
   3  Prefactor     11.787        7.1126        .29147E-03   -1.5639    
   4  Prefactor     .17764E-08    3.3062        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .11102E-09    33.135        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.5440        4.9828        .34280E-03   -1.5650    
   7  norm          7.2148        6.7830        .37329E-03   -1.5654    
   8  Prefactor     .14564E-05    42.090        .15514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .13878E-08    3.5107        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.0240        7.9390        .58200E-03   -1.5673    
  11  Prefactor     45.735        72.261        .14802E-03   -1.5573    
  12  norm          21.069        8.8113        .21786E-03   -1.5616    
  13  Prefactor     .11102E-09    1.8469        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.3904        76.960        .48272E-03   -1.5666    
  15  Prefactor     .11102E-09    1.1659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.8033        1.7694        .60742E-03   -1.5674    
  17  Prefactor     27.310        30.095        .19126E-03   -1.5603    
  18  Prefactor     .29365E-07    6.8443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.7458        6.4845        .52339E-03   -1.5669    
  20  norm          .28477E-07    6.8331        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .38858E-09    3.0083        .75170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .90322        .17685        .44946E-01   -.96347    
  23  Prefactor     .96472        .17579        .45823E-01   -.93915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54242e-06
Minuit parameter uncertainties:
  1  43.1479
  2  6.80828
  3  7.11264
  4  0.000154271
  5  0.000108974
  6  4.98278
  7  6.78304
  8  0.015659
  9  0.000140563
  10  7.93902
  11  72.2628
  12  8.81129
  13  3.13715e-05
  14  36.7639
  15  2.07107e-05
  16  1.76935
  17  30.0955
  18  0.000896508
  19  6.48453
  20  0.000882328
  21  6.63962e-05
  22  0.176964
  23  0.175895
Done.

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

Extracting fit parameters...

4FGL J0059.4-5654
   Spectrum: LogParabola
156         norm:  1.388e-09  1.406e-04  0.000e+00  1.000e+06 ( 1.000e-12)
157        alpha:  2.454e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
158         beta:  2.009e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
159           Eb:  7.467e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  9.647e-01  1.759e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  9.032e-01  1.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 14.864 -56.909
Photon Flux Upper Limit: 6.3298696629e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.03138469938e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19650032/likelihoodResults_711072001_711331201_4FGL_J0059.4-5654_daily_bin1820.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): 102
logL (Free Index) = 6028.47928582
delta logL = -0.000144307499795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6028.47914774
delta logL = -6.22627248958e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62523E-05   1.0000          .0000       .10000E+07
     2 'alpha     '    .88262       1.0000          .0000       5.0000    
     3 'Normalizat'    .90341       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96477       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6028.479     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      242 TOTAL
                     EDM=   .35E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .40116        .42118E-03** at limit **
   2  alpha         3.9888        1.2308        .35761E-04     .0000    
   3  Normalizat    .90322        1.2385       -.96963E-05   -.32844E-04
   4  Prefactor     .96472        1.3061        .10484E-04   -.36948E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 3.98883
  Normalizat = 0.903218
  Prefactor  = 0.96472
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6028.479     FROM HESSE     STATUS=FAILED         7 CALLS      249 TOTAL
                     EDM=   .35E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .40116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8189        1.2308        .35761E-04    .63793    
   3  Normalizat    .90322        1.2385       -.96963E-05   -.96347    
   4  Prefactor     .96472        1.3061        .10484E-04   -.93915    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.47052e-12
Minuit parameter uncertainties:
  1  1.5742e-06
  2  1.32481
  3  1.28117
  4  1.35293
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 6028.47914151
delta logL = 2.09183781408e-10

Extracting fit parameters...

4FGL J0059.4-5654
   Spectrum: LogParabola
156         norm:  0.000e+00  1.574e-06  0.000e+00  1.000e+06 ( 1.000e-12)
157        alpha:  3.989e+00  1.325e+00  0.000e+00  5.000e+00 ( 1.000e+00)
158         beta:  2.009e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
159           Eb:  7.467e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  9.647e-01  1.353e+00  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  9.032e-01  1.281e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 14.864 -56.909

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/19650032/cmap_HighResolution_711072001_711331201_4FGL_J0059.4-5654_daily_bin1820.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-05', job_status='DONE', photon_flux_upper_limit='6.33e-08', time_completed='2023-07-18 00:37:17.117321', job_id='19650032', GAL2='0.96', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1689665837.12', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.09e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1820' AND source_name='4FGL J0059.4-5654' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 18 00:37:17 PDT 2023

