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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin739
RA = 354.904, Dec = 2.7102
tmin = 430876801, tmax = 431136001
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='73107', job_status='RUN', time_executed='2021-09-30 02:43:56.322028', time_epoch_executed='1632995036.32' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='739'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73107

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73107/ft1_4FGL_J2339.6+0242_daily_bin739.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73107/ft2_4FGL_J2339.6+0242_daily_bin739.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73107/ft1_4FGL_J2339.6+0242_daily_bin739.fits outfile=/scratch/kocevski/73107/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin739.fits ra=354.904 dec=2.7102 rad=12.0 tmin=430876801.0 tmax=431136001.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 5.36
user 5.05
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73107/ft1_filtered_4FGL_J2339.6+0242_daily_bin739.fits evtable="EVENTS" scfile=/scratch/kocevski/73107/ft2_4FGL_J2339.6+0242_daily_bin739.fits sctable="SC_DATA" expcube=/scratch/kocevski/73107/ltcube_430876801_431136001_4FGL_J2339.6+0242_daily_bin739.fits outfile=/scratch/kocevski/73107/expmap_430876801_431136001_4FGL_J2339.6+0242_daily_bin739.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/73107/ltcube_430876801_431136001_4FGL_J2339.6+0242_daily_bin739.fits
.....................!
real 190.15
user 185.28
sys 4.56

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/73107/ft1_filtered_4FGL_J2339.6+0242_daily_bin739.fits scfile=/scratch/kocevski/73107/ft2_4FGL_J2339.6+0242_daily_bin739.fits outfile=/scratch/kocevski/73107/cmap_430876801_431136001_4FGL_J2339.6+0242_daily_bin739.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.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.540       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11208E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    15.947       1.0000         .10000E-03   10000.    
     6 'norm      '    .11674E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.512       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.797       1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.983       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1770       1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4953       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.8331       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    226.58       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1784       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .34038E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10138E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    39.545       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2999       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .59406       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=   2601.135     FROM MIGRAD    STATUS=CONVERGED    775 CALLS     3897 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.187        .60364E-06** at limit **
   2  Prefactor     26.544        82.332       -.12798E-06   -.21495E-05
   3  Prefactor     .10001E-03    136.81       -.13779E-04** at limit **
   4  Prefactor     .10000E-03    5.4181       -.86560E-07** at limit **
   5  norm          15.949        7.4127       -.19094E-05    .62830E-03
   6  norm          .10002E-03    7.8675       -.12000E-05** at limit **
   7  Prefactor     .10000E-03    6.0638        .21097E-06** at limit **
   8  norm          .10000E-03    8.2774       -.13574E-06** at limit **
   9  Prefactor     14.507        56.230        .46323E-05   -.89313E-05
  10  Prefactor     20.797        18.225        .11872E-06   -.17939E-04
  11  Prefactor     38.975        34.724        .12299E-05   -.35226E-04
  12  Prefactor     .10000E-03    19.199       -.19314E-05** at limit **
  13  norm          1.1771        1.4118        .51287E-07    .69676E-04
  14  norm          .10000E-03    4.9099       -.20804E-06** at limit **
  15  Prefactor     7.4475        41.959       -.18307E-04   -.15288E-03
  16  Prefactor     .10000E-03    39.048        .21235E-06** at limit **
  17  norm          9.8548        25.866        .97310E-05   -.17078E-03
  18  Prefactor     .10000E-03    6.0615       -.33155E-05** at limit **
  19  Prefactor     226.61        284.27        .18921E-06   -.16615E-04
  20  Prefactor     3.1904        43.133        .11780E-06   -.29777E-05
  21  Prefactor     .10000E-03    455.51       -.34246E-04** at limit **
  22  norm          .10000E-03    10.812       -.95941E-06** at limit **
  23  norm          .10000E-03    21.433        .32720E-05** at limit **
  24  Prefactor     .10000E-03    42.297        .34828E-05** at limit **
  25  Prefactor     .10000E-03    3.6172       -.95040E-08** at limit **
  26  Prefactor     39.547        72.788        .43339E-07   -.35181E-04
  27  Prefactor     .10000E-03    33.347       -.51973E-05** at limit **
  28  Prefactor     .10000E-03    19.476       -.83553E-06** at limit **
  29  Normalizat    1.2997        .31945       -.17555E-05   -.12320E-03
  30  Prefactor     .59421        .19469       -.18447E-05   -.13751E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 26.5437
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 15.9491
  norm       = 0.000100023
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.5074
  Prefactor  = 20.7967
  Prefactor  = 38.9747
  Prefactor  = 0.0001
  norm       = 1.17707
  norm       = 0.0001
  Prefactor  = 7.44749
  Prefactor  = 0.0001
  norm       = 9.8548
  Prefactor  = 0.0001
  Prefactor  = 226.609
  Prefactor  = 3.19043
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.547
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.29974
  Prefactor  = 0.594205
 **********
 **   18 **HESSE 
 **********

 FCN=   2601.135     FROM HESSE     STATUS=OK           586 CALLS     4483 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.192        .16666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     26.544        82.343        .77762E-04   -1.4677    
   3  Prefactor     .10001E-03    135.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.4189        .11594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          15.949        7.3364        .88958E-04   -1.4909    
   6  norm          .10002E-03    7.0799        .44533E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.0651        .12268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.2854        .14331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.507        56.258        .10514E-03   -1.4946    
  10  Prefactor     20.797        18.226        .87829E-04   -1.4796    
  11  Prefactor     38.975        34.749        .64196E-04   -1.4459    
  12  Prefactor     .10000E-03    19.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1771        1.3797        .62765E-04   -1.5491    
  14  norm          .10000E-03    4.9191        .11035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.4475        41.424        .14649E-03   -1.5162    
  16  Prefactor     .10000E-03    39.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.8548        25.688        .12779E-03   -1.5080    
  18  Prefactor     .10000E-03    6.0787        .12260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     226.61        283.32        .13440E-03   -1.2686    
  20  Prefactor     3.1904        42.513        .22731E-03   -1.5351    
  21  Prefactor     .10000E-03    444.28        .72770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    10.813        .16382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    21.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    42.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.6191        .94670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     39.547        72.818        .63739E-04   -1.4449    
  27  Prefactor     .10000E-03    33.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    19.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2997        .37232        .26225E-03   -.83574    
  30  Prefactor     .59421        .22469        .23454E-03   -1.0783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42833e-10
Minuit parameter uncertainties:
  1  3.44216e-05
  2  82.6982
  3  0.00179337
  4  1.26839e-05
  5  7.33684
  6  0.000800534
  7  1.49327e-05
  8  1.57208e-05
  9  56.4646
  10  18.2304
  11  34.7669
  12  3.41494e-06
  13  1.37974
  14  1.21585e-05
  15  35.1656
  16  2.87558e-05
  17  25.7171
  18  8.78868e-06
  19  285.057
  20  23.3123
  21  0.00135683
  22  1.75885e-05
  23  0.000174012
  24  0.000270654
  25  9.5693e-06
  26  72.9819
  27  0.000137917
  28  3.24034e-05
  29  0.373088
  30  0.225032
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.955e+01  7.298e+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:  5.942e-01  2.250e-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.300e+00  3.731e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/73107/likelihoodResults_430876801_431136001_4FGL_J2339.6+0242_daily_bin739.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) = 2600.87305383
delta logL = 0.261640185691

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2600.83387634
delta logL = 0.300817672143

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.563       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0221       1.0000          .0000       10.000    
     3 'Normalizat'    1.2030       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63563       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=   2600.834     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      324 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.647        604.86        .11781E-03   -.40414E-03
   2  Index         4.0183        6.7742        .49838E-02   -.11609E-03
   3  Normalizat    1.2028        .37323        .27082E-03   -.36036E-03
   4  Prefactor     .63560        .23741        .22750E-03   -.34115E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6471
  Index      = 4.01832
  Normalizat = 1.2028
  Prefactor  = 0.635605
 **********
 **   18 **HESSE 
 **********

 FCN=   2600.834     FROM HESSE     STATUS=OK            25 CALLS      349 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.647        59.613        .47124E-05   -1.5025    
   2  Index         4.0183        2.6179        .19935E-03   -.19762    
   3  Normalizat    1.2028        .37577        .54164E-04   -.86516    
   4  Prefactor     .63560        .22969        .45500E-04   -1.0611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.2419e-10
Minuit parameter uncertainties:
  1  52.7829
  2  2.76164
  3  0.376615
  4  0.230035
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73107': 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) = 2600.83387412
delta logL = 0.300819886476

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.165e+01  5.278e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  4.018e+00  2.762e+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:  6.356e-01  2.300e-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.203e+00  3.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 354.904 2.710
Photon Index (Free Index): 4.02 +/- 2.76
Photon Flux (Free Index): 1.48e-07 +/- 1.73e-07
Energy Flux (Free Index): 2.21e-05 +/- 2.47e-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/73107/cmap_HighResolution_430876801_431136001_4FGL_J2339.6+0242_daily_bin739.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.12e-02', comment='SUCCESS', energy_flux2='2.21e-05', dlogl='3.01e-01', photon_flux2='1.48e-07', job_status='DONE', time_completed='2021-09-30 02:56:56.466988', photon_index_error2='2.76', photon_index2='4.02', ts='0.42', fit_tolerance='1e-08', GAL='0.59', photon_index_error='0.00', photon_flux_upper_limit='2.71e-07', energy_flux_error2='2.47e-05', EG='1.30', time_epoch_completed='1632995816.47', return_code='0', job_id='73107', GAL2='0.64', EG2='1.20', return_code2='0', photon_flux_error2='1.73e-07', ts2='1.12', photon_index='2.55' WHERE bin_id='739' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:56:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 73107: <4FGL_J2339.6+0242_daily_bin739> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin739> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 02:40:24 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:40:26 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:40:26 2021
Terminated at Thu Sep 30 02:56:57 2021
Results reported at Thu Sep 30 02:56:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin739 354.904 2.7102 430876801 431136001 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 :                                   521.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             238.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            993 sec.

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

