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


Performing analysis on: 4FGL_J2339.6+0242_weekly_bin758
RA = 354.904, Dec = 2.7102
tmin = 697420801, tmax = 698025601
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='117456', job_status='RUN', time_executed='2023-02-14 03:11:02.374813', time_epoch_executed='1676373062.37' WHERE source_name='4FGL J2339.6+0242' and cadence='weekly' and bin_id='758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/117456

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/117456/ft1_4FGL_J2339.6+0242_weekly_bin758.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/117456/ft2_4FGL_J2339.6+0242_weekly_bin758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/117456/ft1_4FGL_J2339.6+0242_weekly_bin758.fits outfile=/scratch/kocevski/117456/ft1_filteredMKT_4FGL_J2339.6+0242_weekly_bin758.fits ra=354.904 dec=2.7102 rad=12.0 tmin=697420801.0 tmax=698025601.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.99
user 7.66
sys 0.30

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/117456/ft1_filtered_4FGL_J2339.6+0242_weekly_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/117456/ft2_4FGL_J2339.6+0242_weekly_bin758.fits sctable="SC_DATA" expcube=/scratch/kocevski/117456/ltcube_697420801_698025601_4FGL_J2339.6+0242_weekly_bin758.fits outfile=/scratch/kocevski/117456/expmap_697420801_698025601_4FGL_J2339.6+0242_weekly_bin758.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/117456/ltcube_697420801_698025601_4FGL_J2339.6+0242_weekly_bin758.fits
.....................!
real 190.96
user 185.25
sys 5.37

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/117456/ft1_filtered_4FGL_J2339.6+0242_weekly_bin758.fits scfile=/scratch/kocevski/117456/ft2_4FGL_J2339.6+0242_weekly_bin758.fits outfile=/scratch/kocevski/117456/cmap_697420801_698025601_4FGL_J2339.6+0242_weekly_bin758.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.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/117456/ft1_filtered_4FGL_J2339.6+0242_weekly_bin758.fits scfile=/scratch/kocevski/117456/ft2_4FGL_J2339.6+0242_weekly_bin758.fits outfile=/scratch/kocevski/117456/cmap_HighResolution_697420801_698025601_4FGL_J2339.6+0242_weekly_bin758.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.40
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1581       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.7729       1.0000          .0000       .10000E+07
     3 'Prefactor '    9.1718       1.0000          .0000       .10000E+07
     4 'norm      '    .28866E-08   1.0000          .0000       .10000E+07
     5 'norm      '    .22288E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .20790E-04   1.0000          .0000       .10000E+07
     7 'norm      '    .10954E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    10.202       1.0000          .0000       .10000E+07
     9 'Prefactor '    9.7857       1.0000          .0000       .10000E+07
    10 'Prefactor '    .10283E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .84690       1.0000          .0000       .10000E+07
    12 'norm      '    .50988E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .32477E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    45.308       1.0000          .0000       .10000E+07
    15 'norm      '    .51679E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    1.3671       1.0000          .0000       .10000E+07
    17 'Prefactor '    .37881E-03   1.0000          .0000       .10000E+07
    18 'norm      '    .29527E-02   1.0000          .0000       .10000E+07
    19 'norm      '    7.9483       1.0000          .0000       .10000E+07
    20 'Prefactor '    .26756E-07   1.0000          .0000       .10000E+07
    21 'Prefactor '    11.407       1.0000          .0000       .10000E+07
    22 'Prefactor '    7.7622       1.0000          .0000       .10000E+07
    23 'Normalizat'    .81596       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97306       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=   13567.15     FROM MIGRAD    STATUS=CONVERGED    153 CALLS     2016 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1649        4.7872        .23595E-07    .15236E-02
   2  Prefactor     3.7520        5.9626       -.24647E-07   -.87532E-03
   3  Prefactor     9.1782        4.6794       -.88847E-08   -.92463E-03
   4  norm           .0000        .49631       -.25593E-08** at limit **
   5  norm           .0000        1.1178        .25649E-08** at limit **
   6  Prefactor     .36582E-07    11.354       -.13954E-06** at limit **
   7  norm          .74940E-08    16.127       -.27573E-06** at limit **
   8  Prefactor     10.072        5.8047        .25533E-08   -.96776E-01
   9  Prefactor     9.8157        1.9279        .42691E-08    .32150E-02
  10  Prefactor     .80491E-08    3.4257       -.71765E-07** at limit **
  11  norm          .84686        .51111        .93095E-09    .64405E-02
  12  norm           .0000        1.3852        .28465E-07** at limit **
  13  Prefactor     .48295E-08    3.6220       -.62377E-07** at limit **
  14  Prefactor     45.215        2.2084       -.30723E-08    .56518E-01
  15  norm           .0000        2.4759       -.18800E-07** at limit **
  16  Prefactor     1.3659        3.1520       -.95090E-07   -.32767E-02
  17  Prefactor     .10175E-06    71.920       -.17862E-06** at limit **
  18  norm          .81601E-08    8.1900        .18654E-06** at limit **
  19  norm          7.9293        11.046       -.41558E-07    .15844E-01
  20  Prefactor      .0000        .99778        .20981E-07** at limit **
  21  Prefactor     11.365        1.5842       -.11059E-07   -.33792E-02
  22  Prefactor     7.7638        4.2408        .26864E-07   -.73515E-01
  23  Normalizat    .81607        .14430        .67844E-06    .69878E-03
  24  Prefactor     .97313        .10129        .64640E-06    .11039E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.16489
  Prefactor  = 3.75196
  Prefactor  = 9.17822
  norm       = 0
  norm       = 0
  Prefactor  = 3.65818e-08
  norm       = 7.49401e-09
  Prefactor  = 10.0719
  Prefactor  = 9.8157
  Prefactor  = 8.04912e-09
  norm       = 0.846859
  norm       = 0
  Prefactor  = 4.82947e-09
  Prefactor  = 45.2153
  norm       = 0
  Prefactor  = 1.36587
  Prefactor  = 1.01752e-07
  norm       = 8.16014e-09
  norm       = 7.9293
  Prefactor  = 0
  Prefactor  = 11.3648
  Prefactor  = 7.76385
  Normalizat = 0.816068
  Prefactor  = 0.973126
 **********
 **   18 **HESSE 
 **********

 FCN=   13567.15     FROM HESSE     STATUS=OK           445 CALLS     2461 TOTAL
                     EDM=   .89E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1649        4.7970        .49404E-03   -1.5667    
   2  Prefactor     3.7520        6.0087        .51949E-03   -1.5669    
   3  Prefactor     9.1782        4.6919        .33069E-03   -1.5647    
   4  norm           .0000        .49459        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        1.1147        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .36582E-07    11.318        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .74940E-08    16.061        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.072        26.903        .31346E-03   -1.5644    
   9  Prefactor     9.8157        13.199        .32009E-03   -1.5645    
  10  Prefactor     .80491E-08    3.5035        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .84686        .51305        .49502E-03   -1.5690    
  12  norm           .0000        1.3799        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .48295E-08    3.6912        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     45.215        38.414        .14858E-03   -1.5573    
  15  norm           .0000        2.4733        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.3659        3.1863        .93265E-03   -1.5685    
  17  Prefactor     .10175E-06    71.429        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .81601E-08    8.1971        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.9293        12.426        .35541E-03   -1.5652    
  20  Prefactor      .0000        .99393        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.365        18.759        .29637E-03   -1.5641    
  22  Prefactor     7.7638        9.2206        .35968E-03   -1.5652    
  23  Normalizat    .81607        .12485        .66158E-01   -.99475    
  24  Prefactor     .97313        .85935E-01    .45930E-01   -.93631    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.92825e-07
Minuit parameter uncertainties:
  1  4.79702
  2  6.00873
  3  4.69187
  4  1.12571e-06
  5  3.60271e-07
  6  0.0012865
  7  0.000693775
  8  26.9034
  9  13.1994
  10  0.000335383
  11  0.513048
  12  1.06202e-05
  13  0.000267613
  14  38.4137
  15  1.26398e-05
  16  3.18628
  17  0.00539147
  18  0.000517955
  19  12.4263
  20  6.40767e-06
  21  18.7594
  22  9.22062
  23  0.124896
  24  0.0859469
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.136e+01  1.876e+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.731e-01  8.595e-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:  8.161e-01  1.249e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/117456/likelihoodResults_697420801_698025601_4FGL_J2339.6+0242_weekly_bin758.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) = 13566.8055091
delta logL = 0.347019036744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13566.7907601
delta logL = 0.361768056398

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.652       1.0000          .0000       .10000E+07
     2 'Index     '    1.7423       1.0000          .0000       10.000    
     3 'Normalizat'    .82706       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96734       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=   13566.79     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      226 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.604        19.212        .26140E-03    .75674E-04
   2  Index         1.7405        .52954        .27521       -.12119E-03
   3  Normalizat    .82704        .12063        .65754E-01    .42719E-04
   4  Prefactor     .96746        .85392E-01    .45858E-01    .60113E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.6037
  Index      = 1.74046
  Normalizat = 0.827044
  Prefactor  = 0.967464
 **********
 **   18 **HESSE 
 **********

 FCN=   13566.79     FROM HESSE     STATUS=OK            31 CALLS      257 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.604        19.694        .10456E-04   -1.5632    
   2  Index         1.7405        .72679        .14958E-01   -.71010    
   3  Normalizat    .82704        .14238        .29089E-03   -.99073    
   4  Prefactor     .96746        .10100        .19079E-03   -.93822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41757e-11
Minuit parameter uncertainties:
  1  19.6945
  2  0.731314
  3  0.142448
  4  0.101021
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/117456': 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) = 13566.7907543
delta logL = 0.361773885683

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.460e+01  1.969e+01  0.000e+00  1.000e+06 ( 1.000e-13)
464        Index:  1.740e+00  7.313e-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.675e-01  1.010e-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:  8.270e-01  1.424e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.21
Ra Dec: 354.904 2.710
Photon Index (Free Index): 1.74 +/- 0.73
Photon Flux (Free Index): 6.98e-09 +/- 1.15e-08
Energy Flux (Free Index): 1.00e-05 +/- 1.74e-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/117456/cmap_HighResolution_697420801_698025601_4FGL_J2339.6+0242_weekly_bin758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-03', comment='SUCCESS', energy_flux2='1.00e-05', dlogl='3.62e-01', photon_flux2='6.98e-09', job_status='DONE', time_completed='2023-02-14 03:26:44.823610', photon_index_error2='0.73', photon_index2='1.74', ts='0.49', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='6.81e-08', energy_flux_error2='1.74e-05', EG='0.82', time_epoch_completed='1676374004.82', return_code='0', job_id='117456', GAL2='0.97', EG2='0.83', return_code2='0', photon_flux_error2='1.15e-08', ts2='1.21', photon_index='2.55' WHERE bin_id='758' AND source_name='4FGL J2339.6+0242' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 14 03:26:44 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 117456: <4FGL_J2339.6+0242_weekly_bin758> in cluster <slac> Done

Job <4FGL_J2339.6+0242_weekly_bin758> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Feb 14 03:10:20 2023
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 14 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 Feb 14 03:10:22 2023
Terminated at Tue Feb 14 03:26:45 2023
Results reported at Tue Feb 14 03:26:45 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_weekly_bin758 354.904 2.7102 697420801 698025601 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 :                                   941.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

