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 50 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 = 7446
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2339.6+0242_daily_bin1665
RA = 354.904, Dec = 2.7102
tmin = 670896001, tmax = 671155201
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='358194', job_status='RUN', time_executed='2022-04-09 00:41:17.432566', time_epoch_executed='1649490077.43' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='1665'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358194

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/358194/ft1_4FGL_J2339.6+0242_daily_bin1665.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/358194/ft2_4FGL_J2339.6+0242_daily_bin1665.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/358194/ft1_4FGL_J2339.6+0242_daily_bin1665.fits outfile=/scratch/kocevski/358194/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin1665.fits ra=354.904 dec=2.7102 rad=12.0 tmin=670896001.0 tmax=671155201.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 5.36
user 5.09
sys 0.24

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

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

Number of photons that the gtmktime cut: 614

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/358194/ft1_filtered_4FGL_J2339.6+0242_daily_bin1665.fits" evtable="EVENTS" scfile=/scratch/kocevski/358194/ft2_4FGL_J2339.6+0242_daily_bin1665.fits sctable="SC_DATA" outfile=/scratch/kocevski/358194/ltcube_670896001_671155201_4FGL_J2339.6+0242_daily_bin1665.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/358194/ft2_4FGL_J2339.6+0242_daily_bin1665.fits
.....................!
real 11.76
user 11.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358194/ft1_filtered_4FGL_J2339.6+0242_daily_bin1665.fits evtable="EVENTS" scfile=/scratch/kocevski/358194/ft2_4FGL_J2339.6+0242_daily_bin1665.fits sctable="SC_DATA" expcube=/scratch/kocevski/358194/ltcube_670896001_671155201_4FGL_J2339.6+0242_daily_bin1665.fits outfile=/scratch/kocevski/358194/expmap_670896001_671155201_4FGL_J2339.6+0242_daily_bin1665.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/358194/ltcube_670896001_671155201_4FGL_J2339.6+0242_daily_bin1665.fits
.....................!
real 191.24
user 185.15
sys 5.78

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/358194/ft1_filtered_4FGL_J2339.6+0242_daily_bin1665.fits scfile=/scratch/kocevski/358194/ft2_4FGL_J2339.6+0242_daily_bin1665.fits outfile=/scratch/kocevski/358194/cmap_670896001_671155201_4FGL_J2339.6+0242_daily_bin1665.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/358194/ft1_filtered_4FGL_J2339.6+0242_daily_bin1665.fits scfile=/scratch/kocevski/358194/ft2_4FGL_J2339.6+0242_daily_bin1665.fits outfile=/scratch/kocevski/358194/cmap_HighResolution_670896001_671155201_4FGL_J2339.6+0242_daily_bin1665.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.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/358194/ft1_filtered_4FGL_J2339.6+0242_daily_bin1665.fits', '/scratch/kocevski/358194/ft2_4FGL_J2339.6+0242_daily_bin1665.fits', expMap='/scratch/kocevski/358194/expmap_670896001_671155201_4FGL_J2339.6+0242_daily_bin1665.fits', expCube='/scratch/kocevski/358194/ltcube_670896001_671155201_4FGL_J2339.6+0242_daily_bin1665.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/358194/Model_4FGL_J2339.6+0242_daily_bin1665.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/358194/ft1_filtered_4FGL_J2339.6+0242_daily_bin1665.fits
Spacecraft file(s): /scratch/kocevski/358194/ft2_4FGL_J2339.6+0242_daily_bin1665.fits
Exposure map: /scratch/kocevski/358194/expmap_670896001_671155201_4FGL_J2339.6+0242_daily_bin1665.fits
Exposure cube: /scratch/kocevski/358194/ltcube_670896001_671155201_4FGL_J2339.6+0242_daily_bin1665.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/358194/Model_4FGL_J2339.6+0242_daily_bin1665.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6855.12905743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    114.54       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.364       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4492       1.0000         .10000E-03   10000.    
     5 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.962       1.0000         .10000E-03   10000.    
     8 'norm      '    24.295       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.650       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.008       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12747E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .77369E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.9415       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    43.365       1.0000         .10000E-03   10000.    
    27 'Prefactor '    31.919       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0373       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .94987       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=   6855.104     FROM MIGRAD    STATUS=CONVERGED    763 CALLS     4032 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9382        .38171E-06** at limit **
   2  Prefactor     114.55        59.178       -.98716E-06   -.17900E-04
   3  Prefactor     24.374        18.853        .80086E-07   -.61565E-04
   4  Prefactor     3.4467        7.2380        .75747E-06    .27957E-04
   5  norm          .10000E-03    2.0593        .23100E-06** at limit **
   6  norm          .10000E-03    1.7032        .19769E-07** at limit **
   7  Prefactor     14.964        16.727        .38950E-06   -.26884E-04
   8  norm          24.294        15.110        .18714E-06   -.38025E-04
   9  Prefactor     12.609        32.330        .54961E-05   -.27151E-04
  10  Prefactor     .10000E-03    7.1284       -.59659E-07** at limit **
  11  Prefactor     14.008        13.175       -.99957E-07   -.36399E-04
  12  Prefactor     .10000E-03    2.7254        .87904E-07** at limit **
  13  norm          .10000E-03    .24691        .81622E-07** at limit **
  14  norm          .10000E-03    1.6790        .91927E-07** at limit **
  15  Prefactor     .10000E-03    2.2118        .14285E-06** at limit **
  16  Prefactor     .10000E-03    28.429        .45468E-06** at limit **
  17  norm          .10000E-03    6.0040        .10249E-06** at limit **
  18  Prefactor     .10000E-03    2.1831       -.10414E-06** at limit **
  19  Prefactor     .10000E-03    48.943       -.85785E-06** at limit **
  20  Prefactor     .10000E-03    6.8584       -.43220E-05** at limit **
  21  Prefactor     .10000E-03    12.311        .17296E-06** at limit **
  22  norm          .10001E-03    11.826        .16541E-05** at limit **
  23  norm          1.9237        24.092        .11830E-04    .48304E-04
  24  Prefactor     .10000E-03    17.455       -.52693E-06** at limit **
  25  Prefactor     .10000E-03    2.1901        .20219E-06** at limit **
  26  Prefactor     43.357        42.816        .35253E-06   -.37670E-04
  27  Prefactor     31.917        25.533        .38453E-06   -.33965E-04
  28  Prefactor     .10000E-03    4.9028       -.47309E-07** at limit **
  29  Normalizat    1.0372        .19817       -.90825E-06   -.15931E-03
  30  Prefactor     .94996        .13246       -.87752E-06   -.23462E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 114.554
  Prefactor  = 24.3744
  Prefactor  = 3.44672
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 14.9643
  norm       = 24.2943
  Prefactor  = 12.6092
  Prefactor  = 0.0001
  Prefactor  = 14.0078
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.000100011
  norm       = 1.92373
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.3571
  Prefactor  = 31.9171
  Prefactor  = 0.0001
  Normalizat = 1.03723
  Prefactor  = 0.949957
 **********
 **   18 **HESSE 
 **********

 FCN=   6855.104     FROM HESSE     STATUS=OK           580 CALLS     4612 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9756        .17979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     114.55        59.126        .18796E-03   -1.3563    
   3  Prefactor     24.374        18.836        .81154E-04   -1.4720    
   4  Prefactor     3.4467        7.2216        .21777E-03   -1.5337    
   5  norm          .10000E-03    2.1382        .23106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.7060        .10548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.964        16.777        .10354E-03   -1.4934    
   8  norm          24.294        15.123        .81268E-04   -1.4722    
   9  Prefactor     12.609        32.299        .11263E-03   -1.4998    
  10  Prefactor     .10000E-03    7.1554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.008        13.180        .10702E-03   -1.4959    
  12  Prefactor     .10000E-03    2.7341        .13349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .25477        .80323E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.6892        .10478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.2133        .12025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.2516        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.1872        .11943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    48.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.896        .34436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10001E-03    48.577        .54627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.9237        27.843        .14897E-02   -1.5431    
  24  Prefactor     .10000E-03    17.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.2812        .23923E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     43.357        42.834        .60879E-04   -1.4390    
  27  Prefactor     31.917        25.548        .70922E-04   -1.4577    
  28  Prefactor     .10000E-03    4.9122        .17901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0372        .23373        .28917E-03   -.91793    
  30  Prefactor     .94996        .15615        .21045E-03   -.94417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.50099e-10
Minuit parameter uncertainties:
  1  1.92196e-05
  2  59.1569
  3  18.8408
  4  7.22342
  5  1.39625e-05
  6  1.57302e-06
  7  16.7819
  8  15.125
  9  32.3439
  10  3.20529e-06
  11  13.1825
  12  7.12335e-06
  13  2.23506e-06
  14  6.00519e-06
  15  1.13035e-06
  16  1.68022e-05
  17  1.92574e-05
  18  4.50999e-06
  19  3.31691e-05
  20  0.000609942
  21  1.19184e-05
  22  0.00145258
  23  14.6451
  24  2.92547e-05
  25  1.30941e-05
  26  42.8645
  27  25.5564
  28  1.31505e-05
  29  0.23396
  30  0.15622
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  4.336e+01  4.286e+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.500e-01  1.562e-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.037e+00  2.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.54
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 5.25e-08 +/- 5.18e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.43e-05

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

Saving results to:
/scratch/kocevski/358194/likelihoodResults_670896001_671155201_4FGL_J2339.6+0242_daily_bin1665.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) = 6855.04550465
delta logL = 0.0586258490557

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6855.01415501
delta logL = 0.089975488424

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.780       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2460       1.0000          .0000       10.000    
     3 'Normalizat'    1.0507       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94164       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=   6855.014     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      242 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.785        57.395        .53237E-04   -.57974E-03
   2  Index         2.2459        .65787        .94912E-02   -.36032E-03
   3  Normalizat    1.0507        .22169        .28750E-03   -.19384E-03
   4  Prefactor     .94155        .15537        .21124E-03   -.14910E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.7853
  Index      = 2.24589
  Normalizat = 1.0507
  Prefactor  = 0.941555
 **********
 **   18 **HESSE 
 **********

 FCN=   6855.014     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.785        56.297        .10647E-04   -1.4199    
   2  Index         2.2459        .64494        .37965E-03   -.58335    
   3  Normalizat    1.0507        .22172        .11500E-04   -.91351    
   4  Prefactor     .94155        .15538        .42248E-04   -.94704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30512e-09
Minuit parameter uncertainties:
  1  56.3496
  2  0.647537
  3  0.22192
  4  0.155451
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358194': 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) = 6855.01415438
delta logL = 0.0899761151913

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  5.679e+01  5.635e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.246e+00  6.475e-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:  9.416e-01  1.555e-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.051e+00  2.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.71
Ra Dec: 354.904 2.710
Photon Index (Free Index): 2.25 +/- 0.65
Photon Flux (Free Index): 4.58e-08 +/- 4.80e-08
Energy Flux (Free Index): 1.90e-05 +/- 2.14e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/358194/cmap_HighResolution_670896001_671155201_4FGL_J2339.6+0242_daily_bin1665.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', comment='SUCCESS', photon_flux='5.25e-08', energy_flux2='1.90e-05', photon_flux_error='5.18e-08', dlogl='9.00e-02', energy_flux='1.45e-05', photon_flux2='4.58e-08', job_status='DONE', time_completed='2022-04-09 00:55:34.317488', photon_index_error2='0.65', photon_index2='2.25', ts='1.54', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.60e-07', energy_flux_error2='2.14e-05', EG='1.04', time_epoch_completed='1649490934.32', return_code='0', job_id='358194', GAL2='0.94', EG2='1.05', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='4.80e-08', ts2='1.71', photon_index='2.55' WHERE bin_id='1665' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Apr  9 00:55:34 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0145>
Subject: Job 358194: <4FGL_J2339.6+0242_daily_bin1665> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin1665> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Apr  9 00:40:17 2022
Job was executed on host(s) <bullet0145>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Apr  9 00:40:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Apr  9 00:40:19 2022
Terminated at Sat Apr  9 00:55:34 2022
Results reported at Sat Apr  9 00:55:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin1665 354.904 2.7102 670896001 671155201 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 :                                   858.83 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             348.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3407 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            917 sec.

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

