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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin1738
RA = 354.904, Dec = 2.7102
tmin = 689817601, tmax = 690076801
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='412079', job_status='RUN', time_executed='2022-11-14 00:54:37.856140', time_epoch_executed='1668416077.86' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='1738'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412079

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412079/ft1_4FGL_J2339.6+0242_daily_bin1738.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412079/ft2_4FGL_J2339.6+0242_daily_bin1738.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412079/ft1_4FGL_J2339.6+0242_daily_bin1738.fits outfile=/scratch/kocevski/412079/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin1738.fits ra=354.904 dec=2.7102 rad=12.0 tmin=689817601.0 tmax=690076801.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 4.13
user 3.87
sys 0.23

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

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

Number of photons that the gtmktime cut: 585

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412079/ft1_filtered_4FGL_J2339.6+0242_daily_bin1738.fits evtable="EVENTS" scfile=/scratch/kocevski/412079/ft2_4FGL_J2339.6+0242_daily_bin1738.fits sctable="SC_DATA" expcube=/scratch/kocevski/412079/ltcube_689817601_690076801_4FGL_J2339.6+0242_daily_bin1738.fits outfile=/scratch/kocevski/412079/expmap_689817601_690076801_4FGL_J2339.6+0242_daily_bin1738.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/412079/ltcube_689817601_690076801_4FGL_J2339.6+0242_daily_bin1738.fits
.....................!
real 193.77
user 187.41
sys 5.20

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/412079/ft1_filtered_4FGL_J2339.6+0242_daily_bin1738.fits scfile=/scratch/kocevski/412079/ft2_4FGL_J2339.6+0242_daily_bin1738.fits outfile=/scratch/kocevski/412079/cmap_689817601_690076801_4FGL_J2339.6+0242_daily_bin1738.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.39
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412079/ft1_filtered_4FGL_J2339.6+0242_daily_bin1738.fits scfile=/scratch/kocevski/412079/ft2_4FGL_J2339.6+0242_daily_bin1738.fits outfile=/scratch/kocevski/412079/cmap_HighResolution_689817601_690076801_4FGL_J2339.6+0242_daily_bin1738.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.59
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43695       1.0000          .0000       .10000E+07
     2 'Prefactor '    .30349E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    5.7190       1.0000          .0000       .10000E+07
     4 'norm      '    .66614       1.0000          .0000       .10000E+07
     5 'norm      '    1.4067       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.4631       1.0000          .0000       .10000E+07
     7 'norm      '    .85631E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    36.405       1.0000          .0000       .10000E+07
     9 'Prefactor '    2.8464       1.0000          .0000       .10000E+07
    10 'Prefactor '    .21538       1.0000          .0000       .10000E+07
    11 'norm      '    .63073       1.0000          .0000       .10000E+07
    12 'norm      '    .49322E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    10.015       1.0000          .0000       .10000E+07
    14 'Prefactor '    43.286       1.0000          .0000       .10000E+07
    15 'norm      '    14.518       1.0000          .0000       .10000E+07
    16 'Prefactor '    .66185E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .10492E-01   1.0000          .0000       .10000E+07
    18 'norm      '    .13920E-04   1.0000          .0000       .10000E+07
    19 'norm      '    .65136E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    6.5193       1.0000          .0000       .10000E+07
    21 'Prefactor '    58.594       1.0000          .0000       .10000E+07
    22 'Prefactor '    18.883       1.0000          .0000       .10000E+07
    23 'Normalizat'    .67918       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99139       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=   6583.945     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     2045 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46087        1.2383        .39150E-07    .14375E-01
   2  Prefactor     .72164E-09    23.384        .22035E-06** at limit **
   3  Prefactor     5.7125        5.1683       -.58254E-08   -.63003E-03
   4  norm          .66938        1.5684       -.35683E-07   -.52789E-03
   5  norm          1.3938        3.4846       -.33843E-07   -.41403E-03
   6  Prefactor     4.5028        1.4239        .28363E-08    .78940E-02
   7  norm          .10547E-08    6.0097       -.29260E-06** at limit **
   8  Prefactor     36.459        1.5093        .80114E-08   -.70079E-01
   9  Prefactor     2.7106        9.4188       -.13674E-06   -.45593E-02
  10  Prefactor     .23715        11.821        .20962E-06** at limit **
  11  norm          .63103        .62965        .51110E-07    .38135E-02
  12  norm           .0000        1.8192       -.53786E-07** at limit **
  13  Prefactor     9.9961        5.7135       -.11086E-07    .48694E-01
  14  Prefactor     44.426        14.830        .41710E-07   -.10171    
  15  norm          14.540        7.6907       -.36229E-07   -.36348E-01
  16  Prefactor     .55511E-09    5.3011       -.14593E-06** at limit **
  17  Prefactor     .60058E-06    4.5775       -.14180E-06** at limit **
  18  norm          .12174E-06    9.4147       -.27776E-06** at limit **
  19  norm          .14438E-06    6.9985       -.11564E-06** at limit **
  20  Prefactor     6.5179        4.1834       -.10189E-06   -.19784E-02
  21  Prefactor     61.521        36.766        .76390E-07    .47307E-01
  22  Prefactor     18.788        4.0801       -.19547E-07    .65552E-02
  23  Normalizat    .67611        .20402       -.59565E-05   -.38106E-04
  24  Prefactor     .99196        .14157        .35896E-05    .35493E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.460872
  Prefactor  = 7.21645e-10
  Prefactor  = 5.71248
  norm       = 0.669378
  norm       = 1.39384
  Prefactor  = 4.50278
  norm       = 1.05471e-09
  Prefactor  = 36.459
  Prefactor  = 2.71062
  Prefactor  = 0.237154
  norm       = 0.631028
  norm       = 0
  Prefactor  = 9.99613
  Prefactor  = 44.426
  norm       = 14.5396
  Prefactor  = 5.55112e-10
  Prefactor  = 6.00575e-07
  norm       = 1.21736e-07
  norm       = 1.44385e-07
  Prefactor  = 6.51793
  Prefactor  = 61.521
  Prefactor  = 18.7879
  Normalizat = 0.676106
  Prefactor  = 0.99196
 **********
 **   18 **HESSE 
 **********

 FCN=   6583.945     FROM HESSE     STATUS=OK           457 CALLS     2502 TOTAL
                     EDM=   .92E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46087        8.2461        .85325E-02   -1.5694    
   2  Prefactor     .72164E-09    23.370        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.7125        5.1850        .41978E-03   -1.5660    
   4  norm          .66938        1.5832        .63500E-03   -1.5692    
   5  norm          1.3938        3.6287        .91363E-03   -1.5684    
   6  Prefactor     4.5028        11.568        .47639E-03   -1.5666    
   7  norm          .10547E-08    6.0071        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     36.459        29.799        .16575E-03   -1.5587    
   9  Prefactor     2.7106        9.4933        .60240E-03   -1.5675    
  10  Prefactor     .23715        3.5781        .50596E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .63103        .64305        .66519E-03   -1.5692    
  12  norm           .0000        1.8181        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.9961        14.960        .31638E-03   -1.5645    
  14  Prefactor     44.426        46.727        .15201E-03   -1.5575    
  15  norm          14.540        11.906        .26261E-03   -1.5632    
  16  Prefactor     .55511E-09    5.2863        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .60058E-06    11.135        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .12174E-06    9.9370        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .14438E-06    11.592        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.5179        4.1902        .39282E-03   -1.5657    
  21  Prefactor     61.521        40.305        .13065E-03   -1.5551    
  22  Prefactor     18.788        24.034        .23021E-03   -1.5621    
  23  Normalizat    .67611        .18417        .71078E-01   -1.0484    
  24  Prefactor     .99196        .12353        .46159E-01   -.92998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.20896e-07
Minuit parameter uncertainties:
  1  3.89892
  2  0.00025765
  3  5.18503
  4  1.58321
  5  3.62875
  6  11.5681
  7  0.000160261
  8  29.7991
  9  9.4934
  10  1.84234
  11  0.643049
  12  2.18712e-06
  13  14.9598
  14  46.7271
  15  11.9056
  16  0.000108077
  17  0.00517196
  18  0.00219948
  19  0.00258755
  20  4.19025
  21  40.3056
  22  24.0343
  23  0.184342
  24  0.123567
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  6.152e+01  4.031e+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.920e-01  1.236e-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:  6.761e-01  1.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.37
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 7.45e-08 +/- 4.87e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 1.34e-05

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

Saving results to:
/scratch/kocevski/412079/likelihoodResults_689817601_690076801_4FGL_J2339.6+0242_daily_bin1738.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): 102
logL (Free Index) = 6582.82544861
delta logL = 1.11939759295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6582.30495334
delta logL = 1.63989286326

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39912E-01   1.0000          .0000       .10000E+07
     2 'Index     '    7.0927       1.0000          .0000       10.000    
     3 'Normalizat'    .56528       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0634       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=   6582.305     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      325 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39689E-01    .27487        .15968E-03** at limit **
   2  Index         7.0959        2.4399        .97168E-01   -.25411E-04
   3  Normalizat    .56522        .59825E-01    .77114E-01   -.16332E-03
   4  Prefactor     1.0634        .43013E-01    .39181E-01   -.35593E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0396893
  Index      = 7.09589
  Normalizat = 0.565221
  Prefactor  = 1.06342
 **********
 **   18 **HESSE 
 **********

 FCN=   6582.305     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      356 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39689E-01    .46461        .75121E-06   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.0959        3.2299        .40625E-02    .43254    
   3  Normalizat    .56522        .18091        .34146E-03   -1.0948    
   4  Prefactor     1.0634        .12888        .18439E-03   -.90644    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.64093e-10
Minuit parameter uncertainties:
  1  0.271587
  2  3.59367
  3  0.181095
  4  0.128913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412079': 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): 102
logL (Free Index) = 6582.30495203
delta logL = 1.63989417201

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.969e-02  2.716e-01  0.000e+00  1.000e+06 ( 1.000e-13)
464        Index:  7.096e+00  3.594e+00  0.000e+00  1.000e+01 (-1.000e+00)
465        Scale:  7.790e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.063e+00  1.289e-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:  5.652e-01  1.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.26
Ra Dec: 354.904 2.710
Photon Index (Free Index): 7.10 +/- 3.59
Photon Flux (Free Index): 1.40e-07 +/- 6.68e-08
Energy Flux (Free Index): 1.67e-05 +/- 8.36e-06

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/412079/cmap_HighResolution_689817601_690076801_4FGL_J2339.6+0242_daily_bin1738.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-02', comment='SUCCESS', photon_flux='7.45e-08', energy_flux2='1.67e-05', photon_flux_error='4.87e-08', dlogl='1.64e+00', energy_flux='2.05e-05', photon_flux2='1.40e-07', job_status='DONE', time_completed='2022-11-14 01:05:03.447470', photon_index_error2='3.59', photon_index2='7.10', ts='3.37', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.69e-07', energy_flux_error2='8.36e-06', EG='0.68', time_epoch_completed='1668416703.45', return_code='0', job_id='412079', GAL2='1.06', EG2='0.57', return_code2='102', energy_flux_error='1.34e-05', photon_flux_error2='6.68e-08', ts2='7.26', photon_index='2.55' WHERE bin_id='1738' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Nov 14 01:05:03 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 412079: <4FGL_J2339.6+0242_daily_bin1738> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin1738> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Nov 14 00:50:24 2022
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Nov 14 00:51:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Nov 14 00:51:28 2022
Terminated at Mon Nov 14 01:05:04 2022
Results reported at Mon Nov 14 01:05:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin1738 354.904 2.7102 689817601 690076801 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 :                                   626.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            880 sec.

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

