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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin523
RA = 354.904, Dec = 2.7102
tmin = 374889601, tmax = 375148801
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='71756', job_status='RUN', time_executed='2021-09-30 02:38:53.770696', time_epoch_executed='1632994733.77' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='523'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71756

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71756/ft1_4FGL_J2339.6+0242_daily_bin523.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71756/ft2_4FGL_J2339.6+0242_daily_bin523.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71756/ft1_4FGL_J2339.6+0242_daily_bin523.fits outfile=/scratch/kocevski/71756/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin523.fits ra=354.904 dec=2.7102 rad=12.0 tmin=374889601.0 tmax=375148801.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.52
user 3.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71756/ft1_filtered_4FGL_J2339.6+0242_daily_bin523.fits" evtable="EVENTS" scfile=/scratch/kocevski/71756/ft2_4FGL_J2339.6+0242_daily_bin523.fits sctable="SC_DATA" outfile=/scratch/kocevski/71756/ltcube_374889601_375148801_4FGL_J2339.6+0242_daily_bin523.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/71756/ft2_4FGL_J2339.6+0242_daily_bin523.fits
.....................!
real 11.90
user 11.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71756/ft1_filtered_4FGL_J2339.6+0242_daily_bin523.fits evtable="EVENTS" scfile=/scratch/kocevski/71756/ft2_4FGL_J2339.6+0242_daily_bin523.fits sctable="SC_DATA" expcube=/scratch/kocevski/71756/ltcube_374889601_375148801_4FGL_J2339.6+0242_daily_bin523.fits outfile=/scratch/kocevski/71756/expmap_374889601_375148801_4FGL_J2339.6+0242_daily_bin523.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/71756/ltcube_374889601_375148801_4FGL_J2339.6+0242_daily_bin523.fits
.....................!
real 191.74
user 186.18
sys 5.04

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/71756/ft1_filtered_4FGL_J2339.6+0242_daily_bin523.fits scfile=/scratch/kocevski/71756/ft2_4FGL_J2339.6+0242_daily_bin523.fits outfile=/scratch/kocevski/71756/cmap_374889601_375148801_4FGL_J2339.6+0242_daily_bin523.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.52
user 0.35
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75890E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10419E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.058       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.773       1.0000         .10000E-03   10000.    
     5 'norm      '    .19082E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.7779       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.7234       1.0000         .10000E-03   10000.    
     9 'Prefactor '    68.774       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.2744       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.550       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .76114       1.0000         .10000E-03   10000.    
    13 'norm      '    4.3874       1.0000         .10000E-03   10000.    
    14 'norm      '    6.7555       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.640       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10764E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.9243       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.4869       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.5168       1.0000         .10000E-03   10000.    
    22 'norm      '    20.560       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.4139       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .71629       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .99864       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6201.293     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     3295 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10090E-03    358.46        .12628E-04** at limit **
   2  Prefactor     .10000E-03    22.478       -.32446E-05** at limit **
   3  Prefactor     31.054        1.2353        .21727E-07   -.60455E-03
   4  Prefactor     17.772        1.2540       -.34882E-06   -.22648E-02
   5  norm          .10000E-03    8.7382        .35878E-05** at limit **
   6  norm          7.7772        5.4705        .68977E-05    .59187E-03
   7  Prefactor     .10000E-03    3.9853       -.17393E-06** at limit **
   8  norm          6.7198        1.1263       -.17328E-07    .73364E-03
   9  Prefactor     68.755        2.0698       -.34954E-06    .21691E-02
  10  Prefactor     8.2683        1.3272        .66983E-06    .10615E-02
  11  Prefactor     12.551        1.0101       -.17633E-06   -.79674E-04
  12  Prefactor     .78624        3.3429        .83898E-05    .16296E-03
  13  norm          4.3871        1.3594       -.75071E-06   -.21900E-03
  14  norm          6.7508        5.6617        .68364E-05    .72435E-03
  15  Prefactor     13.636        1.1453       -.16885E-06    .21610E-03
  16  Prefactor     .10000E-03    31.942        .14658E-04** at limit **
  17  norm          5.9236        1.3266       -.22606E-05   -.59140E-04
  18  Prefactor     .10000E-03    4.2261       -.39668E-05** at limit **
  19  Prefactor     .10841E-03    39.405        .36342E-04** at limit **
  20  Prefactor     7.4901        2.1792        .70424E-06    .25106E-02
  21  Prefactor     7.5158        1.1412       -.86043E-06    .33950E-03
  22  norm          20.563        1.0490        .28670E-06   -.26122E-03
  23  norm          .10001E-03    10.695        .20590E-04** at limit **
  24  Prefactor     .10111E-03    38.995       -.48276E-04** at limit **
  25  Prefactor     3.4116        5.2747        .45109E-05   -.46932E-03
  26  Prefactor     .10016E-03    34.790        .30900E-04** at limit **
  27  Prefactor     .10715E-03    28.717       -.25657E-04** at limit **
  28  Prefactor     .10000E-03    10.513       -.20215E-04** at limit **
  29  Normalizat    .71632        .22783       -.87969E-05   -.25288E-03
  30  Prefactor     .99873        .15465       -.42252E-07   -.25704E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100904
  Prefactor  = 0.000100001
  Prefactor  = 31.0544
  Prefactor  = 17.7721
  norm       = 0.0001
  norm       = 7.7772
  Prefactor  = 0.0001
  norm       = 6.71981
  Prefactor  = 68.7554
  Prefactor  = 8.26826
  Prefactor  = 12.551
  Prefactor  = 0.786236
  norm       = 4.38714
  norm       = 6.75083
  Prefactor  = 13.6364
  Prefactor  = 0.000100003
  norm       = 5.92355
  Prefactor  = 0.0001
  Prefactor  = 0.000108406
  Prefactor  = 7.4901
  Prefactor  = 7.51582
  norm       = 20.5626
  norm       = 0.000100006
  Prefactor  = 0.000101107
  Prefactor  = 3.41157
  Prefactor  = 0.000100161
  Prefactor  = 0.000107151
  Prefactor  = 0.000100005
  Normalizat = 0.71632
  Prefactor  = 0.998729
 **********
 **   18 **HESSE 
 **********

 FCN=   6201.293     FROM HESSE     STATUS=OK           668 CALLS     3963 TOTAL
                     EDM=   .50E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10090E-03    12.695        .93957E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.548        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.054        24.913        .17974E-02   -1.4593    
   4  Prefactor     17.772        10.128        .23751E-02   -1.4865    
   5  norm          .10000E-03    2.1495        .61567E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.7772        5.5076        .35945E-02   -1.5150    
   7  Prefactor     .10000E-03    3.9836        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.7198        10.367        .38687E-02   -1.5189    
   9  Prefactor     68.755        44.353        .12100E-02   -1.4048    
  10  Prefactor     8.2683        11.580        .34843E-02   -1.5133    
  11  Prefactor     12.551        11.865        .28268E-02   -1.4999    
  12  Prefactor     .78624        16.013        .82691E-01   -1.5531    
  13  norm          4.3871        1.3688        .48070E-02   -1.5289    
  14  norm          6.7508        8.6543        .38594E-02   -1.5188    
  15  Prefactor     13.636        12.900        .27113E-02   -1.4969    
  16  Prefactor     .10000E-03    85.273        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.9236        8.1978        .41245E-02   -1.5221    
  18  Prefactor     .10000E-03    4.1474        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10841E-03    96.995        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.4901        9.3482        .36643E-02   -1.5161    
  21  Prefactor     7.5158        33.289        .36569E-02   -1.5160    
  22  norm          20.563        17.678        .22083E-02   -1.4801    
  23  norm          .10001E-03    10.762        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10111E-03    45.555        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.4116        6.0927        .54736E-02   -1.5339    
  26  Prefactor     .10016E-03    36.169        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10715E-03    69.157        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    10.546        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .71632        .21743        .76248E-01   -1.0325    
  30  Prefactor     .99873        .13806        .46250E-01   -.92772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.99767e-07
Minuit parameter uncertainties:
  1  0.00677864
  2  0.000312252
  3  24.9209
  4  10.129
  5  1.75391e-05
  6  5.50799
  7  4.24598e-05
  8  10.3702
  9  44.3747
  10  11.5833
  11  11.8672
  12  7.09817
  13  1.36886
  14  8.65594
  15  12.9023
  16  0.00101311
  17  8.19934
  18  1.2177e-05
  19  0.0572024
  20  9.35002
  21  31.6645
  22  17.6827
  23  0.000487441
  24  0.0142155
  25  6.09384
  26  0.00482505
  27  0.0445294
  28  0.00045135
  29  0.217695
  30  0.138112
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.002e-04  4.825e-03  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.987e-01  1.381e-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:  7.163e-01  2.177e-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: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71756/likelihoodResults_374889601_375148801_4FGL_J2339.6+0242_daily_bin523.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) = 6201.29338059
delta logL = -0.000131328711177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6201.29324942
delta logL = -1.60689523909e-07

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.4780       1.0000          .0000       10.000    
     3 'Normalizat'    .71633       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99873       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=   6201.293     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      238 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6398.9        .90712E-02** at limit **
   2  Index         2.5122        7.8534        .50000       -.96898E-05
   3  Normalizat    .71632        .54410E-01    .76248E-01   -.55924E-04
   4  Prefactor     .99873        .38018E-01    .46251E-01   -.73782E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.51215
  Normalizat = 0.716321
  Prefactor  = 0.998729
 **********
 **   18 **HESSE 
 **********

 FCN=   6201.293     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      269 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8139.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5122        7.5592        .50000       -.52079    
   3  Normalizat    .71632        .20437        .33755E-03   -1.0325    
   4  Prefactor     .99873        .14327        .20161E-03   -.92772    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.13998e-08
Minuit parameter uncertainties:
  1  0.00350635
  2  68.2715
  3  0.204586
  4  0.143325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71756': 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) = 6201.29324934
delta logL = -8.12142388895e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  9.987e-01  1.433e-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:  7.163e-01  2.046e-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/71756/cmap_HighResolution_374889601_375148801_4FGL_J2339.6+0242_daily_bin523.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.09e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-30 02:51:19.048832', job_id='71756', GAL2='1.00', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1632995479.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='-8.12e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='523' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:51:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 71756: <4FGL_J2339.6+0242_daily_bin523> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin523 354.904 2.7102 374889601 375148801 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 :                                   740.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            939 sec.

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

