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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin259
RA = 354.904, Dec = 2.7102
tmin = 306460801, tmax = 306720001
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='70001', job_status='RUN', time_executed='2021-09-30 02:33:45.905560', time_epoch_executed='1632994425.91' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='259'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70001

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70001/ft1_4FGL_J2339.6+0242_daily_bin259.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70001/ft2_4FGL_J2339.6+0242_daily_bin259.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70001/ft1_4FGL_J2339.6+0242_daily_bin259.fits outfile=/scratch/kocevski/70001/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin259.fits ra=354.904 dec=2.7102 rad=12.0 tmin=306460801.0 tmax=306720001.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.57
user 3.30
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/70001/ft1_filtered_4FGL_J2339.6+0242_daily_bin259.fits" evtable="EVENTS" scfile=/scratch/kocevski/70001/ft2_4FGL_J2339.6+0242_daily_bin259.fits sctable="SC_DATA" outfile=/scratch/kocevski/70001/ltcube_306460801_306720001_4FGL_J2339.6+0242_daily_bin259.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/70001/ft2_4FGL_J2339.6+0242_daily_bin259.fits
.....................!
real 11.45
user 11.06
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70001/ft1_filtered_4FGL_J2339.6+0242_daily_bin259.fits evtable="EVENTS" scfile=/scratch/kocevski/70001/ft2_4FGL_J2339.6+0242_daily_bin259.fits sctable="SC_DATA" expcube=/scratch/kocevski/70001/ltcube_306460801_306720001_4FGL_J2339.6+0242_daily_bin259.fits outfile=/scratch/kocevski/70001/expmap_306460801_306720001_4FGL_J2339.6+0242_daily_bin259.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/70001/ltcube_306460801_306720001_4FGL_J2339.6+0242_daily_bin259.fits
.....................!
real 190.36
user 185.51
sys 4.52

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/70001/ft1_filtered_4FGL_J2339.6+0242_daily_bin259.fits scfile=/scratch/kocevski/70001/ft2_4FGL_J2339.6+0242_daily_bin259.fits outfile=/scratch/kocevski/70001/cmap_306460801_306720001_4FGL_J2339.6+0242_daily_bin259.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70001/ft1_filtered_4FGL_J2339.6+0242_daily_bin259.fits scfile=/scratch/kocevski/70001/ft2_4FGL_J2339.6+0242_daily_bin259.fits outfile=/scratch/kocevski/70001/cmap_HighResolution_306460801_306720001_4FGL_J2339.6+0242_daily_bin259.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/70001/ft1_filtered_4FGL_J2339.6+0242_daily_bin259.fits evtable="EVENTS" scfile=/scratch/kocevski/70001/ft2_4FGL_J2339.6+0242_daily_bin259.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/70001/Model_4FGL_J2339.6+0242_daily_bin259.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/70001/ft1_filtered_4FGL_J2339.6+0242_daily_bin259.fits.....................!
real 57.16
user 55.20
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    60.893       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.8308       1.0000         .10000E-03   10000.    
     5 'norm      '    2.0390       1.0000         .10000E-03   10000.    
     6 'norm      '    11.308       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.8627       1.0000         .10000E-03   10000.    
    14 'norm      '    6.1667       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.573       1.0000         .10000E-03   10000.    
    17 'norm      '    9.2444       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10653E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.109       1.0000         .10000E-03   10000.    
    22 'norm      '    26.708       1.0000         .10000E-03   10000.    
    23 'norm      '    24.757       1.0000         .10000E-03   10000.    
    24 'Prefactor '    107.76       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.1870       1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.9978       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .62525       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1463       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=   5447.650     FROM MIGRAD    STATUS=CONVERGED    733 CALLS     3812 TOTAL
                     EDM=   .78E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8987        .10422E-05** at limit **
   2  Prefactor     60.907        80.592       -.26957E-05   -.46935E-05
   3  Prefactor     .10000E-03    35.271        .69940E-06** at limit **
   4  Prefactor     8.8304        12.504        .51137E-06   -.14746E-04
   5  norm          2.0379        2.2768       -.24230E-07   -.50142E-04
   6  norm          11.308        5.8057        .30719E-07    .24920E-05
   7  Prefactor     .10000E-03    8.2633       -.26013E-06** at limit **
   8  norm          .10000E-03    5.8653       -.63265E-06** at limit **
   9  Prefactor     .10000E-03    24.411        .23468E-06** at limit **
  10  Prefactor     .10000E-03    5.8801       -.35135E-06** at limit **
  11  Prefactor     .10000E-03    40.048       -.28508E-05** at limit **
  12  Prefactor     .10000E-03    5.2549       -.22061E-06** at limit **
  13  norm          2.8628        1.2122       -.28572E-07    .16884E-04
  14  norm          6.1681        6.1104        .89400E-08    .11843E-04
  15  Prefactor     .10000E-03    5.2893        .23680E-06** at limit **
  16  Prefactor     27.573        27.969       -.23306E-07    .22059E-05
  17  norm          9.2497        9.0307       -.27395E-06   -.58598E-05
  18  Prefactor     .10000E-03    5.2526        .23312E-06** at limit **
  19  Prefactor     .10000E-03    96.499        .75565E-06** at limit **
  20  Prefactor     .10000E-03    8.5117       -.91500E-07** at limit **
  21  Prefactor     30.113        26.534       -.16906E-06    .15242E-05
  22  norm          26.711        21.653        .68519E-08   -.46746E-06
  23  norm          24.733        36.955        .23479E-06   -.12333E-04
  24  Prefactor     107.77        73.021       -.22011E-05    .70808E-05
  25  Prefactor     7.1879        8.0107        .11082E-05    .34452E-04
  26  Prefactor     8.9957        51.068        .31868E-06   -.10577E-05
  27  Prefactor     .10000E-03    22.046       -.53794E-06** at limit **
  28  Prefactor     .10000E-03    34.497        .14579E-05** at limit **
  29  Normalizat    .62489        .23078       -.82713E-06    .63803E-05
  30  Prefactor     1.1464        .15317        .42278E-06    .41207E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 60.9068
  Prefactor  = 0.0001
  Prefactor  = 8.83039
  norm       = 2.03788
  norm       = 11.3078
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.86282
  norm       = 6.16806
  Prefactor  = 0.0001
  Prefactor  = 27.5726
  norm       = 9.24973
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.1133
  norm       = 26.7114
  norm       = 24.733
  Prefactor  = 107.775
  Prefactor  = 7.18786
  Prefactor  = 8.99566
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.624888
  Prefactor  = 1.14643
 **********
 **   18 **HESSE 
 **********

 FCN=   5447.650     FROM HESSE     STATUS=OK           584 CALLS     4396 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9244        .17539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     60.907        80.696        .51418E-04   -1.4146    
   3  Prefactor     .10000E-03    35.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.8304        12.492        .13488E-03   -1.5114    
   5  norm          2.0379        2.2666        .11264E-03   -1.5422    
   6  norm          11.308        5.8045        .11913E-03   -1.5035    
   7  Prefactor     .10000E-03    8.3450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.8839        .17456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.8913        .17478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    40.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.2667        .16516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.8628        1.2110        .50378E-04   -1.5370    
  14  norm          6.1681        6.1009        .16166E-03   -1.5211    
  15  Prefactor     .10000E-03    5.3054        .16574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     27.573        27.968        .76293E-04   -1.4657    
  17  norm          9.2497        9.0125        .13181E-03   -1.5100    
  18  Prefactor     .10000E-03    5.2920        .16491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    96.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.5439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     30.113        26.508        .73018E-04   -1.4610    
  22  norm          26.711        21.653        .77516E-04   -1.4674    
  23  norm          24.733        36.857        .80509E-04   -1.4713    
  24  Prefactor     107.77        73.036        .19371E-03   -1.3628    
  25  Prefactor     7.1879        8.0180        .74813E-03   -1.5172    
  26  Prefactor     8.9957        51.008        .13362E-03   -1.5108    
  27  Prefactor     .10000E-03    22.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    34.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .62489        .25271        .35680E-03   -1.0694    
  30  Prefactor     1.1464        .16986        .19399E-03   -.87996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51351e-11
Minuit parameter uncertainties:
  1  2.70488e-06
  2  80.8413
  3  3.37852e-05
  4  12.4957
  5  2.26674
  6  5.80475
  7  7.29488e-07
  8  2.99941e-06
  9  2.76076e-06
  10  2.27219e-06
  11  6.61493e-05
  12  3.63917e-06
  13  1.21098
  14  6.1015
  15  4.13547e-06
  16  27.981
  17  9.01385
  18  8.84302e-06
  19  4.14879e-05
  20  4.5476e-05
  21  26.5183
  22  21.6598
  23  36.8909
  24  73.0967
  25  8.01921
  26  42.8973
  27  6.34451e-07
  28  5.40865e-05
  29  0.25318
  30  0.169936
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  8.996e+00  4.290e+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:  1.146e+00  1.699e-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.249e-01  2.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/70001/likelihoodResults_306460801_306720001_4FGL_J2339.6+0242_daily_bin259.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) = 5447.53610945
delta logL = 0.113979110236

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5447.5166749
delta logL = 0.133413656889

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6878       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8306       1.0000          .0000       10.000    
     3 'Normalizat'    .58734       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1615       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=   5447.517     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      261 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6969        76.885        .18586E-03   -.90086E-03
   2  Index         3.8293        6.7784        .82981E-03   -.17212E-03
   3  Normalizat    .58780        .24909        .36728E-03    .12846E-03
   4  Prefactor     1.1612        .17371        .19290E-03    .82013E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.69692
  Index      = 3.82926
  Normalizat = 0.587802
  Prefactor  = 1.16116
 **********
 **   18 **HESSE 
 **********

 FCN=   5447.517     FROM HESSE     STATUS=OK            23 CALLS      284 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6969        43.413        .74345E-05   -1.5274    
   2  Index         3.8293        3.3237        .33193E-04   -.23634    
   3  Normalizat    .58780        .24789        .14691E-04   -1.0850    
   4  Prefactor     1.1612        .17236        .38579E-04   -.87535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34005e-09
Minuit parameter uncertainties:
  1  28.5864
  2  3.65981
  3  0.248363
  4  0.17244
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70001': 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) = 5447.51667297
delta logL = 0.133415582564

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  4.697e+00  2.859e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  3.829e+00  3.660e+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:  1.161e+00  1.724e-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:  5.878e-01  2.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/70001/cmap_HighResolution_306460801_306720001_4FGL_J2339.6+0242_daily_bin259.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', job_status='DONE', photon_flux_upper_limit='1.32e-07', time_completed='2021-09-30 02:45:39.385022', job_id='70001', GAL2='1.16', fit_tolerance='1e-08', EG2='0.59', EG='0.62', time_epoch_completed='1632995139.39', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.33e-01', ts2='0.34', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='259' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:45:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 70001: <4FGL_J2339.6+0242_daily_bin259> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin259 354.904 2.7102 306460801 306720001 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 :                                   712.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            899 sec.

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

