/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 234 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 = 7415
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1028.4-0234_daily_bin310
RA = 157.121, Dec = -2.5829
tmin = 319680001, tmax = 319939201
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='905967', job_status='RUN', time_executed='2021-09-01 23:27:31.753501', time_epoch_executed='1630564051.75' WHERE source_name='4FGL J1028.4-0234' and cadence='daily' and bin_id='310'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905967

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905967/ft1_4FGL_J1028.4-0234_daily_bin310.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905967/ft2_4FGL_J1028.4-0234_daily_bin310.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905967/ft1_4FGL_J1028.4-0234_daily_bin310.fits outfile=/scratch/kocevski/905967/ft1_filteredMKT_4FGL_J1028.4-0234_daily_bin310.fits ra=157.121 dec=-2.5829 rad=12.0 tmin=319680001.0 tmax=319939201.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.48
user 3.24
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/905967/ft2_4FGL_J1028.4-0234_daily_bin310.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/905967/ft2_4FGL_J1028.4-0234_daily_bin310.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/905967/ft1_filteredMKT_4FGL_J1028.4-0234_daily_bin310.fits evtable="EVENTS" outfile="/scratch/kocevski/905967/ft1_filtered_4FGL_J1028.4-0234_daily_bin310.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905967/ft1_filtered_4FGL_J1028.4-0234_daily_bin310.fits" evtable="EVENTS" scfile=/scratch/kocevski/905967/ft2_4FGL_J1028.4-0234_daily_bin310.fits sctable="SC_DATA" outfile=/scratch/kocevski/905967/ltcube_319680001_319939201_4FGL_J1028.4-0234_daily_bin310.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/905967/ft2_4FGL_J1028.4-0234_daily_bin310.fits
.....................!
real 14.99
user 14.62
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905967/ft1_filtered_4FGL_J1028.4-0234_daily_bin310.fits evtable="EVENTS" scfile=/scratch/kocevski/905967/ft2_4FGL_J1028.4-0234_daily_bin310.fits sctable="SC_DATA" expcube=/scratch/kocevski/905967/ltcube_319680001_319939201_4FGL_J1028.4-0234_daily_bin310.fits outfile=/scratch/kocevski/905967/expmap_319680001_319939201_4FGL_J1028.4-0234_daily_bin310.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/905967/ltcube_319680001_319939201_4FGL_J1028.4-0234_daily_bin310.fits
.....................!
real 191.53
user 186.64
sys 4.49

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

Setting source of interest to:
4FGL J1028.4-0234 @ 157.121 -2.5829

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/905967/ft1_filtered_4FGL_J1028.4-0234_daily_bin310.fits scfile=/scratch/kocevski/905967/ft2_4FGL_J1028.4-0234_daily_bin310.fits outfile=/scratch/kocevski/905967/cmap_319680001_319939201_4FGL_J1028.4-0234_daily_bin310.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=157.121 yref=-2.5829 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905967/ft1_filtered_4FGL_J1028.4-0234_daily_bin310.fits scfile=/scratch/kocevski/905967/ft2_4FGL_J1028.4-0234_daily_bin310.fits outfile=/scratch/kocevski/905967/cmap_HighResolution_319680001_319939201_4FGL_J1028.4-0234_daily_bin310.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=157.121 yref=-2.5829 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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/905967/ft1_filtered_4FGL_J1028.4-0234_daily_bin310.fits evtable="EVENTS" scfile=/scratch/kocevski/905967/ft2_4FGL_J1028.4-0234_daily_bin310.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/905967/Model_4FGL_J1028.4-0234_daily_bin310.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/905967/ft1_filtered_4FGL_J1028.4-0234_daily_bin310.fits.....................!
real 60.25
user 58.84
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/905967/ft1_filtered_4FGL_J1028.4-0234_daily_bin310.fits', '/scratch/kocevski/905967/ft2_4FGL_J1028.4-0234_daily_bin310.fits', expMap='/scratch/kocevski/905967/expmap_319680001_319939201_4FGL_J1028.4-0234_daily_bin310.fits', expCube='/scratch/kocevski/905967/ltcube_319680001_319939201_4FGL_J1028.4-0234_daily_bin310.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/905967/Model_4FGL_J1028.4-0234_daily_bin310.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1028.4-0234'

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.582e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.613e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
237        Scale:  6.037e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/905967/ft1_filtered_4FGL_J1028.4-0234_daily_bin310.fits
Spacecraft file(s): /scratch/kocevski/905967/ft2_4FGL_J1028.4-0234_daily_bin310.fits
Exposure map: /scratch/kocevski/905967/expmap_319680001_319939201_4FGL_J1028.4-0234_daily_bin310.fits
Exposure cube: /scratch/kocevski/905967/ltcube_319680001_319939201_4FGL_J1028.4-0234_daily_bin310.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/905967/Model_4FGL_J1028.4-0234_daily_bin310.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) = 6017.76033793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .39513       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9145       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.906       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .36946E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    19.476       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.526       1.0000         .10000E-03   10000.    
     8 'Prefactor '    143.95       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .53283E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4175       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0853       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .62570       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2563       1.0000         .10000E-03   10000.    
    16 'norm      '    9.2485       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.790       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2191       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .95567       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6017.741     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     1942 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .39531        .66467        .27420E-06    .47171E-03
   2  norm          1.9143        1.7739        .38801E-08   -.81141E-05
   3  Prefactor     22.902        23.278       -.26416E-06   -.32430E-03
   4  Prefactor     .10000E-03    214.98        .25366E-05** at limit **
   5  Prefactor     .10000E-03    17.600        .29422E-06** at limit **
   6  norm          19.467        23.162       -.10736E-05   -.28683E-03
   7  Prefactor     25.443        21.506       -.73296E-05   -.24587E-03
   8  Prefactor     143.94        89.742       -.47567E-05   -.14913E-03
   9  Prefactor     .10001E-03    932.09       -.37271E-04** at limit **
  10  Prefactor     .10000E-03    15.956        .91591E-06** at limit **
  11  norm          1.4186        1.4478        .11418E-06    .78037E-04
  12  Prefactor     .10000E-03    4.5008        .82407E-07** at limit **
  13  Prefactor     4.0839        4.1948       -.17649E-06   -.75418E-03
  14  Prefactor     .61949        8.9932        .47284E-05   -.79796E-03
  15  norm          2.2559        1.2059       -.19330E-07   -.19406E-02
  16  norm          9.2475        7.6768       -.24117E-06   -.16334E-03
  17  Prefactor     21.790        19.672       -.63976E-07   -.49737E-03
  18  Normalizat    1.2192        .23844       -.13793E-05   -.46051E-03
  19  Prefactor     .95576        .16585        .32338E-06   -.43452E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.39531
  norm       = 1.91432
  Prefactor  = 22.9017
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 19.4673
  Prefactor  = 25.4433
  Prefactor  = 143.942
  Prefactor  = 0.000100007
  Prefactor  = 0.000100001
  norm       = 1.41861
  Prefactor  = 0.0001
  Prefactor  = 4.08393
  Prefactor  = 0.61949
  norm       = 2.25594
  norm       = 9.24752
  Prefactor  = 21.79
  Normalizat = 1.21924
  Prefactor  = 0.955762
 **********
 **   18 **HESSE 
 **********

 FCN=   6017.741     FROM HESSE     STATUS=OK           268 CALLS     2210 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .39531        .64498        .77738E-04   -1.5582    
   2  norm          1.9143        1.7848        .96672E-04   -1.5431    
   3  Prefactor     22.902        23.316        .83692E-04   -1.4750    
   4  Prefactor     .10000E-03    221.51        .42599E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          19.467        23.179        .90756E-04   -1.4825    
   7  Prefactor     25.443        21.550        .79289E-04   -1.4699    
   8  Prefactor     143.94        89.864        .33582E-04   -1.3303    
   9  Prefactor     .10001E-03    930.67        .38227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4186        1.4268        .90229E-04   -1.5470    
  12  Prefactor     .10000E-03    4.5319        .16065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.0839        4.1383        .14885E-03   -1.5304    
  14  Prefactor     .61949        23.528        .39577E-02   -1.5551    
  15  norm          2.2559        1.2441        .44202E-04   -1.5408    
  16  norm          9.2475        7.6784        .13178E-03   -1.5100    
  17  Prefactor     21.790        20.233        .85806E-04   -1.4774    
  18  Normalizat    1.2192        .28389        .29744E-03   -.86010    
  19  Prefactor     .95576        .19827        .24342E-03   -.94219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68469e-09
Minuit parameter uncertainties:
  1  0.644991
  2  1.78483
  3  23.3256
  4  0.00154546
  5  4.60504e-05
  6  23.1899
  7  21.5561
  8  89.9497
  9  0.00503882
  10  0.00028406
  11  1.42688
  12  1.07125e-05
  13  4.13858
  14  7.63818
  15  1.2441
  16  7.67925
  17  20.2396
  18  0.284251
  19  0.198419
Done.

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

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  1.071e-05  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.613e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
237        Scale:  6.037e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  9.558e-01  1.984e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  1.219e+00  2.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 157.121 -2.583
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/905967/likelihoodResults_319680001_319939201_4FGL_J1028.4-0234_daily_bin310.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) = 6017.74211453
delta logL = -0.00105089881617

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6017.74106366
delta logL = -3.13148120767e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6009       1.0000          .0000       10.000    
     3 'Normalizat'    1.2192       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95581       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+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=   6017.741     FROM MIGRAD    STATUS=FAILED       102 CALLS      254 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.476        .16168E-01** at limit **
   2  Index         2.2093        6.1046        .50000       -.25497E-05
   3  Normalizat    1.2192        .13194E-01    .29744E-03   -.78737E-04
   4  Prefactor     .95576        .97501E-02    .24342E-03   -.81357E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6017.741     FROM SIMPLEX   STATUS=UNCHANGED    167 CALLS      421 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.476        .37357E-03** at limit **
   2  Index         2.2093        6.1046        .82103E-05   -.25497E-05
   3  Normalizat    1.2192        .13194E-01    .68935E-07   -.78737E-04
   4  Prefactor     .95576        .97501E-02    .46132E-07   -.81357E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6017.741     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      452 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    423.70        .16965E-02** at limit **
   2  Index         2.2095        8.4320        .50000        .35971E-07
   3  Normalizat    1.2192        .58372E-01    .11898E-04   -.78546E-04
   4  Prefactor     .95576        .43136E-01    .97370E-05   -.81030E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.20948
  Normalizat = 1.21924
  Prefactor  = 0.955761
 **********
 **   18 **HESSE 
 **********

 FCN=   6017.741     FROM HESSE     STATUS=OK            29 CALLS      481 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    107.57        .33930E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2095        5.1672        .50000       -.59210    
   3  Normalizat    1.2192        .26428        .23795E-05   -.86010    
   4  Prefactor     .95576        .19541        .19474E-05   -.94219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73817e-10
Minuit parameter uncertainties:
  1  0.0001764
  2  529.808
  3  0.264574
  4  0.195557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905967': 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) = 6017.7410624
delta logL = 1.23090285342e-06

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  1.764e-04  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.209e+00  5.298e+02  0.000e+00  1.000e+01 (-1.000e+00)
237        Scale:  6.037e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  9.558e-01  1.956e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  1.219e+00  2.646e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 157.121 -2.583

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/905967/cmap_HighResolution_319680001_319939201_4FGL_J1028.4-0234_daily_bin310.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.25e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-01 23:37:10.412676', job_id='905967', GAL2='0.96', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630564630.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.23e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='310' AND source_name='4FGL J1028.4-0234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:37:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 905967: <4FGL_J1028.4-0234_daily_bin310> in cluster <slac> Done

Job <4FGL_J1028.4-0234_daily_bin310> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 23:20:38 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:23:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 23:23:27 2021
Terminated at Wed Sep  1 23:37:11 2021
Results reported at Wed Sep  1 23:37:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.4-0234_daily_bin310 157.121 -2.5829 319680001 319939201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1028.4-0234 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   576.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            993 sec.

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

