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


Performing analysis on: 4FGL_J0028.4+2001_daily_bin1679
RA = 7.1222, Dec = 20.0311
tmin = 674524801, tmax = 674784001
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='424598', job_status='RUN', time_executed='2022-05-21 00:08:34.908761', time_epoch_executed='1653116914.91' WHERE source_name='4FGL J0028.4+2001' and cadence='daily' and bin_id='1679'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/424598

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/424598/ft1_4FGL_J0028.4+2001_daily_bin1679.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/424598/ft2_4FGL_J0028.4+2001_daily_bin1679.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/424598/ft1_4FGL_J0028.4+2001_daily_bin1679.fits outfile=/scratch/kocevski/424598/ft1_filteredMKT_4FGL_J0028.4+2001_daily_bin1679.fits ra=7.1222 dec=20.0311 rad=12.0 tmin=674524801.0 tmax=674784001.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.67
user 3.36
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/424598/ft1_filtered_4FGL_J0028.4+2001_daily_bin1679.fits evtable="EVENTS" scfile=/scratch/kocevski/424598/ft2_4FGL_J0028.4+2001_daily_bin1679.fits sctable="SC_DATA" expcube=/scratch/kocevski/424598/ltcube_674524801_674784001_4FGL_J0028.4+2001_daily_bin1679.fits outfile=/scratch/kocevski/424598/expmap_674524801_674784001_4FGL_J0028.4+2001_daily_bin1679.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/424598/ltcube_674524801_674784001_4FGL_J0028.4+2001_daily_bin1679.fits
.....................!
real 191.78
user 186.38
sys 4.98

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/424598/ft1_filtered_4FGL_J0028.4+2001_daily_bin1679.fits scfile=/scratch/kocevski/424598/ft2_4FGL_J0028.4+2001_daily_bin1679.fits outfile=/scratch/kocevski/424598/cmap_674524801_674784001_4FGL_J0028.4+2001_daily_bin1679.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.58
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/424598/ft1_filtered_4FGL_J0028.4+2001_daily_bin1679.fits scfile=/scratch/kocevski/424598/ft2_4FGL_J0028.4+2001_daily_bin1679.fits outfile=/scratch/kocevski/424598/cmap_HighResolution_674524801_674784001_4FGL_J0028.4+2001_daily_bin1679.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.56
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/424598/ft1_filtered_4FGL_J0028.4+2001_daily_bin1679.fits', '/scratch/kocevski/424598/ft2_4FGL_J0028.4+2001_daily_bin1679.fits', expMap='/scratch/kocevski/424598/expmap_674524801_674784001_4FGL_J0028.4+2001_daily_bin1679.fits', expCube='/scratch/kocevski/424598/ltcube_674524801_674784001_4FGL_J0028.4+2001_daily_bin1679.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/424598/Model_4FGL_J0028.4+2001_daily_bin1679.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/424598/ft1_filtered_4FGL_J0028.4+2001_daily_bin1679.fits
Spacecraft file(s): /scratch/kocevski/424598/ft2_4FGL_J0028.4+2001_daily_bin1679.fits
Exposure map: /scratch/kocevski/424598/expmap_674524801_674784001_4FGL_J0028.4+2001_daily_bin1679.fits
Exposure cube: /scratch/kocevski/424598/ltcube_674524801_674784001_4FGL_J0028.4+2001_daily_bin1679.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/424598/Model_4FGL_J0028.4+2001_daily_bin1679.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) = 7013.04394181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23700       1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.412       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    47.772       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.024       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.9780       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .57506       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .85604       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0328       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=   7013.042     FROM MIGRAD    STATUS=CONVERGED    331 CALLS     1609 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22289        1.3968        .62927E-01    .52064E-03
   2  Prefactor     32.424        13.042        .17596E-02   -.16363E-02
   3  Prefactor     .10000E-03    3.0546        .90712E-02** at limit **
   4  Prefactor     .10001E-03    21.265        .90712E-02** at limit **
   5  Prefactor     .10000E-03    2.0919        .90712E-02** at limit **
   6  norm          .10000E-03    4.3663        .90712E-02** at limit **
   7  Prefactor     47.771        29.233        .14504E-02    .17006E-02
   8  Prefactor     .10000E-03    12.010        .90712E-02** at limit **
   9  norm          .10000E-03    2.1819        .90712E-02** at limit **
  10  Prefactor     10.023        5.9668        .31640E-02   -.13945E-02
  11  Prefactor     8.9749        10.526        .33441E-02    .14187E-02
  12  Prefactor     .10001E-03    20.039        .90712E-02** at limit **
  13  Prefactor     .10000E-03    26.498        .90712E-02** at limit **
  14  norm          .57500        .44781        .10798E-01   -.38182E-04
  15  Prefactor     .10000E-03    2.8805        .90712E-02** at limit **
  16  Normalizat    .85624        .18507        .68009E-01    .24049E-04
  17  Prefactor     1.0328        .12368        .41043E-01    .89744E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.222894
  Prefactor  = 32.4236
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 47.771
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.0234
  Prefactor  = 8.97495
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 0.574997
  Prefactor  = 0.0001
  Normalizat = 0.856238
  Prefactor  = 1.03275
 **********
 **   18 **HESSE 
 **********

 FCN=   7013.042     FROM HESSE     STATUS=OK           217 CALLS     1826 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22289        10.086        .18033E-02   -1.5614    
   2  Prefactor     32.424        13.063        .70382E-04   -1.4569    
   3  Prefactor     .10000E-03    3.0601        .14291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    21.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.1414        .23618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.3741        .17089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     47.771        29.290        .58014E-04   -1.4325    
   8  Prefactor     .10000E-03    12.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.1827        .12080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.023        5.9675        .12656E-03   -1.5075    
  11  Prefactor     8.9749        10.539        .66883E-03   -1.5109    
  12  Prefactor     .10001E-03    20.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    26.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .57500        .44488        .47962E-04   -1.5556    
  15  Prefactor     .10000E-03    2.9233        .13878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .85624        .21704        .30089E-03   -.98015    
  17  Prefactor     1.0328        .14556        .19068E-03   -.91646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.49811e-09
Minuit parameter uncertainties:
  1  2.99867
  2  13.0639
  3  8.01896e-07
  4  0.000927424
  5  4.59705e-07
  6  1.90917e-06
  7  29.299
  8  1.63621e-05
  9  4.76524e-08
  10  5.96784
  11  10.5416
  12  0.000826051
  13  9.02275e-05
  14  0.444883
  15  2.2083e-06
  16  0.217256
  17  0.145611
Done.

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

Extracting fit parameters...

4FGL J0028.4+2001
   Spectrum: PowerLaw
112    Prefactor:  1.000e-04  4.597e-07  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:  1.033e+00  1.456e-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:  8.562e-01  2.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/424598/likelihoodResults_674524801_674784001_4FGL_J0028.4+2001_daily_bin1679.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) = 7013.04413345
delta logL = -0.00222635076989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7013.04190731
delta logL = -2.07960511034e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4170       1.0000          .0000       10.000    
     3 'Normalizat'    .85622       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0328       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7013.042     FROM MIGRAD    STATUS=FAILED        87 CALLS      243 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10014E-03    333.34        .23623E-03** at limit **
   2  Index         2.4435        5.3432        .50000       -.11968E-04
   3  Normalizat    .85624        .75395E-01    .30089E-03   -.56864E-04
   4  Prefactor     1.0328        .52191E-01    .19068E-03   -.69568E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7013.042     FROM SIMPLEX   STATUS=UNCHANGED    151 CALLS      394 TOTAL
                     EDM=   .91E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10014E-03    333.34        .22478E-03** at limit **
   2  Index         2.4435        5.3432        .69280E-05   -.11968E-04
   3  Normalizat    .85624        .75395E-01    .42096E-06   -.56864E-04
   4  Prefactor     1.0328        .52191E-01    .28250E-06   -.69568E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7013.042     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      435 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.1728        .47246E-04** at limit **
   2  Index         2.6840        8.5887        .50000       -.29991E-07
   3  Normalizat    .85624        .20908        .12036E-04    .14660E-03
   4  Prefactor     1.0328        .14520        .38135E-04    .21577E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.68401
  Normalizat = 0.856238
  Prefactor  = 1.03275
 **********
 **   18 **HESSE 
 **********

 FCN=   7013.042     FROM HESSE     STATUS=OK            29 CALLS      464 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2382        .94493E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6840        7.4556        .50000       -.48160    
   3  Normalizat    .85624        .20905        .24071E-05   -.98015    
   4  Prefactor     1.0328        .14520        .76271E-05   -.91646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19554e-11
Minuit parameter uncertainties:
  1  6.04152e-06
  2  78.9752
  3  0.209246
  4  0.145257
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/424598': 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) = 7013.0419067
delta logL = 4.07551851822e-07

Extracting fit parameters...

4FGL J0028.4+2001
   Spectrum: PowerLaw
112    Prefactor:  1.000e-04  6.042e-06  1.000e-04  1.000e+04 ( 1.000e-12)
113        Index:  2.684e+00  7.898e+01  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:  1.033e+00  1.453e-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:  8.562e-01  2.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 7.122 20.031

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/424598/cmap_HighResolution_674524801_674784001_4FGL_J0028.4+2001_daily_bin1679.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.41e-03', job_status='DONE', photon_flux_upper_limit='6.99e-08', time_completed='2022-05-21 00:18:12.062281', job_id='424598', GAL2='1.03', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1653117492.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='4.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1679' AND source_name='4FGL J0028.4+2001' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat May 21 00:18:12 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 424598: <4FGL_J0028.4+2001_daily_bin1679> in cluster <slac> Done

Job <4FGL_J0028.4+2001_daily_bin1679> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat May 21 00:04:55 2022
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat May 21 00:06:11 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat May 21 00:06:11 2022
Terminated at Sat May 21 00:18:12 2022
Results reported at Sat May 21 00:18:12 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0028.4+2001_daily_bin1679 7.1222 20.0311 674524801 674784001 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 :                                   574.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            797 sec.

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

