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


Performing analysis on: 4FGL_J2339.6+0242_weekly_bin757
RA = 354.904, Dec = 2.7102
tmin = 696816001, tmax = 697420801
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='291114', job_status='RUN', time_executed='2023-02-07 02:41:44.511177', time_epoch_executed='1675766504.51' WHERE source_name='4FGL J2339.6+0242' and cadence='weekly' and bin_id='757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/291114

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/291114/ft1_4FGL_J2339.6+0242_weekly_bin757.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/291114/ft2_4FGL_J2339.6+0242_weekly_bin757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/291114/ft1_4FGL_J2339.6+0242_weekly_bin757.fits outfile=/scratch/kocevski/291114/ft1_filteredMKT_4FGL_J2339.6+0242_weekly_bin757.fits ra=354.904 dec=2.7102 rad=12.0 tmin=696816001.0 tmax=697420801.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 7.73
user 7.37
sys 0.28

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

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

Number of photons that the gtmktime cut: 1083

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/291114/ft1_filtered_4FGL_J2339.6+0242_weekly_bin757.fits" evtable="EVENTS" scfile=/scratch/kocevski/291114/ft2_4FGL_J2339.6+0242_weekly_bin757.fits sctable="SC_DATA" outfile=/scratch/kocevski/291114/ltcube_696816001_697420801_4FGL_J2339.6+0242_weekly_bin757.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/291114/ft2_4FGL_J2339.6+0242_weekly_bin757.fits
.....................!
real 30.08
user 29.41
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/291114/ft1_filtered_4FGL_J2339.6+0242_weekly_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/291114/ft2_4FGL_J2339.6+0242_weekly_bin757.fits sctable="SC_DATA" expcube=/scratch/kocevski/291114/ltcube_696816001_697420801_4FGL_J2339.6+0242_weekly_bin757.fits outfile=/scratch/kocevski/291114/expmap_696816001_697420801_4FGL_J2339.6+0242_weekly_bin757.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/291114/ltcube_696816001_697420801_4FGL_J2339.6+0242_weekly_bin757.fits
.....................!
real 192.25
user 185.62
sys 5.63

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/291114/ft1_filtered_4FGL_J2339.6+0242_weekly_bin757.fits scfile=/scratch/kocevski/291114/ft2_4FGL_J2339.6+0242_weekly_bin757.fits outfile=/scratch/kocevski/291114/cmap_696816001_697420801_4FGL_J2339.6+0242_weekly_bin757.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.61
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/291114/ft1_filtered_4FGL_J2339.6+0242_weekly_bin757.fits scfile=/scratch/kocevski/291114/ft2_4FGL_J2339.6+0242_weekly_bin757.fits outfile=/scratch/kocevski/291114/cmap_HighResolution_696816001_697420801_4FGL_J2339.6+0242_weekly_bin757.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.60
user 0.43
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61453E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    16.813       1.0000          .0000       .10000E+07
     3 'Prefactor '    .88378E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .10817E-04   1.0000          .0000       .10000E+07
     5 'norm      '    .13727E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    7.6163       1.0000          .0000       .10000E+07
     7 'norm      '    .17619E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .17900E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .91072E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .22640E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .30380       1.0000          .0000       .10000E+07
    12 'norm      '    .12873E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.7455       1.0000          .0000       .10000E+07
    14 'Prefactor '    19.080       1.0000          .0000       .10000E+07
    15 'norm      '    .20105E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    6.4092       1.0000          .0000       .10000E+07
    17 'Prefactor '    .15003E-01   1.0000          .0000       .10000E+07
    18 'norm      '    18.479       1.0000          .0000       .10000E+07
    19 'norm      '    9.9168       1.0000          .0000       .10000E+07
    20 'Prefactor '    2.5048       1.0000          .0000       .10000E+07
    21 'Prefactor '    21.462       1.0000          .0000       .10000E+07
    22 'Prefactor '    15.919       1.0000          .0000       .10000E+07
    23 'Normalizat'    .72152       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0289       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=   12237.28     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     1605 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20983E-07    3.4445        .94288E-07** at limit **
   2  Prefactor     16.821        2.0704       -.14636E-07   -.23411E-02
   3  Prefactor     .57176E-08    2.1222       -.49301E-07** at limit **
   4  norm          .22204E-09    1.7380        .74689E-07** at limit **
   5  norm           .0000        .79033       -.32354E-07** at limit **
   6  Prefactor     7.6329        7.7896        .12549E-07   -.17477E-01
   7  norm          .38858E-08    2.3440       -.48857E-07** at limit **
   8  Prefactor     .53291E-08    2.5785        .12097E-06** at limit **
   9  Prefactor     .13711E-07    4.3156        .11375E-06** at limit **
  10  Prefactor     .55511E-10    1.9772       -.11191E-07** at limit **
  11  norm          .30346        .38447        .71537E-08    .27952E-02
  12  norm          .97145E-08    4.2328       -.75545E-07** at limit **
  13  Prefactor     6.7370        3.3567        .11451E-08    .11076    
  14  Prefactor     19.770        27.147       -.51504E-07   -.74456E-02
  15  norm           .0000        1.8001       -.29919E-08** at limit **
  16  Prefactor     6.3453        4.3050        .48466E-07   -.99581E-02
  17  Prefactor     .19984E-08    .95424       -.20056E-08** at limit **
  18  norm          18.496        1.3841        .17443E-08    .40568E-02
  19  norm          10.079        1.1813       -.71756E-08    .40945E-02
  20  Prefactor     2.4842        3.1787       -.10198E-06   -.31994E-02
  21  Prefactor     21.268        20.149        .58284E-07   -.16532E-01
  22  Prefactor     15.942        3.9434       -.45976E-08    .29565E-01
  23  Normalizat    .72189        .14782        .43941E-05    .22468E-03
  24  Prefactor     1.0286        .10172       -.23964E-05   -.10342E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.09832e-08
  Prefactor  = 16.821
  Prefactor  = 5.71765e-09
  norm       = 2.22045e-10
  norm       = 0
  Prefactor  = 7.6329
  norm       = 3.88578e-09
  Prefactor  = 5.32907e-09
  Prefactor  = 1.37113e-08
  Prefactor  = 5.55112e-11
  norm       = 0.303463
  norm       = 9.71445e-09
  Prefactor  = 6.73698
  Prefactor  = 19.7698
  norm       = 0
  Prefactor  = 6.34528
  Prefactor  = 1.9984e-09
  norm       = 18.4957
  norm       = 10.0788
  Prefactor  = 2.48416
  Prefactor  = 21.2684
  Prefactor  = 15.9416
  Normalizat = 0.721895
  Prefactor  = 1.02865
 **********
 **   18 **HESSE 
 **********

 FCN=   12237.28     FROM HESSE     STATUS=OK           453 CALLS     2058 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20983E-07    6.0536        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.821        10.667        .24399E-03   -1.5626    
   3  Prefactor     .57176E-08    4.5933        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .22204E-09    1.7141        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .78918        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.6329        7.9515        .36314E-03   -1.5653    
   7  norm          .38858E-08    4.5324        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .53291E-08    5.8396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .13711E-07    5.3854        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    1.9760        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .30346        .47502        .18415E-02   -1.5697    
  12  norm          .97145E-08    4.2814        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.7370        6.5692        .38610E-03   -1.5656    
  14  Prefactor     19.770        27.336        .22902E-03   -1.5619    
  15  norm           .0000        1.7981        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.3453        4.4033        .39622E-03   -1.5658    
  17  Prefactor     .19984E-08    8.6410        .98904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          18.496        11.566        .23271E-03   -1.5622    
  19  norm          10.079        15.525        .31796E-03   -1.5644    
  20  Prefactor     2.4842        3.6384        .64541E-03   -1.5676    
  21  Prefactor     21.268        20.742        .21592E-03   -1.5616    
  22  Prefactor     15.942        12.006        .25076E-03   -1.5628    
  23  Normalizat    .72189        .13194        .68834E-01   -1.0303    
  24  Prefactor     1.0286        .89383E-01    .41347E-01   -.91781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14197e-07
Minuit parameter uncertainties:
  1  0.000713259
  2  10.6673
  3  0.000324356
  4  3.94569e-05
  5  5.15234e-06
  6  7.95147
  7  0.000264945
  8  0.000352053
  9  0.000543137
  10  2.13358e-05
  11  0.475019
  12  0.000407424
  13  6.5692
  14  27.3366
  15  1.40729e-05
  16  4.40326
  17  0.000262891
  18  11.5656
  19  15.5253
  20  3.6384
  21  20.7423
  22  12.0064
  23  0.132001
  24  0.0893954
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  2.127e+01  2.074e+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.029e+00  8.940e-02  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:  7.219e-01  1.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.55
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 2.57e-08 +/- 2.51e-08
Energy Flux (Fixed Index): 7.09e-06 +/- 6.92e-06

TS (Fixed Index): 1.55
Ra Dec: 354.904 2.710
Photon Flux Upper Limit: 8.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/291114/likelihoodResults_696816001_697420801_4FGL_J2339.6+0242_weekly_bin757.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) = 12237.2209353
delta logL = 0.0593928294002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12237.2047641
delta logL = 0.0755640010248

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.426       1.0000          .0000       .10000E+07
     2 'Index     '    2.8657       1.0000          .0000       10.000    
     3 'Normalizat'    .71318       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.

 FCN=   12237.20     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      223 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.410        342.59        .23965E-03    .57962E-02
   2  Index         2.8659        3.5817        .22433        .31450E-03
   3  Normalizat    .71308        .44171E-01    .69222E-01    .73502E-03
   4  Prefactor     1.0323        .27186E-01    .41093E-01    .16535E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.4096
  Index      = 2.86591
  Normalizat = 0.713085
  Prefactor  = 1.0323
 **********
 **   18 **HESSE 
 **********

 FCN=   12237.20     FROM HESSE     STATUS=OK            29 CALLS      252 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.410        22.958        .95860E-05   -1.5625    
   2  Index         2.8659        .92518        .98055E-02   -.44097    
   3  Normalizat    .71308        .14445        .30633E-03   -1.0338    
   4  Prefactor     1.0323        .10230        .18505E-03   -.91661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63893e-09
Minuit parameter uncertainties:
  1  22.9577
  2  0.931761
  3  0.144522
  4  0.102319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/291114': 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) = 12237.2047619
delta logL = 0.0755661643107

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.741e+01  2.296e+01  0.000e+00  1.000e+06 ( 1.000e-13)
464        Index:  2.866e+00  9.318e-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.032e+00  1.023e-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:  7.131e-01  1.445e-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.87 +/- 0.93
Photon Flux (Free Index): 3.35e-08 +/- 3.41e-08
Energy Flux (Free Index): 7.20e-06 +/- 6.59e-06

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.31e-03', comment='SUCCESS', photon_flux='2.57e-08', energy_flux2='7.20e-06', photon_flux_error='2.51e-08', dlogl='7.56e-02', energy_flux='7.09e-06', photon_flux2='3.35e-08', job_status='DONE', time_completed='2023-02-07 02:55:54.366764', photon_index_error2='0.93', photon_index2='2.87', ts='1.55', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='8.09e-08', energy_flux_error2='6.59e-06', EG='0.72', time_epoch_completed='1675767354.37', return_code='0', job_id='291114', GAL2='1.03', EG2='0.71', return_code2='0', energy_flux_error='6.92e-06', photon_flux_error2='3.41e-08', ts2='1.71', photon_index='2.55' WHERE bin_id='757' AND source_name='4FGL J2339.6+0242' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb  7 02:55:54 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 291114: <4FGL_J2339.6+0242_weekly_bin757> in cluster <slac> Done

Job <4FGL_J2339.6+0242_weekly_bin757> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Feb  7 02:40:19 2023
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb  7 02:40:26 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb  7 02:40:26 2023
Terminated at Tue Feb  7 02:55:55 2023
Results reported at Tue Feb  7 02:55:55 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_weekly_bin757 354.904 2.7102 696816001 697420801 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 :                                   848.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            936 sec.

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

