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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin242
RA = 354.904, Dec = 2.7102
tmin = 302054401, tmax = 302313601
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='69976', job_status='RUN', time_executed='2021-09-30 02:34:01.650614', time_epoch_executed='1632994441.65' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='242'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69976

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69976/ft1_4FGL_J2339.6+0242_daily_bin242.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69976/ft2_4FGL_J2339.6+0242_daily_bin242.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69976/ft1_4FGL_J2339.6+0242_daily_bin242.fits outfile=/scratch/kocevski/69976/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin242.fits ra=354.904 dec=2.7102 rad=12.0 tmin=302054401.0 tmax=302313601.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.61
user 3.35
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/69976/ft2_4FGL_J2339.6+0242_daily_bin242.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/69976/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin242.fits evtable="EVENTS" outfile="/scratch/kocevski/69976/ft1_filtered_4FGL_J2339.6+0242_daily_bin242.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.50
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69976/ft1_filtered_4FGL_J2339.6+0242_daily_bin242.fits evtable="EVENTS" scfile=/scratch/kocevski/69976/ft2_4FGL_J2339.6+0242_daily_bin242.fits sctable="SC_DATA" expcube=/scratch/kocevski/69976/ltcube_302054401_302313601_4FGL_J2339.6+0242_daily_bin242.fits outfile=/scratch/kocevski/69976/expmap_302054401_302313601_4FGL_J2339.6+0242_daily_bin242.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/69976/ltcube_302054401_302313601_4FGL_J2339.6+0242_daily_bin242.fits
.....................!
real 191.17
user 186.70
sys 4.13

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/69976/ft1_filtered_4FGL_J2339.6+0242_daily_bin242.fits scfile=/scratch/kocevski/69976/ft2_4FGL_J2339.6+0242_daily_bin242.fits outfile=/scratch/kocevski/69976/cmap_302054401_302313601_4FGL_J2339.6+0242_daily_bin242.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69976/ft1_filtered_4FGL_J2339.6+0242_daily_bin242.fits scfile=/scratch/kocevski/69976/ft2_4FGL_J2339.6+0242_daily_bin242.fits outfile=/scratch/kocevski/69976/cmap_HighResolution_302054401_302313601_4FGL_J2339.6+0242_daily_bin242.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/69976/ft1_filtered_4FGL_J2339.6+0242_daily_bin242.fits evtable="EVENTS" scfile=/scratch/kocevski/69976/ft2_4FGL_J2339.6+0242_daily_bin242.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/69976/Model_4FGL_J2339.6+0242_daily_bin242.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/69976/ft1_filtered_4FGL_J2339.6+0242_daily_bin242.fits.....................!
real 64.57
user 62.62
sys 1.37

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.756       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.126       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4449       1.0000         .10000E-03   10000.    
     6 'norm      '    13.659       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .43108E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    12.598       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.736       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1100       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .16466       1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.0642       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.058       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    42.710       1.0000         .10000E-03   10000.    
    23 'norm      '    13.530       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .80467       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.7254       1.0000         .10000E-03   10000.    
    26 'Prefactor '    108.80       1.0000         .10000E-03   10000.    
    27 'Prefactor '    62.245       1.0000         .10000E-03   10000.    
    28 'Prefactor '    25.248       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.7020       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .55115       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=   5680.379     FROM MIGRAD    STATUS=CONVERGED   1367 CALLS     5103 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.943        .18142E-02** at limit **
   2  Prefactor     28.712        72.796        .74712E-04   -.19325E-04
   3  Prefactor     .10000E-03    22.583        .18142E-02** at limit **
   4  Prefactor     12.130        11.305        .11504E-03   -.28956E-04
   5  norm          1.4447        2.2742        .13867E-03   -.16888E-04
   6  norm          13.658        6.3012        .10838E-03    .76052E-04
   7  Prefactor     .10048E-03    74.717        .42557E-02** at limit **
   8  norm          12.597        15.252        .11285E-03   -.18939E-04
   9  Prefactor     14.726        24.075        .10434E-03   -.15146E-04
  10  Prefactor     .10000E-03    6.7468        .18142E-02** at limit **
  11  Prefactor     1.1101        37.427        .44843E-03   -.72254E-05
  12  Prefactor     .10000E-03    6.0935        .18127E-02** at limit **
  13  norm          .16369        1.2701        .12024E-02   -.32944E-03
  14  norm          .10000E-03    4.8984        .16149E-02** at limit **
  15  Prefactor     .10000E-03    9.3101        .18142E-02** at limit **
  16  Prefactor     .10000E-03    29.885        .18142E-02** at limit **
  17  norm          4.0655        7.3944        .20000E-03   -.10192E-03
  18  Prefactor     .10000E-03    9.6220        .36285E-03** at limit **
  19  Prefactor     22.473        670.55        .42642E-03    .74384E-05
  20  Prefactor     .10000E-03    9.8932        .18142E-02** at limit **
  21  Prefactor     .10000E-03    7.1191        .18142E-02** at limit **
  22  norm          42.713        22.215        .61342E-04   -.14641E-04
  23  norm          13.527        30.660        .10889E-03   -.44371E-04
  24  Prefactor     .72784        49.021        .16425        .15936E-03
  25  Prefactor     7.7257        6.8258        .14394E-03   -.11539E-03
  26  Prefactor     108.79        56.201        .38560E-04   -.28245E-04
  27  Prefactor     62.239        31.132        .50860E-04   -.31741E-04
  28  Prefactor     25.249        20.423        .79722E-04   -.26239E-04
  29  Normalizat    1.7016        .27897        .25454E-03   -.72515E-04
  30  Prefactor     .55138        .16936        .27452E-03   -.20056E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 28.7124
  Prefactor  = 0.0001
  Prefactor  = 12.1295
  norm       = 1.44475
  norm       = 13.6579
  Prefactor  = 0.000100477
  norm       = 12.5971
  Prefactor  = 14.7257
  Prefactor  = 0.0001
  Prefactor  = 1.11008
  Prefactor  = 0.0001
  norm       = 0.163688
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.06555
  Prefactor  = 0.0001
  Prefactor  = 22.4726
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 42.7127
  norm       = 13.5272
  Prefactor  = 0.727839
  Prefactor  = 7.72569
  Prefactor  = 108.786
  Prefactor  = 62.2388
  Prefactor  = 25.2486
  Normalizat = 1.70164
  Prefactor  = 0.551381
 **********
 **   18 **HESSE 
 **********

 FCN=   5680.379     FROM HESSE     STATUS=OK           568 CALLS     5671 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.951        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.712        72.852        .29885E-05   -1.4636    
   3  Prefactor     .10000E-03    22.593        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.130        11.305        .46015E-05   -1.5011    
   5  norm          1.4447        2.2740        .55469E-05   -1.5468    
   6  norm          13.658        6.2993        .43351E-05   -1.4969    
   7  Prefactor     .10048E-03    76.787        .17023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.597        15.251        .45142E-05   -1.4998    
   9  Prefactor     14.726        24.072        .41735E-05   -1.4940    
  10  Prefactor     .10000E-03    6.7498        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1101        37.411        .17937E-04   -1.5497    
  12  Prefactor     .10000E-03    6.0946        .36255E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .16369        1.2522        .48097E-04   -1.5627    
  14  norm          .10000E-03    4.9010        .32298E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.3137        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    29.886        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.0655        7.3930        .80000E-05   -1.5305    
  18  Prefactor     .10000E-03    9.6224        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.473        662.95        .17057E-04   -1.4760    
  20  Prefactor     .10000E-03    9.8942        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.1193        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          42.713        22.217        .24537E-05   -1.4400    
  23  norm          13.527        30.665        .43557E-05   -1.4972    
  24  Prefactor     .72784        48.330        .16619       -1.5537    
  25  Prefactor     7.7257        6.8259        .57576E-05   -1.5152    
  26  Prefactor     108.79        56.200        .77120E-05   -1.3618    
  27  Prefactor     62.239        31.135        .20344E-05   -1.4128    
  28  Prefactor     25.249        20.422        .31889E-05   -1.4703    
  29  Normalizat    1.7016        .27898        .50909E-04   -.72259    
  30  Prefactor     .55138        .16945        .10981E-04   -1.0967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.10105e-09
Minuit parameter uncertainties:
  1  0.000110017
  2  73.0785
  3  0.000110366
  4  11.3074
  5  2.27411
  6  6.29965
  7  0.0121247
  8  15.2559
  9  24.088
  10  1.50861e-05
  11  12.8967
  12  1.19585e-05
  13  0.905237
  14  1.04381e-05
  15  4.79773e-05
  16  3.65755e-05
  17  7.39467
  18  8.5929e-05
  19  247.187
  20  1.06686e-05
  21  1.16507e-05
  22  22.221
  23  30.7007
  24  11.8711
  25  6.82663
  26  56.2276
  27  31.1428
  28  20.4276
  29  0.279242
  30  0.16961
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.088e+02  5.623e+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.514e-01  1.696e-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.702e+00  2.792e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.47
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.32e-07 +/- 6.80e-08
Energy Flux (Fixed Index): 3.63e-05 +/- 1.88e-05

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) = 5679.61377537
delta logL = 0.764873378304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5679.60877336
delta logL = 0.769875392976

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.411       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2666       1.0000          .0000       10.000    
     3 'Normalizat'    1.6291       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58542       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=   5679.609     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      297 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.408        64.373        .54882E-04    .20301E-04
   2  Index         3.2665        .78542        .39420E-02    .53661E-03
   3  Normalizat    1.6291        .26547        .25858E-03   -.14214E-03
   4  Prefactor     .58544        .17031        .26712E-03   -.16288E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.4085
  Index      = 3.26654
  Normalizat = 1.62912
  Prefactor  = 0.585441
 **********
 **   18 **HESSE 
 **********

 FCN=   5679.609     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.408        54.873        .21953E-05   -1.4245    
   2  Index         3.2665        .66962        .78841E-03   -.35404    
   3  Normalizat    1.6291        .26494        .51716E-04   -.74212    
   4  Prefactor     .58544        .16984        .10685E-04   -1.0820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04076e-11
Minuit parameter uncertainties:
  1  54.9255
  2  0.671915
  3  0.26517
  4  0.169989
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69976': 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) = 5679.60877321
delta logL = 0.769875540854

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  5.341e+01  5.493e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  3.267e+00  6.719e-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:  5.854e-01  1.700e-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.629e+00  2.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.15
Ra Dec: 354.904 2.710
Photon Index (Free Index): 3.27 +/- 0.67
Photon Flux (Free Index): 1.93e-07 +/- 9.07e-08
Energy Flux (Free Index): 3.45e-05 +/- 1.55e-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/69976/cmap_HighResolution_302054401_302313601_4FGL_J2339.6+0242_daily_bin242.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.32e-07', energy_flux2='3.45e-05', photon_flux_error='6.80e-08', dlogl='7.70e-01', energy_flux='3.63e-05', photon_flux2='1.93e-07', job_status='DONE', time_completed='2021-09-30 02:46:44.164693', photon_index_error2='0.67', photon_index2='3.27', ts='6.47', fit_tolerance='1e-08', GAL='0.55', photon_index_error='0.00', energy_flux_error2='1.55e-05', EG='1.70', time_epoch_completed='1632995204.16', return_code='0', job_id='69976', GAL2='0.59', EG2='1.63', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='9.07e-08', ts2='8.15', photon_index='2.55' WHERE bin_id='242' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:46:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 69976: <4FGL_J2339.6+0242_daily_bin242> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin242 354.904 2.7102 302054401 302313601 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 :                                   760.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             276.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            966 sec.

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

