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


Performing analysis on: 4FGL_J0402.0-2616_daily_bin1110
RA = 60.5103, Dec = -26.273
tmin = 527040001, tmax = 527299201
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='174294', job_status='RUN', time_executed='2021-08-20 00:06:13.406966', time_epoch_executed='1629443173.41' WHERE source_name='4FGL J0402.0-2616' and cadence='daily' and bin_id='1110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/174294

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/174294/ft1_4FGL_J0402.0-2616_daily_bin1110.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/174294/ft2_4FGL_J0402.0-2616_daily_bin1110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/174294/ft1_4FGL_J0402.0-2616_daily_bin1110.fits outfile=/scratch/kocevski/174294/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin1110.fits ra=60.5103 dec=-26.273 rad=12.0 tmin=527040001.0 tmax=527299201.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.89
user 5.69
sys 1.14

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/174294/ft2_4FGL_J0402.0-2616_daily_bin1110.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/174294/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin1110.fits evtable="EVENTS" outfile="/scratch/kocevski/174294/ft1_filtered_4FGL_J0402.0-2616_daily_bin1110.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.24
user 0.30
sys 0.89

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/174294/ft1_filtered_4FGL_J0402.0-2616_daily_bin1110.fits" evtable="EVENTS" scfile=/scratch/kocevski/174294/ft2_4FGL_J0402.0-2616_daily_bin1110.fits sctable="SC_DATA" outfile=/scratch/kocevski/174294/ltcube_527040001_527299201_4FGL_J0402.0-2616_daily_bin1110.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/174294/ft2_4FGL_J0402.0-2616_daily_bin1110.fits
.....................!
real 13.05
user 11.77
sys 1.15

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/174294/ft1_filtered_4FGL_J0402.0-2616_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/174294/ft2_4FGL_J0402.0-2616_daily_bin1110.fits sctable="SC_DATA" expcube=/scratch/kocevski/174294/ltcube_527040001_527299201_4FGL_J0402.0-2616_daily_bin1110.fits outfile=/scratch/kocevski/174294/expmap_527040001_527299201_4FGL_J0402.0-2616_daily_bin1110.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/174294/ltcube_527040001_527299201_4FGL_J0402.0-2616_daily_bin1110.fits
.....................!
real 190.77
user 184.76
sys 5.63

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/174294/ft1_filtered_4FGL_J0402.0-2616_daily_bin1110.fits scfile=/scratch/kocevski/174294/ft2_4FGL_J0402.0-2616_daily_bin1110.fits outfile=/scratch/kocevski/174294/cmap_527040001_527299201_4FGL_J0402.0-2616_daily_bin1110.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.25
user 0.37
sys 0.87

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/174294/ft1_filtered_4FGL_J0402.0-2616_daily_bin1110.fits scfile=/scratch/kocevski/174294/ft2_4FGL_J0402.0-2616_daily_bin1110.fits outfile=/scratch/kocevski/174294/cmap_HighResolution_527040001_527299201_4FGL_J0402.0-2616_daily_bin1110.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.25
user 0.38
sys 0.85

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/174294/ft1_filtered_4FGL_J0402.0-2616_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/174294/ft2_4FGL_J0402.0-2616_daily_bin1110.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/174294/Model_4FGL_J0402.0-2616_daily_bin1110.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/174294/ft1_filtered_4FGL_J0402.0-2616_daily_bin1110.fits.....................!
real 74.43
user 72.21
sys 2.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.851       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.310       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3835       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2362       1.0000         .10000E-03   10000.    
    10 'norm      '    2.8252       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10338E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .98055       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.218       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10298E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.734       1.0000         .10000E-03   10000.    
    18 'norm      '    1.1235       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3448       1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.023       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88097       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .75694       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=   3063.776     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2909 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    121.45        .44218E-04** at limit **
   2  Prefactor     .10000E-03    16.332        .92671E-07** at limit **
   3  Prefactor     14.812        42.077       -.26539E-04    .28143E-04
   4  Prefactor     15.215        68.546       -.15798E-03    .16636E-04
   5  Prefactor     .10000E-03    76.864        .34131E-05** at limit **
   6  Prefactor     4.3849        4.8204       -.12730E-07   -.92073E-04
   7  Prefactor     .10000E-03    5.6296        .61323E-06** at limit **
   8  Prefactor     .10000E-03    6.2778        .87945E-06** at limit **
   9  Prefactor     2.2358        21.789       -.33435E-05   -.12587E-03
  10  norm          2.8257        1.4693        .18959E-05    .48734E-03
  11  Prefactor     .10000E-03    18.546       -.31473E-06** at limit **
  12  norm          .98014        2.4515       -.44178E-06   -.45321E-03
  13  Prefactor     .10000E-03    41.054        .35070E-05** at limit **
  14  Prefactor     12.207        27.674       -.46898E-05    .21361E-05
  15  Prefactor     .10000E-03    4.4412       -.39535E-07** at limit **
  16  norm          .10000E-03    13.173        .33517E-06** at limit **
  17  Prefactor     30.709        43.188       -.19455E-04    .12743E-04
  18  norm          1.1236        .51006       -.13275E-06    .60590E-03
  19  Prefactor     4.3451        5.2383        .26442E-05   -.78183E-04
  20  Prefactor     31.016        26.479       -.27510E-05    .13723E-04
  21  norm          .10000E-03    69.652       -.22018E-04** at limit **
  22  Prefactor     .10000E-03    143.56       -.40092E-05** at limit **
  23  norm          .10000E-03    6.1452       -.92336E-06** at limit **
  24  Normalizat    .88072        .24348        .10466E-04   -.83789E-04
  25  Prefactor     .75721        .22060        .12271E-05    .17786E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8122
  Prefactor  = 15.2146
  Prefactor  = 0.0001
  Prefactor  = 4.38485
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.23578
  norm       = 2.82566
  Prefactor  = 0.0001
  norm       = 0.980138
  Prefactor  = 0.0001
  Prefactor  = 12.207
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.7092
  norm       = 1.12356
  Prefactor  = 4.34508
  Prefactor  = 31.0162
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Normalizat = 0.880719
  Prefactor  = 0.757208
 **********
 **   18 **HESSE 
 **********

 FCN=   3063.776     FROM HESSE     STATUS=OK           425 CALLS     3334 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    121.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.812        42.067        .10393E-03   -1.4938    
   4  Prefactor     15.215        68.738        .10236E-03   -1.4928    
   5  Prefactor     .10000E-03    77.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.3849        4.6503        .10704E-03   -1.5289    
   7  Prefactor     .10000E-03    5.7003        .12801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.3285        .13494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2358        21.738        .27488E-03   -1.5409    
  10  norm          2.8257        1.4716        .45137E-04   -1.5372    
  11  Prefactor     .10000E-03    18.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .98014        2.2732        .11389E-03   -1.5510    
  13  Prefactor     .10000E-03    41.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.207        27.653        .11460E-03   -1.5009    
  15  Prefactor     .10000E-03    4.5802        .22695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    13.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     30.709        43.081        .72273E-04   -1.4599    
  18  norm          1.1236        .50995        .25233E-04   -1.5496    
  19  Prefactor     4.3451        5.2309        .13195E-03   -1.5291    
  20  Prefactor     31.016        26.511        .71936E-04   -1.4594    
  21  norm          .10000E-03    69.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    144.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.4339        .26770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .88072        .27970        .24766E-03   -.97141    
  25  Prefactor     .75721        .25293        .25017E-03   -1.0133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32458e-09
Minuit parameter uncertainties:
  1  5.94549e-05
  2  4.92985e-05
  3  42.1515
  4  64.8019
  5  0.000261963
  6  4.65068
  7  0.000169749
  8  7.92797e-05
  9  13.9493
  10  1.47159
  11  1.31224e-05
  12  2.27344
  13  1.31889e-05
  14  27.6821
  15  1.00641e-05
  16  0.000108928
  17  43.1242
  18  0.509954
  19  5.23141
  20  26.5208
  21  6.71216e-06
  22  0.000693062
  23  0.00012602
  24  0.280159
  25  0.253317
Done.

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

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  1.000e-04  1.089e-04  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:  7.572e-01  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.807e-01  2.802e-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: 6.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.85e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/174294/likelihoodResults_527040001_527299201_4FGL_J0402.0-2616_daily_bin1110.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) = 3063.77651681
delta logL = -0.000360325936981

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3063.77615648
delta logL = 3.57067619916e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0013       1.0000          .0000       5.0000    
     3 'Normalizat'    .88073       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75721       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=   3063.776     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      228 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    61.424        .18142E-02** at limit **
   2  alpha         2.3173        3.4216        .16895       -.44446E-07
   3  Normalizat    .88072        .25805        .24766E-03   -.80838E-04
   4  Prefactor     .75720        .24472        .25017E-03   -.84390E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.31732
  Normalizat = 0.880725
  Prefactor  = 0.757202
 **********
 **   18 **HESSE 
 **********

 FCN=   3063.776     FROM HESSE     STATUS=OK            23 CALLS      251 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.748        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3173        3.8353        .67579E-02   -.73139E-01
   3  Normalizat    .88072        .25829        .99064E-05   -.97141    
   4  Prefactor     .75720        .24495        .10007E-04   -1.0133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55852e-10
Minuit parameter uncertainties:
  1  9.64425e-05
  2  637.961
  3  0.258655
  4  0.245299
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/174294': 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) = 3063.77615634
delta logL = 1.47344962897e-07

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  1.000e-04  9.644e-05  1.000e-04  1.000e+04 ( 1.000e-13)
256        alpha:  2.317e+00  6.380e+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:  7.572e-01  2.453e-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.807e-01  2.587e-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/174294/cmap_HighResolution_527040001_527299201_4FGL_J0402.0-2616_daily_bin1110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.85e-05', job_status='DONE', photon_flux_upper_limit='6.35e-08', time_completed='2021-08-20 00:15:13.401755', job_id='174294', GAL2='0.76', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1629443713.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1110' AND source_name='4FGL J0402.0-2616' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 00:15:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 174294: <4FGL_J0402.0-2616_daily_bin1110> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0402.0-2616_daily_bin1110 60.5103 -26.273 527040001 527299201 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 :                                   545.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             326.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   566 sec.
    Turnaround time :                            568 sec.

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

