aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 6 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 = 17052
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0028.4+2001_weekly_bin13
RA = 7.1222, Dec = 20.0311
tmin = 246844801, tmax = 247449601
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='844687', job_status='RUN', time_executed='2021-07-03 03:10:44.103437', time_epoch_executed='1625307044.1' WHERE source_name='4FGL J0028.4+2001' and cadence='weekly' and bin_id='13'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/844687

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/844687/ft1_4FGL_J0028.4+2001_weekly_bin13.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/844687/ft2_4FGL_J0028.4+2001_weekly_bin13.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/844687/ft1_4FGL_J0028.4+2001_weekly_bin13.fits outfile=/scratch/kocevski/844687/ft1_filteredMKT_4FGL_J0028.4+2001_weekly_bin13.fits ra=7.1222 dec=20.0311 rad=12.0 tmin=246844801.0 tmax=247449601.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 2.75
user 2.54
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/844687/ft2_4FGL_J0028.4+2001_weekly_bin13.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/844687/ft1_filteredMKT_4FGL_J0028.4+2001_weekly_bin13.fits evtable="EVENTS" outfile="/scratch/kocevski/844687/ft1_filtered_4FGL_J0028.4+2001_weekly_bin13.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.54
user 0.38
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/844687/ft1_filtered_4FGL_J0028.4+2001_weekly_bin13.fits" evtable="EVENTS" scfile=/scratch/kocevski/844687/ft2_4FGL_J0028.4+2001_weekly_bin13.fits sctable="SC_DATA" outfile=/scratch/kocevski/844687/ltcube_246844801_247449601_4FGL_J0028.4+2001_weekly_bin13.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/844687/ft2_4FGL_J0028.4+2001_weekly_bin13.fits
.....................!
real 31.95
user 31.54
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/844687/ft1_filtered_4FGL_J0028.4+2001_weekly_bin13.fits evtable="EVENTS" scfile=/scratch/kocevski/844687/ft2_4FGL_J0028.4+2001_weekly_bin13.fits sctable="SC_DATA" expcube=/scratch/kocevski/844687/ltcube_246844801_247449601_4FGL_J0028.4+2001_weekly_bin13.fits outfile=/scratch/kocevski/844687/expmap_246844801_247449601_4FGL_J0028.4+2001_weekly_bin13.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/844687/ltcube_246844801_247449601_4FGL_J0028.4+2001_weekly_bin13.fits
.....................!
real 191.79
user 187.02
sys 4.35

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/844687/ft1_filtered_4FGL_J0028.4+2001_weekly_bin13.fits scfile=/scratch/kocevski/844687/ft2_4FGL_J0028.4+2001_weekly_bin13.fits outfile=/scratch/kocevski/844687/cmap_246844801_247449601_4FGL_J0028.4+2001_weekly_bin13.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.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/844687/ft1_filtered_4FGL_J0028.4+2001_weekly_bin13.fits scfile=/scratch/kocevski/844687/ft2_4FGL_J0028.4+2001_weekly_bin13.fits outfile=/scratch/kocevski/844687/cmap_HighResolution_246844801_247449601_4FGL_J0028.4+2001_weekly_bin13.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.58
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10349E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .19343E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18940E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10614E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.1730       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10715E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.112       1.0000         .10000E-03   10000.    
     9 'norm      '    .13604E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20529       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.486       1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.157       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.074       1.0000         .10000E-03   10000.    
    14 'norm      '    1.1300       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .91860       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0921       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .84466       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.

 FCN=   12808.52     FROM MIGRAD    STATUS=CONVERGED    351 CALLS     1630 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .61629       -.17050E-07** at limit **
   2  Prefactor     .10000E-03    6.0436        .11464E-06** at limit **
   3  Prefactor     .10000E-03    1.6223        .24898E-07** at limit **
   4  Prefactor     .10000E-03    17.797       -.11896E-06** at limit **
   5  Prefactor     .10000E-03    .81349        .45576E-07** at limit **
   6  norm          3.1731        3.2127       -.54279E-07    .14904E-03
   7  Prefactor     .10000E-03    5.2322        .38202E-07** at limit **
   8  Prefactor     12.088        8.4391       -.47110E-07    .63475E-04
   9  norm          .10000E-03    2.7369       -.62778E-07** at limit **
  10  Prefactor     .20689        1.8304        .19209E-06   -.16608E-03
  11  Prefactor     17.512        8.4047        .33333E-07   -.14247E-03
  12  Prefactor     31.014        28.215       -.87899E-07   -.69877E-04
  13  Prefactor     16.089        19.178       -.65367E-06   -.25096E-03
  14  norm          1.1299        .42453        .51686E-07   -.13809E-03
  15  Prefactor     .90806        3.4176        .31648E-05   -.19332E-03
  16  Normalizat    1.0920        .12454       -.14794E-06   -.17514E-03
  17  Prefactor     .84473        .84762E-01   -.42309E-06   -.13124E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.17309
  Prefactor  = 0.0001
  Prefactor  = 12.0878
  norm       = 0.0001
  Prefactor  = 0.206887
  Prefactor  = 17.5118
  Prefactor  = 31.0144
  Prefactor  = 16.0888
  norm       = 1.12987
  Prefactor  = 0.908062
  Normalizat = 1.092
  Prefactor  = 0.844734
 **********
 **   18 **HESSE 
 **********

 FCN=   12808.52     FROM HESSE     STATUS=OK           229 CALLS     1859 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5162        .16998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.1576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.6265        .14076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.841        .20723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .83036        .99644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.1731        3.2192        .19911E-03   -1.5352    
   7  Prefactor     .10000E-03    5.2492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.088        8.3904        .11510E-03   -1.5012    
   9  norm          .10000E-03    2.8165        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .20689        7.0247        .29060E-02   -1.5617    
  11  Prefactor     17.512        8.4238        .95781E-04   -1.4871    
  12  Prefactor     31.014        28.208        .71782E-04   -1.4594    
  13  Prefactor     16.089        19.209        .99899E-04   -1.4906    
  14  norm          1.1299        .42300        .42342E-04   -1.5495    
  15  Prefactor     .90806        3.4198        .38956E-03   -1.5517    
  16  Normalizat    1.0920        .14605        .25598E-03   -.90009    
  17  Prefactor     .84473        .10010        .19820E-03   -.98100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06699e-07
Minuit parameter uncertainties:
  1  1.89897e-05
  2  2.7283e-06
  3  5.53657e-08
  4  7.21794e-05
  5  9.8077e-07
  6  3.21941
  7  2.25236e-06
  8  8.39124
  9  2.62462e-06
  10  2.41079
  11  8.4244
  12  28.2205
  13  19.2167
  14  0.423003
  15  3.42058
  16  0.146106
  17  0.100118
Done.

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

Extracting fit parameters...

4FGL J0028.4+2001
   Spectrum: PowerLaw
112    Prefactor:  1.000e-04  9.808e-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:  8.447e-01  1.001e-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.092e+00  1.461e-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: 3.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/844687/likelihoodResults_246844801_247449601_4FGL_J0028.4+2001_weekly_bin13.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) = 12808.5257927
delta logL = -0.00573313795394

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12808.5200596
delta logL = 4.04943421017e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4094       1.0000          .0000       10.000    
     3 'Normalizat'    1.0920       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84473       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=   12808.52     FROM MIGRAD    STATUS=FAILED        86 CALLS      240 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10022E-03    44.010        .99737E-03** at limit **
   2  Index         2.3703        6.1784        .50000        .32534E-04
   3  Normalizat    1.0920        .24773E-01    .25598E-03   -.61378E-04
   4  Prefactor     .84473        .17185E-01    .19820E-03   -.37169E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   12808.52     FROM SIMPLEX   STATUS=PROGRESS     140 CALLS      380 TOTAL
                     EDM=   .68E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    44.010        .12295E-03** at limit **
   2  Index         2.3701        6.1784        .84977E-04    .32534E-04
   3  Normalizat    1.0920        .24773E-01    .89256E-06   -.61378E-04
   4  Prefactor     .84473        .17185E-01    .65508E-06   -.37169E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12808.52     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      425 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    181.10        .19947E-03** at limit **
   2  Index         2.2646        7.9980        .50000       -.15098E-07
   3  Normalizat    1.0920        .83718E-01    .10239E-04   -.10215E-04
   4  Prefactor     .84473        .57764E-01    .79280E-05    .14340E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.26463
  Normalizat = 1.092
  Prefactor  = 0.844734
 **********
 **   18 **HESSE 
 **********

 FCN=   12808.52     FROM HESSE     STATUS=OK            29 CALLS      454 TOTAL
                     EDM=   .86E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .90382        .39895E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2646        8.6542        .50000       -.57886    
   3  Normalizat    1.0920        .14324        .20478E-05   -.90009    
   4  Prefactor     .84473        .99404E-01    .15856E-05   -.98100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.60746e-13
Minuit parameter uncertainties:
  1  9.16397e-08
  2  68.1538
  3  0.143292
  4  0.0994255
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/844687': 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) = 12808.5200588
delta logL = 8.01661371952e-07

Extracting fit parameters...

4FGL J0028.4+2001
   Spectrum: PowerLaw
112    Prefactor:  1.000e-04  9.164e-08  1.000e-04  1.000e+04 ( 1.000e-12)
113        Index:  2.265e+00  6.815e+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:  8.447e-01  9.943e-02  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.092e+00  1.433e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/844687/cmap_HighResolution_246844801_247449601_4FGL_J0028.4+2001_weekly_bin13.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.81e-03', job_status='DONE', photon_flux_upper_limit='3.63e-08', time_completed='2021-07-03 03:24:45.716633', job_id='844687', GAL2='0.84', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1625307885.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='8.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='13' AND source_name='4FGL J0028.4+2001' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 03:24:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0016>
Subject: Job 844687: <4FGL_J0028.4+2001_weekly_bin13> in cluster <slac> Done

Job <4FGL_J0028.4+2001_weekly_bin13> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul  3 03:10:19 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 03:10:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  3 03:10:27 2021
Terminated at Sat Jul  3 03:24:46 2021
Results reported at Sat Jul  3 03:24:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0028.4+2001_weekly_bin13 7.1222 20.0311 246844801 247449601 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 :                                   813.00 sec.
    Max Memory :                                 620 MB
    Average Memory :                             305.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            867 sec.

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

