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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin1276
RA = 354.904, Dec = 2.7102
tmin = 570067201, tmax = 570326401
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='76175', job_status='RUN', time_executed='2021-09-30 02:50:24.680559', time_epoch_executed='1632995424.68' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='1276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/76175

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/76175/ft1_4FGL_J2339.6+0242_daily_bin1276.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/76175/ft2_4FGL_J2339.6+0242_daily_bin1276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/76175/ft1_4FGL_J2339.6+0242_daily_bin1276.fits outfile=/scratch/kocevski/76175/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin1276.fits ra=354.904 dec=2.7102 rad=12.0 tmin=570067201.0 tmax=570326401.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.59
user 3.39
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/76175/ft2_4FGL_J2339.6+0242_daily_bin1276.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/76175/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin1276.fits evtable="EVENTS" outfile="/scratch/kocevski/76175/ft1_filtered_4FGL_J2339.6+0242_daily_bin1276.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.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/76175/ft1_filtered_4FGL_J2339.6+0242_daily_bin1276.fits evtable="EVENTS" scfile=/scratch/kocevski/76175/ft2_4FGL_J2339.6+0242_daily_bin1276.fits sctable="SC_DATA" expcube=/scratch/kocevski/76175/ltcube_570067201_570326401_4FGL_J2339.6+0242_daily_bin1276.fits outfile=/scratch/kocevski/76175/expmap_570067201_570326401_4FGL_J2339.6+0242_daily_bin1276.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/76175/ltcube_570067201_570326401_4FGL_J2339.6+0242_daily_bin1276.fits
.....................!
real 191.04
user 185.61
sys 5.11

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/76175/ft1_filtered_4FGL_J2339.6+0242_daily_bin1276.fits scfile=/scratch/kocevski/76175/ft2_4FGL_J2339.6+0242_daily_bin1276.fits outfile=/scratch/kocevski/76175/cmap_570067201_570326401_4FGL_J2339.6+0242_daily_bin1276.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/76175/ft1_filtered_4FGL_J2339.6+0242_daily_bin1276.fits scfile=/scratch/kocevski/76175/ft2_4FGL_J2339.6+0242_daily_bin1276.fits outfile=/scratch/kocevski/76175/cmap_HighResolution_570067201_570326401_4FGL_J2339.6+0242_daily_bin1276.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11637E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.7904       1.0000         .10000E-03   10000.    
     6 'norm      '    1.2675       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    34.116       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6298       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.6735       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.4336       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.364       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.490       1.0000         .10000E-03   10000.    
    22 'norm      '    15.787       1.0000         .10000E-03   10000.    
    23 'norm      '    16.737       1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.785       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    49.133       1.0000         .10000E-03   10000.    
    27 'Prefactor '    28.193       1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.5740       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .51831       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0666       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=   4878.816     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     3929 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.571        .42267E-06** at limit **
   2  Prefactor     .10000E-03    25.705        .89970E-06** at limit **
   3  Prefactor     .10000E-03    7.6561        .13163E-06** at limit **
   4  Prefactor     .10000E-03    10.639        .45683E-06** at limit **
   5  norm          1.7904        2.0670        .86606E-07   -.20607E-04
   6  norm          1.2640        5.2250        .18541E-05   -.28901E-04
   7  Prefactor     .10000E-03    6.9620       -.14758E-06** at limit **
   8  norm          34.115        19.169        .74237E-07    .30887E-05
   9  Prefactor     .10000E-03    17.356       -.52843E-06** at limit **
  10  Prefactor     .10000E-03    6.2373        .49219E-07** at limit **
  11  Prefactor     2.6188        67.749        .18147E-05   -.31688E-05
  12  Prefactor     .10000E-03    4.0355       -.38778E-08** at limit **
  13  norm          2.6735        1.3810       -.98718E-08    .10174E-03
  14  norm          .10000E-03    2.7094        .47406E-08** at limit **
  15  Prefactor     .10000E-03    10.594       -.30518E-06** at limit **
  16  Prefactor     .10000E-03    63.952        .33939E-05** at limit **
  17  norm          9.4299        12.473       -.69503E-06    .16600E-06
  18  Prefactor     13.363        10.763        .12885E-05   -.51058E-04
  19  Prefactor     .10000E-03    120.54       -.23588E-05** at limit **
  20  Prefactor     .10000E-03    43.607       -.22228E-05** at limit **
  21  Prefactor     15.482        32.461       -.35517E-06   -.19171E-04
  22  norm          15.787        15.870       -.83415E-07   -.76232E-06
  23  norm          16.731        19.273       -.82462E-06    .51703E-04
  24  Prefactor     17.777        70.129       -.54017E-06   -.15244E-04
  25  Prefactor     .10000E-03    5.2794       -.27158E-07** at limit **
  26  Prefactor     49.124        39.758       -.36205E-06   -.37193E-04
  27  Prefactor     28.192        26.041        .32881E-06   -.41336E-05
  28  Prefactor     9.5738        11.849        .10253E-06    .19457E-06
  29  Normalizat    .51830        .24120       -.12643E-05   -.15298E-04
  30  Prefactor     1.0667        .15576       -.74903E-07   -.35624E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.79044
  norm       = 1.26395
  Prefactor  = 0.0001
  norm       = 34.1146
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.61881
  Prefactor  = 0.0001
  norm       = 2.67353
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 9.42993
  Prefactor  = 13.3628
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 15.4817
  norm       = 15.7868
  norm       = 16.7312
  Prefactor  = 17.7773
  Prefactor  = 0.0001
  Prefactor  = 49.1244
  Prefactor  = 28.1918
  Prefactor  = 9.57382
  Normalizat = 0.518303
  Prefactor  = 1.06671
 **********
 **   18 **HESSE 
 **********

 FCN=   4878.816     FROM HESSE     STATUS=OK           584 CALLS     4513 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.6726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.091        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.7904        2.0556        .10371E-03   -1.5440    
   6  norm          1.2640        5.3403        .30791E-03   -1.5483    
   7  Prefactor     .10000E-03    6.9987        .18005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          34.115        19.153        .68607E-04   -1.4539    
   9  Prefactor     .10000E-03    17.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.2578        .17037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.6188        67.512        .25146E-03   -1.5384    
  12  Prefactor     .10000E-03    4.0384        .13703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.6735        1.3751        .55844E-04   -1.5381    
  14  norm          .10000E-03    2.7149        .11227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    67.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.4299        12.417        .13048E-03   -1.5094    
  18  Prefactor     13.363        10.861        .54785E-03   -1.4977    
  19  Prefactor     .10000E-03    121.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    44.397        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.482        32.356        .10176E-03   -1.4921    
  22  norm          15.787        15.867        .10080E-03   -1.4913    
  23  norm          16.731        19.031        .97900E-04   -1.4890    
  24  Prefactor     17.777        70.357        .94971E-04   -1.4864    
  25  Prefactor     .10000E-03    5.4126        .31243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     49.124        39.817        .57209E-04   -1.4305    
  27  Prefactor     28.192        26.027        .37726E-03   -1.4646    
  28  Prefactor     9.5738        11.844        .12951E-03   -1.5089    
  29  Normalizat    .51830        .26221        .37351E-03   -1.1157    
  30  Prefactor     1.0667        .17322        .18641E-03   -.90538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37158e-10
Minuit parameter uncertainties:
  1  5.43756e-05
  2  0.000168543
  3  1.12494e-05
  4  3.08762e-05
  5  2.05566
  6  5.19668
  7  2.03406e-05
  8  19.1562
  9  8.27802e-05
  10  3.40613e-06
  11  26.6262
  12  2.35269e-06
  13  1.37507
  14  2.41178e-06
  15  2.2558e-05
  16  0.0010536
  17  12.4202
  18  10.8629
  19  0.000942459
  20  0.000126369
  21  32.3927
  22  15.8711
  23  19.0381
  24  70.6881
  25  3.29203e-05
  26  39.8387
  27  26.0378
  28  11.847
  29  0.262835
  30  0.173308
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  4.912e+01  3.984e+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.067e+00  1.733e-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.183e-01  2.628e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.21
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 5.95e-08 +/- 4.82e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.33e-05

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

Saving results to:
/scratch/kocevski/76175/likelihoodResults_570067201_570326401_4FGL_J2339.6+0242_daily_bin1276.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) = 4878.80705714
delta logL = 0.00879889490443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4878.80482932
delta logL = 0.0110267165919

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.370       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4247       1.0000          .0000       10.000    
     3 'Normalizat'    .52643       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0634       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=   4878.805     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      261 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.374        44.245        .55956E-04   -.35417E-03
   2  Index         2.4248        .83976        .82602E-02   -.17959E-03
   3  Normalizat    .52601        .25090        .37091E-03    .12423E-03
   4  Prefactor     1.0637        .17299        .18665E-03    .33186E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.3738
  Index      = 2.42485
  Normalizat = 0.526006
  Prefactor  = 1.06368
 **********
 **   18 **HESSE 
 **********

 FCN=   4878.805     FROM HESSE     STATUS=OK            23 CALLS      284 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.374        43.746        .11191E-04   -1.4273    
   2  Index         2.4248        .82905        .33041E-03   -.54104    
   3  Normalizat    .52601        .25079        .14837E-04   -1.1122    
   4  Prefactor     1.0637        .17299        .37330E-04   -.90636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53978e-09
Minuit parameter uncertainties:
  1  43.7734
  2  0.834309
  3  0.251332
  4  0.173084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/76175': 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) = 4878.80482785
delta logL = 0.0110281841535

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  5.137e+01  4.377e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.425e+00  8.343e-01  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.064e+00  1.731e-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.260e-01  2.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.23
Ra Dec: 354.904 2.710
Photon Index (Free Index): 2.42 +/- 0.83
Photon Flux (Free Index): 5.24e-08 +/- 6.42e-08
Energy Flux (Free Index): 1.66e-05 +/- 1.39e-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/76175/cmap_HighResolution_570067201_570326401_4FGL_J2339.6+0242_daily_bin1276.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-02', comment='SUCCESS', photon_flux='5.95e-08', energy_flux2='1.66e-05', photon_flux_error='4.82e-08', dlogl='1.10e-02', energy_flux='1.64e-05', photon_flux2='5.24e-08', job_status='DONE', time_completed='2021-09-30 03:02:18.676398', photon_index_error2='0.83', photon_index2='2.42', ts='3.21', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.70e-07', energy_flux_error2='1.39e-05', EG='0.52', time_epoch_completed='1632996138.68', return_code='0', job_id='76175', GAL2='1.06', EG2='0.53', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='6.42e-08', ts2='3.23', photon_index='2.55' WHERE bin_id='1276' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 03:02:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 76175: <4FGL_J2339.6+0242_daily_bin1276> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin1276> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:50:14 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:50:16 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:50:16 2021
Terminated at Thu Sep 30 03:02:19 2021
Results reported at Thu Sep 30 03:02:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin1276 354.904 2.7102 570067201 570326401 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 :                                   709.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             379.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            725 sec.

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

