/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 71 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 = 7473
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2339.6+0242_daily_bin83
RA = 354.904, Dec = 2.7102
tmin = 260841601, tmax = 261100801
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='69727', job_status='RUN', time_executed='2021-09-30 02:31:42.734550', time_epoch_executed='1632994302.73' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='83'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69727

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69727/ft1_4FGL_J2339.6+0242_daily_bin83.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69727/ft2_4FGL_J2339.6+0242_daily_bin83.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69727/ft1_4FGL_J2339.6+0242_daily_bin83.fits outfile=/scratch/kocevski/69727/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin83.fits ra=354.904 dec=2.7102 rad=12.0 tmin=260841601.0 tmax=261100801.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 1.58
user 1.41
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69727/ft1_filtered_4FGL_J2339.6+0242_daily_bin83.fits evtable="EVENTS" scfile=/scratch/kocevski/69727/ft2_4FGL_J2339.6+0242_daily_bin83.fits sctable="SC_DATA" expcube=/scratch/kocevski/69727/ltcube_260841601_261100801_4FGL_J2339.6+0242_daily_bin83.fits outfile=/scratch/kocevski/69727/expmap_260841601_261100801_4FGL_J2339.6+0242_daily_bin83.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/69727/ltcube_260841601_261100801_4FGL_J2339.6+0242_daily_bin83.fits
.....................!
real 190.73
user 185.33
sys 5.07

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/69727/ft1_filtered_4FGL_J2339.6+0242_daily_bin83.fits scfile=/scratch/kocevski/69727/ft2_4FGL_J2339.6+0242_daily_bin83.fits outfile=/scratch/kocevski/69727/cmap_260841601_261100801_4FGL_J2339.6+0242_daily_bin83.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69727/ft1_filtered_4FGL_J2339.6+0242_daily_bin83.fits scfile=/scratch/kocevski/69727/ft2_4FGL_J2339.6+0242_daily_bin83.fits outfile=/scratch/kocevski/69727/cmap_HighResolution_260841601_261100801_4FGL_J2339.6+0242_daily_bin83.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4771       1.0000         .10000E-03   10000.    
     2 'Prefactor '    63.118       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.542       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.5387       1.0000         .10000E-03   10000.    
     6 'norm      '    1.2552       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10770E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.381       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.012       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1538       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.5986       1.0000         .10000E-03   10000.    
    16 'Prefactor '    73.220       1.0000         .10000E-03   10000.    
    17 'norm      '    4.2142       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.7063       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.2622       1.0000         .10000E-03   10000.    
    21 'Prefactor '    40.782       1.0000         .10000E-03   10000.    
    22 'norm      '    35.759       1.0000         .10000E-03   10000.    
    23 'norm      '    .13796E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.5343       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.2747       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .97893       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .98564       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=   6180.521     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3908 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4772        8.3969        .27600E-06    .90777E-05
   2  Prefactor     63.103        52.395       -.11587E-04   -.55285E-05
   3  Prefactor     26.544        18.061       -.14456E-06    .12188E-03
   4  Prefactor     .10000E-03    5.8002        .23275E-06** at limit **
   5  norm          3.5387        3.0426        .75839E-07    .25382E-03
   6  norm          1.2565        1.7104        .94875E-06   -.15076E-02
   7  Prefactor     .10000E-03    40.754       -.22854E-04** at limit **
   8  norm          11.381        12.299       -.22493E-06   -.18625E-05
   9  Prefactor     18.012        33.962       -.21895E-06    .11280E-05
  10  Prefactor     .10000E-03    4.6770       -.55834E-08** at limit **
  11  Prefactor     .10000E-03    14.675       -.73721E-06** at limit **
  12  Prefactor     5.1526        9.4317       -.25491E-06   -.13374E-04
  13  norm          .10000E-03    .26443       -.30768E-07** at limit **
  14  norm          .10000E-03    3.3795        .50541E-07** at limit **
  15  Prefactor     9.5983        10.899       -.12006E-06    .47100E-05
  16  Prefactor     73.229        65.214        .78567E-05   -.17253E-04
  17  norm          4.2135        10.943       -.50476E-06   -.49615E-05
  18  Prefactor     4.7075        9.3375       -.39390E-06   -.34096E-05
  19  Prefactor     .10000E-03    110.14       -.97200E-05** at limit **
  20  Prefactor     2.2655        18.664       -.48504E-05   -.64735E-03
  21  Prefactor     40.783        26.369       -.13445E-06    .86469E-05
  22  norm          35.758        26.621       -.29506E-06    .23555E-05
  23  norm          .10000E-03    47.007        .27679E-04** at limit **
  24  Prefactor     .10000E-03    20.905        .17569E-05** at limit **
  25  Prefactor     4.5355        5.0573        .17005E-06   -.10607E-02
  26  Prefactor     .10000E-03    11.033        .10340E-06** at limit **
  27  Prefactor     5.2746        19.909       -.45396E-06    .17155E-05
  28  Prefactor     .10000E-03    5.1937       -.19600E-07** at limit **
  29  Normalizat    .97888        .21546        .10385E-05    .86920E-04
  30  Prefactor     .98568        .14514       -.19774E-06    .12196E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.47723
  Prefactor  = 63.1035
  Prefactor  = 26.5437
  Prefactor  = 0.0001
  norm       = 3.53872
  norm       = 1.25648
  Prefactor  = 0.000100001
  norm       = 11.3811
  Prefactor  = 18.0123
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.1526
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.59834
  Prefactor  = 73.2293
  norm       = 4.21351
  Prefactor  = 4.70749
  Prefactor  = 0.0001
  Prefactor  = 2.26552
  Prefactor  = 40.7827
  norm       = 35.7575
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.53555
  Prefactor  = 0.0001
  Prefactor  = 5.27462
  Prefactor  = 0.0001
  Normalizat = 0.978878
  Prefactor  = 0.985685
 **********
 **   18 **HESSE 
 **********

 FCN=   6180.521     FROM HESSE     STATUS=OK           586 CALLS     4494 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4772        8.3989        .13768E-03   -1.5126    
   2  Prefactor     63.103        52.403        .50509E-04   -1.4118    
   3  Prefactor     26.544        18.061        .77758E-04   -1.4677    
   4  Prefactor     .10000E-03    5.8593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.5387        3.0408        .11478E-03   -1.5332    
   6  norm          1.2565        5.2686        .17073E-02   -1.5484    
   7  Prefactor     .10000E-03    41.691        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.381        12.315        .11875E-03   -1.5033    
   9  Prefactor     18.012        34.035        .94371E-04   -1.4859    
  10  Prefactor     .10000E-03    4.6827        .16605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.1526        9.4172        .17709E-03   -1.5254    
  13  norm          .10000E-03    .27183        .78828E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.3974        .14074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.5983        10.845        .12935E-03   -1.5088    
  16  Prefactor     73.229        65.217        .46919E-04   -1.3994    
  17  norm          4.2135        10.640        .19630E-03   -1.5297    
  18  Prefactor     4.7075        9.1343        .18549E-03   -1.5274    
  19  Prefactor     .10000E-03    110.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.2655        19.754        .13655E-02   -1.5407    
  21  Prefactor     40.783        26.353        .62769E-04   -1.4430    
  22  norm          35.758        26.619        .67018E-04   -1.4511    
  23  norm          .10000E-03    47.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    20.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.5355        4.9354        .76662E-03   -1.5282    
  26  Prefactor     .10000E-03    11.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.2746        19.914        .17501E-03   -1.5249    
  28  Prefactor     .10000E-03    5.2038        .17497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .97888        .25784        .30201E-03   -.93741    
  30  Prefactor     .98568        .17066        .21339E-03   -.93208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.73944e-09
Minuit parameter uncertainties:
  1  8.40007
  2  52.4413
  3  18.0645
  4  4.90725e-05
  5  3.04094
  6  5.1464
  7  0.000429984
  8  12.318
  9  34.0712
  10  1.359e-07
  11  3.31007e-05
  12  9.41988
  13  1.85148e-07
  14  1.53968e-06
  15  10.8474
  16  65.2809
  17  10.645
  18  9.13704
  19  4.00756e-06
  20  13.3851
  21  26.3602
  22  26.6277
  23  0.000190239
  24  2.07742e-06
  25  4.9358
  26  8.57361e-06
  27  19.9389
  28  3.17514e-06
  29  0.258165
  30  0.170754
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  8.574e-06  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.857e-01  1.708e-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.789e-01  2.582e-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: 6.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/69727/likelihoodResults_260841601_261100801_4FGL_J2339.6+0242_daily_bin83.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) = 6180.52152379
delta logL = -0.000431408263466

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6180.52109233
delta logL = 4.51491359854e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5334       1.0000          .0000       10.000    
     3 'Normalizat'    .97888       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98568       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=   6180.521     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      259 TOTAL
                     EDM=   .51E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1659.5        .18142E-01** at limit **
   2  Index         1.8558        5.6425        .20000E-01   -.13074E-07
   3  Normalizat    .97888        .68078E-01    .30201E-03    .12836E-04
   4  Prefactor     .98569        .48567E-01    .21339E-03    .11102E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.85581
  Normalizat = 0.978877
  Prefactor  = 0.985686
 **********
 **   18 **HESSE 
 **********

 FCN=   6180.521     FROM HESSE     STATUS=OK            23 CALLS      282 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.612        .29325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8558        7.2498        .80000E-03   -.68006    
   3  Normalizat    .97888        .23501        .12081E-04   -.93741    
   4  Prefactor     .98569        .16769        .42679E-04   -.93208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23646e-11
Minuit parameter uncertainties:
  1  3.57232e-05
  2  401.469
  3  0.235257
  4  0.16778
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69727': 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) = 6180.52109127
delta logL = 1.10714972834e-06

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  3.572e-05  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  1.856e+00  4.015e+02  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.857e-01  1.678e-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.789e-01  2.353e-01  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/69727/cmap_HighResolution_260841601_261100801_4FGL_J2339.6+0242_daily_bin83.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.10e-03', job_status='DONE', photon_flux_upper_limit='6.53e-08', time_completed='2021-09-30 02:44:52.398164', job_id='69727', GAL2='0.99', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1632995092.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='83' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:44:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 69727: <4FGL_J2339.6+0242_daily_bin83> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin83 354.904 2.7102 260841601 261100801 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 :                                   785.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            875 sec.

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

