/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 72 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 = 7495
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2339.6+0242_daily_bin994
RA = 354.904, Dec = 2.7102
tmin = 496972801, tmax = 497232001
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='74569', job_status='RUN', time_executed='2021-09-30 02:46:46.557037', time_epoch_executed='1632995206.56' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='994'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74569

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74569/ft1_4FGL_J2339.6+0242_daily_bin994.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74569/ft2_4FGL_J2339.6+0242_daily_bin994.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74569/ft1_4FGL_J2339.6+0242_daily_bin994.fits outfile=/scratch/kocevski/74569/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin994.fits ra=354.904 dec=2.7102 rad=12.0 tmin=496972801.0 tmax=497232001.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 5.12
user 4.88
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74569/ft1_filtered_4FGL_J2339.6+0242_daily_bin994.fits evtable="EVENTS" scfile=/scratch/kocevski/74569/ft2_4FGL_J2339.6+0242_daily_bin994.fits sctable="SC_DATA" expcube=/scratch/kocevski/74569/ltcube_496972801_497232001_4FGL_J2339.6+0242_daily_bin994.fits outfile=/scratch/kocevski/74569/expmap_496972801_497232001_4FGL_J2339.6+0242_daily_bin994.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/74569/ltcube_496972801_497232001_4FGL_J2339.6+0242_daily_bin994.fits
.....................!
real 190.71
user 185.81
sys 4.54

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/74569/ft1_filtered_4FGL_J2339.6+0242_daily_bin994.fits scfile=/scratch/kocevski/74569/ft2_4FGL_J2339.6+0242_daily_bin994.fits outfile=/scratch/kocevski/74569/cmap_496972801_497232001_4FGL_J2339.6+0242_daily_bin994.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/74569/ft1_filtered_4FGL_J2339.6+0242_daily_bin994.fits scfile=/scratch/kocevski/74569/ft2_4FGL_J2339.6+0242_daily_bin994.fits outfile=/scratch/kocevski/74569/cmap_HighResolution_496972801_497232001_4FGL_J2339.6+0242_daily_bin994.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6632       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.3437       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9819       1.0000         .10000E-03   10000.    
     8 'norm      '    58.369       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7619       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3518       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.225       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5770       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .33854E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    7.1441       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.7874       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.938       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .90309       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .85525       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=   4767.185     FROM MIGRAD    STATUS=CONVERGED   1366 CALLS     3942 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6633        7.8989        .14486E-03    .25977E-04
   2  Prefactor     .10000E-03    12.319        .18142E-02** at limit **
   3  Prefactor     .10000E-03    4.4187        .14169E-02** at limit **
   4  Prefactor     .10000E-03    1.7653        .89550E-03** at limit **
   5  norm          .10000E-03    1.2181        .14692E-03** at limit **
   6  norm          8.3434        5.2756        .12109E-03    .15226E-03
   7  Prefactor     6.9807        11.407        .15183E-03    .54662E-05
   8  norm          58.374        22.613        .52512E-04    .32691E-04
   9  Prefactor     .10000E-03    17.823        .18142E-02** at limit **
  10  Prefactor     4.7615        11.590        .18438E-03   -.10359E-04
  11  Prefactor     6.3497        16.012        .15926E-03    .20130E-04
  12  Prefactor     16.226        11.446        .99432E-04    .73175E-04
  13  norm          .10000E-03    .30570        .36983E-03** at limit **
  14  norm          .10000E-03    6.3140        .33288E-03** at limit **
  15  Prefactor     2.5756        12.954        .25424E-03   -.36309E-04
  16  Prefactor     .10000E-03    76.768        .16571    ** at limit **
  17  norm          7.1447        9.9418        .15008E-03   -.74464E-04
  18  Prefactor     6.7875        9.8741        .77005E-03   -.30440E-03
  19  Prefactor     .10000E-03    92.409        .18142E-02** at limit **
  20  Prefactor     30.963        17.637        .72035E-04    .14434E-02
  21  Prefactor     .10000E-03    15.202        .18142E-02** at limit **
  22  norm          .10000E-03    6.6687        .17414E-02** at limit **
  23  norm          .10000E-03    28.425        .18142E-02** at limit **
  24  Prefactor     .10001E-03    140.03        .18142E-02** at limit **
  25  Prefactor     .10021E-03    27.365        .24340E-02** at limit **
  26  Prefactor     .10000E-03    26.370        .18142E-02** at limit **
  27  Prefactor     .10000E-03    22.073        .18142E-02** at limit **
  28  Prefactor     .10000E-03    7.6126        .18142E-02** at limit **
  29  Normalizat    .90317        .24606        .28368E-03    .43985E-03
  30  Prefactor     .85524        .16602        .20404E-03    .28191E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.66327
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.34342
  Prefactor  = 6.98073
  norm       = 58.3744
  Prefactor  = 0.000100002
  Prefactor  = 4.76149
  Prefactor  = 6.34973
  Prefactor  = 16.2259
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.57558
  Prefactor  = 0.0001
  norm       = 7.14474
  Prefactor  = 6.78747
  Prefactor  = 0.0001
  Prefactor  = 30.963
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100008
  Prefactor  = 0.000100207
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.903168
  Prefactor  = 0.855243
 **********
 **   18 **HESSE 
 **********

 FCN=   4767.185     FROM HESSE     STATUS=OK           566 CALLS     4508 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6633        7.8989        .57945E-05   -1.5154    
   2  Prefactor     .10000E-03    12.319        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.4188        .28338E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.7654        .17910E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.2181        .29384E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.3434        5.2755        .24219E-04   -1.5130    
   7  Prefactor     6.9807        11.406        .60731E-05   -1.5179    
   8  norm          58.374        22.613        .10502E-04   -1.4178    
   9  Prefactor     .10000E-03    17.824        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.7615        11.590        .73752E-05   -1.5272    
  11  Prefactor     6.3497        16.012        .63705E-05   -1.5204    
  12  Prefactor     16.226        11.446        .39773E-05   -1.4902    
  13  norm          .10000E-03    .30571        .73966E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.3143        .66575E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.5756        12.939        .10170E-04   -1.5387    
  16  Prefactor     .10000E-03    79.181        .16218       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.1447        9.9336        .60031E-05   -1.5173    
  18  Prefactor     6.7875        9.8660        .30802E-04   -1.5187    
  19  Prefactor     .10000E-03    92.409        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     30.963        17.603        .14407E-04   -1.4595    
  21  Prefactor     .10000E-03    15.203        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.6688        .34827E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    28.427        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    140.04        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10021E-03    27.505        .48679E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    26.372        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    22.076        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    7.6133        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .90317        .24617        .56736E-04   -.96349    
  30  Prefactor     .85524        .16613        .40808E-04   -.97723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.96629e-09
Minuit parameter uncertainties:
  1  7.89996
  2  2.92555e-05
  3  2.90327e-06
  4  1.37587e-06
  5  3.35342e-06
  6  5.2758
  7  11.4097
  8  22.6161
  9  0.00036479
  10  11.595
  11  16.0226
  12  11.4473
  13  3.05672e-07
  14  1.07347e-05
  15  11.5493
  16  0.000153191
  17  9.93593
  18  9.86832
  19  2.7704e-05
  20  17.6058
  21  0.000151871
  22  1.42464e-05
  23  0.000361805
  24  0.00213218
  25  0.00477675
  26  0.000273028
  27  0.000290868
  28  1.49435e-05
  29  0.246475
  30  0.166227
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  2.730e-04  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.552e-01  1.662e-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.032e-01  2.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 354.904 2.710
Photon Flux Upper Limit: 9.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/74569/likelihoodResults_496972801_497232001_4FGL_J2339.6+0242_daily_bin994.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): 102
logL (Free Index) = 4767.18561833
delta logL = -0.000180651384653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4767.18543818
delta logL = -5.00765054312e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0837       1.0000          .0000       10.000    
     3 'Normalizat'    .90316       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85524       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=   4767.185     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      268 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10232E-03    12.970        .18142E-01** at limit **
   2  Index         3.0024        6.4484        .50000        .76561E-05
   3  Normalizat    .90316        .41235E-02    .28368E-03    .44163E-04
   4  Prefactor     .85524        .29103E-02    .20404E-03    .43905E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102323
  Index      = 3.00236
  Normalizat = 0.903163
  Prefactor  = 0.855245
 **********
 **   18 **HESSE 
 **********

 FCN=   4767.185     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      297 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10232E-03    580.70        .63120E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0024        8.0760        .50000       -.41100    
   3  Normalizat    .90316        .28254E-01    .11347E-04   -.96349    
   4  Prefactor     .85524        .19941E-01    .81616E-05   -.97723    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.42223e-09
Minuit parameter uncertainties:
  1  0.0741915
  2  1001.61
  3  0.0282546
  4  0.0199411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74569': 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) = 4767.18543806
delta logL = -3.78867298423e-07

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.023e-04  7.419e-02  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  3.002e+00  1.002e+03  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.552e-01  1.994e-02  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.032e-01  2.825e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/74569/cmap_HighResolution_496972801_497232001_4FGL_J2339.6+0242_daily_bin994.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.58e-03', job_status='DONE', photon_flux_upper_limit='9.71e-08', time_completed='2021-09-30 03:01:07.367197', job_id='74569', GAL2='0.86', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1632996067.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='-3.79e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='994' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 03:01:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 74569: <4FGL_J2339.6+0242_daily_bin994> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin994> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:45:17 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:45:18 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:45:18 2021
Terminated at Thu Sep 30 03:01:07 2021
Results reported at Thu Sep 30 03:01:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin994 354.904 2.7102 496972801 497232001 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 :                                   690.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            950 sec.

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

