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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin202
RA = 354.904, Dec = 2.7102
tmin = 291686401, tmax = 291945601
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='69916', job_status='RUN', time_executed='2021-09-30 02:32:54.527534', time_epoch_executed='1632994374.53' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69916

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69916/ft1_4FGL_J2339.6+0242_daily_bin202.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69916/ft2_4FGL_J2339.6+0242_daily_bin202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69916/ft1_4FGL_J2339.6+0242_daily_bin202.fits outfile=/scratch/kocevski/69916/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin202.fits ra=354.904 dec=2.7102 rad=12.0 tmin=291686401.0 tmax=291945601.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.53
user 3.27
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69916/ft1_filtered_4FGL_J2339.6+0242_daily_bin202.fits evtable="EVENTS" scfile=/scratch/kocevski/69916/ft2_4FGL_J2339.6+0242_daily_bin202.fits sctable="SC_DATA" expcube=/scratch/kocevski/69916/ltcube_291686401_291945601_4FGL_J2339.6+0242_daily_bin202.fits outfile=/scratch/kocevski/69916/expmap_291686401_291945601_4FGL_J2339.6+0242_daily_bin202.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/69916/ltcube_291686401_291945601_4FGL_J2339.6+0242_daily_bin202.fits
.....................!
real 192.38
user 187.37
sys 4.66

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/69916/ft1_filtered_4FGL_J2339.6+0242_daily_bin202.fits scfile=/scratch/kocevski/69916/ft2_4FGL_J2339.6+0242_daily_bin202.fits outfile=/scratch/kocevski/69916/cmap_291686401_291945601_4FGL_J2339.6+0242_daily_bin202.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69916/ft1_filtered_4FGL_J2339.6+0242_daily_bin202.fits scfile=/scratch/kocevski/69916/ft2_4FGL_J2339.6+0242_daily_bin202.fits outfile=/scratch/kocevski/69916/cmap_HighResolution_291686401_291945601_4FGL_J2339.6+0242_daily_bin202.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.53
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63624       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.4595       1.0000         .10000E-03   10000.    
     6 'norm      '    9.0889       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.430       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8904       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0528       1.0000         .10000E-03   10000.    
    14 'norm      '    5.6625       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .82476       1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.884       1.0000         .10000E-03   10000.    
    17 'norm      '    5.3998       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.827       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    47.231       1.0000         .10000E-03   10000.    
    22 'norm      '    38.093       1.0000         .10000E-03   10000.    
    23 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.9151       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.9072       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11301       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0739       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .94914       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=   6776.693     FROM MIGRAD    STATUS=CONVERGED    794 CALLS     3942 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60414        6.7889       -.71743E-06    .10943E-04
   2  Prefactor     .10000E-03    57.607       -.44880E-06** at limit **
   3  Prefactor     .10000E-03    16.615        .18320E-07** at limit **
   4  Prefactor     .10000E-03    5.5283       -.10455E-06** at limit **
   5  norm          3.4600        2.9792        .45451E-06    .56587E-03
   6  norm          9.0881        5.3180        .89403E-07    .19721E-04
   7  Prefactor     .10000E-03    4.0109       -.42600E-08** at limit **
   8  norm          .10000E-03    3.4345       -.27012E-07** at limit **
   9  Prefactor     .10000E-03    18.264       -.78512E-06** at limit **
  10  Prefactor     10.427        14.675        .40589E-05    .82078E-03
  11  Prefactor     .10000E-03    9.4538       -.21920E-07** at limit **
  12  Prefactor     3.8861        7.6640        .67884E-06    .15319E-03
  13  norm          2.0523        .97393        .60067E-07    .16496E-03
  14  norm          5.6618        5.4303        .49083E-07   -.14934E-03
  15  Prefactor     .79180        22.587        .10479E-04   -.45942E-03
  16  Prefactor     30.840        44.826        .79285E-06    .20096E-04
  17  norm          5.4052        7.9401        .12451E-06   -.54309E-04
  18  Prefactor     11.826        9.4434        .20826E-06   -.87236E-04
  19  Prefactor     .10000E-03    62.696        .90631E-07** at limit **
  20  Prefactor     .10000E-03    2.5483        .10585E-06** at limit **
  21  Prefactor     47.283        33.293       -.80705E-06   -.46647E-03
  22  norm          38.083        25.021        .32907E-06    .13775E-03
  23  norm          .10000E-03    6.2290        .75481E-07** at limit **
  24  Prefactor     .10000E-03    19.202        .43350E-06** at limit **
  25  Prefactor     2.9138        2.6500        .89822E-07    .28375E-04
  26  Prefactor     4.8875        72.464        .18153E-05    .61044E-04
  27  Prefactor     .10214E-03    23.869       -.24796E-05** at limit **
  28  Prefactor     .10000E-03    4.9022        .44480E-07** at limit **
  29  Normalizat    1.0741        .20752       -.25212E-05   -.38187E-03
  30  Prefactor     .94931        .13682        .40708E-06   -.37199E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.604144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.45998
  norm       = 9.08813
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 10.427
  Prefactor  = 0.0001
  Prefactor  = 3.88607
  norm       = 2.05226
  norm       = 5.66183
  Prefactor  = 0.791798
  Prefactor  = 30.8396
  norm       = 5.40521
  Prefactor  = 11.8261
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.2835
  norm       = 38.0834
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.91383
  Prefactor  = 4.88752
  Prefactor  = 0.000102142
  Prefactor  = 0.0001
  Normalizat = 1.07406
  Prefactor  = 0.949314
 **********
 **   18 **HESSE 
 **********

 FCN=   6776.693     FROM HESSE     STATUS=OK           596 CALLS     4538 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60414        20.789        .41281E-02   -1.5553    
   2  Prefactor     .10000E-03    57.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.5852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.4600        3.0053        .12504E-03   -1.5336    
   6  norm          9.0881        5.3195        .13294E-03   -1.5105    
   7  Prefactor     .10000E-03    4.0157        .16100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.4380        .14899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.427        15.723        .62031E-03   -1.5062    
  11  Prefactor     .10000E-03    9.4759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.8861        7.6617        .20457E-03   -1.5314    
  13  norm          2.0523        .97179        .53438E-04   -1.5421    
  14  norm          5.6618        5.4205        .16881E-03   -1.5232    
  15  Prefactor     .79180        26.850        .44243E-02   -1.5530    
  16  Prefactor     30.840        44.865        .72098E-04   -1.4597    
  17  norm          5.4052        7.8587        .17293E-03   -1.5243    
  18  Prefactor     11.826        9.4099        .11649E-03   -1.5020    
  19  Prefactor     .10000E-03    62.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.5511        .12834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     47.283        33.057        .58345E-04   -1.4332    
  22  norm          38.083        25.055        .64939E-04   -1.4473    
  23  norm          .10000E-03    6.2358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    19.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.9138        2.6537        .12358E-03   -1.5367    
  26  Prefactor     4.8875        72.967        .18157E-03   -1.5266    
  27  Prefactor     .10214E-03    27.480        .10120       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.9156        .17801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0741        .24357        .29919E-03   -.90589    
  30  Prefactor     .94931        .15990        .21851E-03   -.94439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70232e-09
Minuit parameter uncertainties:
  1  7.09001
  2  0.000211084
  3  1.92913e-05
  4  8.49931e-06
  5  3.00548
  6  5.3198
  7  6.03865e-07
  8  1.79546e-06
  9  0.00032248
  10  15.7294
  11  3.7919e-06
  12  7.66366
  13  0.971797
  14  5.42099
  15  9.22557
  16  44.9141
  17  7.86024
  18  9.41105
  19  7.50453e-05
  20  9.41418e-06
  21  33.0698
  22  25.0623
  23  1.03229e-05
  24  0.000212306
  25  2.65381
  26  37.8242
  27  0.0153524
  28  7.17715e-06
  29  0.24382
  30  0.159979
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  4.888e+00  3.782e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.549e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
465        Scale:  7.790e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  9.493e-01  1.600e-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:  1.074e+00  2.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 354.904 2.710
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/69916/likelihoodResults_291686401_291945601_4FGL_J2339.6+0242_daily_bin202.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) = 6776.02512999
delta logL = 0.667731480014

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6775.77555774
delta logL = 0.917303731022

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12616E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    8.6632       1.0000          .0000       10.000    
     3 'Normalizat'    .97707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99535       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=   6775.776     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      358 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12703E-02    .16278E-01    .59403E-03** at limit **
   2  Index         8.6594        2.6464        .21729       -.62290E-04
   3  Normalizat    .97736        .45358E-01    .70456E-01   -.75583E-04
   4  Prefactor     .99510        .31532E-01    .46209E-01   -.23336E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00127027
  Index      = 8.65935
  Normalizat = 0.977361
  Prefactor  = 0.995104
 **********
 **   18 **HESSE 
 **********

 FCN=   6775.776     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      393 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12703E-02    .46441E-01    .25140E-04   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.6594        8.8055        .87632E-02    .82106    
   3  Normalizat    .97736        .17177        .31170E-03   -.93793    
   4  Prefactor     .99510        .11716        .21401E-03   -.92893    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.96841e-10
Minuit parameter uncertainties:
  1  0.0147444
  2  5.90272
  3  0.171864
  4  0.117191
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69916': 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) = 6775.77555617
delta logL = 0.917305307713

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.270e-03  1.474e-02  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  8.659e+00  5.903e+00  0.000e+00  1.000e+01 (-1.000e+00)
465        Scale:  7.790e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  9.951e-01  1.172e-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.774e-01  1.719e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.01
Ra Dec: 354.904 2.710
Photon Index (Free Index): 8.66 +/- 5.90
Photon Flux (Free Index): 8.91e-08 +/- 7.06e-08
Energy Flux (Free Index): 1.02e-05 +/- 8.53e-06

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/69916/cmap_HighResolution_291686401_291945601_4FGL_J2339.6+0242_daily_bin202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.81e-03', comment='SUCCESS', energy_flux2='1.02e-05', dlogl='9.17e-01', photon_flux2='8.91e-08', job_status='DONE', time_completed='2021-09-30 02:46:57.527819', photon_index_error2='5.90', photon_index2='8.66', ts='0.02', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='8.53e-06', EG='1.07', time_epoch_completed='1632995217.53', return_code='0', job_id='69916', GAL2='1.00', EG2='0.98', return_code2='102', photon_flux_error2='7.06e-08', ts2='2.01', photon_index='2.55' WHERE bin_id='202' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:46:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 69916: <4FGL_J2339.6+0242_daily_bin202> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin202> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:30:34 2021
Job was executed on host(s) <bullet0302>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:30:36 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:36 2021
Terminated at Thu Sep 30 02:46:58 2021
Results reported at Thu Sep 30 02:46:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin202 354.904 2.7102 291686401 291945601 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 :                                   840.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            984 sec.

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

