aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 25 seconds before starting...
Proceeding.

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).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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).

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


Performing analysis on: 4FGL_J0402.0-2616_daily_bin1778
RA = 60.5103, Dec = -26.273
tmin = 700185601, tmax = 700444801
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='950032', job_status='RUN', time_executed='2023-03-14 00:07:36.606778', time_epoch_executed='1678777656.61' WHERE source_name='4FGL J0402.0-2616' and cadence='daily' and bin_id='1778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950032

Creating custom pfile directory:
/scratch/kocevski/950032/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=700185601.0 && nMetStart<700444801.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=700185601.0 && nMetStart<700444801.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950032/ft1_4FGL_J0402.0-2616_daily_bin1778.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=700185601.0 && nMetStart<700444801.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950032/ft2_4FGL_J0402.0-2616_daily_bin1778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950032/ft1_4FGL_J0402.0-2616_daily_bin1778.fits outfile=/scratch/kocevski/950032/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin1778.fits ra=60.5103 dec=-26.273 rad=12.0 tmin=700185601.0 tmax=700444801.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 4.03
user 3.72
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/950032/ft2_4FGL_J0402.0-2616_daily_bin1778.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/950032/ft2_4FGL_J0402.0-2616_daily_bin1778.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/950032/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin1778.fits evtable="EVENTS" outfile="/scratch/kocevski/950032/ft1_filtered_4FGL_J0402.0-2616_daily_bin1778.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.61
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 517

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950032/ft1_filtered_4FGL_J0402.0-2616_daily_bin1778.fits" evtable="EVENTS" scfile=/scratch/kocevski/950032/ft2_4FGL_J0402.0-2616_daily_bin1778.fits sctable="SC_DATA" outfile=/scratch/kocevski/950032/ltcube_700185601_700444801_4FGL_J0402.0-2616_daily_bin1778.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 /scratch/kocevski/950032/ft2_4FGL_J0402.0-2616_daily_bin1778.fits
.....................!
real 12.06
user 11.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950032/ft1_filtered_4FGL_J0402.0-2616_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/950032/ft2_4FGL_J0402.0-2616_daily_bin1778.fits sctable="SC_DATA" expcube=/scratch/kocevski/950032/ltcube_700185601_700444801_4FGL_J0402.0-2616_daily_bin1778.fits outfile=/scratch/kocevski/950032/expmap_700185601_700444801_4FGL_J0402.0-2616_daily_bin1778.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 /scratch/kocevski/950032/ltcube_700185601_700444801_4FGL_J0402.0-2616_daily_bin1778.fits
.....................!
real 191.04
user 185.75
sys 4.92

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 Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 156 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 J0402.0-2616 @ 60.5103 -26.273

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/950032/ft1_filtered_4FGL_J0402.0-2616_daily_bin1778.fits scfile=/scratch/kocevski/950032/ft2_4FGL_J0402.0-2616_daily_bin1778.fits outfile=/scratch/kocevski/950032/cmap_700185601_700444801_4FGL_J0402.0-2616_daily_bin1778.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=60.5103 yref=-26.273 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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950032/ft1_filtered_4FGL_J0402.0-2616_daily_bin1778.fits scfile=/scratch/kocevski/950032/ft2_4FGL_J0402.0-2616_daily_bin1778.fits outfile=/scratch/kocevski/950032/cmap_HighResolution_700185601_700444801_4FGL_J0402.0-2616_daily_bin1778.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=60.5103 yref=-26.273 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950032/ft1_filtered_4FGL_J0402.0-2616_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/950032/ft2_4FGL_J0402.0-2616_daily_bin1778.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950032/Model_4FGL_J0402.0-2616_daily_bin1778.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/950032/ft1_filtered_4FGL_J0402.0-2616_daily_bin1778.fits.....................!
real 127.29
user 125.57
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/950032/ft1_filtered_4FGL_J0402.0-2616_daily_bin1778.fits', '/scratch/kocevski/950032/ft2_4FGL_J0402.0-2616_daily_bin1778.fits', expMap='/scratch/kocevski/950032/expmap_700185601_700444801_4FGL_J0402.0-2616_daily_bin1778.fits', expCube='/scratch/kocevski/950032/ltcube_700185601_700444801_4FGL_J0402.0-2616_daily_bin1778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/950032/Model_4FGL_J0402.0-2616_daily_bin1778.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0402.0-2616'

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  2.550e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
256        alpha:  1.995e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
257         beta:  1.705e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  1.630e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/950032/ft1_filtered_4FGL_J0402.0-2616_daily_bin1778.fits
Spacecraft file(s): /scratch/kocevski/950032/ft2_4FGL_J0402.0-2616_daily_bin1778.fits
Exposure map: /scratch/kocevski/950032/expmap_700185601_700444801_4FGL_J0402.0-2616_daily_bin1778.fits
Exposure cube: /scratch/kocevski/950032/ltcube_700185601_700444801_4FGL_J0402.0-2616_daily_bin1778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/950032/Model_4FGL_J0402.0-2616_daily_bin1778.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) = 5482.56282397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22348E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .77856E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .14228E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .29663E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .44600       1.0000          .0000       .10000E+07
     6 'Prefactor '    .81184E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .61880E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .14046E-02   1.0000          .0000       .10000E+07
     9 'norm      '    4.5753       1.0000          .0000       .10000E+07
    10 'Prefactor '    .87284E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .65931E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    63.833       1.0000          .0000       .10000E+07
    13 'Prefactor '    .98999E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.3363       1.0000          .0000       .10000E+07
    15 'norm      '    5.3297       1.0000          .0000       .10000E+07
    16 'Prefactor '    .60960E-01   1.0000          .0000       .10000E+07
    17 'norm      '    17.918       1.0000          .0000       .10000E+07
    18 'Prefactor '    .65018E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    .61054       1.0000          .0000       .10000E+07
    20 'norm      '    .19137E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    63.448       1.0000          .0000       .10000E+07
    22 'norm      '    4.2351       1.0000          .0000       .10000E+07
    23 'Normalizat'    .81747       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0123       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5482.530     FROM MIGRAD    STATUS=CONVERGED    211 CALLS     2041 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        79.332       -.17301E-05** at limit **
   2  Prefactor     .64393E-08    15.893       -.18610E-05** at limit **
   3  Prefactor     .17147E-06    19.825        .15431E-05** at limit **
   4  Prefactor     .88601E-06    15.088       -.54622E-06** at limit **
   5  Prefactor     .43777        4.8128       -.65764E-07   -.84992E-03
   6  Prefactor      .0000        1.4584        .81065E-07** at limit **
   7  Prefactor     .11102E-09    13.663        .37397E-06** at limit **
   8  Prefactor      .0000        9.2271       -.26867E-06** at limit **
   9  norm          4.5851        1.8767        .10920E-06   -.25007E-02
  10  Prefactor     .28017E-05    7.4675        .16720E-06** at limit **
  11  norm           .0000        1.4956       -.52194E-07** at limit **
  12  Prefactor     49.600        316.82       -.17082E-04   -.31222E-01
  13  Prefactor     .61839E-07    27.241       -.22431E-05** at limit **
  14  Prefactor     3.3279        3.2703       -.42373E-07   -.59446E-03
  15  norm          5.3241        16.238       -.77582E-06   -.11146E-01
  16  Prefactor     .55511E-10    36.467       -.11602E-05** at limit **
  17  norm          17.929        1.4601        .40478E-07   -.66643E-02
  18  Prefactor      .0000        1.4487        .14789E-06** at limit **
  19  Prefactor     .41647E-02    260.58       -.16625E-04** at limit **
  20  norm          .55511E-10    82.242        .11787E-05** at limit **
  21  Prefactor     63.254        67.092       -.12845E-05   -.23576E-01
  22  norm          4.2174        4.9574       -.68143E-07    .25884E-03
  23  Normalizat    .82142        .28975        .22143E-04   -.47092E-04
  24  Prefactor     1.0112        .25873       -.87068E-06   -.40896E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 6.43929e-09
  Prefactor  = 1.71474e-07
  Prefactor  = 8.86013e-07
  Prefactor  = 0.437774
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  norm       = 4.58509
  Prefactor  = 2.8017e-06
  norm       = 0
  Prefactor  = 49.6002
  Prefactor  = 6.18394e-08
  Prefactor  = 3.32794
  norm       = 5.32413
  Prefactor  = 5.55112e-11
  norm       = 17.9289
  Prefactor  = 0
  Prefactor  = 0.00416466
  norm       = 5.55112e-11
  Prefactor  = 63.2543
  norm       = 4.21736
  Normalizat = 0.82142
  Prefactor  = 1.01125
 **********
 **   18 **HESSE 
 **********

 FCN=   5482.530     FROM HESSE     STATUS=OK           447 CALLS     2488 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        79.364        .16887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .64393E-08    15.919        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .17147E-06    21.827        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .88601E-06    20.288        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .43777        4.8355        .84340E-03   -1.5695    
   6  Prefactor      .0000        1.4581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11102E-09    13.280        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        9.2634        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.5851        1.8633        .47036E-03   -1.5665    
  10  Prefactor     .28017E-05    20.926        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        1.4828        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     49.600        249.79        .12517E-03   -1.5567    
  13  Prefactor     .61839E-07    27.189        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.3279        3.2785        .55389E-03   -1.5671    
  15  norm          5.3241        16.429        .43510E-03   -1.5662    
  16  Prefactor     .55511E-10    35.869        .15128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          17.929        1.4551        .23633E-03   -1.5623    
  18  Prefactor      .0000        1.4474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .41647E-02    39.777        .96399E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .55511E-10    82.269        .17094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     63.254        67.127        .12555E-03   -1.5549    
  22  norm          4.2174        4.9531        .48940E-03   -1.5667    
  23  Normalizat    .82142        .23810        .79042E-01   -.99279    
  24  Prefactor     1.0112        .21240        .66572E-01   -.92356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40651e-06
Minuit parameter uncertainties:
  1  2.08151e-05
  2  0.000639916
  3  0.0038693
  4  0.0084795
  5  2.9099
  6  1.76642e-06
  7  6.83865e-05
  8  2.75852e-05
  9  1.86331
  10  0.0153138
  11  2.90984e-06
  12  222.633
  13  0.00259286
  14  3.27849
  15  16.4293
  16  9.93393e-05
  17  1.45506
  18  3.15564e-06
  19  0.814024
  20  0.000151579
  21  67.1277
  22  4.95315
  23  0.238403
  24  0.21258
Done.

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

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  5.324e+00  1.643e+01  0.000e+00  1.000e+06 ( 1.000e-13)
256        alpha:  1.995e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
257         beta:  1.705e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  1.630e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  1.011e+00  2.126e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  8.214e-01  2.384e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 60.510 -26.273
Photon Flux Upper Limit: 7.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.75e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950032/likelihoodResults_700185601_700444801_4FGL_J0402.0-2616_daily_bin1778.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) = 5482.23243061
delta logL = 0.297870482879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5482.22774227
delta logL = 0.302558824598

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9152       1.0000          .0000       .10000E+07
     2 'alpha     '    2.8715       1.0000          .0000       5.0000    
     3 'Normalizat'    .80323       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0132       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+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=   5482.228     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      258 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9144        11.936        .18137E-04    .15658E-02
   2  alpha         2.8716        1.1607        .15923E-01    .26005E-04
   3  Normalizat    .80324        .27343        .35320E-03   -.18328E-03
   4  Prefactor     1.0132        .25304        .29382E-03   -.24645E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.91438
  alpha      = 2.87162
  Normalizat = 0.803241
  Prefactor  = 1.01316
 **********
 **   18 **HESSE 
 **********

 FCN=   5482.228     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9144        10.258        .72550E-06   -1.5664    
   2  alpha         2.8716        1.0076        .63694E-03    .14920    
   3  Normalizat    .80324        .27341        .14128E-04   -.99949    
   4  Prefactor     1.0132        .25299        .58765E-04   -.92292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52723e-10
Minuit parameter uncertainties:
  1  10.2583
  2  1.03777
  3  0.273878
  4  0.253284
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950032': No such file or directory
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) = 5482.22774226
delta logL = 0.302558837058

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  4.914e+00  1.026e+01  0.000e+00  1.000e+06 ( 1.000e-13)
256        alpha:  2.872e+00  1.038e+00  0.000e+00  5.000e+00 ( 1.000e+00)
257         beta:  1.705e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  1.630e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  1.013e+00  2.533e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  8.032e-01  2.739e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 60.510 -26.273

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 /scratch/kocevski/950032/cmap_HighResolution_700185601_700444801_4FGL_J0402.0-2616_daily_bin1778.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/950032

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-05', job_status='DONE', photon_flux_upper_limit='7.53e-08', time_completed='2023-03-14 00:18:05.733426', job_id='950032', GAL2='1.01', fit_tolerance='1e-08', EG2='0.80', EG='0.82', time_epoch_completed='1678778285.73', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='3.03e-01', ts2='0.74', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1778' AND source_name='4FGL J0402.0-2616' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 14 00:18:05 PDT 2023

------------------------------------------------------------
Sender: LSF System <lsf@bullet0113>
Subject: Job 949992: <4FGL_J0402.0-2616_daily_bin1778> in cluster <slac> Done

Job <4FGL_J0402.0-2616_daily_bin1778> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Mar 14 00:06:07 2023
Job was executed on host(s) <bullet0113>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 00:06:50 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 00:06:50 2023
Terminated at Tue Mar 14 00:17:54 2023
Results reported at Tue Mar 14 00:17:54 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0402.0-2616_daily_bin1778 60.5103 -26.273 700185601 700444801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0402.0-2616 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   632.59 sec.
    Max Memory :                                 1098 MB
    Average Memory :                             358.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3406 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            707 sec.

The output (if any) is above this job summary.


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 950032: <4FGL_J0402.0-2616_daily_bin1778> in cluster <slac> Done

Job <4FGL_J0402.0-2616_daily_bin1778> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Mar 14 00:06:09 2023
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 00:06:52 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 00:06:52 2023
Terminated at Tue Mar 14 00:18:06 2023
Results reported at Tue Mar 14 00:18:06 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0402.0-2616_daily_bin1778 60.5103 -26.273 700185601 700444801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0402.0-2616 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   629.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             376.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   674 sec.
    Turnaround time :                            717 sec.

The output (if any) is above this job summary.

