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 105 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2339.6+0242_weekly_bin737
RA = 354.904, Dec = 2.7102
tmin = 684720001, tmax = 685324801
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='455278', job_status='RUN', time_executed='2022-09-20 01:13:03.651047', time_epoch_executed='1663661583.65' WHERE source_name='4FGL J2339.6+0242' and cadence='weekly' and bin_id='737'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455278

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455278/ft1_4FGL_J2339.6+0242_weekly_bin737.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455278/ft2_4FGL_J2339.6+0242_weekly_bin737.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455278/ft1_4FGL_J2339.6+0242_weekly_bin737.fits outfile=/scratch/kocevski/455278/ft1_filteredMKT_4FGL_J2339.6+0242_weekly_bin737.fits ra=354.904 dec=2.7102 rad=12.0 tmin=684720001.0 tmax=685324801.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.45
user 5.14
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455278/ft1_filtered_4FGL_J2339.6+0242_weekly_bin737.fits" evtable="EVENTS" scfile=/scratch/kocevski/455278/ft2_4FGL_J2339.6+0242_weekly_bin737.fits sctable="SC_DATA" outfile=/scratch/kocevski/455278/ltcube_684720001_685324801_4FGL_J2339.6+0242_weekly_bin737.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/455278/ft2_4FGL_J2339.6+0242_weekly_bin737.fits
.....................!
real 32.11
user 31.54
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455278/ft1_filtered_4FGL_J2339.6+0242_weekly_bin737.fits evtable="EVENTS" scfile=/scratch/kocevski/455278/ft2_4FGL_J2339.6+0242_weekly_bin737.fits sctable="SC_DATA" expcube=/scratch/kocevski/455278/ltcube_684720001_685324801_4FGL_J2339.6+0242_weekly_bin737.fits outfile=/scratch/kocevski/455278/expmap_684720001_685324801_4FGL_J2339.6+0242_weekly_bin737.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/455278/ltcube_684720001_685324801_4FGL_J2339.6+0242_weekly_bin737.fits
.....................!
real 157.29
user 152.80
sys 3.95

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/455278/ft1_filtered_4FGL_J2339.6+0242_weekly_bin737.fits scfile=/scratch/kocevski/455278/ft2_4FGL_J2339.6+0242_weekly_bin737.fits outfile=/scratch/kocevski/455278/cmap_684720001_685324801_4FGL_J2339.6+0242_weekly_bin737.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.52
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455278/ft1_filtered_4FGL_J2339.6+0242_weekly_bin737.fits scfile=/scratch/kocevski/455278/ft2_4FGL_J2339.6+0242_weekly_bin737.fits outfile=/scratch/kocevski/455278/cmap_HighResolution_684720001_685324801_4FGL_J2339.6+0242_weekly_bin737.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.52
user 0.36
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/455278/ft1_filtered_4FGL_J2339.6+0242_weekly_bin737.fits', '/scratch/kocevski/455278/ft2_4FGL_J2339.6+0242_weekly_bin737.fits', expMap='/scratch/kocevski/455278/expmap_684720001_685324801_4FGL_J2339.6+0242_weekly_bin737.fits', expCube='/scratch/kocevski/455278/ltcube_684720001_685324801_4FGL_J2339.6+0242_weekly_bin737.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/455278/Model_4FGL_J2339.6+0242_weekly_bin737.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  0.000e+00  1.000e+06 ( 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/455278/ft1_filtered_4FGL_J2339.6+0242_weekly_bin737.fits
Spacecraft file(s): /scratch/kocevski/455278/ft2_4FGL_J2339.6+0242_weekly_bin737.fits
Exposure map: /scratch/kocevski/455278/expmap_684720001_685324801_4FGL_J2339.6+0242_weekly_bin737.fits
Exposure cube: /scratch/kocevski/455278/ltcube_684720001_685324801_4FGL_J2339.6+0242_weekly_bin737.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/455278/Model_4FGL_J2339.6+0242_weekly_bin737.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 2438.59997703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 2433.41594405

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3466       1.0000          .0000       .10000E+07
     2 'Prefactor '    114.44       1.0000          .0000       .10000E+07
     3 'Prefactor '    .71692E-04   1.0000          .0000       .10000E+07
     4 'norm      '    .45526E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .63377E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .48973E-01   1.0000          .0000       .10000E+07
     7 'norm      '    81.806       1.0000          .0000       .10000E+07
     8 'Prefactor '    96.984       1.0000          .0000       .10000E+07
     9 'Prefactor '    15.495       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.3634       1.0000          .0000       .10000E+07
    11 'norm      '    11.011       1.0000          .0000       .10000E+07
    12 'norm      '    .38179E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    26.876       1.0000          .0000       .10000E+07
    14 'Prefactor '    .34318       1.0000          .0000       .10000E+07
    15 'norm      '    .44890E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    32.524       1.0000          .0000       .10000E+07
    17 'Prefactor '    .63994E-03   1.0000          .0000       .10000E+07
    18 'norm      '    .14888E-06   1.0000          .0000       .10000E+07
    19 'norm      '    .15447E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    .82768E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    219.55       1.0000          .0000       .10000E+07
    22 'Prefactor '    1.7439       1.0000          .0000       .10000E+07
    23 'Normalizat'    .14556       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95565       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=   2433.408     FROM MIGRAD    STATUS=CONVERGED    192 CALLS      453 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3466        1.0116         .0000         .0000    
   2  Prefactor     116.38        26.115       -.77185E-08    .63261E-01
   3  Prefactor     .54451E-06    137.94       -.93938E-08** at limit **
   4  norm          .45136E-06    24.768       -.62178E-07** at limit **
   5  norm           .0000        3.8501       -.70544E-07** at limit **
   6  Prefactor     .17497E-06    1.5576       -.71793E-07** at limit **
   7  norm          77.239        62.021        .12560E-07    .26666    
   8  Prefactor     98.558        18.094       -.75415E-08    .13233    
   9  Prefactor     15.077        15.681       -.15122E-07    .74000E-01
  10  Prefactor     1.3634        1.0912         .0000         .0000    
  11  norm          10.999        11.320        .17834E-07    .31134E-03
  12  norm          .13333E-02    146.17        .95761E-07** at limit **
  13  Prefactor     26.721        17.806       -.22243E-06    .32709E-01
  14  Prefactor     .96391E-05    111.28        .74424E-06** at limit **
  15  norm          .66613E-09    9.7679       -.37270E-06** at limit **
  16  Prefactor     32.587        14.560       -.20712E-06   -.12436E-01
  17  Prefactor     .21649E-08    16.950       -.27813E-06** at limit **
  18  norm          .55511E-10    7.9649       -.58514E-07** at limit **
  19  norm          .16653E-09    65.101        .22003E-06** at limit **
  20  Prefactor     .29415E-06    30.410       -.27267E-06** at limit **
  21  Prefactor     219.30        4.2992       -.21239E-09    .11301    
  22  Prefactor     .36654E-05    207.53        .16630E-06** at limit **
  23  Normalizat    .14390        .41261        .12466E-04    .31333E-04
  24  Prefactor     .95763        .24022        .74247E-06    .14040E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.34657
  Prefactor  = 116.378
  Prefactor  = 5.44509e-07
  norm       = 4.51361e-07
  norm       = 0
  Prefactor  = 1.74971e-07
  norm       = 77.2388
  Prefactor  = 98.558
  Prefactor  = 15.0773
  Prefactor  = 1.3634
  norm       = 10.9993
  norm       = 0.00133327
  Prefactor  = 26.7214
  Prefactor  = 9.63912e-06
  norm       = 6.66134e-10
  Prefactor  = 32.5867
  Prefactor  = 2.16493e-09
  norm       = 5.55112e-11
  norm       = 1.66533e-10
  Prefactor  = 2.94154e-07
  Prefactor  = 219.304
  Prefactor  = 3.6654e-06
  Normalizat = 0.1439
  Prefactor  = 0.957626
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   2433.408     FROM HESSE     STATUS=FAILED        11 CALLS      464 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     62738.        62734.         .0000       -1.5671    
   2  Prefactor     116.38        1.0084       -.77185E-08   -1.5492    
   3  Prefactor     .54451E-06    .44347E-01   -.93938E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .45136E-06    .44347E-01   -.62178E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .44347E-01   -.70544E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .17497E-06    .60697       -.71793E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          77.239        .97171        .12560E-07   -1.5532    
   8  Prefactor     98.558        1.0081       -.75415E-08   -1.5509    
   9  Prefactor     15.077        .98693       -.15122E-07   -1.5630    
  10  Prefactor     1.3634        1.0912         .0000       -1.5685    
  11  norm          10.999        1.0005        .17834E-07   -1.5642    
  12  norm          .13333E-02    .44347E-01    .95761E-07   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.721        .99730       -.22243E-06   -1.5605    
  14  Prefactor     .96391E-05    .23227        .74424E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .66613E-09    .44347E-01   -.37270E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     32.587        1.0011       -.20712E-06   -1.5594    
  17  Prefactor     .21649E-08    .44347E-01   -.27813E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .55511E-10    .44347E-01   -.58514E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .16653E-09    .75315        .22003E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .29415E-06    .44347E-01   -.27267E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     219.30        .99944       -.21239E-09   -1.5412    
  22  Prefactor     .36654E-05    .15760        .16630E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .14390        .38626        .12466E-04   -1.3387    
  24  Prefactor     .95763        1.2987        .74247E-06   -.94156    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.37486e-09
Minuit parameter uncertainties:
  1  1.01162
  2  1.00844
  3  0.000310797
  4  0.000282962
  5  1.50217e-06
  6  0.000651797
  7  0.971705
  8  1.0081
  9  0.986931
  10  1.09118
  11  1.00051
  12  0.0153788
  13  0.997298
  14  0.00299255
  15  1.08451e-05
  16  1.00108
  17  1.96018e-05
  18  2.33409e-06
  19  2.2657e-05
  20  0.000228438
  21  0.999436
  22  0.00152008
  23  0.393934
  24  1.3451
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 2433.40765219

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  2.193e+02  9.994e-01  0.000e+00  1.000e+06 ( 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.576e-01  1.345e+00  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.439e-01  3.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.73
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 2.65e-07 +/- 1.21e-09
Energy Flux (Fixed Index): 7.31e-05 +/- 3.33e-07

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

Saving results to:
/scratch/kocevski/455278/likelihoodResults_684720001_685324801_4FGL_J2339.6+0242_weekly_bin737.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) = 2433.12280347
delta logL = 0.284848722713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2433.07162661
delta logL = 0.336025587022

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    273.68       1.0000          .0000       .10000E+07
     2 'Index     '    2.0669       1.0000          .0000       10.000    
     3 'Normalizat'    .17244       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94481       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=   2433.072     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      232 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     273.69        174.89        .10054E-05   -.30531E-02
   2  Index         2.0667        .50082       -.70712E-05   -.41417E-03
   3  Normalizat    .17215        .67475       -.44643E-05   -.15871E-04
   4  Prefactor     .94510        .40719        .70314E-06    .14233E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 273.694
  Index      = 2.06672
  Normalizat = 0.172149
  Prefactor  = 0.945097
 **********
 **   18 **HESSE 
 **********

 FCN=   2433.072     FROM HESSE     STATUS=OK            29 CALLS      261 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     273.69        182.70        .12091E-04   -1.5377    
   2  Index         2.0667        .55126        .59304E-02   -.62692    
   3  Normalizat    .17215        .38842        .67613E-03   -1.3153    
   4  Prefactor     .94510        .23607        .17747E-03   -.94583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61172e-09
Minuit parameter uncertainties:
  1  182.702
  2  0.552974
  3  0.394828
  4  0.236327
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455278': 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) = 2433.07162558
delta logL = 0.3360266098

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  2.737e+02  1.827e+02  0.000e+00  1.000e+06 ( 1.000e-13)
464        Index:  2.067e+00  5.530e-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.451e-01  2.363e-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.721e-01  3.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.37
Ra Dec: 354.904 2.710
Photon Index (Free Index): 2.07 +/- 0.55
Photon Flux (Free Index): 1.79e-07 +/- 1.64e-07
Energy Flux (Free Index): 1.05e-04 +/- 9.56e-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/455278/cmap_HighResolution_684720001_685324801_4FGL_J2339.6+0242_weekly_bin737.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.06e-02', comment='SUCCESS', photon_flux='2.65e-07', energy_flux2='1.05e-04', photon_flux_error='1.21e-09', dlogl='3.36e-01', energy_flux='7.31e-05', photon_flux2='1.79e-07', job_status='DONE', time_completed='2022-09-20 01:18:50.576273', photon_index_error2='0.55', photon_index2='2.07', ts='3.73', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='6.48e-07', energy_flux_error2='9.56e-05', EG='0.14', time_epoch_completed='1663661930.58', return_code='101', job_id='455278', GAL2='0.95', EG2='0.17', return_code2='0', energy_flux_error='3.33e-07', photon_flux_error2='1.64e-07', ts2='4.37', photon_index='2.55' WHERE bin_id='737' AND source_name='4FGL J2339.6+0242' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 20 01:18:50 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 455278: <4FGL_J2339.6+0242_weekly_bin737> in cluster <slac> Done

Job <4FGL_J2339.6+0242_weekly_bin737> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 20 01:05:31 2022
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 20 01:11:10 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 20 01:11:10 2022
Terminated at Tue Sep 20 01:18:51 2022
Results reported at Tue Sep 20 01:18:51 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_weekly_bin737 354.904 2.7102 684720001 685324801 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 :                                   344.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             260.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   460 sec.
    Turnaround time :                            800 sec.

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

