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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin208
RA = 354.904, Dec = 2.7102
tmin = 293241601, tmax = 293500801
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='69924', job_status='RUN', time_executed='2021-09-30 02:32:29.719975', time_epoch_executed='1632994349.72' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='208'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69924

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69924/ft1_4FGL_J2339.6+0242_daily_bin208.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69924/ft2_4FGL_J2339.6+0242_daily_bin208.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69924/ft1_4FGL_J2339.6+0242_daily_bin208.fits outfile=/scratch/kocevski/69924/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin208.fits ra=354.904 dec=2.7102 rad=12.0 tmin=293241601.0 tmax=293500801.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.58
user 3.36
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/69924/ft1_filtered_4FGL_J2339.6+0242_daily_bin208.fits" evtable="EVENTS" scfile=/scratch/kocevski/69924/ft2_4FGL_J2339.6+0242_daily_bin208.fits sctable="SC_DATA" outfile=/scratch/kocevski/69924/ltcube_293241601_293500801_4FGL_J2339.6+0242_daily_bin208.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/69924/ft2_4FGL_J2339.6+0242_daily_bin208.fits
.....................!
real 12.27
user 11.86
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69924/ft1_filtered_4FGL_J2339.6+0242_daily_bin208.fits evtable="EVENTS" scfile=/scratch/kocevski/69924/ft2_4FGL_J2339.6+0242_daily_bin208.fits sctable="SC_DATA" expcube=/scratch/kocevski/69924/ltcube_293241601_293500801_4FGL_J2339.6+0242_daily_bin208.fits outfile=/scratch/kocevski/69924/expmap_293241601_293500801_4FGL_J2339.6+0242_daily_bin208.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/69924/ltcube_293241601_293500801_4FGL_J2339.6+0242_daily_bin208.fits
.....................!
real 191.40
user 185.22
sys 5.67

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/69924/ft1_filtered_4FGL_J2339.6+0242_daily_bin208.fits scfile=/scratch/kocevski/69924/ft2_4FGL_J2339.6+0242_daily_bin208.fits outfile=/scratch/kocevski/69924/cmap_293241601_293500801_4FGL_J2339.6+0242_daily_bin208.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69924/ft1_filtered_4FGL_J2339.6+0242_daily_bin208.fits scfile=/scratch/kocevski/69924/ft2_4FGL_J2339.6+0242_daily_bin208.fits outfile=/scratch/kocevski/69924/cmap_HighResolution_293241601_293500801_4FGL_J2339.6+0242_daily_bin208.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.55
user 0.41
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14706       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .33486E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    5.4438       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.5138       1.0000         .10000E-03   10000.    
     8 'norm      '    32.321       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.207       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.866       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.5017       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.3605       1.0000         .10000E-03   10000.    
    14 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5593       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.7791       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.410       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10371E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    103.45       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.2138       1.0000         .10000E-03   10000.    
    26 'Prefactor '    52.165       1.0000         .10000E-03   10000.    
    27 'Prefactor '    22.853       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1408       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .77999       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=   5223.434     FROM MIGRAD    STATUS=CONVERGED   1385 CALLS     4568 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33485        163.76        .54029E-02    .32118E-03
   2  Prefactor     .10000E-03    83.642        .18142E-02** at limit **
   3  Prefactor     .10000E-03    11.271        .18142E-02** at limit **
   4  Prefactor     .10000E-03    11.221        .18142E-02** at limit **
   5  norm          .10214E-03    2.8715        .28516E-01** at limit **
   6  norm          5.4448        4.2684        .12791E-03    .12354E-04
   7  Prefactor     6.5171        8.9713        .15725E-03    .20171E-04
   8  norm          32.325        16.785        .70481E-04   -.10323E-04
   9  Prefactor     17.221        34.773        .96554E-04    .24020E-04
  10  Prefactor     13.872        16.248        .10757E-03   -.15537E-04
  11  Prefactor     6.5037        13.535        .78697E-03   -.11428E-03
  12  Prefactor     .10000E-03    5.0818        .15895E-02** at limit **
  13  norm          2.3605        1.2573        .56573E-04   -.22146E-03
  14  norm          .10000E-03    3.4980        .13168E-02** at limit **
  15  Prefactor     7.5622        8.0308        .14586E-03   -.51597E-04
  16  Prefactor     .10000E-03    35.369        .18142E-02** at limit **
  17  norm          1.7768        8.2327        .31380E-03    .16340E-04
  18  Prefactor     17.418        9.1065        .95989E-04   -.13123E-03
  19  Prefactor     .10000E-03    151.69        .18142E-02** at limit **
  20  Prefactor     .10000E-03    11.992        .18142E-02** at limit **
  21  Prefactor     .10000E-03    11.628        .18142E-02** at limit **
  22  norm          .10000E-03    5.5115        .16571E-02** at limit **
  23  norm          .10000E-03    24.860        .18142E-02** at limit **
  24  Prefactor     103.45        82.438        .39533E-04    .51764E-06
  25  Prefactor     7.2134        4.9254        .12598E-03   -.13221E-03
  26  Prefactor     52.182        39.890        .55530E-04    .42134E-04
  27  Prefactor     22.848        21.888        .83789E-04    .18996E-04
  28  Prefactor     .10000E-03    4.4908        .14955E-02** at limit **
  29  Normalizat    1.1403        .26375        .27572E-03    .52489E-04
  30  Prefactor     .78019        .17227        .22546E-03    .18909E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.334848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000102135
  norm       = 5.44482
  Prefactor  = 6.51707
  norm       = 32.3248
  Prefactor  = 17.2208
  Prefactor  = 13.8721
  Prefactor  = 6.5037
  Prefactor  = 0.0001
  norm       = 2.36051
  norm       = 0.0001
  Prefactor  = 7.56225
  Prefactor  = 0.0001
  norm       = 1.77683
  Prefactor  = 17.418
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 103.451
  Prefactor  = 7.21335
  Prefactor  = 52.1818
  Prefactor  = 22.8476
  Prefactor  = 0.0001
  Normalizat = 1.14027
  Prefactor  = 0.780185
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33485        168.93        .21612E-03   -1.5592    
   2  Prefactor     .10000E-03    83.648        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.272        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.229        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10214E-03    2.3334        .32969E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.4448        4.2680        .51164E-05   -1.5241    
   7  Prefactor     6.5171        8.9704        .62898E-05   -1.5197    
   8  norm          32.325        16.783        .28193E-05   -1.4570    
   9  Prefactor     17.221        34.757        .38622E-05   -1.4878    
  10  Prefactor     13.872        16.243        .43026E-05   -1.4963    
  11  Prefactor     6.5037        13.532        .31479E-04   -1.5198    
  12  Prefactor     .10000E-03    5.0821        .31790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3605        1.2570        .22629E-05   -1.5401    
  14  norm          .10000E-03    3.4983        .26337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.5622        8.0295        .58345E-05   -1.5158    
  16  Prefactor     .10000E-03    35.371        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.7768        8.2172        .12552E-04   -1.5441    
  18  Prefactor     17.418        9.0988        .38395E-05   -1.4873    
  19  Prefactor     .10000E-03    151.70        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.996        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.629        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.5115        .33142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    24.869        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     103.45        82.431        .79065E-05   -1.3670    
  25  Prefactor     7.2134        4.9250        .50391E-05   -1.5171    
  26  Prefactor     52.182        39.881        .11106E-04   -1.4262    
  27  Prefactor     22.848        21.883        .33516E-05   -1.4752    
  28  Prefactor     .10000E-03    4.4909        .29910E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1403        .26319        .11029E-04   -.88469    
  30  Prefactor     .78019        .17244        .90185E-05   -1.0046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.08603e-09
Minuit parameter uncertainties:
  1  15.0828
  2  0.000214362
  3  3.60707e-05
  4  5.49171e-05
  5  0.00446433
  6  4.26829
  7  8.97222
  8  16.7853
  9  34.7982
  10  16.2482
  11  13.5383
  12  4.23428e-06
  13  1.25706
  14  4.48973e-06
  15  8.0306
  16  9.11937e-05
  17  7.64365
  18  9.09953
  19  0.00154602
  20  4.51662e-05
  21  5.07166e-05
  22  3.14201e-06
  23  1.77173e-06
  24  82.5227
  25  4.92526
  26  39.9013
  27  21.8908
  28  2.80301e-06
  29  0.263492
  30  0.172556
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  5.218e+01  3.990e+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:  7.802e-01  1.726e-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.140e+00  2.635e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.74
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 6.32e-08 +/- 4.82e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 1.33e-05

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

Saving results to:
/scratch/kocevski/69924/likelihoodResults_293241601_293500801_4FGL_J2339.6+0242_daily_bin208.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) = 5223.08826397
delta logL = 0.345385125603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5223.08771172
delta logL = 0.345937376876

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.182       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8977       1.0000          .0000       10.000    
     3 'Normalizat'    1.1776       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76775       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=   5223.088     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      209 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.677        74.572        .13880E-02   -.14497E-05
   2  Index         1.9017        .79822        .26413       -.31600E-04
   3  Normalizat    1.1774        .21578        .61504E-01    .55248E-05
   4  Prefactor     .76774        .14739        .43296E-01    .92309E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.6765
  Index      = 1.90172
  Normalizat = 1.1774
  Prefactor  = 0.767738
 **********
 **   18 **HESSE 
 **********

 FCN=   5223.088     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.677        56.686        .55521E-04   -1.4255    
   2  Index         1.9017        .80598        .90099E-02   -.66830    
   3  Normalizat    1.1774        .24725        .27203E-03   -.87304    
   4  Prefactor     .76774        .16948        .22715E-03   -1.0093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07167e-12
Minuit parameter uncertainties:
  1  56.7439
  2  0.811761
  3  0.247495
  4  0.169594
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69924': 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) = 5223.08767552
delta logL = 0.345973572939

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  5.268e+01  5.674e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  1.902e+00  8.118e-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:  7.677e-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.177e+00  2.475e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.42
Ra Dec: 354.904 2.710
Photon Index (Free Index): 1.90 +/- 0.81
Photon Flux (Free Index): 2.89e-08 +/- 4.73e-08
Energy Flux (Free Index): 2.58e-05 +/- 3.24e-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/69924/cmap_HighResolution_293241601_293500801_4FGL_J2339.6+0242_daily_bin208.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', comment='SUCCESS', photon_flux='6.32e-08', energy_flux2='2.58e-05', photon_flux_error='4.82e-08', dlogl='3.46e-01', energy_flux='1.74e-05', photon_flux2='2.89e-08', job_status='DONE', time_completed='2021-09-30 02:45:32.725526', photon_index_error2='0.81', photon_index2='1.90', ts='3.74', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.70e-07', energy_flux_error2='3.24e-05', EG='1.14', time_epoch_completed='1632995132.73', return_code='0', job_id='69924', GAL2='0.77', EG2='1.18', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='4.73e-08', ts2='4.42', photon_index='2.55' WHERE bin_id='208' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:45:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 69924: <4FGL_J2339.6+0242_daily_bin208> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin208 354.904 2.7102 293241601 293500801 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 :                                   775.16 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             306.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            898 sec.

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

