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


Performing analysis on: 4FGL_J1701.0+6613_daily_bin1751
RA = 255.26, Dec = 66.2255
tmin = 693187201, tmax = 693446401
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='82811', job_status='RUN', time_executed='2022-12-23 01:00:28.486299', time_epoch_executed='1671786028.49' WHERE source_name='4FGL J1701.0+6613' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82811

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82811/ft1_4FGL_J1701.0+6613_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82811/ft2_4FGL_J1701.0+6613_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82811/ft1_4FGL_J1701.0+6613_daily_bin1751.fits outfile=/scratch/kocevski/82811/ft1_filteredMKT_4FGL_J1701.0+6613_daily_bin1751.fits ra=255.26 dec=66.2255 rad=12.0 tmin=693187201.0 tmax=693446401.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.68
user 3.45
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/82811/ft2_4FGL_J1701.0+6613_daily_bin1751.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/82811/ft2_4FGL_J1701.0+6613_daily_bin1751.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/82811/ft1_filteredMKT_4FGL_J1701.0+6613_daily_bin1751.fits evtable="EVENTS" outfile="/scratch/kocevski/82811/ft1_filtered_4FGL_J1701.0+6613_daily_bin1751.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: 765

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/82811/ft1_filtered_4FGL_J1701.0+6613_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/82811/ft2_4FGL_J1701.0+6613_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/82811/ltcube_693187201_693446401_4FGL_J1701.0+6613_daily_bin1751.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/82811/ft2_4FGL_J1701.0+6613_daily_bin1751.fits
.....................!
real 12.04
user 11.66
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82811/ft1_filtered_4FGL_J1701.0+6613_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/82811/ft2_4FGL_J1701.0+6613_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/82811/ltcube_693187201_693446401_4FGL_J1701.0+6613_daily_bin1751.fits outfile=/scratch/kocevski/82811/expmap_693187201_693446401_4FGL_J1701.0+6613_daily_bin1751.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/82811/ltcube_693187201_693446401_4FGL_J1701.0+6613_daily_bin1751.fits
.....................!
real 193.78
user 187.44
sys 6.02

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

Setting source of interest to:
4FGL J1701.0+6613 @ 255.26 66.2255

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/82811/ft1_filtered_4FGL_J1701.0+6613_daily_bin1751.fits scfile=/scratch/kocevski/82811/ft2_4FGL_J1701.0+6613_daily_bin1751.fits outfile=/scratch/kocevski/82811/cmap_693187201_693446401_4FGL_J1701.0+6613_daily_bin1751.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.26 yref=66.2255 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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82811/ft1_filtered_4FGL_J1701.0+6613_daily_bin1751.fits scfile=/scratch/kocevski/82811/ft2_4FGL_J1701.0+6613_daily_bin1751.fits outfile=/scratch/kocevski/82811/cmap_HighResolution_693187201_693446401_4FGL_J1701.0+6613_daily_bin1751.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.26 yref=66.2255 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/82811/ft1_filtered_4FGL_J1701.0+6613_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/82811/ft2_4FGL_J1701.0+6613_daily_bin1751.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/82811/Model_4FGL_J1701.0+6613_daily_bin1751.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/82811/ft1_filtered_4FGL_J1701.0+6613_daily_bin1751.fits.....................!
real 76.81
user 75.48
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/82811/ft1_filtered_4FGL_J1701.0+6613_daily_bin1751.fits', '/scratch/kocevski/82811/ft2_4FGL_J1701.0+6613_daily_bin1751.fits', expMap='/scratch/kocevski/82811/expmap_693187201_693446401_4FGL_J1701.0+6613_daily_bin1751.fits', expCube='/scratch/kocevski/82811/ltcube_693187201_693446401_4FGL_J1701.0+6613_daily_bin1751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/82811/Model_4FGL_J1701.0+6613_daily_bin1751.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1701.0+6613'

4FGL J1701.0+6613
   Spectrum: PowerLaw
365    Prefactor:  2.962e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
366        Index:  2.761e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
367        Scale:  5.078e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/82811/ft1_filtered_4FGL_J1701.0+6613_daily_bin1751.fits
Spacecraft file(s): /scratch/kocevski/82811/ft2_4FGL_J1701.0+6613_daily_bin1751.fits
Exposure map: /scratch/kocevski/82811/expmap_693187201_693446401_4FGL_J1701.0+6613_daily_bin1751.fits
Exposure cube: /scratch/kocevski/82811/ltcube_693187201_693446401_4FGL_J1701.0+6613_daily_bin1751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/82811/Model_4FGL_J1701.0+6613_daily_bin1751.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) = 8122.43755054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27583E-02   1.0000          .0000       .10000E+07
     2 'norm      '    .77716E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .16740E-03   1.0000          .0000       .10000E+07
     4 'norm      '    1.1748       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.0694       1.0000          .0000       .10000E+07
     6 'norm      '    3.9708       1.0000          .0000       .10000E+07
     7 'Prefactor '    .39855       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.8945       1.0000          .0000       .10000E+07
     9 'Prefactor '    .60428E-02   1.0000          .0000       .10000E+07
    10 'norm      '    13.826       1.0000          .0000       .10000E+07
    11 'Prefactor '    25.110       1.0000          .0000       .10000E+07
    12 'norm      '    .87326       1.0000          .0000       .10000E+07
    13 'Prefactor '    10.057       1.0000          .0000       .10000E+07
    14 'Prefactor '    .78704E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .17861E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .10669E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    23.285       1.0000          .0000       .10000E+07
    18 'Prefactor '    .18775E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .74053E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .16502E-02   1.0000          .0000       .10000E+07
    21 'norm      '    4.1064       1.0000          .0000       .10000E+07
    22 'norm      '    14.466       1.0000          .0000       .10000E+07
    23 'Prefactor '    .91795E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    .15079       1.0000          .0000       .10000E+07
    25 'Prefactor '    4.2415       1.0000          .0000       .10000E+07
    26 'Prefactor '    .22984E-04   1.0000          .0000       .10000E+07
    27 'Prefactor '    .22215E-03   1.0000          .0000       .10000E+07
    28 'norm      '    .15704E-04   1.0000          .0000       .10000E+07
    29 'Normalizat'    .99823       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .91336       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8122.369     FROM MIGRAD    STATUS=CONVERGED    183 CALLS     2208 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10983E-05    9.6199        .99655E-06** at limit **
   2  norm          .35860E-07    10.901       -.25517E-06** at limit **
   3  Prefactor     .17651E-04    41.792       -.13856E-05** at limit **
   4  norm          1.1812        5.4635       -.52938E-06   -.60215E-04
   5  Prefactor     3.1704        1.1001       -.12896E-07   -.92070E-03
   6  norm          3.9879        2.0705       -.71374E-07   -.50823E-02
   7  Prefactor     .10877E-05    4.3903        .32025E-06** at limit **
   8  Prefactor     4.8797        8.3625        .19911E-06   -.95084E-03
   9  Prefactor     .22482E-07    11.623        .63748E-06** at limit **
  10  norm          13.845        8.1856        .15624E-06    .53747E-03
  11  Prefactor     25.168        2.3677        .90858E-08    .21136E-01
  12  norm          .87247        .60129        .20798E-06    .44655E-02
  13  Prefactor     10.128        8.3681       -.30890E-07   -.10485E-02
  14  Prefactor      .0000        1.0073       -.58313E-07** at limit **
  15  Prefactor     .35870E-05    11.240        .82824E-06** at limit **
  16  Prefactor     .96855E-05    4.8767        .93833E-06** at limit **
  17  Prefactor     23.078        1.2280       -.47591E-08   -.83931E-02
  18  Prefactor     .11102E-09    6.8057       -.71812E-06** at limit **
  19  Prefactor     .76494E-07    29.334        .20488E-05** at limit **
  20  Prefactor     .12359E-05    12.403        .45444E-06** at limit **
  21  norm          4.1072        2.4540       -.18645E-06   -.25294E-03
  22  norm          14.459        5.3440       -.35772E-07   -.28440E-03
  23  Prefactor     .18974E-06    7.3649        .81183E-06** at limit **
  24  Prefactor     .18319E-08    47.269       -.23463E-06** at limit **
  25  Prefactor     4.2517        5.3870        .38189E-06   -.61928E-04
  26  Prefactor      .0000        4.1946       -.82056E-06** at limit **
  27  Prefactor     .16872E-04    35.119       -.80067E-06** at limit **
  28  norm           .0000        1.7965       -.34175E-06** at limit **
  29  Normalizat    .99802        .19365        .45712E-06    .26542E-04
  30  Prefactor     .91349        .14496       -.47567E-05    .25603E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.09834e-06
  norm       = 3.58602e-08
  Prefactor  = 1.76512e-05
  norm       = 1.18121
  Prefactor  = 3.17037
  norm       = 3.98786
  Prefactor  = 1.08774e-06
  Prefactor  = 4.87972
  Prefactor  = 2.2482e-08
  norm       = 13.8451
  Prefactor  = 25.1676
  norm       = 0.872475
  Prefactor  = 10.1282
  Prefactor  = 0
  Prefactor  = 3.58696e-06
  Prefactor  = 9.68553e-06
  Prefactor  = 23.0775
  Prefactor  = 1.11022e-10
  Prefactor  = 7.64944e-08
  Prefactor  = 1.2359e-06
  norm       = 4.10719
  norm       = 14.4592
  Prefactor  = 1.89737e-07
  Prefactor  = 1.83187e-09
  Prefactor  = 4.2517
  Prefactor  = 0
  Prefactor  = 1.68724e-05
  norm       = 0
  Normalizat = 0.998019
  Prefactor  = 0.913486
 **********
 **   18 **HESSE 
 **********

 FCN=   8122.369     FROM HESSE     STATUS=OK           652 CALLS     2860 TOTAL
                     EDM=   .93E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10983E-05    16.136        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .35860E-07    1.8000        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .17651E-04    77.871        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1812        5.7208        .10566E-02   -1.5686    
   5  Prefactor     3.1704        71.708        .57874E-03   -1.5672    
   6  norm          3.9879        14.650        .50593E-03   -1.5668    
   7  Prefactor     .10877E-05    91.494        .89655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.8797        8.4855        .45441E-03   -1.5664    
   9  Prefactor     .22482E-07    11.735        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.845        8.2114        .26911E-03   -1.5634    
  11  Prefactor     25.168        19.691        .19960E-03   -1.5608    
  12  norm          .87247        .60644        .47627E-03   -1.5689    
  13  Prefactor     10.128        8.3790        .31573E-03   -1.5644    
  14  Prefactor      .0000        1.0047        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .35870E-05    26.598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .96855E-05    4.0287        .55581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.078        19.279        .20728E-03   -1.5612    
  18  Prefactor     .11102E-09    6.8014        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .76494E-07    34.780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .12359E-05    21.532        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.1072        2.4586        .49724E-03   -1.5667    
  22  norm          14.459        5.3602        .26308E-03   -1.5632    
  23  Prefactor     .18974E-06    17.499        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .18319E-08    47.269        .12727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.2517        5.4143        .48902E-03   -1.5667    
  26  Prefactor      .0000        4.1999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .16872E-04    73.327        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm           .0000        1.7729        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .99802        .17118        .46145E-01   -.93097    
  30  Prefactor     .91349        .12600        .45175E-01   -.95671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.32758e-07
Minuit parameter uncertainties:
  1  0.00841987
  2  0.000508117
  3  0.0741498
  4  5.19904
  5  30.1561
  6  14.6503
  7  0.0199522
  8  8.4855
  9  0.00102766
  10  8.21145
  11  19.6909
  12  0.606444
  13  8.37902
  14  4.80164e-06
  15  0.0195354
  16  0.0124933
  17  19.2794
  18  5.41293e-05
  19  0.00326235
  20  0.0103173
  21  2.45857
  22  5.36021
  23  0.00364401
  24  0.000585055
  25  5.41429
  26  8.8762e-06
  27  0.0703489
  28  2.5916e-06
  29  0.171274
  30  0.126037
Done.

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

Extracting fit parameters...

4FGL J1701.0+6613
   Spectrum: PowerLaw
365    Prefactor:  1.013e+01  8.379e+00  0.000e+00  1.000e+06 ( 1.000e-12)
366        Index:  2.761e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
367        Scale:  5.078e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  9.135e-01  1.260e-01  0.000e+00  1.000e+01 ( 1.000e+00)
673        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
674        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
671   Normalization:  9.980e-01  1.713e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.21
Ra Dec: 255.260 66.225
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 5.11e-08 +/- 4.22e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 9.72e-06

TS (Fixed Index): 2.21
Ra Dec: 255.260 66.225
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/82811/likelihoodResults_693187201_693446401_4FGL_J1701.0+6613_daily_bin1751.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) = 8120.26887409
delta logL = 2.10006077255

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8120.23558466
delta logL = 2.13335020817

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8120.236     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      259 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2045        6.4587        .95383E-03    .92684E-02
   2  Index         5.1956        2.7857        .12399        .17104E-03
   3  Normalizat    .88837        .50718E-01    .64292E-01    .10235E-03
   4  Prefactor     .97119        .39483E-01    .45909E-01    .11830E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.20448
  Index      = 5.19556
  Normalizat = 0.888374
  Prefactor  = 0.971189
 **********
 **   18 **HESSE 
 **********

 FCN=   8120.236     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      292 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2045        11.808        .42848E-05   -1.5686    
   2  Index         5.1956        3.8990        .49836E-02    .39123E-01
   3  Normalizat    .88837        .17489        .28438E-03   -.96870    
   4  Prefactor     .97119        .13460        .21329E-03   -.93696    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.42711e-10
Minuit parameter uncertainties:
  1  7.54246
  2  4.47314
  3  0.175
  4  0.134645
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82811': 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) = 8120.23558095
delta logL = 2.13335391155

Extracting fit parameters...

4FGL J1701.0+6613
   Spectrum: PowerLaw
365    Prefactor:  1.204e+00  7.542e+00  0.000e+00  1.000e+06 ( 1.000e-12)
366        Index:  5.196e+00  4.473e+00  0.000e+00  1.000e+01 (-1.000e+00)
367        Scale:  5.078e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  9.712e-01  1.346e-01  0.000e+00  1.000e+01 ( 1.000e+00)
673        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
674        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
671   Normalization:  8.884e-01  1.750e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.03
Ra Dec: 255.260 66.225
Photon Index (Free Index): 5.20 +/- 4.47
Photon Flux (Free Index): 1.34e-07 +/- 6.10e-08
Energy Flux (Free Index): 1.76e-05 +/- 1.03e-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/82811/cmap_HighResolution_693187201_693446401_4FGL_J1701.0+6613_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', photon_flux='5.11e-08', energy_flux2='1.76e-05', photon_flux_error='4.22e-08', dlogl='2.13e+00', energy_flux='1.18e-05', photon_flux2='1.34e-07', job_status='DONE', time_completed='2022-12-23 01:15:15.051379', photon_index_error2='4.47', photon_index2='5.20', ts='2.21', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.03e-05', EG='1.00', time_epoch_completed='1671786915.05', return_code='0', job_id='82811', GAL2='0.97', EG2='0.89', return_code2='102', energy_flux_error='9.72e-06', photon_flux_error2='6.10e-08', ts2='7.03', photon_index='2.76' WHERE bin_id='1751' AND source_name='4FGL J1701.0+6613' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 01:15:15 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0113>
Subject: Job 82811: <4FGL_J1701.0+6613_daily_bin1751> in cluster <slac> Done

Job <4FGL_J1701.0+6613_daily_bin1751> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Dec 23 01:00:16 2022
Job was executed on host(s) <bullet0113>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 01:00:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 01:00:17 2022
Terminated at Fri Dec 23 01:15:15 2022
Results reported at Fri Dec 23 01:15:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1701.0+6613_daily_bin1751 255.26 66.2255 693187201 693446401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1701.0+6613 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   888.17 sec.
    Max Memory :                                 1265 MB
    Average Memory :                             339.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2929 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            899 sec.

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

