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


Performing analysis on: 4FGL_J0402.0-2616_daily_bin1422
RA = 60.5103, Dec = -26.273
tmin = 607910401, tmax = 608169601
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='176027', job_status='RUN', time_executed='2021-08-20 00:11:52.042462', time_epoch_executed='1629443512.04' WHERE source_name='4FGL J0402.0-2616' and cadence='daily' and bin_id='1422'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/176027

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/176027/ft1_4FGL_J0402.0-2616_daily_bin1422.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/176027/ft2_4FGL_J0402.0-2616_daily_bin1422.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/176027/ft1_4FGL_J0402.0-2616_daily_bin1422.fits outfile=/scratch/kocevski/176027/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin1422.fits ra=60.5103 dec=-26.273 rad=12.0 tmin=607910401.0 tmax=608169601.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 6.96
user 3.29
sys 3.64

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/176027/ft2_4FGL_J0402.0-2616_daily_bin1422.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/176027/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin1422.fits evtable="EVENTS" outfile="/scratch/kocevski/176027/ft1_filtered_4FGL_J0402.0-2616_daily_bin1422.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 3.94
user 0.31
sys 3.61

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/176027/ft1_filtered_4FGL_J0402.0-2616_daily_bin1422.fits" evtable="EVENTS" scfile=/scratch/kocevski/176027/ft2_4FGL_J0402.0-2616_daily_bin1422.fits sctable="SC_DATA" outfile=/scratch/kocevski/176027/ltcube_607910401_608169601_4FGL_J0402.0-2616_daily_bin1422.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/176027/ft2_4FGL_J0402.0-2616_daily_bin1422.fits
.....................!
real 15.65
user 11.34
sys 4.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/176027/ft1_filtered_4FGL_J0402.0-2616_daily_bin1422.fits evtable="EVENTS" scfile=/scratch/kocevski/176027/ft2_4FGL_J0402.0-2616_daily_bin1422.fits sctable="SC_DATA" expcube=/scratch/kocevski/176027/ltcube_607910401_608169601_4FGL_J0402.0-2616_daily_bin1422.fits outfile=/scratch/kocevski/176027/expmap_607910401_608169601_4FGL_J0402.0-2616_daily_bin1422.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/176027/ltcube_607910401_608169601_4FGL_J0402.0-2616_daily_bin1422.fits
.....................!
real 193.95
user 184.96
sys 8.68

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/176027/ft1_filtered_4FGL_J0402.0-2616_daily_bin1422.fits scfile=/scratch/kocevski/176027/ft2_4FGL_J0402.0-2616_daily_bin1422.fits outfile=/scratch/kocevski/176027/cmap_607910401_608169601_4FGL_J0402.0-2616_daily_bin1422.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 3.92
user 0.38
sys 3.53

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/176027/ft1_filtered_4FGL_J0402.0-2616_daily_bin1422.fits scfile=/scratch/kocevski/176027/ft2_4FGL_J0402.0-2616_daily_bin1422.fits outfile=/scratch/kocevski/176027/cmap_HighResolution_607910401_608169601_4FGL_J0402.0-2616_daily_bin1422.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 3.94
user 0.38
sys 3.54

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/176027/ft1_filtered_4FGL_J0402.0-2616_daily_bin1422.fits evtable="EVENTS" scfile=/scratch/kocevski/176027/ft2_4FGL_J0402.0-2616_daily_bin1422.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/176027/Model_4FGL_J0402.0-2616_daily_bin1422.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/176027/ft1_filtered_4FGL_J0402.0-2616_daily_bin1422.fits.....................!
real 133.53
user 127.60
sys 5.69

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.332       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    67.679       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0594       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7277       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    14.617       1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.760       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3562       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.6419       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .59064       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.455       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.5122       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .92363       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2615       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=   5905.496     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     2907 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    96.812        .28503E-04** at limit **
   2  Prefactor     15.330        22.307        .23009E-06   -.83240E-05
   3  Prefactor     .10000E-03    15.983        .25346E-07** at limit **
   4  Prefactor     .10000E-03    27.638       -.13195E-06** at limit **
   5  Prefactor     67.675        50.606       -.10533E-05   -.32485E-04
   6  Prefactor     3.0598        3.5181       -.42273E-08   -.13301E-03
   7  Prefactor     3.7288        3.1315        .11474E-05   -.33199E-02
   8  Prefactor     .10000E-03    2.0602       -.12203E-06** at limit **
   9  Prefactor     .10000E-03    5.5364        .16111E-07** at limit **
  10  norm          14.618        2.2361       -.52064E-07   -.47428E-04
  11  Prefactor     30.751        31.904       -.30117E-06   -.16421E-04
  12  norm          1.3545        2.2369       -.18443E-07   -.25817E-03
  13  Prefactor     .10001E-03    72.546       -.16122E-04** at limit **
  14  Prefactor     .10000E-03    8.9009        .10843E-07** at limit **
  15  Prefactor     6.6432        4.1032        .90866E-07   -.78420E-03
  16  norm          .10000E-03    4.5802        .16161E-07** at limit **
  17  Prefactor     .10000E-03    55.772        .61188E-05** at limit **
  18  norm          .59067        .34050        .78775E-08   -.31805E-04
  19  Prefactor     .10000E-03    4.4776       -.57420E-08** at limit **
  20  Prefactor     39.454        26.808        .28091E-07    .73789E-05
  21  norm          .10001E-03    188.61       -.15733E-04** at limit **
  22  Prefactor     .10000E-03    78.742       -.80135E-05** at limit **
  23  norm          6.5118        5.7264        .62034E-06    .76613E-04
  24  Normalizat    .92329        .22288       -.48373E-06   -.11580E-04
  25  Prefactor     1.2619        .21212       -.13714E-07   -.18946E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100022
  Prefactor  = 15.3304
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.6752
  Prefactor  = 3.05981
  Prefactor  = 3.72875
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.6175
  Prefactor  = 30.7507
  norm       = 1.3545
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 6.64321
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.590674
  Prefactor  = 0.0001
  Prefactor  = 39.4536
  norm       = 0.000100007
  Prefactor  = 0.000100002
  norm       = 6.51181
  Normalizat = 0.923287
  Prefactor  = 1.26185
 **********
 **   18 **HESSE 
 **********

 FCN=   5905.496     FROM HESSE     STATUS=OK           425 CALLS     3332 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    98.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.330        22.307        .10229E-03   -1.4925    
   3  Prefactor     .10000E-03    15.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     67.675        50.655        .48789E-04   -1.4061    
   6  Prefactor     3.0598        3.4449        .13559E-03   -1.5358    
   7  Prefactor     3.7288        5.5693        .10254E-02   -1.5322    
   8  Prefactor     .10000E-03    2.0799        .10766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.5449        .17659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.618        2.2766        .42285E-04   -1.4943    
  11  Prefactor     30.751        31.921        .72243E-04   -1.4598    
  12  norm          1.3545        2.1563        .12505E-03   -1.5475    
  13  Prefactor     .10001E-03    73.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.9050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.6432        4.0974        .56831E-03   -1.5192    
  16  norm          .10000E-03    4.5826        .16063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    56.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .59067        .33689        .32672E-04   -1.5554    
  19  Prefactor     .10000E-03    4.5760        .15863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     39.454        26.830        .63812E-04   -1.4451    
  21  norm          .10001E-03    189.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    78.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.5118        5.7260        .15727E-03   -1.5198    
  24  Normalizat    .92329        .26246        .32505E-03   -.95647    
  25  Prefactor     1.2619        .24921        .27772E-03   -.84449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.57089e-09
Minuit parameter uncertainties:
  1  0.00294699
  2  22.3189
  3  1.73713e-06
  4  6.20368e-06
  5  50.6876
  6  3.44512
  7  5.57012
  8  1.6404e-06
  9  7.71449e-07
  10  2.27656
  11  31.9384
  12  2.15643
  13  0.00142808
  14  2.55636e-06
  15  4.09752
  16  1.08613e-08
  17  0.000421513
  18  0.336892
  19  8.09773e-07
  20  26.8382
  21  0.00228015
  22  0.000734574
  23  5.72644
  24  0.262823
  25  0.249441
Done.

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

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  1.000e-04  1.086e-08  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.262e+00  2.494e-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:  9.233e-01  2.628e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/176027/likelihoodResults_607910401_608169601_4FGL_J0402.0-2616_daily_bin1422.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) = 5905.49677798
delta logL = -0.000977808537755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5905.49580028
delta logL = -1.03362253867e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9885       1.0000          .0000       5.0000    
     3 'Normalizat'    .92339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2617       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=   5905.496     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      237 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    378.52        .16093E-01** at limit **
   2  alpha         1.6301        3.9662        .84593E-01   -.54161E-07
   3  Normalizat    .92329        .54693E-01    .32505E-03    .23818E-04
   4  Prefactor     1.2619        .53952E-01    .27772E-03    .23538E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.63008
  Normalizat = 0.923287
  Prefactor  = 1.26185
 **********
 **   18 **HESSE 
 **********

 FCN=   5905.496     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.8395        .16506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6301        3.0213        .33837E-02   -.35540    
   3  Normalizat    .92329        .24786        .13002E-04   -.95647    
   4  Prefactor     1.2619        .24458        .11109E-04   -.84449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27977e-10
Minuit parameter uncertainties:
  1  8.11078e-05
  2  325.187
  3  0.248172
  4  0.244803
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/176027': 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) = 5905.49579959
delta logL = 5.78334038437e-07

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  1.000e-04  8.111e-05  1.000e-04  1.000e+04 ( 1.000e-13)
256        alpha:  1.630e+00  3.252e+02  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.262e+00  2.448e-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:  9.233e-01  2.482e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/176027/cmap_HighResolution_607910401_608169601_4FGL_J0402.0-2616_daily_bin1422.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.70e-05', job_status='DONE', photon_flux_upper_limit='3.54e-08', time_completed='2021-08-20 00:24:26.951989', job_id='176027', GAL2='1.26', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1629444266.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='5.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1422' AND source_name='4FGL J0402.0-2616' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 00:24:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 176027: <4FGL_J0402.0-2616_daily_bin1422> in cluster <slac> Done

Job <4FGL_J0402.0-2616_daily_bin1422> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 00:10:42 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 00:10:43 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:10:43 2021
Terminated at Fri Aug 20 00:24:30 2021
Results reported at Fri Aug 20 00:24:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0402.0-2616_daily_bin1422 60.5103 -26.273 607910401 608169601 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 :                                   802.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            828 sec.

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

