aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 80 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 = 7463
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2339.6+0242_daily_bin1698
RA = 354.904, Dec = 2.7102
tmin = 679449601, tmax = 679708801
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='925834', job_status='RUN', time_executed='2022-07-17 00:37:04.257010', time_epoch_executed='1658043424.26' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='1698'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/925834

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/925834/ft1_4FGL_J2339.6+0242_daily_bin1698.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/925834/ft2_4FGL_J2339.6+0242_daily_bin1698.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/925834/ft1_4FGL_J2339.6+0242_daily_bin1698.fits outfile=/scratch/kocevski/925834/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin1698.fits ra=354.904 dec=2.7102 rad=12.0 tmin=679449601.0 tmax=679708801.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.50
user 3.25
sys 0.22

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

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

Number of photons that the gtmktime cut: 631

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/925834/ft1_filtered_4FGL_J2339.6+0242_daily_bin1698.fits" evtable="EVENTS" scfile=/scratch/kocevski/925834/ft2_4FGL_J2339.6+0242_daily_bin1698.fits sctable="SC_DATA" outfile=/scratch/kocevski/925834/ltcube_679449601_679708801_4FGL_J2339.6+0242_daily_bin1698.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/925834/ft2_4FGL_J2339.6+0242_daily_bin1698.fits
.....................!
real 11.74
user 11.33
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/925834/ft1_filtered_4FGL_J2339.6+0242_daily_bin1698.fits evtable="EVENTS" scfile=/scratch/kocevski/925834/ft2_4FGL_J2339.6+0242_daily_bin1698.fits sctable="SC_DATA" expcube=/scratch/kocevski/925834/ltcube_679449601_679708801_4FGL_J2339.6+0242_daily_bin1698.fits outfile=/scratch/kocevski/925834/expmap_679449601_679708801_4FGL_J2339.6+0242_daily_bin1698.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/925834/ltcube_679449601_679708801_4FGL_J2339.6+0242_daily_bin1698.fits
.....................!
real 192.68
user 186.52
sys 5.79

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/925834/ft1_filtered_4FGL_J2339.6+0242_daily_bin1698.fits scfile=/scratch/kocevski/925834/ft2_4FGL_J2339.6+0242_daily_bin1698.fits outfile=/scratch/kocevski/925834/cmap_679449601_679708801_4FGL_J2339.6+0242_daily_bin1698.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/925834/ft1_filtered_4FGL_J2339.6+0242_daily_bin1698.fits scfile=/scratch/kocevski/925834/ft2_4FGL_J2339.6+0242_daily_bin1698.fits outfile=/scratch/kocevski/925834/cmap_HighResolution_679449601_679708801_4FGL_J2339.6+0242_daily_bin1698.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/925834/ft1_filtered_4FGL_J2339.6+0242_daily_bin1698.fits evtable="EVENTS" scfile=/scratch/kocevski/925834/ft2_4FGL_J2339.6+0242_daily_bin1698.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/925834/Model_4FGL_J2339.6+0242_daily_bin1698.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/925834/ft1_filtered_4FGL_J2339.6+0242_daily_bin1698.fits.....................!
real 71.24
user 69.79
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.643       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.2727       1.0000         .10000E-03   10000.    
     5 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.634       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.1912       1.0000         .10000E-03   10000.    
     9 'Prefactor '    45.212       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.661       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2457       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6688       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    14.753       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.2498       1.0000         .10000E-03   10000.    
    19 'Prefactor '    71.984       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10370E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10371E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    27.761       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    33.703       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .63176       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0280       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=   7108.915     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     3897 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1900       -.51668E-07** at limit **
   2  Prefactor     .10000E-03    10.529        .29561E-05** at limit **
   3  Prefactor     47.638        17.439       -.24359E-05    .17485E-04
   4  Prefactor     4.2722        4.1318        .16498E-05   -.54124E-04
   5  norm          .10000E-03    .99379       -.71151E-08** at limit **
   6  norm          12.633        5.0355       -.18122E-06   -.10649E-04
   7  Prefactor     .10000E-03    3.0164       -.98663E-08** at limit **
   8  norm          7.1981        11.596       -.79514E-06   -.51594E-04
   9  Prefactor     45.211        41.229        .41845E-05    .21928E-04
  10  Prefactor     12.657        15.590       -.16668E-05   -.36122E-04
  11  Prefactor     3.1394        41.024       -.10106E-04   -.58532E-04
  12  Prefactor     .10000E-03    4.3202        .51602E-07** at limit **
  13  norm          .10000E-03    .16490        .59115E-07** at limit **
  14  norm          .10000E-03    1.6401        .42666E-07** at limit **
  15  Prefactor     5.6678        8.0315       -.44454E-06   -.12934E-03
  16  Prefactor     .10000E-03    18.123       -.16220E-04** at limit **
  17  norm          14.753        9.5032       -.35335E-06    .28443E-05
  18  Prefactor     6.2483        5.7383       -.46029E-06   -.37785E-04
  19  Prefactor     71.938        107.31       -.50501E-04   -.49388E-04
  20  Prefactor     .10000E-03    13.685        .99339E-05** at limit **
  21  Prefactor     .10000E-03    8.9032       -.59159E-05** at limit **
  22  norm          .10000E-03    22.405        .90186E-05** at limit **
  23  norm          .10000E-03    7.4734        .54741E-05** at limit **
  24  Prefactor     27.753        38.353       -.11347E-04   -.11759E-04
  25  Prefactor     .10000E-03    1.7365        .22000E-06** at limit **
  26  Prefactor     33.692        32.782       -.10406E-04   -.31081E-04
  27  Prefactor     .10000E-03    10.003       -.14159E-05** at limit **
  28  Prefactor     .10000E-03    6.7752       -.22101E-05** at limit **
  29  Normalizat    .63187        .17695        .57353E-05   -.18890E-03
  30  Prefactor     1.0281        .12018        .21487E-07   -.16026E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.6381
  Prefactor  = 4.27218
  norm       = 0.0001
  norm       = 12.6327
  Prefactor  = 0.0001
  norm       = 7.19808
  Prefactor  = 45.2115
  Prefactor  = 12.6573
  Prefactor  = 3.1394
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.66778
  Prefactor  = 0.0001
  norm       = 14.753
  Prefactor  = 6.24828
  Prefactor  = 71.9381
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 27.7528
  Prefactor  = 0.0001
  Prefactor  = 33.6921
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.631873
  Prefactor  = 1.02807
 **********
 **   18 **HESSE 
 **********

 FCN=   7108.915     FROM HESSE     STATUS=OK           584 CALLS     4481 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2019        .16854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     47.638        17.433        .58093E-04   -1.4326    
   4  Prefactor     4.2722        4.1316        .16353E-03   -1.5295    
   5  norm          .10000E-03    1.0192        .16380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.633        5.0347        .11270E-03   -1.4997    
   7  Prefactor     .10000E-03    3.0214        .14300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.1981        11.581        .14958E-03   -1.5171    
   9  Prefactor     45.211        41.226        .59627E-04   -1.4362    
  10  Prefactor     12.657        15.589        .11258E-03   -1.4996    
  11  Prefactor     3.1394        40.746        .22482E-03   -1.5354    
  12  Prefactor     .10000E-03    4.3747        .17112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .16763        .33415E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.6490        .10543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.6678        8.0138        .16871E-03   -1.5232    
  16  Prefactor     .10000E-03    18.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          14.753        9.4623        .10428E-03   -1.4940    
  18  Prefactor     6.2483        5.7232        .16057E-03   -1.5208    
  19  Prefactor     71.938        107.72        .23659E-03   -1.4010    
  20  Prefactor     .10000E-03    14.298        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.9168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    23.271        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.4918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     27.753        38.359        .76036E-04   -1.4654    
  25  Prefactor     .10000E-03    1.7611        .10840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     33.692        32.828        .69025E-04   -1.4546    
  27  Prefactor     .10000E-03    10.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    6.7938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .63187        .19769        .32585E-03   -1.0665    
  30  Prefactor     1.0281        .13641        .18780E-03   -.91800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92017e-10
Minuit parameter uncertainties:
  1  1.11734e-05
  2  9.75554e-06
  3  17.435
  4  4.13184
  5  4.63712e-07
  6  5.03486
  7  1.78619e-06
  8  11.5847
  9  41.2523
  10  15.5943
  11  22.6387
  12  7.41347e-06
  13  2.23967e-06
  14  4.13152e-06
  15  8.01528
  16  4.0317e-05
  17  9.46323
  18  5.72367
  19  108.011
  20  0.000345961
  21  4.35868e-07
  22  0.000270613
  23  3.29893e-05
  24  38.3926
  25  2.75629e-05
  26  32.8456
  27  2.32467e-06
  28  6.6581e-06
  29  0.197915
  30  0.136453
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.369e+01  3.285e+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:  1.028e+00  1.365e-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.319e-01  1.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.60
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.08e-08 +/- 3.97e-08
Energy Flux (Fixed Index): 1.12e-05 +/- 1.10e-05

TS (Fixed Index): 1.60
Ra Dec: 354.904 2.710
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/925834/likelihoodResults_679449601_679708801_4FGL_J2339.6+0242_daily_bin1698.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) = 7108.51489029
delta logL = 0.400526138493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7108.50194873
delta logL = 0.413467697127

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.228       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5183       1.0000          .0000       10.000    
     3 'Normalizat'    .58211       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0509       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=   7108.502     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      285 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.219        536.01        .10619E-03   -.36830E-03
   2  Index         3.5189        6.5297        .64585E-02   -.12043E-03
   3  Normalizat    .58211        .29553        .33875E-03    .59700E-03
   4  Prefactor     1.0509        .20176        .18600E-03    .64357E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.219
  Index      = 3.5189
  Normalizat = 0.582111
  Prefactor  = 1.05093
 **********
 **   18 **HESSE 
 **********

 FCN=   7108.502     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.219        28.829        .42474E-05   -1.4954    
   2  Index         3.5189        1.3096        .25834E-03   -.30073    
   3  Normalizat    .58211        .19817        .13550E-04   -1.0875    
   4  Prefactor     1.0509        .13877        .37199E-04   -.91051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57988e-09
Minuit parameter uncertainties:
  1  28.8567
  2  1.32656
  3  0.198412
  4  0.138815
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/925834': 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) = 7108.50194856
delta logL = 0.41346786238

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.422e+01  2.886e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  3.519e+00  1.327e+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.051e+00  1.388e-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:  5.821e-01  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.55
Ra Dec: 354.904 2.710
Photon Index (Free Index): 3.52 +/- 1.33
Photon Flux (Free Index): 7.76e-08 +/- 6.28e-08
Energy Flux (Free Index): 1.29e-05 +/- 9.63e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/925834/cmap_HighResolution_679449601_679708801_4FGL_J2339.6+0242_daily_bin1698.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.79e-03', comment='SUCCESS', photon_flux='4.08e-08', energy_flux2='1.29e-05', photon_flux_error='3.97e-08', dlogl='4.13e-01', energy_flux='1.12e-05', photon_flux2='7.76e-08', job_status='DONE', time_completed='2022-07-17 00:51:08.759632', photon_index_error2='1.33', photon_index2='3.52', ts='1.60', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='9.63e-06', EG='0.63', time_epoch_completed='1658044268.76', return_code='0', job_id='925834', GAL2='1.05', EG2='0.58', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='6.28e-08', ts2='2.55', photon_index='2.55' WHERE bin_id='1698' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 17 00:51:08 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 925834: <4FGL_J2339.6+0242_daily_bin1698> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin1698> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Jul 17 00:35:34 2022
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 17 00:35:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul 17 00:35:35 2022
Terminated at Sun Jul 17 00:51:09 2022
Results reported at Sun Jul 17 00:51:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin1698 354.904 2.7102 679449601 679708801 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 :                                   846.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            935 sec.

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

