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


Performing analysis on: 4FGL_J2339.6+0242_weekly_bin763
RA = 354.904, Dec = 2.7102
tmin = 700444801, tmax = 701049601
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='450758', job_status='RUN', time_executed='2023-03-21 03:11:04.767829', time_epoch_executed='1679393464.77' WHERE source_name='4FGL J2339.6+0242' and cadence='weekly' and bin_id='763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/450758

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/450758/ft1_4FGL_J2339.6+0242_weekly_bin763.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/450758/ft2_4FGL_J2339.6+0242_weekly_bin763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/450758/ft1_4FGL_J2339.6+0242_weekly_bin763.fits outfile=/scratch/kocevski/450758/ft1_filteredMKT_4FGL_J2339.6+0242_weekly_bin763.fits ra=354.904 dec=2.7102 rad=12.0 tmin=700444801.0 tmax=701049601.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 9.65
user 9.31
sys 0.31

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

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

Number of photons that the gtmktime cut: 769

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/450758/ft1_filtered_4FGL_J2339.6+0242_weekly_bin763.fits" evtable="EVENTS" scfile=/scratch/kocevski/450758/ft2_4FGL_J2339.6+0242_weekly_bin763.fits sctable="SC_DATA" outfile=/scratch/kocevski/450758/ltcube_700444801_701049601_4FGL_J2339.6+0242_weekly_bin763.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/450758/ft2_4FGL_J2339.6+0242_weekly_bin763.fits
.....................!
real 26.46
user 26.08
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/450758/ft1_filtered_4FGL_J2339.6+0242_weekly_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/450758/ft2_4FGL_J2339.6+0242_weekly_bin763.fits sctable="SC_DATA" expcube=/scratch/kocevski/450758/ltcube_700444801_701049601_4FGL_J2339.6+0242_weekly_bin763.fits outfile=/scratch/kocevski/450758/expmap_700444801_701049601_4FGL_J2339.6+0242_weekly_bin763.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/450758/ltcube_700444801_701049601_4FGL_J2339.6+0242_weekly_bin763.fits
.....................!
real 190.79
user 185.14
sys 5.26

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/450758/ft1_filtered_4FGL_J2339.6+0242_weekly_bin763.fits scfile=/scratch/kocevski/450758/ft2_4FGL_J2339.6+0242_weekly_bin763.fits outfile=/scratch/kocevski/450758/cmap_700444801_701049601_4FGL_J2339.6+0242_weekly_bin763.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.59
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/450758/ft1_filtered_4FGL_J2339.6+0242_weekly_bin763.fits scfile=/scratch/kocevski/450758/ft2_4FGL_J2339.6+0242_weekly_bin763.fits outfile=/scratch/kocevski/450758/cmap_HighResolution_700444801_701049601_4FGL_J2339.6+0242_weekly_bin763.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.58
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0150       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11295E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.2232       1.0000          .0000       .10000E+07
     4 'norm      '    .16734E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .22338E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .54795       1.0000          .0000       .10000E+07
     7 'norm      '    8.4523       1.0000          .0000       .10000E+07
     8 'Prefactor '    .29835E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .25011       1.0000          .0000       .10000E+07
    10 'Prefactor '    .27271E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .77788E-03   1.0000          .0000       .10000E+07
    12 'norm      '    13.342       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.8013       1.0000          .0000       .10000E+07
    14 'Prefactor '    29.660       1.0000          .0000       .10000E+07
    15 'norm      '    13.713       1.0000          .0000       .10000E+07
    16 'Prefactor '    6.3468       1.0000          .0000       .10000E+07
    17 'Prefactor '    14.414       1.0000          .0000       .10000E+07
    18 'norm      '    .33420E-02   1.0000          .0000       .10000E+07
    19 'norm      '    1.2537       1.0000          .0000       .10000E+07
    20 'Prefactor '    35.697       1.0000          .0000       .10000E+07
    21 'Prefactor '    74.671       1.0000          .0000       .10000E+07
    22 'Prefactor '    .66049E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    .35903       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3780       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=   8678.483     FROM MIGRAD    STATUS=CONVERGED    222 CALLS     2113 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9813        6.9115       -.93467E-08   -.10695E-04
   2  Prefactor      .0000        5.6107       -.56062E-07** at limit **
   3  Prefactor     1.3227        8.6885       -.15794E-06    .82744E-04
   4  norm           .0000        1.0412        .28803E-07** at limit **
   5  norm           .0000        1.8029       -.36219E-07** at limit **
   6  Prefactor     .55971        12.467       -.31822E-06    .32780E-03
   7  norm          8.5062        8.4883        .65355E-07   -.56178E-03
   8  Prefactor     .66613E-09    11.587        .76403E-07** at limit **
   9  Prefactor     .21044E-06    28.113        .48466E-06** at limit **
  10  Prefactor     .31974E-07    37.460        .18326E-06** at limit **
  11  norm           .0000        4.6418        .10159E-06** at limit **
  12  norm          13.359        7.2895       -.47928E-07   -.20330E-04
  13  Prefactor     3.8279        5.3339        .19908E-07    .26904E-03
  14  Prefactor     31.873        59.582       -.14262E-05    .24083E-01
  15  norm          13.746        8.4325       -.10470E-06   -.63015E-02
  16  Prefactor     6.3863        5.9408        .62573E-07    .15737E-02
  17  Prefactor     14.326        12.325        .12383E-06    .15589E-01
  18  norm           .0000        7.0614        .82061E-07** at limit **
  19  norm          .12655        195.17        .36156E-05** at limit **
  20  Prefactor     35.863        7.6929       -.93019E-07   -.74786E-02
  21  Prefactor     75.883        39.592       -.18104E-06    .12892E-02
  22  Prefactor      .0000        16.361        .59003E-07** at limit **
  23  Normalizat    .35665        .20459        .10297E-05   -.53267E-05
  24  Prefactor     1.3786        .14447        .86911E-06   -.27357E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.98134
  Prefactor  = 0
  Prefactor  = 1.32269
  norm       = 0
  norm       = 0
  Prefactor  = 0.559712
  norm       = 8.50624
  Prefactor  = 6.66134e-10
  Prefactor  = 2.10443e-07
  Prefactor  = 3.19744e-08
  norm       = 0
  norm       = 13.3594
  Prefactor  = 3.82789
  Prefactor  = 31.8725
  norm       = 13.7456
  Prefactor  = 6.38632
  Prefactor  = 14.3256
  norm       = 0
  norm       = 0.126553
  Prefactor  = 35.8626
  Prefactor  = 75.8835
  Prefactor  = 0
  Normalizat = 0.356655
  Prefactor  = 1.37857
 **********
 **   18 **HESSE 
 **********

 FCN=   8678.483     FROM HESSE     STATUS=OK           467 CALLS     2580 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9813        6.9225        .37853E-03   -1.5655    
   2  Prefactor      .0000        5.6379        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3227        8.7816        .10186E-02   -1.5685    
   4  norm           .0000        1.0321        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        1.8006        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55971        12.331        .74026E-03   -1.5693    
   7  norm          8.5062        8.4963        .34457E-03   -1.5650    
   8  Prefactor     .66613E-09    11.824        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .21044E-06    9.1138        .10944E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .31974E-07    36.814        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        .41112        .31912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.359        7.3918        .27397E-03   -1.5635    
  13  Prefactor     3.8279        5.3648        .51748E-03   -1.5669    
  14  Prefactor     31.873        61.711        .18365E-03   -1.5595    
  15  norm          13.746        8.5437        .27022E-03   -1.5634    
  16  Prefactor     6.3863        5.9847        .39819E-03   -1.5657    
  17  Prefactor     14.326        15.073        .26355E-03   -1.5632    
  18  norm           .0000        7.0629        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .12655        35.056        .12884E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     35.863        9.0515        .16739E-03   -1.5588    
  21  Prefactor     75.883        39.869        .11573E-03   -1.5534    
  22  Prefactor      .0000        16.357        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .35665        .22157        .10938       -1.1960    
  24  Prefactor     1.3786        .15036        .31372E-01   -.81000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19072e-06
Minuit parameter uncertainties:
  1  6.92251
  2  1.11558e-05
  3  6.81628
  4  1.26295e-06
  5  2.22036e-06
  6  5.25424
  7  8.49627
  8  0.000179015
  9  0.00276971
  10  0.00217078
  11  3.01745e-06
  12  7.39184
  13  5.36477
  14  61.7125
  15  8.54371
  16  5.98471
  17  15.0735
  18  6.61023e-07
  19  4.21262
  20  9.0515
  21  39.8688
  22  3.17017e-05
  23  0.222118
  24  0.150409
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  7.588e+01  3.987e+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:  1.379e+00  1.504e-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:  3.567e-01  2.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.87
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 9.18e-08 +/- 4.82e-08
Energy Flux (Fixed Index): 2.53e-05 +/- 1.33e-05

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) = 8678.42083565
delta logL = 0.061910937884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8678.41128299
delta logL = 0.0714636059565

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    84.692       1.0000          .0000       .10000E+07
     2 'Index     '    2.3612       1.0000          .0000       10.000    
     3 'Normalizat'    .37101       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3720       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=   8678.411     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      314 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     84.696        49.135        .43467E-05   -.12554E-04
   2  Index         2.3613        .49423        .78694E-02    .34368E-03
   3  Normalizat    .37073        .19830        .47575E-03   -.81726E-05
   4  Prefactor     1.3722        .14427        .19001E-03   -.58515E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 84.696
  Index      = 2.36127
  Normalizat = 0.370725
  Prefactor  = 1.37218
 **********
 **   18 **HESSE 
 **********

 FCN=   8678.411     FROM HESSE     STATUS=OK            25 CALLS      339 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     84.696        48.407        .86935E-06   -1.5524    
   2  Index         2.3613        .48645        .15739E-02   -.55595    
   3  Normalizat    .37073        .19812        .19030E-04   -1.1884    
   4  Prefactor     1.3722        .14417        .76004E-05   -.81185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35376e-12
Minuit parameter uncertainties:
  1  48.4077
  2  0.487517
  3  0.198494
  4  0.144216
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/450758': 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) = 8678.41128194
delta logL = 0.0714646505021

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  8.470e+01  4.841e+01  0.000e+00  1.000e+06 ( 1.000e-13)
464        Index:  2.361e+00  4.875e-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:  1.372e+00  1.442e-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:  3.707e-01  1.985e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.00
Ra Dec: 354.904 2.710
Photon Index (Free Index): 2.36 +/- 0.49
Photon Flux (Free Index): 7.93e-08 +/- 5.47e-08
Energy Flux (Free Index): 2.74e-05 +/- 1.62e-05

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/450758/cmap_HighResolution_700444801_701049601_4FGL_J2339.6+0242_weekly_bin763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.18e-08', energy_flux2='2.74e-05', photon_flux_error='4.82e-08', dlogl='7.15e-02', energy_flux='2.53e-05', photon_flux2='7.93e-08', job_status='DONE', time_completed='2023-03-21 03:22:55.886104', photon_index_error2='0.49', photon_index2='2.36', ts='6.87', fit_tolerance='1e-08', GAL='1.38', photon_index_error='0.00', energy_flux_error2='1.62e-05', EG='0.36', time_epoch_completed='1679394175.89', return_code='0', job_id='450758', GAL2='1.37', EG2='0.37', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='5.47e-08', ts2='7.00', photon_index='2.55' WHERE bin_id='763' AND source_name='4FGL J2339.6+0242' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 21 03:22:55 PDT 2023


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

Job <4FGL_J2339.6+0242_weekly_bin763> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Mar 21 03:10:21 2023
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 21 03:10:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 21 03:10:22 2023
Terminated at Tue Mar 21 03:22:56 2023
Results reported at Tue Mar 21 03:22:56 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_weekly_bin763 354.904 2.7102 700444801 701049601 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 :                                   712.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             358.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            755 sec.

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

