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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin549
RA = 354.904, Dec = 2.7102
tmin = 381628801, tmax = 381888001
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='71803', job_status='RUN', time_executed='2021-09-30 02:36:56.432953', time_epoch_executed='1632994616.43' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71803

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71803/ft1_4FGL_J2339.6+0242_daily_bin549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71803/ft2_4FGL_J2339.6+0242_daily_bin549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71803/ft1_4FGL_J2339.6+0242_daily_bin549.fits outfile=/scratch/kocevski/71803/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin549.fits ra=354.904 dec=2.7102 rad=12.0 tmin=381628801.0 tmax=381888001.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.96
user 3.75
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71803/ft1_filtered_4FGL_J2339.6+0242_daily_bin549.fits evtable="EVENTS" scfile=/scratch/kocevski/71803/ft2_4FGL_J2339.6+0242_daily_bin549.fits sctable="SC_DATA" expcube=/scratch/kocevski/71803/ltcube_381628801_381888001_4FGL_J2339.6+0242_daily_bin549.fits outfile=/scratch/kocevski/71803/expmap_381628801_381888001_4FGL_J2339.6+0242_daily_bin549.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/71803/ltcube_381628801_381888001_4FGL_J2339.6+0242_daily_bin549.fits
.....................!
real 189.80
user 184.52
sys 4.97

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/71803/ft1_filtered_4FGL_J2339.6+0242_daily_bin549.fits scfile=/scratch/kocevski/71803/ft2_4FGL_J2339.6+0242_daily_bin549.fits outfile=/scratch/kocevski/71803/cmap_381628801_381888001_4FGL_J2339.6+0242_daily_bin549.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/71803/ft1_filtered_4FGL_J2339.6+0242_daily_bin549.fits scfile=/scratch/kocevski/71803/ft2_4FGL_J2339.6+0242_daily_bin549.fits outfile=/scratch/kocevski/71803/cmap_HighResolution_381628801_381888001_4FGL_J2339.6+0242_daily_bin549.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8332       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8378       1.0000         .10000E-03   10000.    
     5 'norm      '    1.7595       1.0000         .10000E-03   10000.    
     6 'norm      '    9.8316       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    25.571       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .89163       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.136       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.3462       1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.220       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.3496       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.2270       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17506E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    57.773       1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    28.806       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.1861       1.0000         .10000E-03   10000.    
    26 'Prefactor '    40.512       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .24421E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.7012       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .74538       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .99182       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=   5533.889     FROM MIGRAD    STATUS=CONVERGED    777 CALLS     3996 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8341        11.180       -.53197E-07    .26868E-05
   2  Prefactor     .10000E-03    22.653       -.97957E-06** at limit **
   3  Prefactor     .10000E-03    7.9483       -.17270E-06** at limit **
   4  Prefactor     2.8395        7.0957        .94217E-07    .83669E-05
   5  norm          1.7593        2.4208       -.10357E-06   -.63815E-05
   6  norm          9.8320        5.5594        .99051E-07   -.94721E-05
   7  Prefactor     .10000E-03    6.0758       -.28088E-07** at limit **
   8  norm          25.574        17.871       -.50340E-07    .56802E-05
   9  Prefactor     .10000E-03    14.456        .10474E-06** at limit **
  10  Prefactor     .89178        9.5223       -.23648E-06    .73130E-04
  11  Prefactor     20.137        17.902        .42943E-08    .55839E-05
  12  Prefactor     .10000E-03    4.2061       -.26080E-07** at limit **
  13  norm          2.3453        1.1638        .30977E-07    .66409E-04
  14  norm          .10000E-03    3.9528       -.35158E-07** at limit **
  15  Prefactor     13.222        11.283       -.60411E-07    .29467E-05
  16  Prefactor     .10000E-03    35.037       -.18656E-05** at limit **
  17  norm          4.3501        8.8502       -.16666E-06    .24387E-05
  18  Prefactor     9.2277        8.1869       -.15438E-06   -.15506E-05
  19  Prefactor     .10000E-03    70.123       -.52330E-06** at limit **
  20  Prefactor     .10000E-03    185.54       -.85663E-05** at limit **
  21  Prefactor     57.768        31.583        .49481E-07   -.30134E-04
  22  norm          .10000E-03    12.726       -.23981E-07** at limit **
  23  norm          28.755        25.140        .14654E-05    .25482E-04
  24  Prefactor     .10000E-03    28.196        .22056E-05** at limit **
  25  Prefactor     2.1746        5.6769        .86054E-06    .19904E-04
  26  Prefactor     40.459        43.644       -.17527E-05   -.23093E-04
  27  Prefactor     .10000E-03    121.10        .58036E-05** at limit **
  28  Prefactor     4.7012        14.650       -.22595E-06   -.52759E-05
  29  Normalizat    .74545        .22403        .16837E-07   -.30463E-04
  30  Prefactor     .99162        .14591        .39928E-06   -.11777E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.83406
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.83951
  norm       = 1.75935
  norm       = 9.83205
  Prefactor  = 0.0001
  norm       = 25.5744
  Prefactor  = 0.0001
  Prefactor  = 0.891783
  Prefactor  = 20.1371
  Prefactor  = 0.0001
  norm       = 2.34532
  norm       = 0.0001
  Prefactor  = 13.2216
  Prefactor  = 0.0001
  norm       = 4.35013
  Prefactor  = 9.22774
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.7684
  norm       = 0.0001
  norm       = 28.7552
  Prefactor  = 0.0001
  Prefactor  = 2.17462
  Prefactor  = 40.4588
  Prefactor  = 0.0001
  Prefactor  = 4.70121
  Normalizat = 0.74545
  Prefactor  = 0.991617
 **********
 **   18 **HESSE 
 **********

 FCN=   5533.889     FROM HESSE     STATUS=OK           604 CALLS     4600 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8341        11.181        .12779E-03   -1.5081    
   2  Prefactor     .10000E-03    22.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.9625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.8395        7.0777        .24139E-03   -1.5371    
   5  norm          1.7593        2.3980        .12953E-03   -1.5443    
   6  norm          9.8320        5.5624        .12750E-03   -1.5081    
   7  Prefactor     .10000E-03    6.0931        .17907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          25.574        17.873        .79219E-04   -1.4696    
   9  Prefactor     .10000E-03    14.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .89178        27.471        .43993E-02   -1.5519    
  11  Prefactor     20.137        17.905        .89258E-04   -1.4810    
  12  Prefactor     .10000E-03    4.2126        .14900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3453        1.1642        .53748E-04   -1.5402    
  14  norm          .10000E-03    3.9947        .14441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.222        11.250        .11016E-03   -1.4981    
  16  Prefactor     .10000E-03    34.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.3501        8.7626        .19314E-03   -1.5291    
  18  Prefactor     9.2277        8.1470        .13194E-03   -1.5100    
  19  Prefactor     .10000E-03    70.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    24.288        .67374E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     57.768        31.545        .52780E-04   -1.4186    
  22  norm          .10000E-03    12.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          28.755        26.635        .74647E-04   -1.4635    
  24  Prefactor     .10000E-03    28.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.1746        5.8833        .23777E-03   -1.5413    
  26  Prefactor     40.459        44.082        .62977E-04   -1.4435    
  27  Prefactor     .10000E-03    124.91        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.7012        14.708        .92796E-03   -1.5274    
  29  Normalizat    .74545        .25726        .32837E-03   -1.0213    
  30  Prefactor     .99162        .16787        .20154E-03   -.93009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60308e-10
Minuit parameter uncertainties:
  1  11.1831
  2  1.9887e-06
  3  4.14604e-06
  4  7.07983
  5  2.39818
  6  5.56272
  7  1.5925e-06
  8  17.8772
  9  1.16401e-06
  10  9.90358
  11  17.9096
  12  2.18408e-07
  13  1.16424
  14  4.07187e-07
  15  11.2516
  16  2.975e-05
  17  8.7652
  18  8.14803
  19  1.48221e-06
  20  3.87296e-05
  21  31.5541
  22  8.35815e-07
  23  26.6456
  24  1.64014e-06
  25  5.88485
  26  44.1178
  27  0.000167054
  28  14.7191
  29  0.257683
  30  0.167956
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  4.046e+01  4.412e+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.916e-01  1.680e-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.454e-01  2.577e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.14
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.90e-08 +/- 5.33e-08
Energy Flux (Fixed Index): 1.35e-05 +/- 1.47e-05

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

Saving results to:
/scratch/kocevski/71803/likelihoodResults_381628801_381888001_4FGL_J2339.6+0242_daily_bin549.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) = 5532.651986
delta logL = 1.23700847458

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5532.622084
delta logL = 1.26691047524

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.330       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9622       1.0000          .0000       10.000    
     3 'Normalizat'    .65717       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0289       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=   5532.622     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      252 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.266        132.19        .29755E-02    .12459E-03
   2  Index         3.9655        3.2551        .11664        .12789E-03
   3  Normalizat    .65722        .82671E-01    .78476E-01    .26947E-04
   4  Prefactor     1.0289        .55422E-01    .41346E-01   -.19495E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2657
  Index      = 3.96554
  Normalizat = 0.65722
  Prefactor  = 1.0289
 **********
 **   18 **HESSE 
 **********

 FCN=   5532.622     FROM HESSE     STATUS=OK            33 CALLS      285 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.266        31.183        .11902E-03   -1.5037    
   2  Index         3.9655        1.6148        .45193E-02   -.20840    
   3  Normalizat    .65722        .24532        .34747E-03   -1.0561    
   4  Prefactor     1.0289        .16842        .19804E-03   -.91772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74737e-11
Minuit parameter uncertainties:
  1  31.2279
  2  1.64569
  3  0.245725
  4  0.168509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71803': 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) = 5532.62207787
delta logL = 1.26691660927

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.127e+01  3.123e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  3.966e+00  1.646e+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.029e+00  1.685e-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.572e-01  2.457e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.90
Ra Dec: 354.904 2.710
Photon Index (Free Index): 3.97 +/- 1.65
Photon Flux (Free Index): 1.31e-07 +/- 8.30e-08
Energy Flux (Free Index): 1.97e-05 +/- 1.27e-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/71803/cmap_HighResolution_381628801_381888001_4FGL_J2339.6+0242_daily_bin549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', comment='SUCCESS', photon_flux='4.90e-08', energy_flux2='1.97e-05', photon_flux_error='5.33e-08', dlogl='1.27e+00', energy_flux='1.35e-05', photon_flux2='1.31e-07', job_status='DONE', time_completed='2021-09-30 02:49:17.078207', photon_index_error2='1.65', photon_index2='3.97', ts='1.14', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.61e-07', energy_flux_error2='1.27e-05', EG='0.75', time_epoch_completed='1632995357.08', return_code='0', job_id='71803', GAL2='1.03', EG2='0.66', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='8.30e-08', ts2='3.90', photon_index='2.55' WHERE bin_id='549' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:49:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 71803: <4FGL_J2339.6+0242_daily_bin549> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin549 354.904 2.7102 381628801 381888001 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 :                                   737.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            813 sec.

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

