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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin599
RA = 354.904, Dec = 2.7102
tmin = 394588801, tmax = 394848001
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='71890', job_status='RUN', time_executed='2021-09-30 02:39:34.399192', time_epoch_executed='1632994774.4' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71890

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71890/ft1_4FGL_J2339.6+0242_daily_bin599.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71890/ft2_4FGL_J2339.6+0242_daily_bin599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71890/ft1_4FGL_J2339.6+0242_daily_bin599.fits outfile=/scratch/kocevski/71890/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin599.fits ra=354.904 dec=2.7102 rad=12.0 tmin=394588801.0 tmax=394848001.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 4.62
user 4.36
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71890/ft1_filtered_4FGL_J2339.6+0242_daily_bin599.fits" evtable="EVENTS" scfile=/scratch/kocevski/71890/ft2_4FGL_J2339.6+0242_daily_bin599.fits sctable="SC_DATA" outfile=/scratch/kocevski/71890/ltcube_394588801_394848001_4FGL_J2339.6+0242_daily_bin599.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/71890/ft2_4FGL_J2339.6+0242_daily_bin599.fits
.....................!
real 11.60
user 11.23
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71890/ft1_filtered_4FGL_J2339.6+0242_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/71890/ft2_4FGL_J2339.6+0242_daily_bin599.fits sctable="SC_DATA" expcube=/scratch/kocevski/71890/ltcube_394588801_394848001_4FGL_J2339.6+0242_daily_bin599.fits outfile=/scratch/kocevski/71890/expmap_394588801_394848001_4FGL_J2339.6+0242_daily_bin599.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/71890/ltcube_394588801_394848001_4FGL_J2339.6+0242_daily_bin599.fits
.....................!
real 189.90
user 185.39
sys 4.16

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71890/ft1_filtered_4FGL_J2339.6+0242_daily_bin599.fits scfile=/scratch/kocevski/71890/ft2_4FGL_J2339.6+0242_daily_bin599.fits outfile=/scratch/kocevski/71890/cmap_HighResolution_394588801_394848001_4FGL_J2339.6+0242_daily_bin599.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .46738       1.0000         .10000E-03   10000.    
     6 'norm      '    .91733E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8410       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.261       1.0000         .10000E-03   10000.    
    13 'norm      '    3.3536       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0775       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.8410       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.121       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.0662       1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.567       1.0000         .10000E-03   10000.    
    27 'Prefactor '    37.602       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.1892       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .85425       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .91582       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=   5299.339     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3885 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3574       -.40724E-08** at limit **
   2  Prefactor     .10000E-03    14.253        .52492E-07** at limit **
   3  Prefactor     .10000E-03    10.004        .25572E-06** at limit **
   4  Prefactor     .10000E-03    3.1233        .11915E-07** at limit **
   5  norm          .46658        2.5247       -.14674E-05   -.14514E-02
   6  norm          .12661        2.8067        .26122E-06   -.67377E-03
   7  Prefactor     5.8272        12.289        .25647E-05   -.96846E-04
   8  norm          .10000E-03    4.2775       -.10725E-06** at limit **
   9  Prefactor     .10000E-03    29.583        .34195E-05** at limit **
  10  Prefactor     .10000E-03    6.0124        .17364E-07** at limit **
  11  Prefactor     .10000E-03    27.902        .23355E-05** at limit **
  12  Prefactor     11.263        11.151       -.47884E-06   -.44950E-04
  13  norm          3.3535        1.3713        .12356E-06   -.16385E-03
  14  norm          .10000E-03    2.0365       -.56163E-07** at limit **
  15  Prefactor     2.0775        10.277       -.18711E-05   -.34423E-03
  16  Prefactor     .10000E-03    38.633       -.99329E-05** at limit **
  17  norm          7.8425        6.8422        .10660E-05   -.46081E-04
  18  Prefactor     .10000E-03    2.4815       -.27210E-07** at limit **
  19  Prefactor     .10000E-03    203.51        .41313E-05** at limit **
  20  Prefactor     .10000E-03    31.412        .62888E-06** at limit **
  21  Prefactor     23.130        31.354       -.27422E-05   -.12135E-04
  22  norm          .10000E-03    6.8652       -.83435E-07** at limit **
  23  norm          .10000E-03    43.276        .36536E-06** at limit **
  24  Prefactor     .10000E-03    45.457        .83562E-05** at limit **
  25  Prefactor     7.0663        5.3608       -.19402E-05   -.29136E-03
  26  Prefactor     15.604        49.197        .37106E-04    .64532E-05
  27  Prefactor     37.597        25.525       -.38370E-05   -.31908E-04
  28  Prefactor     6.1905        9.8116       -.75977E-06   -.31381E-04
  29  Normalizat    .85396        .21088       -.31152E-05    .80638E-04
  30  Prefactor     .91597        .13437        .10596E-05   -.14769E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.466578
  norm       = 0.12661
  Prefactor  = 5.82717
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2634
  norm       = 3.35349
  norm       = 0.0001
  Prefactor  = 2.07753
  Prefactor  = 0.0001
  norm       = 7.8425
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.1304
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.06633
  Prefactor  = 15.6039
  Prefactor  = 37.5969
  Prefactor  = 6.19055
  Normalizat = 0.853964
  Prefactor  = 0.915967
 **********
 **   18 **HESSE 
 **********

 FCN=   5299.339     FROM HESSE     STATUS=OK           584 CALLS     4469 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3680        .16456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.1332        .12563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .46658        2.7109        .22219E-03   -1.5571    
   6  norm          .12661        34.544        .22645E-02   -1.5637    
   7  Prefactor     5.8272        12.370        .16617E-03   -1.5225    
   8  norm          .10000E-03    4.2835        .14704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    29.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.0502        .17433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.263        11.181        .11938E-03   -1.5037    
  13  norm          3.3535        1.3683        .51484E-04   -1.5342    
  14  norm          .10000E-03    2.0381        .10142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0775        10.154        .28654E-03   -1.5420    
  16  Prefactor     .10000E-03    38.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.8425        6.8062        .14320E-03   -1.5148    
  18  Prefactor     .10000E-03    2.4958        .11192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    203.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    31.845        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.130        31.131        .83302E-04   -1.4746    
  22  norm          .10000E-03    6.8726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    43.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    45.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.0663        5.3676        .13738E-03   -1.5176    
  26  Prefactor     15.604        48.046        .10151E-03   -1.4918    
  27  Prefactor     37.597        25.565        .65360E-04   -1.4481    
  28  Prefactor     6.1905        9.8078        .16137E-03   -1.5210    
  29  Normalizat    .85396        .24277        .28769E-03   -.98097    
  30  Prefactor     .91597        .15627        .19586E-03   -.95585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.87327e-09
Minuit parameter uncertainties:
  1  5.3996e-06
  2  4.95047e-06
  3  5.6254e-05
  4  8.43414e-06
  5  2.24923
  6  4.1834
  7  12.3756
  8  1.80949e-06
  9  7.3441e-06
  10  2.72304e-06
  11  1.8913e-05
  12  11.1832
  13  1.36833
  14  3.92066e-06
  15  9.18808
  16  0.000121267
  17  6.80688
  18  1.39286e-06
  19  0.000221664
  20  7.14727e-05
  21  31.1527
  22  1.53072e-06
  23  0.000243395
  24  5.47648e-05
  25  5.36798
  26  48.1658
  27  25.5724
  28  9.81031
  29  0.243082
  30  0.156351
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.560e+01  4.817e+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.160e-01  1.564e-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.540e-01  2.431e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/71890/likelihoodResults_394588801_394848001_4FGL_J2339.6+0242_daily_bin599.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) = 5296.63129869
delta logL = 2.70808195175

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5296.61922271
delta logL = 2.72015792625

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2049       1.0000         .10000E-03   10000.    
     2 'Index     '    5.3469       1.0000          .0000       10.000    
     3 'Normalizat'    .69256       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98428       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=   5296.619     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      276 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2041        9.0073        .87194E-02    .44464E-03
   2  Index         5.3472        2.5847        .85526E-01    .13614E-03
   3  Normalizat    .69258        .66885E-01    .71216E-01    .22307E-04
   4  Prefactor     .98428        .47030E-01    .46070E-01    .10207E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.20407
  Index      = 5.34724
  Normalizat = 0.692576
  Prefactor  = 0.984284
 **********
 **   18 **HESSE 
 **********

 FCN=   5296.619     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      309 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2041        15.200        .38982E-04   -1.5489    
   2  Index         5.3472        3.4573        .35346E-02    .69505E-01
   3  Normalizat    .69258        .21095        .31519E-03   -1.0419    
   4  Prefactor     .98428        .14535        .18936E-03   -.93255    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.79033e-07
Minuit parameter uncertainties:
  1  8.55841
  2  3.81992
  3  0.211192
  4  0.145407
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71890': 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) = 5296.61922267
delta logL = 2.72015797511

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.204e+00  8.558e+00  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  5.347e+00  3.820e+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.843e-01  1.454e-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:  6.926e-01  2.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.12
Ra Dec: 354.904 2.710
Photon Index (Free Index): 5.35 +/- 3.82
Photon Flux (Free Index): 1.63e-07 +/- 8.64e-08
Energy Flux (Free Index): 2.11e-05 +/- 1.36e-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/71890/cmap_HighResolution_394588801_394848001_4FGL_J2339.6+0242_daily_bin599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', energy_flux2='2.11e-05', dlogl='2.72e+00', photon_flux2='1.63e-07', job_status='DONE', time_completed='2021-09-30 02:51:33.061571', photon_index_error2='3.82', photon_index2='5.35', ts='0.13', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='1.36e-05', EG='0.85', time_epoch_completed='1632995493.06', return_code='0', job_id='71890', GAL2='0.98', EG2='0.69', return_code2='102', photon_flux_error2='8.64e-08', ts2='6.12', photon_index='2.55' WHERE bin_id='599' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:51:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 71890: <4FGL_J2339.6+0242_daily_bin599> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin599 354.904 2.7102 394588801 394848001 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 :                                   717.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            940 sec.

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

