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


Performing analysis on: 4FGL_J1702.2+2642_daily_bin1709
RA = 255.558, Dec = 26.7116
tmin = 682300801, tmax = 682560001
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='175612', job_status='RUN', time_executed='2022-09-16 19:59:41.885758', time_epoch_executed='1663383581.89' WHERE source_name='4FGL J1702.2+2642' and cadence='daily' and bin_id='1709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/175612

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/175612/ft1_4FGL_J1702.2+2642_daily_bin1709.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/175612/ft2_4FGL_J1702.2+2642_daily_bin1709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/175612/ft1_4FGL_J1702.2+2642_daily_bin1709.fits outfile=/scratch/kocevski/175612/ft1_filteredMKT_4FGL_J1702.2+2642_daily_bin1709.fits ra=255.558 dec=26.7116 rad=12.0 tmin=682300801.0 tmax=682560001.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.74
user 3.49
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/175612/ft2_4FGL_J1702.2+2642_daily_bin1709.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/175612/ft2_4FGL_J1702.2+2642_daily_bin1709.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/175612/ft1_filteredMKT_4FGL_J1702.2+2642_daily_bin1709.fits evtable="EVENTS" outfile="/scratch/kocevski/175612/ft1_filtered_4FGL_J1702.2+2642_daily_bin1709.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.50
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 692

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/175612/ft1_filtered_4FGL_J1702.2+2642_daily_bin1709.fits" evtable="EVENTS" scfile=/scratch/kocevski/175612/ft2_4FGL_J1702.2+2642_daily_bin1709.fits sctable="SC_DATA" outfile=/scratch/kocevski/175612/ltcube_682300801_682560001_4FGL_J1702.2+2642_daily_bin1709.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/175612/ft2_4FGL_J1702.2+2642_daily_bin1709.fits
.....................!
real 13.31
user 12.92
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/175612/ft1_filtered_4FGL_J1702.2+2642_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/175612/ft2_4FGL_J1702.2+2642_daily_bin1709.fits sctable="SC_DATA" expcube=/scratch/kocevski/175612/ltcube_682300801_682560001_4FGL_J1702.2+2642_daily_bin1709.fits outfile=/scratch/kocevski/175612/expmap_682300801_682560001_4FGL_J1702.2+2642_daily_bin1709.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/175612/ltcube_682300801_682560001_4FGL_J1702.2+2642_daily_bin1709.fits
.....................!
real 192.84
user 186.78
sys 5.61

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 201 point sources and 0 extended sources

Setting source of interest to:
4FGL J1702.2+2642 @ 255.558 26.7116

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/175612/ft1_filtered_4FGL_J1702.2+2642_daily_bin1709.fits scfile=/scratch/kocevski/175612/ft2_4FGL_J1702.2+2642_daily_bin1709.fits outfile=/scratch/kocevski/175612/cmap_682300801_682560001_4FGL_J1702.2+2642_daily_bin1709.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=255.558 yref=26.7116 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.56
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/175612/ft1_filtered_4FGL_J1702.2+2642_daily_bin1709.fits scfile=/scratch/kocevski/175612/ft2_4FGL_J1702.2+2642_daily_bin1709.fits outfile=/scratch/kocevski/175612/cmap_HighResolution_682300801_682560001_4FGL_J1702.2+2642_daily_bin1709.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=255.558 yref=26.7116 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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/175612/ft1_filtered_4FGL_J1702.2+2642_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/175612/ft2_4FGL_J1702.2+2642_daily_bin1709.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/175612/Model_4FGL_J1702.2+2642_daily_bin1709.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/175612/ft1_filtered_4FGL_J1702.2+2642_daily_bin1709.fits.....................!
real 62.93
user 61.48
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/175612/ft1_filtered_4FGL_J1702.2+2642_daily_bin1709.fits', '/scratch/kocevski/175612/ft2_4FGL_J1702.2+2642_daily_bin1709.fits', expMap='/scratch/kocevski/175612/expmap_682300801_682560001_4FGL_J1702.2+2642_daily_bin1709.fits', expCube='/scratch/kocevski/175612/ltcube_682300801_682560001_4FGL_J1702.2+2642_daily_bin1709.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/175612/Model_4FGL_J1702.2+2642_daily_bin1709.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1702.2+2642'

4FGL J1702.2+2642
   Spectrum: PowerLaw
290    Prefactor:  4.481e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
291        Index:  2.119e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  2.408e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/175612/ft1_filtered_4FGL_J1702.2+2642_daily_bin1709.fits
Spacecraft file(s): /scratch/kocevski/175612/ft2_4FGL_J1702.2+2642_daily_bin1709.fits
Exposure map: /scratch/kocevski/175612/expmap_682300801_682560001_4FGL_J1702.2+2642_daily_bin1709.fits
Exposure cube: /scratch/kocevski/175612/ltcube_682300801_682560001_4FGL_J1702.2+2642_daily_bin1709.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/175612/Model_4FGL_J1702.2+2642_daily_bin1709.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) = 7750.45900149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .70444E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .10555E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.3866       1.0000          .0000       .10000E+07
     4 'Prefactor '    .17155E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    8.4005       1.0000          .0000       .10000E+07
     6 'Prefactor '    .39061E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .52353E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .16132E-05   1.0000          .0000       .10000E+07
     9 'norm      '    .57231E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .70154E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    82.957       1.0000          .0000       .10000E+07
    12 'Prefactor '    .40408       1.0000          .0000       .10000E+07
    13 'Prefactor '    .76478E-03   1.0000          .0000       .10000E+07
    14 'Normalizat'    1.1883       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .90444       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7750.453     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      962 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47906E-07    6.3175       -.14938E-06** at limit **
   2  Prefactor     .42749E-06    8.4147        .33237E-07** at limit **
   3  Prefactor     2.3885        1.1009        .56836E-09   -.36642E-02
   4  Prefactor     .16176E-06    7.2683       -.14079E-06** at limit **
   5  Prefactor     8.3994        9.7058        .58404E-07   -.77494E-01
   6  Prefactor     .50748E-06    9.3518        .96403E-07** at limit **
   7  Prefactor     .11102E-09    4.3575       -.15177E-06** at limit **
   8  norm           .0000        1.6903       -.91215E-07** at limit **
   9  norm          .22204E-09    23.869        .38919E-06** at limit **
  10  Prefactor     .61340E-07    1.3471        .27340E-07** at limit **
  11  Prefactor     82.989        2.2757        .45995E-08   -.89406E-01
  12  Prefactor     .33679E-06    27.545       -.84196E-07** at limit **
  13  Prefactor     .49960E-09    3.5885        .91782E-07** at limit **
  14  Normalizat    1.1885        .24142       -.90452E-06    .17435E-03
  15  Prefactor     .90437        .12227        .27927E-05    .38324E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.79061e-08
  Prefactor  = 4.27491e-07
  Prefactor  = 2.38847
  Prefactor  = 1.61759e-07
  Prefactor  = 8.39938
  Prefactor  = 5.07483e-07
  Prefactor  = 1.11022e-10
  norm       = 0
  norm       = 2.22045e-10
  Prefactor  = 6.13398e-08
  Prefactor  = 82.9885
  Prefactor  = 3.36786e-07
  Prefactor  = 4.996e-10
  Normalizat = 1.1885
  Prefactor  = 0.90437
 **********
 **   18 **HESSE 
 **********

 FCN=   7750.453     FROM HESSE     STATUS=OK           202 CALLS     1164 TOTAL
                     EDM=   .92E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47906E-07    6.4061        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .42749E-06    12.850        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.3885        11.811        .66273E-03   -1.5677    
   4  Prefactor     .16176E-06    7.4894        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.3994        25.750        .34564E-03   -1.5650    
   6  Prefactor     .50748E-06    11.307        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11102E-09    4.3571        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        1.6787        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .22204E-09    23.865        .15263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .61340E-07    136.73        .14813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     82.989        48.033        .10980E-03   -1.5526    
  12  Prefactor     .33679E-06    64.298        .89015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .49960E-09    3.5894        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.1885        .20235        .71264E-01   -.86959    
  15  Prefactor     .90437        .10208        .45062E-01   -.95989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.17641e-07
Minuit parameter uncertainties:
  1  0.00110766
  2  0.00468732
  3  10.6226
  4  0.00220128
  5  25.7505
  6  0.00479098
  7  4.83171e-05
  8  1.65251e-06
  9  0.000146732
  10  0.00579169
  11  48.0333
  12  0.0093067
  13  8.45412e-05
  14  0.202478
  15  0.102104
Done.

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

Extracting fit parameters...

4FGL J1702.2+2642
   Spectrum: PowerLaw
290    Prefactor:  5.075e-07  4.791e-03  0.000e+00  1.000e+06 ( 1.000e-14)
291        Index:  2.119e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  2.408e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
657    Prefactor:  9.044e-01  1.021e-01  0.000e+00  1.000e+01 ( 1.000e+00)
658        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
659        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
656   Normalization:  1.189e+00  2.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 255.558 26.712
Photon Flux Upper Limit: 4.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/175612/likelihoodResults_682300801_682560001_4FGL_J1702.2+2642_daily_bin1709.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) = 7750.49508663
delta logL = -0.042208668584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7750.45287797
delta logL = -1.14541762741e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96978E-07   1.0000          .0000       .10000E+07
     2 'Index     '    .15621       1.0000          .0000       10.000    
     3 'Normalizat'    1.1885       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90435       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7750.453     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      203 TOTAL
                     EDM=   .59E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        17.083        .12728E-06** at limit **
   2  Index         1.7599        5.7324       -.59092E-05     .0000    
   3  Normalizat    1.1885        .24110       -.41378E-05    .26785E-04
   4  Prefactor     .90437        .12198        .11384E-05    .32768E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.75994
  Normalizat = 1.1885
  Prefactor  = 0.904369
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7750.453     FROM HESSE     STATUS=FAILED        11 CALLS      214 TOTAL
                     EDM=   .59E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        17.061        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .31320        1.6387       -.59092E-05   -.70497    
   3  Normalizat    1.1885        1.1104       -.41378E-05   -.86959    
   4  Prefactor     .90437        1.2491        .11384E-05   -.95989    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.86068e-13
Minuit parameter uncertainties:
  1  6.694e-06
  2  1.31752
  3  1.13363
  4  1.29236
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/175612': 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) = 7750.45287794
delta logL = 2.24717950914e-08

Extracting fit parameters...

4FGL J1702.2+2642
   Spectrum: PowerLaw
290    Prefactor:  0.000e+00  6.694e-06  0.000e+00  1.000e+06 ( 1.000e-14)
291        Index:  1.760e+00  1.318e+00  0.000e+00  1.000e+01 (-1.000e+00)
292        Scale:  2.408e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
657    Prefactor:  9.044e-01  1.292e+00  0.000e+00  1.000e+01 ( 1.000e+00)
658        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
659        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
656   Normalization:  1.189e+00  1.134e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 255.558 26.712

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/175612/cmap_HighResolution_682300801_682560001_4FGL_J1702.2+2642_daily_bin1709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.49e-03', job_status='DONE', photon_flux_upper_limit='4.60e-08', time_completed='2022-09-16 20:09:08.045109', job_id='175612', GAL2='0.90', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1663384148.05', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.25e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1709' AND source_name='4FGL J1702.2+2642' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 20:09:08 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 175612: <4FGL_J1702.2+2642_daily_bin1709> in cluster <slac> Done

Job <4FGL_J1702.2+2642_daily_bin1709> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 19:55:21 2022
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 19:57:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 19:57:51 2022
Terminated at Fri Sep 16 20:09:08 2022
Results reported at Fri Sep 16 20:09:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1702.2+2642_daily_bin1709 255.558 26.7116 682300801 682560001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1702.2+2642 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   568.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   677 sec.
    Turnaround time :                            827 sec.

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

