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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin381
RA = 354.904, Dec = 2.7102
tmin = 338083201, tmax = 338342401
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='71505', job_status='RUN', time_executed='2021-09-30 02:37:13.406925', time_epoch_executed='1632994633.41' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71505

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71505/ft1_4FGL_J2339.6+0242_daily_bin381.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71505/ft2_4FGL_J2339.6+0242_daily_bin381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71505/ft1_4FGL_J2339.6+0242_daily_bin381.fits outfile=/scratch/kocevski/71505/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin381.fits ra=354.904 dec=2.7102 rad=12.0 tmin=338083201.0 tmax=338342401.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 6.74
user 6.43
sys 0.28

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71505/ft1_filtered_4FGL_J2339.6+0242_daily_bin381.fits evtable="EVENTS" scfile=/scratch/kocevski/71505/ft2_4FGL_J2339.6+0242_daily_bin381.fits sctable="SC_DATA" expcube=/scratch/kocevski/71505/ltcube_338083201_338342401_4FGL_J2339.6+0242_daily_bin381.fits outfile=/scratch/kocevski/71505/expmap_338083201_338342401_4FGL_J2339.6+0242_daily_bin381.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/71505/ltcube_338083201_338342401_4FGL_J2339.6+0242_daily_bin381.fits
.....................!
real 192.96
user 187.24
sys 5.34

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/71505/ft1_filtered_4FGL_J2339.6+0242_daily_bin381.fits scfile=/scratch/kocevski/71505/ft2_4FGL_J2339.6+0242_daily_bin381.fits outfile=/scratch/kocevski/71505/cmap_338083201_338342401_4FGL_J2339.6+0242_daily_bin381.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71505/ft1_filtered_4FGL_J2339.6+0242_daily_bin381.fits scfile=/scratch/kocevski/71505/ft2_4FGL_J2339.6+0242_daily_bin381.fits outfile=/scratch/kocevski/71505/cmap_HighResolution_338083201_338342401_4FGL_J2339.6+0242_daily_bin381.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.57
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22391E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.483       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.0987       1.0000         .10000E-03   10000.    
     6 'norm      '    3.5219       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.7667       1.0000         .10000E-03   10000.    
     8 'norm      '    20.739       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.747       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.261       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.794       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .69491       1.0000         .10000E-03   10000.    
    13 'norm      '    .72468       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4836       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10331E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    57.222       1.0000         .10000E-03   10000.    
    22 'norm      '    8.9209       1.0000         .10000E-03   10000.    
    23 'norm      '    40.072       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.3757       1.0000         .10000E-03   10000.    
    26 'Prefactor '    28.753       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .98582       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .83583       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=   5832.073     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3935 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    35.047       -.22300E-04** at limit **
   2  Prefactor     .10000E-03    32.821       -.12497E-05** at limit **
   3  Prefactor     16.484        16.485       -.98957E-07    .40980E-04
   4  Prefactor     .10000E-03    4.0242       -.13568E-06** at limit **
   5  norm          2.0975        3.3545       -.22368E-06   -.66814E-04
   6  norm          3.5220        4.2741       -.75744E-07    .26792E-04
   7  Prefactor     8.7640        13.115       -.98976E-07   -.88251E-05
   8  norm          20.737        17.675       -.41567E-06    .51657E-04
   9  Prefactor     10.770        29.880        .11016E-06    .31577E-05
  10  Prefactor     18.266        17.716        .69895E-06    .13681E-03
  11  Prefactor     15.793        17.138       -.31421E-08    .69073E-04
  12  Prefactor     .69203        4.5726        .74525E-05   -.93958E-03
  13  norm          .72476        .63352       -.45617E-07    .15199E-03
  14  norm          .10000E-03    1.5586       -.26507E-07** at limit **
  15  Prefactor     1.4637        44.958       -.10692E-04    .55404E-04
  16  Prefactor     .10000E-03    17.764        .11657E-06** at limit **
  17  norm          .10000E-03    4.8775        .47533E-06** at limit **
  18  Prefactor     .10000E-03    6.3047       -.92287E-07** at limit **
  19  Prefactor     .10001E-03    73.830       -.36752E-05** at limit **
  20  Prefactor     .10000E-03    17.220       -.12247E-05** at limit **
  21  Prefactor     57.280        36.077        .23144E-05    .55488E-04
  22  norm          8.9256        23.578       -.24655E-06    .21907E-04
  23  norm          40.110        34.875       -.98203E-06    .15833E-03
  24  Prefactor     .10000E-03    18.400        .31374E-07** at limit **
  25  Prefactor     7.3812        6.7241        .28523E-06    .68542E-03
  26  Prefactor     28.748        38.390        .52296E-06    .11422E-03
  27  Prefactor     .10000E-03    17.945       -.47810E-06** at limit **
  28  Prefactor     .10000E-03    6.7608       -.53506E-07** at limit **
  29  Normalizat    .98591        .21171        .14718E-05    .59486E-03
  30  Prefactor     .83592        .13833        .34184E-06    .53085E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100065
  Prefactor  = 0.000100001
  Prefactor  = 16.4839
  Prefactor  = 0.0001
  norm       = 2.09746
  norm       = 3.52198
  Prefactor  = 8.76402
  norm       = 20.7372
  Prefactor  = 10.7703
  Prefactor  = 18.2662
  Prefactor  = 15.7934
  Prefactor  = 0.692033
  norm       = 0.72476
  norm       = 0.0001
  Prefactor  = 1.46373
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.000100003
  Prefactor  = 57.2802
  norm       = 8.92556
  norm       = 40.1098
  Prefactor  = 0.0001
  Prefactor  = 7.38118
  Prefactor  = 28.748
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.985906
  Prefactor  = 0.83592
 **********
 **   18 **HESSE 
 **********

 FCN=   5832.073     FROM HESSE     STATUS=OK           584 CALLS     4519 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    45.986        .39852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    32.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.484        16.362        .98651E-04   -1.4896    
   4  Prefactor     .10000E-03    4.0544        .14959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.0975        3.3134        .15250E-03   -1.5418    
   6  norm          3.5220        4.2626        .16710E-03   -1.5333    
   7  Prefactor     8.7640        13.107        .67688E-03   -1.5116    
   8  norm          20.737        17.688        .87951E-04   -1.4797    
   9  Prefactor     10.770        29.858        .12222E-03   -1.5051    
  10  Prefactor     18.266        17.713        .93725E-04   -1.4853    
  11  Prefactor     15.793        17.138        .10078E-03   -1.4913    
  12  Prefactor     .69203        12.741        .24085E-02   -1.5542    
  13  norm          .72476        .63285        .54826E-04   -1.5538    
  14  norm          .10000E-03    1.5611        .93106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.4637        45.658        .35225E-03   -1.5466    
  16  Prefactor     .10000E-03    17.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.9015        .16465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.3686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    73.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     57.280        36.094        .53033E-04   -1.4193    
  22  norm          8.9256        23.575        .13420E-03   -1.5110    
  23  norm          40.110        34.559        .63321E-04   -1.4440    
  24  Prefactor     .10000E-03    18.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.3812        6.7270        .14768E-03   -1.5165    
  26  Prefactor     28.748        38.400        .74715E-04   -1.4635    
  27  Prefactor     .10000E-03    18.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    6.7788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .98591        .23970        .28971E-03   -.93504    
  30  Prefactor     .83592        .15643        .21324E-03   -.98418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.99113e-09
Minuit parameter uncertainties:
  1  0.00346841
  2  0.00031932
  3  16.3666
  4  2.42788e-05
  5  3.31372
  6  4.26297
  7  13.1115
  8  17.6928
  9  29.8998
  10  17.7183
  11  17.1434
  12  5.93978
  13  0.632856
  14  6.64387e-06
  15  16.3632
  16  1.93736e-05
  17  0.000107692
  18  4.14268e-05
  19  0.00129425
  20  0.00043125
  21  36.1074
  22  23.5994
  23  34.576
  24  2.61835e-05
  25  6.72769
  26  38.4328
  27  8.7759e-05
  28  3.52094e-05
  29  0.239963
  30  0.156512
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  2.875e+01  3.843e+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:  8.359e-01  1.565e-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:  9.859e-01  2.400e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/71505/likelihoodResults_338083201_338342401_4FGL_J2339.6+0242_daily_bin381.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) = 5832.06744325
delta logL = 0.00581252109077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5832.06465789
delta logL = 0.00859788004891

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.093       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4290       1.0000          .0000       10.000    
     3 'Normalizat'    .98856       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83437       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=   5832.065     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      256 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.088        49.430        .70730E-04    .30700E-03
   2  Index         2.4291        .91821        .99938E-02    .14776E-03
   3  Normalizat    .98850        .22492        .28937E-03   -.33665E-03
   4  Prefactor     .83441        .15393        .21341E-03   -.52648E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.0883
  Index      = 2.4291
  Normalizat = 0.988504
  Prefactor  = 0.834408
 **********
 **   18 **HESSE 
 **********

 FCN=   5832.065     FROM HESSE     STATUS=OK            23 CALLS      279 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.088        47.680        .14146E-04   -1.4574    
   2  Index         2.4291        .88582        .39975E-03   -.54005    
   3  Normalizat    .98850        .22501        .57874E-04   -.93417    
   4  Prefactor     .83441        .15395        .42682E-04   -.98472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22009e-09
Minuit parameter uncertainties:
  1  47.7369
  2  0.892243
  3  0.225225
  4  0.154027
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71505': 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) = 5832.06465784
delta logL = 0.00859792443225

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.209e+01  4.774e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.429e+00  8.922e-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:  8.344e-01  1.540e-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:  9.885e-01  2.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.70
Ra Dec: 354.904 2.710

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/71505/cmap_HighResolution_338083201_338342401_4FGL_J2339.6+0242_daily_bin381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', job_status='DONE', photon_flux_upper_limit='1.38e-07', time_completed='2021-09-30 02:50:15.021496', job_id='71505', GAL2='0.83', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1632995415.02', return_code2='0', ts='0.70', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='8.60e-03', ts2='0.72', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='381' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:50:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 71505: <4FGL_J2339.6+0242_daily_bin381> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin381 354.904 2.7102 338083201 338342401 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 :                                   776.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

