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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin572
RA = 354.904, Dec = 2.7102
tmin = 387590401, tmax = 387849601
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='71844', job_status='RUN', time_executed='2021-09-30 02:39:43.968934', time_epoch_executed='1632994783.97' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='572'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71844

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71844/ft1_4FGL_J2339.6+0242_daily_bin572.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71844/ft2_4FGL_J2339.6+0242_daily_bin572.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71844/ft1_4FGL_J2339.6+0242_daily_bin572.fits outfile=/scratch/kocevski/71844/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin572.fits ra=354.904 dec=2.7102 rad=12.0 tmin=387590401.0 tmax=387849601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.31
user 3.09
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71844/ft1_filtered_4FGL_J2339.6+0242_daily_bin572.fits evtable="EVENTS" scfile=/scratch/kocevski/71844/ft2_4FGL_J2339.6+0242_daily_bin572.fits sctable="SC_DATA" expcube=/scratch/kocevski/71844/ltcube_387590401_387849601_4FGL_J2339.6+0242_daily_bin572.fits outfile=/scratch/kocevski/71844/expmap_387590401_387849601_4FGL_J2339.6+0242_daily_bin572.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/71844/ltcube_387590401_387849601_4FGL_J2339.6+0242_daily_bin572.fits
.....................!
real 189.38
user 184.89
sys 4.11

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J2339.6+0242 @ 354.904 2.7102

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/71844/ft1_filtered_4FGL_J2339.6+0242_daily_bin572.fits scfile=/scratch/kocevski/71844/ft2_4FGL_J2339.6+0242_daily_bin572.fits outfile=/scratch/kocevski/71844/cmap_387590401_387849601_4FGL_J2339.6+0242_daily_bin572.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71844/ft1_filtered_4FGL_J2339.6+0242_daily_bin572.fits scfile=/scratch/kocevski/71844/ft2_4FGL_J2339.6+0242_daily_bin572.fits outfile=/scratch/kocevski/71844/cmap_HighResolution_387590401_387849601_4FGL_J2339.6+0242_daily_bin572.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    31.229       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.3243       1.0000         .10000E-03   10000.    
     6 'norm      '    2.5218       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.861       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.219       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.606       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.462       1.0000         .10000E-03   10000.    
    14 'norm      '    1.8469       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .62061       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.224       1.0000         .10000E-03   10000.    
    17 'norm      '    11.656       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.2104       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    45.882       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.8497       1.0000         .10000E-03   10000.    
    26 'Prefactor '    87.946       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .84152       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .76696       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5030.124     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     4540 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9597         .0000    ** at limit **
   2  Prefactor     31.228        38.050         .0000        .16292E-03
   3  Prefactor     .10000E-03    5.6203         .0000    ** at limit **
   4  Prefactor     .10000E-03    8.3647         .0000    ** at limit **
   5  norm          1.3245        2.2464         .0000        .53926E-03
   6  norm          2.5217        3.3519         .0000        .53154E-04
   7  Prefactor     12.863        17.652         .0000        .63284E-03
   8  norm          .10000E-03    4.5761         .0000    ** at limit **
   9  Prefactor     27.222        31.866         .0000       -.11113E-02
  10  Prefactor     .10000E-03    5.3100         .0000    ** at limit **
  11  Prefactor     32.605        23.065         .0000        .34279E-03
  12  Prefactor     .10000E-03    3.2975         .0000    ** at limit **
  13  norm          10.461        1.9585         .0000       -.17394E-04
  14  norm          1.8470        4.4408         .0000        .11825E-01
  15  Prefactor     .61371        13.432         .0000        .17341E-03
  16  Prefactor     16.222        65.372         .0000        .91557E-03
  17  norm          11.659        9.1648         .0000        .39312E-03
  18  Prefactor     .10000E-03    3.2979         .0000    ** at limit **
  19  Prefactor     .10000E-03    64.510         .0000    ** at limit **
  20  Prefactor     2.2161        75.590         .0000        .32714E-02
  21  Prefactor     .10000E-03    8.7648         .0000    ** at limit **
  22  norm          .10000E-03    8.5445         .0000    ** at limit **
  23  norm          45.880        48.705         .0000        .31458E-02
  24  Prefactor     .10000E-03    23.841         .0000    ** at limit **
  25  Prefactor     1.8490        5.1038         .0000        .11095E-02
  26  Prefactor     87.948        56.170         .0000       -.17189E-02
  27  Prefactor     .10000E-03    7.8782         .0000    ** at limit **
  28  Prefactor     .10000E-03    16.855         .0000    ** at limit **
  29  Normalizat    .84130        .21373         .0000        .39585E-05
  30  Prefactor     .76711        .13577         .0000       -.50159E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 31.2285
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.32446
  norm       = 2.52174
  Prefactor  = 12.8632
  norm       = 0.0001
  Prefactor  = 27.2219
  Prefactor  = 0.000100001
  Prefactor  = 32.6053
  Prefactor  = 0.0001
  norm       = 10.4614
  norm       = 1.84702
  Prefactor  = 0.613709
  Prefactor  = 16.2223
  norm       = 11.6591
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.21606
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 45.8797
  Prefactor  = 0.0001
  Prefactor  = 1.849
  Prefactor  = 87.948
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.841304
  Prefactor  = 0.767115
 **********
 **   18 **HESSE 
 **********

 FCN=   5030.124     FROM HESSE     STATUS=OK           580 CALLS     5120 TOTAL
                     EDM=   .90E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9635        .15425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     31.228        38.065        .71700E-04   -1.4590    
   3  Prefactor     .10000E-03    5.6246        .16420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.5161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.3245        2.2072        .13221E-03   -1.5478    
   6  norm          2.5217        3.3377        .14404E-03   -1.5390    
   7  Prefactor     12.863        17.686        .55847E-03   -1.4991    
   8  norm          .10000E-03    4.5888        .14817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.222        31.870        .76787E-04   -1.4664    
  10  Prefactor     .10000E-03    5.3209        .15961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     32.605        23.073        .70173E-04   -1.4565    
  12  Prefactor     .10000E-03    3.2994        .12572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.461        1.9455        .39792E-04   -1.5061    
  14  norm          1.8470        4.4036        .11171E-02   -1.5436    
  15  Prefactor     .61371        63.988        .44094E-02   -1.5551    
  16  Prefactor     16.222        64.499        .99436E-04   -1.4902    
  17  norm          11.659        9.1180        .11734E-03   -1.5025    
  18  Prefactor     .10000E-03    3.3204        .12564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    64.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.2161        59.422        .13833E-02   -1.5410    
  21  Prefactor     .10000E-03    8.7724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.5560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          45.880        44.746        .59192E-04   -1.4352    
  24  Prefactor     .10000E-03    23.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.8490        4.9418        .21494E-03   -1.5436    
  26  Prefactor     87.948        56.251        .42843E-04   -1.3830    
  27  Prefactor     .10000E-03    7.8837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    17.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .84130        .24509        .29214E-03   -.98554    
  30  Prefactor     .76711        .15653        .20843E-03   -1.0095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.9705e-08
Minuit parameter uncertainties:
  1  7.99653e-05
  2  38.0948
  3  0.000124794
  4  8.99893e-05
  5  2.20734
  6  3.33798
  7  17.6931
  8  7.08406e-06
  9  31.89
  10  0.000172301
  11  23.0796
  12  1.07961e-05
  13  1.94553
  14  4.40441
  15  12.5459
  16  64.778
  17  9.11909
  18  1.11801e-05
  19  0.000414401
  20  22.9755
  21  0.000139718
  22  6.63809e-05
  23  44.7792
  24  0.000156428
  25  4.94291
  26  56.2856
  27  1.74255e-05
  28  3.51822e-05
  29  0.245416
  30  0.156623
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  8.795e+01  5.629e+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:  7.671e-01  1.566e-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.413e-01  2.454e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.45
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.06e-07 +/- 6.81e-08
Energy Flux (Fixed Index): 2.93e-05 +/- 1.88e-05

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

Saving results to:
/scratch/kocevski/71844/likelihoodResults_387590401_387849601_4FGL_J2339.6+0242_daily_bin572.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) = 5028.31725493
delta logL = 1.8063008839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5028.20729055
delta logL = 1.91626526806

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6178       1.0000         .10000E-03   10000.    
     2 'Index     '    5.0635       1.0000          .0000       10.000    
     3 'Normalizat'    .69685       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84725       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=   5028.207     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      280 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6080        17.222        .63022E-02   -.59293E-03
   2  Index         5.0656        2.5746        .73931E-01    .11269E-04
   3  Normalizat    .69691        .83874E-01    .71725E-01    .25925E-04
   4  Prefactor     .84720        .56658E-01    .44329E-01   -.12974E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.60795
  Index      = 5.06556
  Normalizat = 0.696913
  Prefactor  = 0.847201
 **********
 **   18 **HESSE 
 **********

 FCN=   5028.207     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      311 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6080        24.181        .47802E-04   -1.5385    
   2  Index         5.0656        3.1361        .31096E-02    .13113E-01
   3  Normalizat    .69691        .22025        .31746E-03   -1.0401    
   4  Prefactor     .84720        .14909        .19938E-03   -.98011    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.39471e-10
Minuit parameter uncertainties:
  1  15.8905
  2  3.38989
  3  0.220531
  4  0.14916
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71844': 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) = 5028.20728972
delta logL = 1.91626609654

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  2.608e+00  1.589e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  5.066e+00  3.390e+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:  8.472e-01  1.492e-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.969e-01  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.01
Ra Dec: 354.904 2.710
Photon Index (Free Index): 5.07 +/- 3.39
Photon Flux (Free Index): 2.12e-07 +/- 9.52e-08
Energy Flux (Free Index): 2.80e-05 +/- 1.40e-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/71844/cmap_HighResolution_387590401_387849601_4FGL_J2339.6+0242_daily_bin572.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.82e-02', comment='SUCCESS', photon_flux='1.06e-07', energy_flux2='2.80e-05', photon_flux_error='6.81e-08', dlogl='1.92e+00', energy_flux='2.93e-05', photon_flux2='2.12e-07', job_status='DONE', time_completed='2021-09-30 02:52:09.395951', photon_index_error2='3.39', photon_index2='5.07', ts='3.45', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='2.34e-07', energy_flux_error2='1.40e-05', EG='0.84', time_epoch_completed='1632995529.4', return_code='0', job_id='71844', GAL2='0.85', EG2='0.70', return_code2='102', energy_flux_error='1.88e-05', photon_flux_error2='9.52e-08', ts2='8.01', photon_index='2.55' WHERE bin_id='572' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:52:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 71844: <4FGL_J2339.6+0242_daily_bin572> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin572 354.904 2.7102 387590401 387849601 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 :                                   744.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            982 sec.

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

