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 188 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J0028.4+2001_daily_bin1684
RA = 7.1222, Dec = 20.0311
tmin = 675820801, tmax = 676080001
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='180860', job_status='RUN', time_executed='2022-06-05 00:08:31.620087', time_epoch_executed='1654412911.62' WHERE source_name='4FGL J0028.4+2001' and cadence='daily' and bin_id='1684'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/180860

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/180860/ft1_4FGL_J0028.4+2001_daily_bin1684.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/180860/ft2_4FGL_J0028.4+2001_daily_bin1684.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/180860/ft1_4FGL_J0028.4+2001_daily_bin1684.fits outfile=/scratch/kocevski/180860/ft1_filteredMKT_4FGL_J0028.4+2001_daily_bin1684.fits ra=7.1222 dec=20.0311 rad=12.0 tmin=675820801.0 tmax=676080001.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.50
user 4.19
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/180860/ft2_4FGL_J0028.4+2001_daily_bin1684.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/180860/ft2_4FGL_J0028.4+2001_daily_bin1684.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/180860/ft1_filteredMKT_4FGL_J0028.4+2001_daily_bin1684.fits evtable="EVENTS" outfile="/scratch/kocevski/180860/ft1_filtered_4FGL_J0028.4+2001_daily_bin1684.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.17

Number of photons that the gtmktime cut: 640

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/180860/ft1_filtered_4FGL_J0028.4+2001_daily_bin1684.fits" evtable="EVENTS" scfile=/scratch/kocevski/180860/ft2_4FGL_J0028.4+2001_daily_bin1684.fits sctable="SC_DATA" outfile=/scratch/kocevski/180860/ltcube_675820801_676080001_4FGL_J0028.4+2001_daily_bin1684.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/180860/ft2_4FGL_J0028.4+2001_daily_bin1684.fits
.....................!
real 15.29
user 14.87
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/180860/ft1_filtered_4FGL_J0028.4+2001_daily_bin1684.fits evtable="EVENTS" scfile=/scratch/kocevski/180860/ft2_4FGL_J0028.4+2001_daily_bin1684.fits sctable="SC_DATA" expcube=/scratch/kocevski/180860/ltcube_675820801_676080001_4FGL_J0028.4+2001_daily_bin1684.fits outfile=/scratch/kocevski/180860/expmap_675820801_676080001_4FGL_J0028.4+2001_daily_bin1684.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/180860/ltcube_675820801_676080001_4FGL_J0028.4+2001_daily_bin1684.fits
.....................!
real 192.15
user 186.10
sys 5.57

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

Setting source of interest to:
4FGL J0028.4+2001 @ 7.1222 20.0311

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/180860/ft1_filtered_4FGL_J0028.4+2001_daily_bin1684.fits scfile=/scratch/kocevski/180860/ft2_4FGL_J0028.4+2001_daily_bin1684.fits outfile=/scratch/kocevski/180860/cmap_675820801_676080001_4FGL_J0028.4+2001_daily_bin1684.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=7.1222 yref=20.0311 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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/180860/ft1_filtered_4FGL_J0028.4+2001_daily_bin1684.fits scfile=/scratch/kocevski/180860/ft2_4FGL_J0028.4+2001_daily_bin1684.fits outfile=/scratch/kocevski/180860/cmap_HighResolution_675820801_676080001_4FGL_J0028.4+2001_daily_bin1684.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=7.1222 yref=20.0311 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.57
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/180860/ft1_filtered_4FGL_J0028.4+2001_daily_bin1684.fits evtable="EVENTS" scfile=/scratch/kocevski/180860/ft2_4FGL_J0028.4+2001_daily_bin1684.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/180860/Model_4FGL_J0028.4+2001_daily_bin1684.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/180860/ft1_filtered_4FGL_J0028.4+2001_daily_bin1684.fits....................!
real 75.90
user 73.68
sys 1.47

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/180860/ft1_filtered_4FGL_J0028.4+2001_daily_bin1684.fits', '/scratch/kocevski/180860/ft2_4FGL_J0028.4+2001_daily_bin1684.fits', expMap='/scratch/kocevski/180860/expmap_675820801_676080001_4FGL_J0028.4+2001_daily_bin1684.fits', expCube='/scratch/kocevski/180860/ltcube_675820801_676080001_4FGL_J0028.4+2001_daily_bin1684.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/180860/Model_4FGL_J0028.4+2001_daily_bin1684.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0028.4+2001'

4FGL J0028.4+2001
   Spectrum: PowerLaw
112    Prefactor:  1.480e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
113        Index:  2.414e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
114        Scale:  7.971e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/180860/ft1_filtered_4FGL_J0028.4+2001_daily_bin1684.fits
Spacecraft file(s): /scratch/kocevski/180860/ft2_4FGL_J0028.4+2001_daily_bin1684.fits
Exposure map: /scratch/kocevski/180860/expmap_675820801_676080001_4FGL_J0028.4+2001_daily_bin1684.fits
Exposure cube: /scratch/kocevski/180860/ltcube_675820801_676080001_4FGL_J0028.4+2001_daily_bin1684.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/180860/Model_4FGL_J0028.4+2001_daily_bin1684.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) = 7212.81280789

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.898       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .41255       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9469       1.0000         .10000E-03   10000.    
     9 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .80180       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.176       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .57269E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .67125       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.0160       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0829       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .91754       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7212.812     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     2122 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1200        .21038E-02** at limit **
   2  Prefactor     .10000E-03    10.348        .18142E-02** at limit **
   3  Prefactor     .10000E-03    2.5788        .13310E-02** at limit **
   4  Prefactor     30.888        36.350        .72081E-04   -.12775E-04
   5  Prefactor     .41683        7.6679        .21326E-02   -.26310E-03
   6  norm          .10000E-03    3.3287        .15098E-02** at limit **
   7  Prefactor     .10000E-03    5.7764        .18142E-02** at limit **
   8  Prefactor     4.9450        5.5081        .18082E-03   -.27035E-04
   9  norm          .10000E-03    3.8914        .16319E-02** at limit **
  10  Prefactor     .80379        3.1163        .29088E-03   -.38458E-04
  11  Prefactor     11.182        12.310        .11984E-03    .42501E-04
  12  Prefactor     .10000E-03    17.657        .18142E-02** at limit **
  13  Prefactor     .10001E-03    49.845        .13839    ** at limit **
  14  norm          .67219        .77237        .69329E-03    .28567E-03
  15  Prefactor     4.0170        6.3010        .10062E-02   -.20215E-03
  16  Normalizat    1.0829        .21466        .27047E-03   -.20814E-03
  17  Prefactor     .91748        .14261        .19746E-03   -.15312E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.8885
  Prefactor  = 0.416834
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.94499
  norm       = 0.0001
  Prefactor  = 0.803786
  Prefactor  = 11.1824
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 0.672189
  Prefactor  = 4.01696
  Normalizat = 1.08287
  Prefactor  = 0.917475
 **********
 **   18 **HESSE 
 **********

 FCN=   7212.812     FROM HESSE     STATUS=OK           221 CALLS     2343 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1298        .42076E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.353        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.5788        .26621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     30.888        36.329        .28833E-05   -1.4596    
   5  Prefactor     .41683        7.6136        .85303E-04   -1.5579    
   6  norm          .10000E-03    3.3291        .30197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.7764        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.9450        5.5079        .72330E-05   -1.5263    
   9  norm          .10000E-03    3.8920        .32638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .80379        3.1160        .11635E-04   -1.5529    
  11  Prefactor     11.182        12.309        .47935E-05   -1.5039    
  12  Prefactor     .10000E-03    17.658        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    50.868        .13644       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .67219        .77135        .27732E-04   -1.5544    
  15  Prefactor     4.0170        6.2986        .40247E-04   -1.5307    
  16  Normalizat    1.0829        .21437        .10819E-04   -.90304    
  17  Prefactor     .91748        .14272        .39492E-04   -.95533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.93862e-10
Minuit parameter uncertainties:
  1  9.74673e-05
  2  2.06573e-05
  3  4.18578e-07
  4  36.3547
  5  3.56302
  6  6.99446e-06
  7  7.89928e-06
  8  5.50849
  9  2.98757e-05
  10  3.11665
  11  12.3121
  12  1.54916e-05
  13  0.00120198
  14  0.771362
  15  6.29962
  16  0.214541
  17  0.142783
Done.

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

Extracting fit parameters...

4FGL J0028.4+2001
   Spectrum: PowerLaw
112    Prefactor:  4.168e-01  3.563e+00  1.000e-04  1.000e+04 ( 1.000e-12)
113        Index:  2.414e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
114        Scale:  7.971e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
490    Prefactor:  9.175e-01  1.428e-01  0.000e+00  1.000e+01 ( 1.000e+00)
491        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
492        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
489   Normalization:  1.083e+00  2.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 7.122 20.031
Photon Flux Upper Limit: 9.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/180860/likelihoodResults_675820801_676080001_4FGL_J0028.4+2001_daily_bin1684.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) = 7212.68161804
delta logL = 0.130197422484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7212.66764057
delta logL = 0.14417488722

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60934       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3451       1.0000          .0000       10.000    
     3 'Normalizat'    1.0559       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92727       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7212.668     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      216 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61041        21.847        .11709E-01    .17195E-02
   2  Index         3.3440        3.5083        .21420        .85850E-04
   3  Normalizat    1.0560        .31156E-01    .61834E-01    .13618E-04
   4  Prefactor     .92721        .21292E-01    .45352E-01    .85040E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.610413
  Index      = 3.34401
  Normalizat = 1.05602
  Prefactor  = 0.927211
 **********
 **   18 **HESSE 
 **********

 FCN=   7212.668     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61041        6.1839        .11806E-03   -1.5552    
   2  Index         3.3440        3.1223        .10586E-01   -.33757    
   3  Normalizat    1.0560        .21576        .27349E-03   -.91177    
   4  Prefactor     .92721        .14408        .19652E-03   -.95197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.07863e-08
Minuit parameter uncertainties:
  1  3.88594
  2  3.41209
  3  0.215936
  4  0.144138
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/180860': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7212.6676403
delta logL = 0.144175160398

Extracting fit parameters...

4FGL J0028.4+2001
   Spectrum: PowerLaw
112    Prefactor:  6.104e-01  3.886e+00  1.000e-04  1.000e+04 ( 1.000e-12)
113        Index:  3.344e+00  3.412e+00  0.000e+00  1.000e+01 (-1.000e+00)
114        Scale:  7.971e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
490    Prefactor:  9.272e-01  1.441e-01  0.000e+00  1.000e+01 ( 1.000e+00)
491        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
492        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
489   Normalization:  1.056e+00  2.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 7.122 20.031

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/180860/cmap_HighResolution_675820801_676080001_4FGL_J0028.4+2001_daily_bin1684.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.25e-03', job_status='DONE', photon_flux_upper_limit='9.38e-08', time_completed='2022-06-05 00:18:42.054742', job_id='180860', GAL2='0.93', fit_tolerance='1e-08', EG2='1.06', EG='1.08', time_epoch_completed='1654413522.05', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.44e-01', ts2='0.32', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1684' AND source_name='4FGL J0028.4+2001' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jun  5 00:18:42 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 180860: <4FGL_J0028.4+2001_daily_bin1684> in cluster <slac> Done

Job <4FGL_J0028.4+2001_daily_bin1684> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jun  5 00:04:38 2022
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jun  5 00:05:05 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jun  5 00:05:05 2022
Terminated at Sun Jun  5 00:18:42 2022
Results reported at Sun Jun  5 00:18:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0028.4+2001_daily_bin1684 7.1222 20.0311 675820801 676080001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0028.4+2001 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   608.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             261.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            844 sec.

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

