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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin247
RA = 354.904, Dec = 2.7102
tmin = 303350401, tmax = 303609601
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='69983', job_status='RUN', time_executed='2021-09-30 02:34:27.496130', time_epoch_executed='1632994467.5' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='247'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69983

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69983/ft1_4FGL_J2339.6+0242_daily_bin247.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69983/ft2_4FGL_J2339.6+0242_daily_bin247.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69983/ft1_4FGL_J2339.6+0242_daily_bin247.fits outfile=/scratch/kocevski/69983/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin247.fits ra=354.904 dec=2.7102 rad=12.0 tmin=303350401.0 tmax=303609601.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.45
user 3.23
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/69983/ft1_filtered_4FGL_J2339.6+0242_daily_bin247.fits" evtable="EVENTS" scfile=/scratch/kocevski/69983/ft2_4FGL_J2339.6+0242_daily_bin247.fits sctable="SC_DATA" outfile=/scratch/kocevski/69983/ltcube_303350401_303609601_4FGL_J2339.6+0242_daily_bin247.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/69983/ft2_4FGL_J2339.6+0242_daily_bin247.fits
.....................!
real 11.53
user 11.18
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69983/ft1_filtered_4FGL_J2339.6+0242_daily_bin247.fits evtable="EVENTS" scfile=/scratch/kocevski/69983/ft2_4FGL_J2339.6+0242_daily_bin247.fits sctable="SC_DATA" expcube=/scratch/kocevski/69983/ltcube_303350401_303609601_4FGL_J2339.6+0242_daily_bin247.fits outfile=/scratch/kocevski/69983/expmap_303350401_303609601_4FGL_J2339.6+0242_daily_bin247.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/69983/ltcube_303350401_303609601_4FGL_J2339.6+0242_daily_bin247.fits
.....................!
real 192.48
user 188.39
sys 3.75

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/69983/ft1_filtered_4FGL_J2339.6+0242_daily_bin247.fits scfile=/scratch/kocevski/69983/ft2_4FGL_J2339.6+0242_daily_bin247.fits outfile=/scratch/kocevski/69983/cmap_303350401_303609601_4FGL_J2339.6+0242_daily_bin247.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69983/ft1_filtered_4FGL_J2339.6+0242_daily_bin247.fits scfile=/scratch/kocevski/69983/ft2_4FGL_J2339.6+0242_daily_bin247.fits outfile=/scratch/kocevski/69983/cmap_HighResolution_303350401_303609601_4FGL_J2339.6+0242_daily_bin247.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.52
user 0.38
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10701E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    141.13       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.2183       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5788       1.0000         .10000E-03   10000.    
     5 'norm      '    1.7767       1.0000         .10000E-03   10000.    
     6 'norm      '    18.192       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.4731       1.0000         .10000E-03   10000.    
     8 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.215       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.9114       1.0000         .10000E-03   10000.    
    14 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.908       1.0000         .10000E-03   10000.    
    22 'norm      '    79.375       1.0000         .10000E-03   10000.    
    23 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    35.798       1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.483       1.0000         .10000E-03   10000.    
    26 'Prefactor '    35.295       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .30393E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .86752       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .90200       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=   5573.752     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     3365 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.100       -.19819E-05** at limit **
   2  Prefactor     141.10        2.9040        .41373E-06   -.69753E-02
   3  Prefactor     7.2022        15.807       -.63244E-05   -.48082E-02
   4  Prefactor     4.5822        2.3581        .87619E-06   -.22211E-02
   5  norm          1.7789        2.7831        .16942E-05    .20215E-03
   6  norm          18.192        1.2952       -.11335E-06   -.51716E-03
   7  Prefactor     6.4718        1.7545        .16094E-07   -.26600E-02
   8  norm          .10000E-03    6.2567       -.12167E-05** at limit **
   9  Prefactor     .10000E-03    17.012       -.13147E-04** at limit **
  10  Prefactor     13.218        1.1962       -.76651E-07    .13381E-02
  11  Prefactor     .10000E-03    7.0853        .35810E-06** at limit **
  12  Prefactor     .10000E-03    5.7144        .11827E-06** at limit **
  13  norm          1.9117        1.0455        .19672E-06   -.41265E-04
  14  norm          .10000E-03    2.4900        .12455E-06** at limit **
  15  Prefactor     .10000E-03    4.0064       -.42618E-06** at limit **
  16  Prefactor     .10000E-03    21.651        .72525E-05** at limit **
  17  norm          .10001E-03    6.6602        .39987E-05** at limit **
  18  Prefactor     .10000E-03    5.3287       -.56025E-06** at limit **
  19  Prefactor     .10011E-03    95.527       -.55543E-05** at limit **
  20  Prefactor     .10001E-03    13.491        .45112E-05** at limit **
  21  Prefactor     19.854        9.8648        .31353E-05   -.33512E-02
  22  norm          79.369        6.8949        .10716E-05   -.96440E-02
  23  norm          .10000E-03    7.9609        .37623E-05** at limit **
  24  Prefactor     35.580        11.244        .29496E-05   -.60974E-02
  25  Prefactor     13.486        5.7327        .24386E-05    .40091E-02
  26  Prefactor     35.224        7.9821       -.10984E-05    .84726E-02
  27  Prefactor     .38254        443.58       -.46939E-04   -.21417E-03
  28  Prefactor     .10000E-03    3.3210       -.67107E-07** at limit **
  29  Normalizat    .86752        .24670       -.63206E-05   -.27689E-04
  30  Prefactor     .90168        .16551       -.19363E-05   -.43338E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 141.104
  Prefactor  = 7.20217
  Prefactor  = 4.58225
  norm       = 1.77893
  norm       = 18.1921
  Prefactor  = 6.47175
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 13.218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.91166
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100111
  Prefactor  = 0.000100006
  Prefactor  = 19.8542
  norm       = 79.3686
  norm       = 0.000100002
  Prefactor  = 35.58
  Prefactor  = 13.486
  Prefactor  = 35.2235
  Prefactor  = 0.382542
  Prefactor  = 0.0001
  Normalizat = 0.867521
  Prefactor  = 0.901678
 **********
 **   18 **HESSE 
 **********

 FCN=   5573.752     FROM HESSE     STATUS=OK           648 CALLS     4013 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.062        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     141.10        83.602        .84777E-03   -1.3327    
   3  Prefactor     7.2022        18.470        .37324E-02   -1.5171    
   4  Prefactor     4.5822        7.1346        .47029E-02   -1.5280    
   5  norm          1.7789        2.8939        .78514E-02   -1.5441    
   6  norm          18.192        7.8157        .23476E-02   -1.4855    
   7  Prefactor     6.4718        12.548        .39436E-02   -1.5199    
   8  norm          .10000E-03    6.2356        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.046        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.218        12.066        .27547E-02   -1.4981    
  11  Prefactor     .10000E-03    7.0804        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.6939        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9117        1.0482        .75170E-03   -1.5431    
  14  norm          .10000E-03    2.4831        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.9997        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    21.643        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10001E-03    13.868        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.2205        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10011E-03    95.906        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    13.559        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.854        26.789        .22442E-02   -1.4817    
  22  norm          79.369        35.685        .11269E-02   -1.3924    
  23  norm          .10000E-03    14.514        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     35.580        93.088        .16745E-02   -1.4514    
  25  Prefactor     13.486        5.9592        .27271E-02   -1.4973    
  26  Prefactor     35.224        39.349        .16864E-02   -1.4520    
  27  Prefactor     .38254        28.731        .11136       -1.5584    
  28  Prefactor     .10000E-03    3.3207        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .86752        .22591        .70033E-01   -.97611    
  30  Prefactor     .90168        .14227        .45030E-01   -.96082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84987e-06
Minuit parameter uncertainties:
  1  1.17932e-05
  2  83.6718
  3  18.4844
  4  7.13594
  5  2.89413
  6  7.81613
  7  12.5526
  8  1.82994e-05
  9  0.000492125
  10  12.068
  11  5.47588e-06
  12  1.00676e-06
  13  1.04824
  14  1.07821e-06
  15  5.4528e-07
  16  0.000254665
  17  0.000538646
  18  3.06041e-06
  19  0.00653399
  20  0.000569048
  21  26.8055
  22  35.6942
  23  0.000356846
  24  93.4714
  25  5.95947
  26  39.378
  27  6.63294
  28  1.48286e-07
  29  0.226151
  30  0.142324
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.522e+01  3.938e+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.017e-01  1.423e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  8.675e-01  2.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.26
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.26e-08 +/- 4.76e-08
Energy Flux (Fixed Index): 1.17e-05 +/- 1.31e-05

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

Saving results to:
/scratch/kocevski/69983/likelihoodResults_303350401_303609601_4FGL_J2339.6+0242_daily_bin247.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) = 5573.56924216
delta logL = 0.182708366416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5573.56718798
delta logL = 0.184762555286

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.661       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4342       1.0000          .0000       10.000    
     3 'Normalizat'    .90230       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89006       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=   5573.567     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      232 TOTAL
                     EDM=   .45E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 15.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.672        39.331        .71124E-05   -.14018E-03
   2  Index         1.4347        .83400        .38333E-04    .24680E-04
   3  Normalizat    .90193        .20343       -.49078E-06   -.11147E-03
   4  Prefactor     .89021        .14053        .16395E-07   -.11084E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.6717
  Index      = 1.43467
  Normalizat = 0.901928
  Prefactor  = 0.890212
 **********
 **   18 **HESSE 
 **********

 FCN=   5573.567     FROM HESSE     STATUS=OK            29 CALLS      261 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.672        37.166        .79080E-04   -1.4694    
   2  Index         1.4347        .78508        .10272E-01   -.79386    
   3  Normalizat    .90193        .23610        .30429E-03   -.96392    
   4  Prefactor     .89021        .16335        .21031E-03   -.96484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.1156e-09
Minuit parameter uncertainties:
  1  37.1992
  2  0.791794
  3  0.236375
  4  0.163444
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69983': 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) = 5573.56718628
delta logL = 0.184764248995

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  2.567e+01  3.720e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  1.435e+00  7.918e-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:  8.902e-01  1.634e-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.019e-01  2.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.61
Ra Dec: 354.904 2.710
Photon Index (Free Index): 1.43 +/- 0.79
Photon Flux (Free Index): 1.07e-08 +/- 1.61e-08
Energy Flux (Free Index): 4.20e-05 +/- 8.29e-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/69983/cmap_HighResolution_303350401_303609601_4FGL_J2339.6+0242_daily_bin247.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', comment='SUCCESS', photon_flux='4.26e-08', energy_flux2='4.20e-05', photon_flux_error='4.76e-08', dlogl='1.85e-01', energy_flux='1.17e-05', photon_flux2='1.07e-08', job_status='DONE', time_completed='2021-09-30 02:46:13.556133', photon_index_error2='0.79', photon_index2='1.43', ts='1.26', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.50e-07', energy_flux_error2='8.29e-05', EG='0.87', time_epoch_completed='1632995173.56', return_code='0', job_id='69983', GAL2='0.89', EG2='0.90', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='1.61e-08', ts2='1.61', photon_index='2.55' WHERE bin_id='247' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:46:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 69983: <4FGL_J2339.6+0242_daily_bin247> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin247 354.904 2.7102 303350401 303609601 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 :                                   703.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            935 sec.

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

