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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin407
RA = 354.904, Dec = 2.7102
tmin = 344822401, tmax = 345081601
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='71551', job_status='RUN', time_executed='2021-09-30 02:39:21.320925', time_epoch_executed='1632994761.32' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='407'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71551

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71551/ft1_4FGL_J2339.6+0242_daily_bin407.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71551/ft2_4FGL_J2339.6+0242_daily_bin407.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71551/ft1_4FGL_J2339.6+0242_daily_bin407.fits outfile=/scratch/kocevski/71551/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin407.fits ra=354.904 dec=2.7102 rad=12.0 tmin=344822401.0 tmax=345081601.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.41
user 3.17
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/71551/ft2_4FGL_J2339.6+0242_daily_bin407.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/71551/ft2_4FGL_J2339.6+0242_daily_bin407.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/71551/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin407.fits evtable="EVENTS" outfile="/scratch/kocevski/71551/ft1_filtered_4FGL_J2339.6+0242_daily_bin407.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71551/ft1_filtered_4FGL_J2339.6+0242_daily_bin407.fits" evtable="EVENTS" scfile=/scratch/kocevski/71551/ft2_4FGL_J2339.6+0242_daily_bin407.fits sctable="SC_DATA" outfile=/scratch/kocevski/71551/ltcube_344822401_345081601_4FGL_J2339.6+0242_daily_bin407.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/71551/ft2_4FGL_J2339.6+0242_daily_bin407.fits
.....................!
real 12.51
user 12.12
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71551/ft1_filtered_4FGL_J2339.6+0242_daily_bin407.fits evtable="EVENTS" scfile=/scratch/kocevski/71551/ft2_4FGL_J2339.6+0242_daily_bin407.fits sctable="SC_DATA" expcube=/scratch/kocevski/71551/ltcube_344822401_345081601_4FGL_J2339.6+0242_daily_bin407.fits outfile=/scratch/kocevski/71551/expmap_344822401_345081601_4FGL_J2339.6+0242_daily_bin407.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/71551/ltcube_344822401_345081601_4FGL_J2339.6+0242_daily_bin407.fits
.....................!
real 191.01
user 185.00
sys 5.56

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
Added 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J2339.6+0242 @ 354.904 2.7102

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/71551/ft1_filtered_4FGL_J2339.6+0242_daily_bin407.fits scfile=/scratch/kocevski/71551/ft2_4FGL_J2339.6+0242_daily_bin407.fits outfile=/scratch/kocevski/71551/cmap_344822401_345081601_4FGL_J2339.6+0242_daily_bin407.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=354.904 yref=2.7102 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.53
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71551/ft1_filtered_4FGL_J2339.6+0242_daily_bin407.fits scfile=/scratch/kocevski/71551/ft2_4FGL_J2339.6+0242_daily_bin407.fits outfile=/scratch/kocevski/71551/cmap_HighResolution_344822401_345081601_4FGL_J2339.6+0242_daily_bin407.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=354.904 yref=2.7102 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/71551/ft1_filtered_4FGL_J2339.6+0242_daily_bin407.fits evtable="EVENTS" scfile=/scratch/kocevski/71551/ft2_4FGL_J2339.6+0242_daily_bin407.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/71551/Model_4FGL_J2339.6+0242_daily_bin407.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 GAL_V02
Working on...
/scratch/kocevski/71551/ft1_filtered_4FGL_J2339.6+0242_daily_bin407.fits.....................!
real 59.93
user 58.53
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/71551/ft1_filtered_4FGL_J2339.6+0242_daily_bin407.fits', '/scratch/kocevski/71551/ft2_4FGL_J2339.6+0242_daily_bin407.fits', expMap='/scratch/kocevski/71551/expmap_344822401_345081601_4FGL_J2339.6+0242_daily_bin407.fits', expCube='/scratch/kocevski/71551/ltcube_344822401_345081601_4FGL_J2339.6+0242_daily_bin407.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/71551/Model_4FGL_J2339.6+0242_daily_bin407.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2339.6+0242'

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  8.280e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.549e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
465        Scale:  7.790e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/71551/ft1_filtered_4FGL_J2339.6+0242_daily_bin407.fits
Spacecraft file(s): /scratch/kocevski/71551/ft2_4FGL_J2339.6+0242_daily_bin407.fits
Exposure map: /scratch/kocevski/71551/expmap_344822401_345081601_4FGL_J2339.6+0242_daily_bin407.fits
Exposure cube: /scratch/kocevski/71551/ltcube_344822401_345081601_4FGL_J2339.6+0242_daily_bin407.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/71551/Model_4FGL_J2339.6+0242_daily_bin407.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) = 5796.06714832

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.633       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.933       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .58389       1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.6187       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3850       1.0000         .10000E-03   10000.    
    13 'norm      '    1.4254       1.0000         .10000E-03   10000.    
    14 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10687E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .31653       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.222       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.1146       1.0000         .10000E-03   10000.    
    24 'Prefactor '    57.993       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    100.37       1.0000         .10000E-03   10000.    
    27 'Prefactor '    19.183       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.5165       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .58724       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3019       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5796.045     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     3956 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.631        13.494        .48510E-07   -.79007E-04
   2  Prefactor     .10000E-03    139.73        .52969E-05** at limit **
   3  Prefactor     27.892        22.787       -.63031E-06   -.17240E-03
   4  Prefactor     .10000E-03    8.5020       -.43489E-08** at limit **
   5  norm          .59003        2.8262        .16928E-05    .41893E-03
   6  norm          .10000E-03    2.0685        .19461E-06** at limit **
   7  Prefactor     .10000E-03    6.8126        .24354E-06** at limit **
   8  norm          .10000E-03    6.7557        .37847E-07** at limit **
   9  Prefactor     9.5701        44.125        .84605E-05   -.26630E-04
  10  Prefactor     .10000E-03    7.1983        .33764E-06** at limit **
  11  Prefactor     .10000E-03    5.5001       -.13525E-07** at limit **
  12  Prefactor     1.3941        12.704        .20626E-04   -.62054E-04
  13  norm          1.4258        1.2219       -.16667E-08   -.81548E-04
  14  norm          .10000E-03    2.2398       -.11481E-06** at limit **
  15  Prefactor     .10000E-03    3.1177       -.38777E-08** at limit **
  16  Prefactor     .10000E-03    59.031        .14201E-05** at limit **
  17  norm          .33577        7.7861       -.23048E-05    .22182E-03
  18  Prefactor     .10000E-03    5.0629        .36498E-06** at limit **
  19  Prefactor     .10000E-03    111.55       -.65521E-05** at limit **
  20  Prefactor     .10000E-03    14.025        .52127E-06** at limit **
  21  Prefactor     12.242        35.253       -.95476E-06   -.11046E-03
  22  norm          .10000E-03    9.2054        .55169E-06** at limit **
  23  norm          4.1282        15.678        .10487E-06   -.15314E-05
  24  Prefactor     57.912        67.298        .65250E-05   -.47379E-04
  25  Prefactor     .10000E-03    1.8441        .40068E-08** at limit **
  26  Prefactor     100.37        59.111        .91953E-06   -.57527E-04
  27  Prefactor     19.176        31.175        .19677E-05   -.40386E-04
  28  Prefactor     6.5152        16.245        .10177E-05   -.22178E-04
  29  Normalizat    .58716        .24586       -.64154E-05   -.25855E-03
  30  Prefactor     1.3020        .16016        .45153E-06   -.36876E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.6314
  Prefactor  = 0.0001
  Prefactor  = 27.8919
  Prefactor  = 0.0001
  norm       = 0.590025
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.57015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.39406
  norm       = 1.42583
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.335766
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2422
  norm       = 0.0001
  norm       = 4.12825
  Prefactor  = 57.9117
  Prefactor  = 0.0001
  Prefactor  = 100.366
  Prefactor  = 19.1763
  Prefactor  = 6.51516
  Normalizat = 0.587161
  Prefactor  = 1.30198
 **********
 **   18 **HESSE 
 **********

 FCN=   5796.045     FROM HESSE     STATUS=OK           580 CALLS     4536 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.631        13.493        .98205E-04   -1.4892    
   2  Prefactor     .10000E-03    140.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.892        21.944        .75802E-04   -1.4651    
   4  Prefactor     .10000E-03    8.6659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .59003        2.5781        .21866E-03   -1.5554    
   6  norm          .10000E-03    2.0821        .10693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.8410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.7911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.5701        44.218        .12921E-03   -1.5089    
  10  Prefactor     .10000E-03    7.2938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.5031        .17438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.3941        12.773        .18480E-02   -1.5472    
  13  norm          1.4258        1.2017        .72912E-04   -1.5469    
  14  norm          .10000E-03    2.2497        .11132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.1202        .13124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    59.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .33577        36.268        .36739E-02   -1.5592    
  18  Prefactor     .10000E-03    5.1025        .16695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    111.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.242        34.634        .11458E-03   -1.5008    
  22  norm          .10000E-03    9.2218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.1282        15.549        .19873E-03   -1.5302    
  24  Prefactor     57.912        67.303        .26340E-03   -1.4184    
  25  Prefactor     .10000E-03    1.8512        .10074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     100.37        59.097        .40129E-04   -1.3701    
  27  Prefactor     19.176        31.137        .91446E-04   -1.4832    
  28  Prefactor     6.5152        16.226        .15721E-03   -1.5197    
  29  Normalizat    .58716        .26363        .38171E-03   -1.0853    
  30  Prefactor     1.3020        .17517        .19085E-03   -.83248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39577e-09
Minuit parameter uncertainties:
  1  13.4957
  2  0.000158674
  3  21.9503
  4  0.000105456
  5  2.46667
  6  1.63062e-05
  7  4.61138e-05
  8  3.69147e-05
  9  41.1923
  10  1.07444e-05
  11  2.84422e-06
  12  8.44149
  13  1.20176
  14  2.21451e-05
  15  5.48811e-06
  16  0.000116733
  17  6.98262
  18  7.25866e-05
  19  0.000232382
  20  0.000109334
  21  34.6909
  22  2.16396e-05
  23  15.5646
  24  67.3914
  25  5.81737e-07
  26  59.1317
  27  31.1631
  28  16.2369
  29  0.264199
  30  0.175247
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.004e+02  5.913e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.549e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
465        Scale:  7.790e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.302e+00  1.752e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  5.872e-01  2.642e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.98
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.21e-07 +/- 7.15e-08
Energy Flux (Fixed Index): 3.35e-05 +/- 1.97e-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): 102
logL (Free Index) = 5794.9223037
delta logL = 1.12263895925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5794.84815237
delta logL = 1.19679028829

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31152       1.0000         .10000E-03   10000.    
     2 'Index     '    6.1849       1.0000          .0000       10.000    
     3 'Normalizat'    .44743       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3976       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5794.848     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      357 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30244        2.0050        .41476E-02   -.28809E-03
   2  Index         6.2008        2.4375        .81705E-01    .61469E-04
   3  Normalizat    .44711        .76249E-01    .97932E-01   -.60328E-04
   4  Prefactor     1.3978        .54824E-01    .31095E-01   -.15267E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.302436
  Index      = 6.20085
  Normalizat = 0.447108
  Prefactor  = 1.39775
 **********
 **   18 **HESSE 
 **********

 FCN=   5794.848     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      388 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30244        3.1651        .18521E-04   -1.5598    
   2  Index         6.2008        3.1326        .34390E-02    .24254    
   3  Normalizat    .44711        .22661        .43394E-03   -1.1493    
   4  Prefactor     1.3978        .16008        .18535E-03   -.80445    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.4033e-11
Minuit parameter uncertainties:
  1  1.95659
  2  3.40509
  3  0.227075
  4  0.160141
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71551': 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): 102
logL (Free Index) = 5794.84814427
delta logL = 1.1967983875

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.024e-01  1.957e+00  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  6.201e+00  3.405e+00  0.000e+00  1.000e+01 (-1.000e+00)
465        Scale:  7.790e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.398e+00  1.601e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  4.471e-01  2.271e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.18
Ra Dec: 354.904 2.710
Photon Index (Free Index): 6.20 +/- 3.41
Photon Flux (Free Index): 1.98e-07 +/- 9.41e-08
Energy Flux (Free Index): 2.45e-05 +/- 1.31e-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/71551/cmap_HighResolution_344822401_345081601_4FGL_J2339.6+0242_daily_bin407.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.21e-07', energy_flux2='2.45e-05', photon_flux_error='7.15e-08', dlogl='1.20e+00', energy_flux='3.35e-05', photon_flux2='1.98e-07', job_status='DONE', time_completed='2021-09-30 02:50:36.503215', photon_index_error2='3.41', photon_index2='6.20', ts='4.98', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', energy_flux_error2='1.31e-05', EG='0.59', time_epoch_completed='1632995436.5', return_code='0', job_id='71551', GAL2='1.40', EG2='0.45', return_code2='102', energy_flux_error='1.97e-05', photon_flux_error2='9.41e-08', ts2='8.18', photon_index='2.55' WHERE bin_id='407' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:50:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 71551: <4FGL_J2339.6+0242_daily_bin407> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin407> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 02:35:20 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:35:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 02:35:21 2021
Terminated at Thu Sep 30 02:50:37 2021
Results reported at Thu Sep 30 02:50:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin407 354.904 2.7102 344822401 345081601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2339.6+0242 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   674.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             255.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            917 sec.

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

