/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 6 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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 = 7438
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0402.0-2616_daily_bin1004
RA = 60.5103, Dec = -26.273
tmin = 499564801, tmax = 499824001
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='172202', job_status='RUN', time_executed='2021-08-20 00:01:23.139634', time_epoch_executed='1629442883.14' WHERE source_name='4FGL J0402.0-2616' and cadence='daily' and bin_id='1004'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/172202

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/172202/ft1_4FGL_J0402.0-2616_daily_bin1004.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/172202/ft2_4FGL_J0402.0-2616_daily_bin1004.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/172202/ft1_4FGL_J0402.0-2616_daily_bin1004.fits outfile=/scratch/kocevski/172202/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin1004.fits ra=60.5103 dec=-26.273 rad=12.0 tmin=499564801.0 tmax=499824001.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 5.85
user 4.76
sys 1.06

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/172202/ft2_4FGL_J0402.0-2616_daily_bin1004.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/172202/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin1004.fits evtable="EVENTS" outfile="/scratch/kocevski/172202/ft1_filtered_4FGL_J0402.0-2616_daily_bin1004.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 1.30
user 0.32
sys 0.98

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/172202/ft1_filtered_4FGL_J0402.0-2616_daily_bin1004.fits" evtable="EVENTS" scfile=/scratch/kocevski/172202/ft2_4FGL_J0402.0-2616_daily_bin1004.fits sctable="SC_DATA" outfile=/scratch/kocevski/172202/ltcube_499564801_499824001_4FGL_J0402.0-2616_daily_bin1004.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/172202/ft2_4FGL_J0402.0-2616_daily_bin1004.fits
.....................!
real 13.20
user 11.92
sys 1.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/172202/ft1_filtered_4FGL_J0402.0-2616_daily_bin1004.fits evtable="EVENTS" scfile=/scratch/kocevski/172202/ft2_4FGL_J0402.0-2616_daily_bin1004.fits sctable="SC_DATA" expcube=/scratch/kocevski/172202/ltcube_499564801_499824001_4FGL_J0402.0-2616_daily_bin1004.fits outfile=/scratch/kocevski/172202/expmap_499564801_499824001_4FGL_J0402.0-2616_daily_bin1004.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/172202/ltcube_499564801_499824001_4FGL_J0402.0-2616_daily_bin1004.fits
.....................!
real 191.61
user 185.90
sys 5.34

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_archive_v18/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/172202/ft1_filtered_4FGL_J0402.0-2616_daily_bin1004.fits scfile=/scratch/kocevski/172202/ft2_4FGL_J0402.0-2616_daily_bin1004.fits outfile=/scratch/kocevski/172202/cmap_499564801_499824001_4FGL_J0402.0-2616_daily_bin1004.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 1.37
user 0.36
sys 0.96

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/172202/ft1_filtered_4FGL_J0402.0-2616_daily_bin1004.fits scfile=/scratch/kocevski/172202/ft2_4FGL_J0402.0-2616_daily_bin1004.fits outfile=/scratch/kocevski/172202/cmap_HighResolution_499564801_499824001_4FGL_J0402.0-2616_daily_bin1004.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 1.33
user 0.40
sys 0.93

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/172202/ft1_filtered_4FGL_J0402.0-2616_daily_bin1004.fits evtable="EVENTS" scfile=/scratch/kocevski/172202/ft2_4FGL_J0402.0-2616_daily_bin1004.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/172202/Model_4FGL_J0402.0-2616_daily_bin1004.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/172202/ft1_filtered_4FGL_J0402.0-2616_daily_bin1004.fits......................!
real 77.80
user 75.35
sys 2.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/172202/ft1_filtered_4FGL_J0402.0-2616_daily_bin1004.fits', '/scratch/kocevski/172202/ft2_4FGL_J0402.0-2616_daily_bin1004.fits', expMap='/scratch/kocevski/172202/expmap_499564801_499824001_4FGL_J0402.0-2616_daily_bin1004.fits', expCube='/scratch/kocevski/172202/ltcube_499564801_499824001_4FGL_J0402.0-2616_daily_bin1004.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/172202/Model_4FGL_J0402.0-2616_daily_bin1004.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  1.000e-04  1.000e+04 ( 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  0.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/172202/ft1_filtered_4FGL_J0402.0-2616_daily_bin1004.fits
Spacecraft file(s): /scratch/kocevski/172202/ft2_4FGL_J0402.0-2616_daily_bin1004.fits
Exposure map: /scratch/kocevski/172202/expmap_499564801_499824001_4FGL_J0402.0-2616_daily_bin1004.fits
Exposure cube: /scratch/kocevski/172202/ltcube_499564801_499824001_4FGL_J0402.0-2616_daily_bin1004.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/172202/Model_4FGL_J0402.0-2616_daily_bin1004.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) = 3247.62835406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10537E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.6738       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .43989E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2440       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10413E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.146       1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.726       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    53.067       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .84395E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0535       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.6569       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88392       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88558       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.

 FCN=   3247.572     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     3013 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    107.93        .14702E-06** at limit **
   2  Prefactor     .10000E-03    9.7231        .92719E-07** at limit **
   3  Prefactor     .10000E-03    128.88       -.10917E-05** at limit **
   4  Prefactor     .10000E-03    165.24       -.72685E-06** at limit **
   5  Prefactor     .10000E-03    48.560        .27166E-06** at limit **
   6  Prefactor     4.6526        4.6536       -.25616E-06   -.47622E-03
   7  Prefactor     .10013E-03    5.7273        .12048E-05** at limit **
   8  Prefactor     .10000E-03    8.2901        .29794E-06** at limit **
   9  Prefactor     .10000E-03    7.4254       -.25475E-06** at limit **
  10  norm          1.2434        1.1428       -.10842E-06   -.67527E-03
  11  Prefactor     .10000E-03    18.781        .35964E-07** at limit **
  12  norm          .22374E-01    1.2782        .18138E-06   -.26757E-03
  13  Prefactor     35.830        129.51       -.14411E-05   -.13394E-04
  14  Prefactor     34.716        32.106       -.30364E-06   -.48710E-04
  15  Prefactor     .10000E-03    1.2473        .87695E-07** at limit **
  16  norm          53.064        27.304       -.56123E-07   -.85017E-04
  17  Prefactor     .10000E-03    15.960        .99161E-07** at limit **
  18  norm          .84800E-02    .20600        .33137E-08    .98223E-04
  19  Prefactor     1.0543        2.9894        .17757E-05    .25037E-03
  20  Prefactor     .10000E-03    28.601        .93450E-06** at limit **
  21  norm          .10000E-03    76.531        .13699E-07** at limit **
  22  Prefactor     .10000E-03    40.607        .37165E-06** at limit **
  23  norm          3.6576        3.6228        .37928E-07   -.17393E-04
  24  Normalizat    .88366        .23663        .10458E-05   -.36690E-03
  25  Prefactor     .88553        .22700       -.21609E-05   -.17120E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.65257
  Prefactor  = 0.000100127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.24336
  Prefactor  = 0.0001
  norm       = 0.0223741
  Prefactor  = 35.8299
  Prefactor  = 34.7161
  Prefactor  = 0.0001
  norm       = 53.0635
  Prefactor  = 0.0001
  norm       = 0.00848003
  Prefactor  = 1.05431
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.65757
  Normalizat = 0.883656
  Prefactor  = 0.885534
 **********
 **   18 **HESSE 
 **********

 FCN=   3247.572     FROM HESSE     STATUS=OK           425 CALLS     3438 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    107.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.7282        .17357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    129.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    166.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    48.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.6526        4.7969        .10702E-03   -1.5277    
   7  Prefactor     .10013E-03    36.675        .23411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.5217        .31845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.4231        .15159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2434        1.1234        .40167E-04   -1.5485    
  11  Prefactor     .10000E-03    18.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .22374E-01    46.435        .11351E-02   -1.5678    
  13  Prefactor     35.830        129.87        .33330E-03   -1.4510    
  14  Prefactor     34.716        32.103        .68004E-04   -1.4529    
  15  Prefactor     .10000E-03    1.2520        .62084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          53.064        27.296        .55058E-04   -1.4250    
  17  Prefactor     .10000E-03    15.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .84800E-02    1.4760        .49840E-03   -1.5690    
  19  Prefactor     1.0543        2.9445        .17642E-02   -1.5503    
  20  Prefactor     .10000E-03    28.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    76.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    40.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.6576        3.6189        .10488E-03   -1.5325    
  24  Normalizat    .88366        .26410        .24673E-03   -.97037    
  25  Prefactor     .88553        .25532        .23756E-03   -.96648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78227e-09
Minuit parameter uncertainties:
  1  6.38735e-05
  2  2.25528e-07
  3  0.000273577
  4  0.000101974
  5  4.0565e-06
  6  4.79728
  7  0.00431229
  8  3.62407e-05
  9  8.86715e-06
  10  1.12342
  11  9.77568e-06
  12  2.03559
  13  130.917
  14  32.1188
  15  2.97942e-06
  16  27.3027
  17  5.52886e-06
  18  0.222439
  19  2.94495
  20  7.75424e-05
  21  6.57841e-06
  22  1.48851e-05
  23  3.61907
  24  0.26449
  25  0.255661
Done.

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

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  5.306e+01  2.730e+01  1.000e-04  1.000e+04 ( 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  0.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:  8.855e-01  2.557e-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.837e-01  2.645e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.55
Ra Dec: 60.510 -26.273
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 7.46e-08 +/- 3.84e-08
Energy Flux (Fixed Index): 5.69e-05 +/- 2.93e-05

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) = 3247.211632
delta logL = 0.360216819819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3247.19273436
delta logL = 0.379114462521

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    39.496       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3773       1.0000          .0000       5.0000    
     3 'Normalizat'    .85954       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89417       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=   3247.193     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      286 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          39.498        27.505        .63779E-04   -.77789E-03
   2  alpha         2.3773        .45221        .63784E-02   -.21442E-03
   3  Normalizat    .85922        .26006        .24958E-03    .65912E-04
   4  Prefactor     .89452        .25115        .23623E-03    .16187E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 39.4982
  alpha      = 2.37734
  Normalizat = 0.859221
  Prefactor  = 0.894519
 **********
 **   18 **HESSE 
 **********

 FCN=   3247.193     FROM HESSE     STATUS=OK            23 CALLS      309 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          39.498        26.613        .12756E-04   -1.4450    
   2  alpha         2.3773        .43750        .25513E-03   -.49085E-01
   3  Normalizat    .85922        .26010        .99832E-05   -.97908    
   4  Prefactor     .89452        .25126        .47245E-04   -.96333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.11165e-10
Minuit parameter uncertainties:
  1  26.6208
  2  0.439773
  3  0.260477
  4  0.251586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/172202': 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) = 3247.19273337
delta logL = 0.379115455823

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  3.950e+01  2.662e+01  1.000e-04  1.000e+04 ( 1.000e-13)
256        alpha:  2.377e+00  4.398e-01  0.000e+00  5.000e+00 ( 1.000e+00)
257         beta:  1.705e-01  0.000e+00  0.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:  8.945e-01  2.516e-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.592e-01  2.605e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.26
Ra Dec: 60.510 -26.273
Photon Index (Free Index): 2.38 +/- 0.44
Photon Flux (Free Index): 1.04e-07 +/- 5.90e-08
Energy Flux (Free Index): 4.64e-05 +/- 2.41e-05

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/172202/cmap_HighResolution_499564801_499824001_4FGL_J0402.0-2616_daily_bin1004.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.46e-08', energy_flux2='4.64e-05', photon_flux_error='3.84e-08', dlogl='3.79e-01', energy_flux='5.69e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-08-20 00:10:09.186127', photon_index_error2='0.44', photon_index2='2.38', ts='8.55', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='2.41e-05', EG='0.88', time_epoch_completed='1629443409.19', return_code='0', job_id='172202', GAL2='0.89', EG2='0.86', return_code2='0', energy_flux_error='2.93e-05', photon_flux_error2='5.90e-08', ts2='9.26', photon_index='2.00' WHERE bin_id='1004' AND source_name='4FGL J0402.0-2616' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 00:10:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 172202: <4FGL_J0402.0-2616_daily_bin1004> in cluster <slac> Done

Job <4FGL_J0402.0-2616_daily_bin1004> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 00:00:52 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 00:00:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 00:00:53 2021
Terminated at Fri Aug 20 00:10:09 2021
Results reported at Fri Aug 20 00:10:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0402.0-2616_daily_bin1004 60.5103 -26.273 499564801 499824001 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 :                                   534.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             300.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   556 sec.
    Turnaround time :                            557 sec.

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

