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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin1726
RA = 354.904, Dec = 2.7102
tmin = 686707201, tmax = 686966401
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='89621', job_status='RUN', time_executed='2022-10-09 00:41:40.715254', time_epoch_executed='1665301300.72' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='1726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89621

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89621/ft1_4FGL_J2339.6+0242_daily_bin1726.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89621/ft2_4FGL_J2339.6+0242_daily_bin1726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89621/ft1_4FGL_J2339.6+0242_daily_bin1726.fits outfile=/scratch/kocevski/89621/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin1726.fits ra=354.904 dec=2.7102 rad=12.0 tmin=686707201.0 tmax=686966401.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 3.07
user 2.89
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/89621/ft2_4FGL_J2339.6+0242_daily_bin1726.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/89621/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin1726.fits evtable="EVENTS" outfile="/scratch/kocevski/89621/ft1_filtered_4FGL_J2339.6+0242_daily_bin1726.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 104

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89621/ft1_filtered_4FGL_J2339.6+0242_daily_bin1726.fits evtable="EVENTS" scfile=/scratch/kocevski/89621/ft2_4FGL_J2339.6+0242_daily_bin1726.fits sctable="SC_DATA" expcube=/scratch/kocevski/89621/ltcube_686707201_686966401_4FGL_J2339.6+0242_daily_bin1726.fits outfile=/scratch/kocevski/89621/expmap_686707201_686966401_4FGL_J2339.6+0242_daily_bin1726.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/89621/ltcube_686707201_686966401_4FGL_J2339.6+0242_daily_bin1726.fits
.....................!
real 191.58
user 185.72
sys 5.48

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/89621/ft1_filtered_4FGL_J2339.6+0242_daily_bin1726.fits scfile=/scratch/kocevski/89621/ft2_4FGL_J2339.6+0242_daily_bin1726.fits outfile=/scratch/kocevski/89621/cmap_686707201_686966401_4FGL_J2339.6+0242_daily_bin1726.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89621/ft1_filtered_4FGL_J2339.6+0242_daily_bin1726.fits scfile=/scratch/kocevski/89621/ft2_4FGL_J2339.6+0242_daily_bin1726.fits outfile=/scratch/kocevski/89621/cmap_HighResolution_686707201_686966401_4FGL_J2339.6+0242_daily_bin1726.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.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19930       1.0000          .0000       .10000E+07
     2 'Prefactor '    .99625E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .22025       1.0000          .0000       .10000E+07
     4 'norm      '    3.2140       1.0000          .0000       .10000E+07
     5 'norm      '    .16530E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .74420       1.0000          .0000       .10000E+07
     7 'norm      '    .13531E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .67990E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    64.909       1.0000          .0000       .10000E+07
    10 'Prefactor '    57.519       1.0000          .0000       .10000E+07
    11 'norm      '    2.1789       1.0000          .0000       .10000E+07
    12 'norm      '    .13390E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .79712       1.0000          .0000       .10000E+07
    14 'Prefactor '    10.726       1.0000          .0000       .10000E+07
    15 'norm      '    69.880       1.0000          .0000       .10000E+07
    16 'Prefactor '    .11395E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    220.27       1.0000          .0000       .10000E+07
    18 'norm      '    .37739       1.0000          .0000       .10000E+07
    19 'norm      '    .32475E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .19141E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .97650E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .10414E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    .86802       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0628       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=   1273.721     FROM MIGRAD    STATUS=CONVERGED    228 CALLS     2067 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .97333E-06    256.95       -.31092E-05** at limit **
   2  Prefactor     .55511E-10    239.35       -.71561E-06** at limit **
   3  Prefactor      .0000        36.603       -.60738E-06** at limit **
   4  norm          3.2632        25.897        .10638E-05   -.37534E-03
   5  norm          .55511E-10    186.77       -.16062E-06** at limit **
   6  Prefactor     .27341E-04    166.49       -.17246E-04** at limit **
   7  norm           .0000        10.261        .29722E-07** at limit **
   8  Prefactor     .80588E-05    414.15       -.44205E-05** at limit **
   9  Prefactor     64.528        65.891        .91969E-05   -.77156E-01
  10  Prefactor     57.839        32.322        .33294E-06   -.60206E-02
  11  norm          2.1737        2.2256        .12649E-06    .12973E-03
  12  norm           .0000        10.248        .18150E-06** at limit **
  13  Prefactor     .30148E-04    144.20        .15041E-04** at limit **
  14  Prefactor     9.0541        379.82       -.81588E-05    .26634E-02
  15  norm          69.606        17.760        .31099E-06   -.12687E-01
  16  Prefactor      .0000        14.971        .15676E-06** at limit **
  17  Prefactor     222.74        191.18        .29483E-05    .33803E-03
  18  norm           .0000        53.260       -.13642E-06** at limit **
  19  norm          .11102E-09    27.490       -.76393E-06** at limit **
  20  Prefactor      .0000        5.7846       -.81373E-07** at limit **
  21  Prefactor     .45632E-04    137.13       -.61931E-05** at limit **
  22  Prefactor     .50213E-04    147.64        .51150E-05** at limit **
  23  Normalizat    .86744        .68123       -.25706E-04   -.23336E-06
  24  Prefactor     1.0644        .45165       -.25339E-04    .21007E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.73333e-07
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 3.26321
  norm       = 5.55112e-11
  Prefactor  = 2.7341e-05
  norm       = 0
  Prefactor  = 8.05878e-06
  Prefactor  = 64.528
  Prefactor  = 57.8393
  norm       = 2.17373
  norm       = 0
  Prefactor  = 3.01476e-05
  Prefactor  = 9.05412
  norm       = 69.6057
  Prefactor  = 0
  Prefactor  = 222.736
  norm       = 0
  norm       = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 4.56318e-05
  Prefactor  = 5.02133e-05
  Normalizat = 0.867443
  Prefactor  = 1.06442
 **********
 **   18 **HESSE 
 **********

 FCN=   1273.721     FROM HESSE     STATUS=OK           437 CALLS     2504 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .97333E-06    48.590        .11788E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55511E-10    239.33        .13939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        36.489        .11426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.2632        26.118        .56485E-03   -1.5672    
   5  norm          .55511E-10    186.82        .17277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .27341E-04    182.43        .57191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        10.263        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .80588E-05    411.93        .14885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     64.528        89.642        .12413E-03   -1.5547    
  10  Prefactor     57.839        32.396        .13186E-03   -1.5556    
  11  norm          2.1737        2.2466        .69717E-03   -1.5678    
  12  norm           .0000        10.236        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .30148E-04    162.67        .53150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.0541        1355.3        .30568E-03   -1.5648    
  15  norm          69.606        58.473        .11963E-03   -1.5541    
  16  Prefactor      .0000        14.965        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     222.74        225.24        .67386E-04   -1.5409    
  18  norm           .0000        53.251        .92154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .11102E-09    27.516        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        5.7854        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .45632E-04    165.10        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .50213E-04    180.28        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .86744        .61569        .87674E-01   -.97614    
  24  Prefactor     1.0644        .39894        .39210E-01   -.90612    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76637e-06
Minuit parameter uncertainties:
  1  0.0137543
  2  0.000219047
  3  1.2213e-05
  4  18.4638
  5  0.000175952
  6  0.141255
  7  2.74696e-06
  8  0.11524
  9  89.6436
  10  32.3961
  11  2.24663
  12  4.69818e-06
  13  0.140064
  14  221.599
  15  58.4739
  16  1.34054e-05
  17  225.252
  18  2.41279e-05
  19  0.000111774
  20  1.62902e-06
  21  0.1736
  22  0.190295
  23  0.620764
  24  0.400064
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  4.563e-05  1.736e-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.064e+00  4.001e-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.674e-01  6.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/89621/likelihoodResults_686707201_686966401_4FGL_J2339.6+0242_daily_bin1726.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) = 1273.72381007
delta logL = -0.00289311077859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1273.72091718
delta logL = -2.14254669118e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34435E-04   1.0000          .0000       .10000E+07
     2 'Index     '    3.2020       1.0000          .0000       10.000    
     3 'Normalizat'    .86723       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0644       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1273.721     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      237 TOTAL
                     EDM=   .55E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        28.905        .42118E-03** at limit **
   2  Index         .91138        .61911        .13527E-03     .0000    
   3  Normalizat    .86744        1.2041       -.11008E-04    .27767E-04
   4  Prefactor     1.0644        1.1762        .59644E-05    .61653E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.911378
  Normalizat = 0.867442
  Prefactor  = 1.06443
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1273.721     FROM HESSE     STATUS=FAILED         9 CALLS      246 TOTAL
                     EDM=   .55E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        28.905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .26679E-01    .98042        .13527E-03   -.95745    
   3  Normalizat    .86744        1.2041       -.11008E-04   -.97614    
   4  Prefactor     1.0644        1.1762        .59644E-05   -.90612    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.45604e-11
Minuit parameter uncertainties:
  1  3.54986e-05
  2  0.623988
  3  1.24474
  4  1.20679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89621': 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): 101
logL (Free Index) = 1273.72091682
delta logL = 1.3816588762e-07

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  0.000e+00  3.550e-05  0.000e+00  1.000e+06 ( 1.000e-13)
464        Index:  9.114e-01  6.240e-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.064e+00  1.207e+00  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  8.674e-01  1.245e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 354.904 2.710

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/89621/cmap_HighResolution_686707201_686966401_4FGL_J2339.6+0242_daily_bin1726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-02', job_status='DONE', photon_flux_upper_limit='6.13e-07', time_completed='2022-10-09 00:47:51.909325', job_id='89621', GAL2='1.06', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1665301671.91', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.38e-07', ts2='0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1726' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct  9 00:47:51 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 89621: <4FGL_J2339.6+0242_daily_bin1726> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin1726> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Oct  9 00:40:20 2022
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct  9 00:40:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct  9 00:40:22 2022
Terminated at Sun Oct  9 00:47:52 2022
Results reported at Sun Oct  9 00:47:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin1726 354.904 2.7102 686707201 686966401 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 :                                   373.50 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             337.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   450 sec.
    Turnaround time :                            452 sec.

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

