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


Performing analysis on: 4FGL_J0402.0-2616_daily_bin809
RA = 60.5103, Dec = -26.273
tmin = 449020801, tmax = 449280001
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='171850', job_status='RUN', time_executed='2021-08-20 00:03:13.329333', time_epoch_executed='1629442993.33' WHERE source_name='4FGL J0402.0-2616' and cadence='daily' and bin_id='809'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171850

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171850/ft1_4FGL_J0402.0-2616_daily_bin809.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171850/ft2_4FGL_J0402.0-2616_daily_bin809.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171850/ft1_4FGL_J0402.0-2616_daily_bin809.fits outfile=/scratch/kocevski/171850/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin809.fits ra=60.5103 dec=-26.273 rad=12.0 tmin=449020801.0 tmax=449280001.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 14.93
user 5.26
sys 9.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/171850/ft2_4FGL_J0402.0-2616_daily_bin809.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/171850/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin809.fits evtable="EVENTS" outfile="/scratch/kocevski/171850/ft1_filtered_4FGL_J0402.0-2616_daily_bin809.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 9.85
user 0.34
sys 9.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/171850/ft1_filtered_4FGL_J0402.0-2616_daily_bin809.fits" evtable="EVENTS" scfile=/scratch/kocevski/171850/ft2_4FGL_J0402.0-2616_daily_bin809.fits sctable="SC_DATA" outfile=/scratch/kocevski/171850/ltcube_449020801_449280001_4FGL_J0402.0-2616_daily_bin809.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/171850/ft2_4FGL_J0402.0-2616_daily_bin809.fits
.....................!
real 25.83
user 14.83
sys 10.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171850/ft1_filtered_4FGL_J0402.0-2616_daily_bin809.fits evtable="EVENTS" scfile=/scratch/kocevski/171850/ft2_4FGL_J0402.0-2616_daily_bin809.fits sctable="SC_DATA" expcube=/scratch/kocevski/171850/ltcube_449020801_449280001_4FGL_J0402.0-2616_daily_bin809.fits outfile=/scratch/kocevski/171850/expmap_449020801_449280001_4FGL_J0402.0-2616_daily_bin809.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/171850/ltcube_449020801_449280001_4FGL_J0402.0-2616_daily_bin809.fits
.....................!
real 205.16
user 187.18
sys 17.18

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/171850/ft1_filtered_4FGL_J0402.0-2616_daily_bin809.fits scfile=/scratch/kocevski/171850/ft2_4FGL_J0402.0-2616_daily_bin809.fits outfile=/scratch/kocevski/171850/cmap_449020801_449280001_4FGL_J0402.0-2616_daily_bin809.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 9.65
user 0.37
sys 9.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/171850/ft1_filtered_4FGL_J0402.0-2616_daily_bin809.fits scfile=/scratch/kocevski/171850/ft2_4FGL_J0402.0-2616_daily_bin809.fits outfile=/scratch/kocevski/171850/cmap_HighResolution_449020801_449280001_4FGL_J0402.0-2616_daily_bin809.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 9.77
user 0.38
sys 9.23

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/171850/ft1_filtered_4FGL_J0402.0-2616_daily_bin809.fits evtable="EVENTS" scfile=/scratch/kocevski/171850/ft2_4FGL_J0402.0-2616_daily_bin809.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/171850/Model_4FGL_J0402.0-2616_daily_bin809.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/171850/ft1_filtered_4FGL_J0402.0-2616_daily_bin809.fits.....................!
real 98.25
user 83.24
sys 13.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/171850/ft1_filtered_4FGL_J0402.0-2616_daily_bin809.fits', '/scratch/kocevski/171850/ft2_4FGL_J0402.0-2616_daily_bin809.fits', expMap='/scratch/kocevski/171850/expmap_449020801_449280001_4FGL_J0402.0-2616_daily_bin809.fits', expCube='/scratch/kocevski/171850/ltcube_449020801_449280001_4FGL_J0402.0-2616_daily_bin809.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/171850/Model_4FGL_J0402.0-2616_daily_bin809.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/171850/ft1_filtered_4FGL_J0402.0-2616_daily_bin809.fits
Spacecraft file(s): /scratch/kocevski/171850/ft2_4FGL_J0402.0-2616_daily_bin809.fits
Exposure map: /scratch/kocevski/171850/expmap_449020801_449280001_4FGL_J0402.0-2616_daily_bin809.fits
Exposure cube: /scratch/kocevski/171850/ltcube_449020801_449280001_4FGL_J0402.0-2616_daily_bin809.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/171850/Model_4FGL_J0402.0-2616_daily_bin809.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) = 3530.59252762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    102.62       1.0000         .10000E-03   10000.    
     3 'Prefactor '    38.499       1.0000         .10000E-03   10000.    
     4 'Prefactor '    61.360       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9981       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1490       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10989E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8035       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    13.550       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.798       1.0000         .10000E-03   10000.    
    18 'norm      '    4.7416       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18031E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.632       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.7856       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .52816       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2530       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=   3530.549     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2930 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    137.40       -.69257E-05** at limit **
   2  Prefactor     102.62        50.379       -.30435E-05    .14637E-05
   3  Prefactor     38.497        62.388       -.56502E-05    .43555E-05
   4  Prefactor     61.369        57.676        .60513E-05    .70350E-05
   5  Prefactor     .10000E-03    61.996       -.10137E-04** at limit **
   6  Prefactor     2.9977        4.3659       -.28658E-06   -.31603E-03
   7  Prefactor     .10000E-03    4.8246        .27815E-07** at limit **
   8  Prefactor     3.1532        4.9858        .55153E-06   -.13346E-03
   9  Prefactor     .10000E-03    11.431        .23405E-07** at limit **
  10  norm          .10000E-03    .34923        .11228E-07** at limit **
  11  Prefactor     .10000E-03    33.311        .12381E-04** at limit **
  12  norm          .10000E-03    .97452        .10211E-06** at limit **
  13  Prefactor     .10000E-03    61.778       -.11032E-04** at limit **
  14  Prefactor     2.7796        73.881       -.13639E-04   -.71013E-04
  15  Prefactor     .10000E-03    1.6012        .19737E-06** at limit **
  16  norm          13.555        16.629        .49698E-05    .15361E-05
  17  Prefactor     21.712        35.227       -.40089E-04   -.33158E-05
  18  norm          4.7417        .90566       -.11664E-06    .29605E-03
  19  Prefactor     .10000E-03    4.5513        .13515E-06** at limit **
  20  Prefactor     20.629        21.778       -.10574E-05   -.25258E-05
  21  norm          .10000E-03    109.51        .52358E-04** at limit **
  22  Prefactor     .10000E-03    29.906       -.75525E-05** at limit **
  23  norm          6.7847        6.2146       -.10861E-05   -.15266E-03
  24  Normalizat    .52790        .26883        .11731E-04   -.49474E-04
  25  Prefactor     1.2533        .24580       -.43972E-06    .50765E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 102.618
  Prefactor  = 38.4973
  Prefactor  = 61.3687
  Prefactor  = 0.0001
  Prefactor  = 2.99769
  Prefactor  = 0.0001
  Prefactor  = 3.15317
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.77964
  Prefactor  = 0.0001
  norm       = 13.555
  Prefactor  = 21.7118
  norm       = 4.74172
  Prefactor  = 0.0001
  Prefactor  = 20.6285
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.78469
  Normalizat = 0.527902
  Prefactor  = 1.25334
 **********
 **   18 **HESSE 
 **********

 FCN=   3530.549     FROM HESSE     STATUS=OK           423 CALLS     3353 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    137.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     102.62        50.261        .39690E-04   -1.3678    
   3  Prefactor     38.497        62.352        .64597E-04   -1.4466    
   4  Prefactor     61.369        57.685        .51224E-04   -1.4140    
   5  Prefactor     .10000E-03    62.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.9977        4.3353        .13768E-03   -1.5362    
   7  Prefactor     .10000E-03    4.8841        .12704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1532        4.9460        .15640E-03   -1.5353    
   9  Prefactor     .10000E-03    11.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .35136        .34263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    33.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .99070        .57087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    61.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.7796        73.954        .24296E-03   -1.5375    
  15  Prefactor     .10000E-03    1.6094        .73386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          13.555        16.619        .10881E-03   -1.4971    
  17  Prefactor     21.712        35.194        .85791E-04   -1.4776    
  18  norm          4.7417        .90668        .23324E-04   -1.5272    
  19  Prefactor     .10000E-03    14.043        .23777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.629        21.761        .88180E-04   -1.4799    
  21  norm          .10000E-03    109.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    29.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.7847        6.2043        .13514E-03   -1.5187    
  24  Normalizat    .52790        .29767        .36494E-03   -1.1114    
  25  Prefactor     1.2533        .27823        .23947E-03   -.84705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37996e-10
Minuit parameter uncertainties:
  1  4.5821e-07
  2  50.2817
  3  62.4582
  4  57.7377
  5  4.77708e-05
  6  4.33578
  7  6.0848e-06
  8  4.9466
  9  1.93808e-05
  10  2.9428e-07
  11  0.0002379
  12  1.00387e-05
  13  4.1273e-05
  14  28.7141
  15  2.2727e-05
  16  16.6243
  17  35.2276
  18  0.906679
  19  4.0698e-05
  20  21.7692
  21  2.63131e-06
  22  2.1763e-05
  23  6.20486
  24  0.298577
  25  0.278559
Done.

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

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  1.356e+01  1.662e+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:  1.253e+00  2.786e-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:  5.279e-01  2.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.23
Ra Dec: 60.510 -26.273
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.91e-08 +/- 2.34e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.78e-05

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

Saving results to:
/scratch/kocevski/171850/likelihoodResults_449020801_449280001_4FGL_J0402.0-2616_daily_bin809.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) = 3530.27169311
delta logL = 0.277160666126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3530.26867177
delta logL = 0.280182001157

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8214       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8448       1.0000          .0000       5.0000    
     3 'Normalizat'    .49336       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2679       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.

 FCN=   3530.269     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      251 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8398        238.09        .35845E-02    .17738E-03
   2  alpha         2.8433        3.5961        .24105        .50665E-04
   3  Normalizat    .49419        .14036        .85012E-01   -.10798E-03
   4  Prefactor     1.2670        .93750E-01    .53888E-01   -.22508E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.83983
  alpha      = 2.84334
  Normalizat = 0.494188
  Prefactor  = 1.26704
 **********
 **   18 **HESSE 
 **********

 FCN=   3530.269     FROM HESSE     STATUS=OK            31 CALLS      282 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8398        15.706        .14338E-03   -1.5148    
   2  alpha         2.8433        1.2756        .12075E-01    .13777    
   3  Normalizat    .49419        .28783        .37663E-03   -1.1269    
   4  Prefactor     1.2670        .27619        .23824E-03   -.84292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51254e-10
Minuit parameter uncertainties:
  1  15.7141
  2  1.34009
  3  0.288697
  4  0.276512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171850': 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) = 3530.26866634
delta logL = 0.280187428422

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  7.840e+00  1.571e+01  1.000e-04  1.000e+04 ( 1.000e-13)
256        alpha:  2.843e+00  1.340e+00  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:  1.267e+00  2.765e-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:  4.942e-01  2.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.84
Ra Dec: 60.510 -26.273
Photon Index (Free Index): 2.84 +/- 1.34
Photon Flux (Free Index): 5.07e-08 +/- 7.03e-08
Energy Flux (Free Index): 1.45e-05 +/- 1.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/171850/cmap_HighResolution_449020801_449280001_4FGL_J0402.0-2616_daily_bin809.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.51e-05', comment='SUCCESS', photon_flux='1.91e-08', energy_flux2='1.45e-05', photon_flux_error='2.34e-08', dlogl='2.80e-01', energy_flux='1.45e-05', photon_flux2='5.07e-08', job_status='DONE', time_completed='2021-08-20 00:15:02.797764', photon_index_error2='1.34', photon_index2='2.84', ts='1.23', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='8.53e-08', energy_flux_error2='1.41e-05', EG='0.53', time_epoch_completed='1629443702.8', return_code='0', job_id='171850', GAL2='1.27', EG2='0.49', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='7.03e-08', ts2='1.84', photon_index='2.00' WHERE bin_id='809' AND source_name='4FGL J0402.0-2616' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 00:15:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 171850: <4FGL_J0402.0-2616_daily_bin809> in cluster <slac> Done

Job <4FGL_J0402.0-2616_daily_bin809> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 00:00:26 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 00:00:28 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:28 2021
Terminated at Fri Aug 20 00:15:05 2021
Results reported at Fri Aug 20 00:15:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0402.0-2616_daily_bin809 60.5103 -26.273 449020801 449280001 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 :                                   849.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            879 sec.

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

