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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin609
RA = 354.904, Dec = 2.7102
tmin = 397180801, tmax = 397440001
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='71906', job_status='RUN', time_executed='2021-09-30 02:38:47.817351', time_epoch_executed='1632994727.82' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='609'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71906

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71906/ft1_4FGL_J2339.6+0242_daily_bin609.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71906/ft2_4FGL_J2339.6+0242_daily_bin609.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71906/ft1_4FGL_J2339.6+0242_daily_bin609.fits outfile=/scratch/kocevski/71906/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin609.fits ra=354.904 dec=2.7102 rad=12.0 tmin=397180801.0 tmax=397440001.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.97
user 3.73
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71906/ft1_filtered_4FGL_J2339.6+0242_daily_bin609.fits" evtable="EVENTS" scfile=/scratch/kocevski/71906/ft2_4FGL_J2339.6+0242_daily_bin609.fits sctable="SC_DATA" outfile=/scratch/kocevski/71906/ltcube_397180801_397440001_4FGL_J2339.6+0242_daily_bin609.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/71906/ft2_4FGL_J2339.6+0242_daily_bin609.fits
.....................!
real 10.51
user 10.17
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71906/ft1_filtered_4FGL_J2339.6+0242_daily_bin609.fits evtable="EVENTS" scfile=/scratch/kocevski/71906/ft2_4FGL_J2339.6+0242_daily_bin609.fits sctable="SC_DATA" expcube=/scratch/kocevski/71906/ltcube_397180801_397440001_4FGL_J2339.6+0242_daily_bin609.fits outfile=/scratch/kocevski/71906/expmap_397180801_397440001_4FGL_J2339.6+0242_daily_bin609.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/71906/ltcube_397180801_397440001_4FGL_J2339.6+0242_daily_bin609.fits
.....................!
real 189.58
user 184.99
sys 4.23

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/71906/ft1_filtered_4FGL_J2339.6+0242_daily_bin609.fits scfile=/scratch/kocevski/71906/ft2_4FGL_J2339.6+0242_daily_bin609.fits outfile=/scratch/kocevski/71906/cmap_397180801_397440001_4FGL_J2339.6+0242_daily_bin609.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71906/ft1_filtered_4FGL_J2339.6+0242_daily_bin609.fits scfile=/scratch/kocevski/71906/ft2_4FGL_J2339.6+0242_daily_bin609.fits outfile=/scratch/kocevski/71906/cmap_HighResolution_397180801_397440001_4FGL_J2339.6+0242_daily_bin609.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.55
user 0.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/71906/ft1_filtered_4FGL_J2339.6+0242_daily_bin609.fits evtable="EVENTS" scfile=/scratch/kocevski/71906/ft2_4FGL_J2339.6+0242_daily_bin609.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/71906/Model_4FGL_J2339.6+0242_daily_bin609.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/71906/ft1_filtered_4FGL_J2339.6+0242_daily_bin609.fits.....................!
real 61.71
user 60.39
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/71906/ft1_filtered_4FGL_J2339.6+0242_daily_bin609.fits', '/scratch/kocevski/71906/ft2_4FGL_J2339.6+0242_daily_bin609.fits', expMap='/scratch/kocevski/71906/expmap_397180801_397440001_4FGL_J2339.6+0242_daily_bin609.fits', expCube='/scratch/kocevski/71906/ltcube_397180801_397440001_4FGL_J2339.6+0242_daily_bin609.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/71906/Model_4FGL_J2339.6+0242_daily_bin609.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/71906/ft1_filtered_4FGL_J2339.6+0242_daily_bin609.fits
Spacecraft file(s): /scratch/kocevski/71906/ft2_4FGL_J2339.6+0242_daily_bin609.fits
Exposure map: /scratch/kocevski/71906/expmap_397180801_397440001_4FGL_J2339.6+0242_daily_bin609.fits
Exposure cube: /scratch/kocevski/71906/ltcube_397180801_397440001_4FGL_J2339.6+0242_daily_bin609.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/71906/Model_4FGL_J2339.6+0242_daily_bin609.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) = 6205.28400971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8970       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .28894       1.0000         .10000E-03   10000.    
     6 'norm      '    14.222       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.863       1.0000         .10000E-03   10000.    
     8 'norm      '    .10504E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.838       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.214       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.3895       1.0000         .10000E-03   10000.    
    13 'norm      '    4.0726       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3693       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    36.356       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.9735       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.621       1.0000         .10000E-03   10000.    
    22 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    40.535       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .83049       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .92951       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=   6205.276     FROM MIGRAD    STATUS=CONVERGED    800 CALLS     3938 TOTAL
                     EDM=   .44E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8975        7.9119        .24896E-05    .19506E-04
   2  Prefactor     .10000E-03    11.547        .23616E-06** at limit **
   3  Prefactor     .10000E-03    25.091       -.22290E-06** at limit **
   4  Prefactor     .10000E-03    1.7409       -.15625E-07** at limit **
   5  norm          .28385        1.4693        .42665E-06   -.34951E-03
   6  norm          14.222        6.6383        .36876E-06    .27243E-04
   7  Prefactor     10.868        15.711        .24627E-06   -.35506E-05
   8  norm          .10000E-03    16.529        .25529E-06** at limit **
   9  Prefactor     43.836        37.284       -.97983E-06   -.25036E-05
  10  Prefactor     10.214        11.736       -.89023E-07   -.19524E-06
  11  Prefactor     .10000E-03    24.830       -.40487E-07** at limit **
  12  Prefactor     9.3919        8.8357        .56102E-07    .86404E-05
  13  norm          4.0728        1.1954        .14883E-07    .61273E-04
  14  norm          .10000E-03    2.1325       -.88194E-08** at limit **
  15  Prefactor     3.3744        8.9452        .41105E-05    .20334E-05
  16  Prefactor     .10000E-03    15.374       -.12823E-07** at limit **
  17  norm          .10000E-03    6.5647       -.87937E-07** at limit **
  18  Prefactor     .10000E-03    8.1677       -.22262E-06** at limit **
  19  Prefactor     35.855        110.18        .14847E-05    .94742E-06
  20  Prefactor     4.9797        9.5452        .31682E-06    .13255E-04
  21  Prefactor     11.612        23.756       -.53716E-08    .12669E-04
  22  norm          .10000E-03    13.310        .55499E-06** at limit **
  23  norm          .10000E-03    10.494        .10513E-06** at limit **
  24  Prefactor     .10000E-03    12.291       -.72670E-06** at limit **
  25  Prefactor     .10000E-03    2.5935        .37172E-07** at limit **
  26  Prefactor     40.526        35.819       -.31291E-05   -.12201E-04
  27  Prefactor     .10000E-03    16.209       -.50662E-06** at limit **
  28  Prefactor     .10000E-03    9.0043       -.10232E-06** at limit **
  29  Normalizat    .83032        .19420       -.87937E-06   -.24726E-04
  30  Prefactor     .92965        .12669        .29374E-06    .10150E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.89749
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.28385
  norm       = 14.2222
  Prefactor  = 10.8676
  norm       = 0.0001
  Prefactor  = 43.8356
  Prefactor  = 10.214
  Prefactor  = 0.0001
  Prefactor  = 9.39192
  norm       = 4.07279
  norm       = 0.0001
  Prefactor  = 3.3744
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.8546
  Prefactor  = 4.97972
  Prefactor  = 11.6119
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.5264
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.830316
  Prefactor  = 0.929649
 **********
 **   18 **HESSE 
 **********

 FCN=   6205.276     FROM HESSE     STATUS=OK           586 CALLS     4524 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8975        7.8929        .10219E-02   -1.5313    
   2  Prefactor     .10000E-03    11.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.7443        .10150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .28385        6.0531        .17096E-02   -1.5601    
   6  norm          14.222        6.6349        .10621E-03   -1.4954    
   7  Prefactor     10.868        15.691        .12156E-03   -1.5049    
   8  norm          .10000E-03    16.997        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     43.836        37.313        .60550E-04   -1.4383    
  10  Prefactor     10.214        11.737        .12537E-03   -1.5069    
  11  Prefactor     .10000E-03    25.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.3919        8.8477        .13079E-03   -1.5095    
  13  norm          4.0728        1.1959        .43884E-04   -1.5304    
  14  norm          .10000E-03    2.1415        .11222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.3744        8.9684        .11023E-02   -1.5341    
  16  Prefactor     .10000E-03    15.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.6521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.4030        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     35.855        110.11        .66467E-04   -1.4510    
  20  Prefactor     4.9797        9.5100        .18033E-03   -1.5262    
  21  Prefactor     11.612        23.752        .11752E-03   -1.5026    
  22  norm          .10000E-03    13.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    10.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.6429        .24686E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     40.526        35.899        .62959E-04   -1.4434    
  27  Prefactor     .10000E-03    16.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.0477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .83032        .22734        .29301E-03   -.98954    
  30  Prefactor     .92965        .14846        .19737E-03   -.95113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58008e-10
Minuit parameter uncertainties:
  1  7.89501
  2  1.24625e-06
  3  8.66091e-05
  4  1.43422e-06
  5  2.62141
  6  6.63519
  7  15.6969
  8  4.66617e-05
  9  37.3324
  10  11.74
  11  8.77471e-06
  12  8.84893
  13  1.19595
  14  6.19887e-07
  15  8.97199
  16  1.86864e-05
  17  2.96049e-05
  18  4.34318e-05
  19  110.744
  20  9.51283
  21  23.7709
  22  7.77894e-06
  23  3.52173e-06
  24  6.18445e-06
  25  2.79118e-06
  26  35.9182
  27  2.86145e-05
  28  3.09893e-06
  29  0.227601
  30  0.14853
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  4.053e+01  3.592e+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:  9.296e-01  1.485e-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:  8.303e-01  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.88
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.91e-08 +/- 4.34e-08
Energy Flux (Fixed Index): 1.35e-05 +/- 1.20e-05

TS (Fixed Index): 1.88
Ra Dec: 354.904 2.710
Photon Flux Upper Limit: 1.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71906/likelihoodResults_397180801_397440001_4FGL_J2339.6+0242_daily_bin609.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) = 6205.17385862
delta logL = 0.102584803101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6205.16339173
delta logL = 0.11305169783

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.936       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1327       1.0000          .0000       10.000    
     3 'Normalizat'    .80734       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94203       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6205.163     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      316 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.957        122.91        .85521E-04   -.12881E-03
   2  Index         3.1323        2.9727        .71265E-02   -.29517E-04
   3  Normalizat    .80643        .22302        .29691E-03   -.12663E-03
   4  Prefactor     .94272        .15664        .19618E-03    .42634E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.9571
  Index      = 3.13226
  Normalizat = 0.806435
  Prefactor  = 0.942716
 **********
 **   18 **HESSE 
 **********

 FCN=   6205.163     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.957        45.245        .34209E-05   -1.4770    
   2  Index         3.1323        1.3799        .28506E-03   -.38283    
   3  Normalizat    .80643        .21037        .11876E-04   -.99830    
   4  Prefactor     .94272        .14731        .39235E-04   -.94664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.83583e-10
Minuit parameter uncertainties:
  1  45.316
  2  1.40116
  3  0.210579
  4  0.147369
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71906': 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) = 6205.16338001
delta logL = 0.113063416155

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  2.196e+01  4.532e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  3.132e+00  1.401e+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:  9.427e-01  1.474e-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:  8.064e-01  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.14
Ra Dec: 354.904 2.710
Photon Index (Free Index): 3.13 +/- 1.40
Photon Flux (Free Index): 6.40e-08 +/- 5.58e-08
Energy Flux (Free Index): 1.20e-05 +/- 1.02e-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/71906/cmap_HighResolution_397180801_397440001_4FGL_J2339.6+0242_daily_bin609.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', photon_flux='4.91e-08', energy_flux2='1.20e-05', photon_flux_error='4.34e-08', dlogl='1.13e-01', energy_flux='1.35e-05', photon_flux2='6.40e-08', job_status='DONE', time_completed='2021-09-30 02:52:05.539487', photon_index_error2='1.40', photon_index2='3.13', ts='1.88', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='1.02e-05', EG='0.83', time_epoch_completed='1632995525.54', return_code='0', job_id='71906', GAL2='0.94', EG2='0.81', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='5.58e-08', ts2='2.14', photon_index='2.55' WHERE bin_id='609' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:52:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 71906: <4FGL_J2339.6+0242_daily_bin609> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin609> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 02:35:55 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:35:58 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:58 2021
Terminated at Thu Sep 30 02:52:06 2021
Results reported at Thu Sep 30 02:52:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin609 354.904 2.7102 397180801 397440001 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 :                                   797.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            971 sec.

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

