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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin1701
RA = 354.904, Dec = 2.7102
tmin = 680227201, tmax = 680486401
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='193319', job_status='RUN', time_executed='2022-07-26 02:19:09.044043', time_epoch_executed='1658827149.04' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='1701'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/193319

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/193319/ft1_4FGL_J2339.6+0242_daily_bin1701.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/193319/ft2_4FGL_J2339.6+0242_daily_bin1701.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/193319/ft1_4FGL_J2339.6+0242_daily_bin1701.fits outfile=/scratch/kocevski/193319/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin1701.fits ra=354.904 dec=2.7102 rad=12.0 tmin=680227201.0 tmax=680486401.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 2.94
user 2.74
sys 0.18

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

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

Number of photons that the gtmktime cut: 403

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/193319/ft1_filtered_4FGL_J2339.6+0242_daily_bin1701.fits evtable="EVENTS" scfile=/scratch/kocevski/193319/ft2_4FGL_J2339.6+0242_daily_bin1701.fits sctable="SC_DATA" expcube=/scratch/kocevski/193319/ltcube_680227201_680486401_4FGL_J2339.6+0242_daily_bin1701.fits outfile=/scratch/kocevski/193319/expmap_680227201_680486401_4FGL_J2339.6+0242_daily_bin1701.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/193319/ltcube_680227201_680486401_4FGL_J2339.6+0242_daily_bin1701.fits
.....................!
real 192.02
user 185.87
sys 5.69

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/193319/ft1_filtered_4FGL_J2339.6+0242_daily_bin1701.fits scfile=/scratch/kocevski/193319/ft2_4FGL_J2339.6+0242_daily_bin1701.fits outfile=/scratch/kocevski/193319/cmap_680227201_680486401_4FGL_J2339.6+0242_daily_bin1701.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/193319/ft1_filtered_4FGL_J2339.6+0242_daily_bin1701.fits scfile=/scratch/kocevski/193319/ft2_4FGL_J2339.6+0242_daily_bin1701.fits outfile=/scratch/kocevski/193319/cmap_HighResolution_680227201_680486401_4FGL_J2339.6+0242_daily_bin1701.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.037       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.610       1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.293       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.0607       1.0000         .10000E-03   10000.    
     5 'norm      '    .14933E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9299       1.0000         .10000E-03   10000.    
     8 'norm      '    13.844       1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.789       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.771       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11535       1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.231       1.0000         .10000E-03   10000.    
    17 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.039       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .20574E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.519       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .14256E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    31.433       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    35.526       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.0861       1.0000         .10000E-03   10000.    
    28 'Prefactor '    21.008       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .42148       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0300       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4677.358     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     3293 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.033        3.8251       -.31645E-05   -.28461E-03
   2  Prefactor     20.606        1.1821       -.39865E-06    .15511E-03
   3  Prefactor     41.347        19.352       -.35434E-05   -.60223E-02
   4  Prefactor     8.0661        2.6936       -.31751E-05    .26106E-02
   5  norm          .10000E-03    4.5468       -.38703E-05** at limit **
   6  norm          .10000E-03    1.4657        .32208E-06** at limit **
   7  Prefactor     2.9316        2.6383        .56926E-05    .35359E-02
   8  norm          13.839        2.8187       -.23358E-05    .12531E-02
   9  Prefactor     49.780        1.6280       -.44084E-06    .92653E-03
  10  Prefactor     .10000E-03    4.3319       -.13588E-07** at limit **
  11  Prefactor     12.772        1.2787       -.64269E-06    .87903E-03
  12  Prefactor     .10000E-03    6.1961       -.13687E-05** at limit **
  13  norm          .11540        .87447       -.12202E-06    .76752E-04
  14  norm          .10002E-03    4.0911       -.12346E-04** at limit **
  15  Prefactor     .10001E-03    3.8793        .89540E-05** at limit **
  16  Prefactor     22.228        1.1165       -.27146E-06   -.95023E-04
  17  norm          .10000E-03    14.646       -.44336E-06** at limit **
  18  Prefactor     10.035        7.9961       -.12032E-04   -.15835E-02
  19  Prefactor     .25530E-03    214.39       -.22364E-04** at limit **
  20  Prefactor     20.507        13.586       -.10286E-04   -.44771E-02
  21  Prefactor     .10000E-03    8.7800        .17100E-05** at limit **
  22  norm          .10001E-03    3.8032       -.70255E-05** at limit **
  23  norm          .98811E-03    183.70       -.72297E-04** at limit **
  24  Prefactor     31.421        2.0201       -.91842E-06    .11083E-02
  25  Prefactor     .10003E-03    3.8627        .16282E-04** at limit **
  26  Prefactor     35.511        2.2588       -.78237E-06    .38622E-03
  27  Prefactor     4.0768        2.9569        .44828E-05   -.30135E-03
  28  Prefactor     21.006        1.5491        .13857E-05   -.13142E-02
  29  Normalizat    .42211        .23108        .14987E-04    .45735E-05
  30  Prefactor     1.0297        .16018       -.14144E-05    .11259E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.0333
  Prefactor  = 20.6057
  Prefactor  = 41.3472
  Prefactor  = 8.06614
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 2.93162
  norm       = 13.8395
  Prefactor  = 49.7802
  Prefactor  = 0.0001
  Prefactor  = 12.7725
  Prefactor  = 0.0001
  norm       = 0.1154
  norm       = 0.000100021
  Prefactor  = 0.000100008
  Prefactor  = 22.2279
  norm       = 0.0001
  Prefactor  = 10.0353
  Prefactor  = 0.000255296
  Prefactor  = 20.5067
  Prefactor  = 0.0001
  norm       = 0.00010001
  norm       = 0.000988107
  Prefactor  = 31.421
  Prefactor  = 0.000100034
  Prefactor  = 35.5109
  Prefactor  = 4.07678
  Prefactor  = 21.006
  Normalizat = 0.422114
  Prefactor  = 1.02967
 **********
 **   18 **HESSE 
 **********

 FCN=   4677.358     FROM HESSE     STATUS=OK           666 CALLS     3959 TOTAL
                     EDM=   .83E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.033        14.799        .22370E-02   -1.4812    
   2  Prefactor     20.606        42.788        .22056E-02   -1.4800    
   3  Prefactor     41.347        21.083        .15595E-02   -1.4421    
   4  Prefactor     8.0661        9.2312        .35305E-02   -1.5140    
   5  norm          .10000E-03    2.5530        .31506E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.4549        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.9316        7.5567        .59329E-02   -1.5366    
   8  norm          13.839        16.430        .26913E-02   -1.4964    
   9  Prefactor     49.780        51.523        .14208E-02   -1.4296    
  10  Prefactor     .10000E-03    4.3244        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.772        23.974        .28022E-02   -1.4993    
  12  Prefactor     .10000E-03    6.1825        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .11540        .88637        .95842E-02   -1.5640    
  14  norm          .10002E-03    4.7537        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    5.5318        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.228        41.464        .21238E-02   -1.4765    
  17  norm          .10000E-03    14.389        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.035        8.9627        .31617E-02   -1.5074    
  19  Prefactor     .25530E-03    295.33        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.507        17.642        .22105E-02   -1.4802    
  21  Prefactor     .10000E-03    8.7753        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10001E-03    5.5109        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .98811E-03    38.572        .11918       -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     31.421        60.653        .17867E-02   -1.4586    
  25  Prefactor     .10003E-03    4.6818        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     35.511        49.384        .16809E-02   -1.4515    
  27  Prefactor     4.0768        45.851        .49861E-02   -1.5304    
  28  Prefactor     21.006        17.021        .21847E-02   -1.4791    
  29  Normalizat    .42211        .23923        .86548E-01   -1.1617    
  30  Prefactor     1.0297        .15119        .41262E-01   -.91747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.27992e-07
Minuit parameter uncertainties:
  1  14.8019
  2  42.8519
  3  21.0865
  4  9.23281
  5  0.0001165
  6  1.46663e-05
  7  7.55917
  8  16.4353
  9  51.569
  10  9.68383e-06
  11  23.992
  12  3.55148e-06
  13  0.639383
  14  0.00063791
  15  0.000426086
  16  41.5179
  17  2.16264e-05
  18  8.96388
  19  0.43045
  20  17.646
  21  0.000104086
  22  0.000464827
  23  0.370406
  24  60.7722
  25  0.000794875
  26  49.4404
  27  27.3702
  28  17.0246
  29  0.239815
  30  0.151254
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.551e+01  4.944e+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.030e+00  1.513e-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:  4.221e-01  2.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/193319/likelihoodResults_680227201_680486401_4FGL_J2339.6+0242_daily_bin1701.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) = 4677.35175025
delta logL = 0.00599225096448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4677.34880976
delta logL = 0.00893273959809

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.589       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6831       1.0000          .0000       10.000    
     3 'Normalizat'    .41752       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0321       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=   4677.349     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      259 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.587        58.396        .71291E-04    .23059E-03
   2  Index         2.6831        1.1113        .79028E-02    .14095E-03
   3  Normalizat    .41758        .22763        .38543E-03   -.11111E-03
   4  Prefactor     1.0320        .16071        .17854E-03   -.24199E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.5874
  Index      = 2.68312
  Normalizat = 0.417579
  Prefactor  = 1.03203
 **********
 **   18 **HESSE 
 **********

 FCN=   4677.349     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.587        54.330        .14258E-04   -1.4583    
   2  Index         2.6831        1.0340        .31611E-03   -.48180    
   3  Normalizat    .41758        .22751        .15417E-04   -1.1640    
   4  Prefactor     1.0320        .16049        .35707E-04   -.91669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.24531e-10
Minuit parameter uncertainties:
  1  54.4156
  2  1.04357
  3  0.228011
  4  0.160567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/193319': 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) = 4677.34880972
delta logL = 0.00893278206513

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.159e+01  5.442e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.683e+00  1.044e+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.032e+00  1.606e-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:  4.176e-01  2.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.68
Ra Dec: 354.904 2.710

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/193319/cmap_HighResolution_680227201_680486401_4FGL_J2339.6+0242_daily_bin1701.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-02', job_status='DONE', photon_flux_upper_limit='1.70e-07', time_completed='2022-07-26 02:29:54.447687', job_id='193319', GAL2='1.03', fit_tolerance='1e-08', EG2='0.42', EG='0.42', time_epoch_completed='1658827794.45', return_code2='0', ts='0.68', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='8.93e-03', ts2='0.70', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1701' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 26 02:29:54 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 193319: <4FGL_J2339.6+0242_daily_bin1701> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin1701> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Jul 26 02:15:16 2022
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 26 02:15:57 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 26 02:15:57 2022
Terminated at Tue Jul 26 02:29:55 2022
Results reported at Tue Jul 26 02:29:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin1701 354.904 2.7102 680227201 680486401 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 :                                   647.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             290.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            879 sec.

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

