/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 = 7397
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0402.0-2616_daily_bin292
RA = 60.5103, Dec = -26.273
tmin = 315014401, tmax = 315273601
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='167592', job_status='RUN', time_executed='2021-08-19 23:46:20.993099', time_epoch_executed='1629441980.99' WHERE source_name='4FGL J0402.0-2616' and cadence='daily' and bin_id='292'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/167592

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/167592/ft1_4FGL_J0402.0-2616_daily_bin292.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/167592/ft2_4FGL_J0402.0-2616_daily_bin292.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/167592/ft1_4FGL_J0402.0-2616_daily_bin292.fits outfile=/scratch/kocevski/167592/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin292.fits ra=60.5103 dec=-26.273 rad=12.0 tmin=315014401.0 tmax=315273601.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 3.85
user 3.31
sys 0.53

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/167592/ft2_4FGL_J0402.0-2616_daily_bin292.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/167592/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin292.fits evtable="EVENTS" outfile="/scratch/kocevski/167592/ft1_filtered_4FGL_J0402.0-2616_daily_bin292.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.84
user 0.31
sys 0.49

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/167592/ft1_filtered_4FGL_J0402.0-2616_daily_bin292.fits" evtable="EVENTS" scfile=/scratch/kocevski/167592/ft2_4FGL_J0402.0-2616_daily_bin292.fits sctable="SC_DATA" outfile=/scratch/kocevski/167592/ltcube_315014401_315273601_4FGL_J0402.0-2616_daily_bin292.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/167592/ft2_4FGL_J0402.0-2616_daily_bin292.fits
.....................!
real 11.97
user 11.29
sys 0.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/167592/ft1_filtered_4FGL_J0402.0-2616_daily_bin292.fits evtable="EVENTS" scfile=/scratch/kocevski/167592/ft2_4FGL_J0402.0-2616_daily_bin292.fits sctable="SC_DATA" expcube=/scratch/kocevski/167592/ltcube_315014401_315273601_4FGL_J0402.0-2616_daily_bin292.fits outfile=/scratch/kocevski/167592/expmap_315014401_315273601_4FGL_J0402.0-2616_daily_bin292.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/167592/ltcube_315014401_315273601_4FGL_J0402.0-2616_daily_bin292.fits
.....................!
real 190.87
user 185.39
sys 5.17

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/167592/ft1_filtered_4FGL_J0402.0-2616_daily_bin292.fits scfile=/scratch/kocevski/167592/ft2_4FGL_J0402.0-2616_daily_bin292.fits outfile=/scratch/kocevski/167592/cmap_315014401_315273601_4FGL_J0402.0-2616_daily_bin292.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=60.5103 yref=-26.273 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.84
user 0.34
sys 0.49

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/167592/ft1_filtered_4FGL_J0402.0-2616_daily_bin292.fits scfile=/scratch/kocevski/167592/ft2_4FGL_J0402.0-2616_daily_bin292.fits outfile=/scratch/kocevski/167592/cmap_HighResolution_315014401_315273601_4FGL_J0402.0-2616_daily_bin292.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=60.5103 yref=-26.273 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.86
user 0.38
sys 0.47

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/167592/ft1_filtered_4FGL_J0402.0-2616_daily_bin292.fits evtable="EVENTS" scfile=/scratch/kocevski/167592/ft2_4FGL_J0402.0-2616_daily_bin292.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/167592/Model_4FGL_J0402.0-2616_daily_bin292.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/167592/ft1_filtered_4FGL_J0402.0-2616_daily_bin292.fits....................!
real 109.63
user 107.84
sys 1.60

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    122.93       1.0000         .10000E-03   10000.    
     2 'Prefactor '    54.708       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    42.116       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12263E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2253       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .96021E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    .77705       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11016E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .98531       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.613       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22823E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.313       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.9310       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.747       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15369E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.030       1.0000         .10000E-03   10000.    
    23 'norm      '    9.2263       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1459       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .68969       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=   4725.763     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     2949 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     122.89        161.34       -.33775E-04    .61549E-05
   2  Prefactor     54.688        34.570       -.87342E-05    .26130E-04
   3  Prefactor     .10000E-03    12.853       -.27614E-06** at limit **
   4  Prefactor     42.113        41.874       -.34607E-05    .26832E-04
   5  Prefactor     .10000E-03    90.548        .32758E-04** at limit **
   6  Prefactor     3.2246        3.4179       -.90002E-07    .17610E-03
   7  Prefactor     .10000E-03    1.8956       -.16813E-06** at limit **
   8  Prefactor     .10000E-03    2.1028       -.22308E-06** at limit **
   9  Prefactor     .82176E-01    6.9175       -.22872E-05    .45075E-03
  10  norm          .77675        .78353       -.28524E-06   -.44487E-03
  11  Prefactor     .10001E-03    35.082        .51940E-05** at limit **
  12  norm          .98699        1.6985       -.95595E-06   -.12062E-02
  13  Prefactor     .10000E-03    107.75        .19068E-04** at limit **
  14  Prefactor     24.641        36.337        .12702E-04    .11957E-03
  15  Prefactor     .10000E-03    2.8642       -.16048E-05** at limit **
  16  norm          10.314        10.119        .25704E-06    .91582E-04
  17  Prefactor     .10000E-03    26.026       -.16280E-05** at limit **
  18  norm          2.9309        .64730       -.15261E-06    .17040E-02
  19  Prefactor     11.750        5.9017        .94394E-08    .76485E-03
  20  Prefactor     .10006E-03    61.589       -.25851E-04** at limit **
  21  norm          .10000E-03    71.262        .15560E-06** at limit **
  22  Prefactor     26.900        71.374       -.18810E-03    .65667E-04
  23  norm          9.2258        6.1333        .11867E-05    .27770E-04
  24  Normalizat    1.1460        .21807        .73657E-05    .41630E-03
  25  Prefactor     .68974        .19305        .46035E-05    .51295E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 122.887
  Prefactor  = 54.6884
  Prefactor  = 0.0001
  Prefactor  = 42.1126
  Prefactor  = 0.0001
  Prefactor  = 3.22465
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0821757
  norm       = 0.776755
  Prefactor  = 0.000100006
  norm       = 0.986987
  Prefactor  = 0.0001
  Prefactor  = 24.6413
  Prefactor  = 0.000100005
  norm       = 10.3136
  Prefactor  = 0.0001
  norm       = 2.93091
  Prefactor  = 11.7497
  Prefactor  = 0.000100056
  norm       = 0.0001
  Prefactor  = 26.9
  norm       = 9.22582
  Normalizat = 1.14598
  Prefactor  = 0.689736
 **********
 **   18 **HESSE 
 **********

 FCN=   4725.763     FROM HESSE     STATUS=OK           429 CALLS     3378 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     122.89        161.36        .18151E-03   -1.3486    
   2  Prefactor     54.688        34.646        .54230E-04   -1.4228    
   3  Prefactor     .10000E-03    12.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     42.113        41.881        .61771E-04   -1.4409    
   5  Prefactor     .10000E-03    90.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.2246        3.3107        .11538E-03   -1.5349    
   7  Prefactor     .10000E-03    1.9148        .92378E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.1485        .97239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .82176E-01    9.2357        .69451E-01   -1.5651    
  10  norm          .77675        .75353        .58535E-03   -1.5532    
  11  Prefactor     .10001E-03    35.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .98699        1.4643        .10286E-02   -1.5509    
  13  Prefactor     .10000E-03    107.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.641        36.124        .80743E-04   -1.4715    
  15  Prefactor     .10000E-03    4.8845        .21753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.314        10.121        .12477E-03   -1.5066    
  17  Prefactor     .10000E-03    26.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.9309        .65078        .24647E-04   -1.5366    
  19  Prefactor     11.750        5.8846        .11251E-03   -1.5022    
  20  Prefactor     .10006E-03    62.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    71.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     26.900        71.428        .77055E-04   -1.4670    
  23  norm          9.2258        6.1445        .13194E-03   -1.5100    
  24  Normalizat    1.1460        .25623        .25333E-03   -.88289    
  25  Prefactor     .68974        .22592        .29529E-03   -1.0393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72574e-09
Minuit parameter uncertainties:
  1  161.938
  2  34.6591
  3  2.34128e-05
  4  41.9099
  5  2.45056e-05
  6  3.3109
  7  1.34132e-05
  8  1.07023e-05
  9  1.74157
  10  0.75354
  11  0.00091626
  12  1.46435
  13  0.000374752
  14  36.1563
  15  0.000306229
  16  10.1226
  17  0.000135238
  18  0.650777
  19  5.8849
  20  0.00374866
  21  1.96651e-05
  22  71.6563
  23  6.14489
  24  0.256507
  25  0.226224
Done.

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

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  1.031e+01  1.012e+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:  6.897e-01  2.262e-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:  1.146e+00  2.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.29
Ra Dec: 60.510 -26.273
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.45e-08 +/- 1.42e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 1.09e-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) = 4725.76155064
delta logL = 0.00111195876798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4725.76146962
delta logL = 0.00119297516903

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.198       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0716       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1443       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69007       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=   4725.761     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      227 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.183        350.46        .31368E-02    .24348E-04
   2  alpha         2.0661        3.9208        .41942       -.15100E-04
   3  Normalizat    1.1445        .18687        .57320E-01   -.34185E-03
   4  Prefactor     .69016        .10181        .66716E-01   -.14533E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.1829
  alpha      = 2.06607
  Normalizat = 1.14446
  Prefactor  = 0.690158
 **********
 **   18 **HESSE 
 **********

 FCN=   4725.761     FROM HESSE     STATUS=OK            31 CALLS      258 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.183        10.559        .12547E-03   -1.5070    
   2  alpha         2.0661        1.3895        .23152E-01   -.17446    
   3  Normalizat    1.1445        .24302        .25348E-03   -.88337    
   4  Prefactor     .69016        .22374        .29520E-03   -1.0391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00953e-10
Minuit parameter uncertainties:
  1  10.5609
  2  1.47639
  3  0.243258
  4  0.224034
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/167592': 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) = 4725.76145767
delta logL = 0.00120492703718

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  1.018e+01  1.056e+01  1.000e-04  1.000e+04 ( 1.000e-13)
256        alpha:  2.066e+00  1.476e+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:  6.902e-01  2.240e-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:  1.144e+00  2.433e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.29
Ra Dec: 60.510 -26.273
Photon Index (Free Index): 2.07 +/- 1.48
Photon Flux (Free Index): 1.59e-08 +/- 3.42e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.13e-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/167592/cmap_HighResolution_315014401_315273601_4FGL_J0402.0-2616_daily_bin292.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.45e-08', energy_flux2='1.09e-05', photon_flux_error='1.42e-08', dlogl='1.20e-03', energy_flux='1.11e-05', photon_flux2='1.59e-08', job_status='DONE', time_completed='2021-08-19 23:56:11.898255', photon_index_error2='1.48', photon_index2='2.07', ts='5.29', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='1.13e-05', EG='1.15', time_epoch_completed='1629442571.9', return_code='0', job_id='167592', GAL2='0.69', EG2='1.14', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='3.42e-08', ts2='5.29', photon_index='2.00' WHERE bin_id='292' AND source_name='4FGL J0402.0-2616' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:56:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0053>
Subject: Job 167592: <4FGL_J0402.0-2616_daily_bin292> in cluster <slac> Done

Job <4FGL_J0402.0-2616_daily_bin292> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Aug 19 23:45:57 2021
Job was executed on host(s) <bullet0053>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 23:45:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 23:45:58 2021
Terminated at Thu Aug 19 23:56:12 2021
Results reported at Thu Aug 19 23:56:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0402.0-2616_daily_bin292 60.5103 -26.273 315014401 315273601 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 :                                   591.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             396.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   614 sec.
    Turnaround time :                            615 sec.

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

