/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 192 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 = 7452
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1028.4-0234_daily_bin1006
RA = 157.121, Dec = -2.5829
tmin = 500083201, tmax = 500342401
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='910045', job_status='RUN', time_executed='2021-09-01 23:38:59.111239', time_epoch_executed='1630564739.11' WHERE source_name='4FGL J1028.4-0234' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/910045

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/910045/ft1_4FGL_J1028.4-0234_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/910045/ft2_4FGL_J1028.4-0234_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/910045/ft1_4FGL_J1028.4-0234_daily_bin1006.fits outfile=/scratch/kocevski/910045/ft1_filteredMKT_4FGL_J1028.4-0234_daily_bin1006.fits ra=157.121 dec=-2.5829 rad=12.0 tmin=500083201.0 tmax=500342401.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 6.19
user 5.46
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/910045/ft1_filtered_4FGL_J1028.4-0234_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/910045/ft2_4FGL_J1028.4-0234_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/910045/ltcube_500083201_500342401_4FGL_J1028.4-0234_daily_bin1006.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/910045/ft2_4FGL_J1028.4-0234_daily_bin1006.fits
.....................!
real 16.24
user 15.81
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/910045/ft1_filtered_4FGL_J1028.4-0234_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/910045/ft2_4FGL_J1028.4-0234_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/910045/ltcube_500083201_500342401_4FGL_J1028.4-0234_daily_bin1006.fits outfile=/scratch/kocevski/910045/expmap_500083201_500342401_4FGL_J1028.4-0234_daily_bin1006.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/910045/ltcube_500083201_500342401_4FGL_J1028.4-0234_daily_bin1006.fits
.....................!
real 192.39
user 186.74
sys 5.08

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/910045/ft1_filtered_4FGL_J1028.4-0234_daily_bin1006.fits scfile=/scratch/kocevski/910045/ft2_4FGL_J1028.4-0234_daily_bin1006.fits outfile=/scratch/kocevski/910045/cmap_500083201_500342401_4FGL_J1028.4-0234_daily_bin1006.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/910045/ft1_filtered_4FGL_J1028.4-0234_daily_bin1006.fits scfile=/scratch/kocevski/910045/ft2_4FGL_J1028.4-0234_daily_bin1006.fits outfile=/scratch/kocevski/910045/cmap_HighResolution_500083201_500342401_4FGL_J1028.4-0234_daily_bin1006.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/910045/ft1_filtered_4FGL_J1028.4-0234_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/910045/ft2_4FGL_J1028.4-0234_daily_bin1006.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/910045/Model_4FGL_J1028.4-0234_daily_bin1006.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/910045/ft1_filtered_4FGL_J1028.4-0234_daily_bin1006.fits.....................!
real 56.59
user 55.10
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/910045/ft1_filtered_4FGL_J1028.4-0234_daily_bin1006.fits', '/scratch/kocevski/910045/ft2_4FGL_J1028.4-0234_daily_bin1006.fits', expMap='/scratch/kocevski/910045/expmap_500083201_500342401_4FGL_J1028.4-0234_daily_bin1006.fits', expCube='/scratch/kocevski/910045/ltcube_500083201_500342401_4FGL_J1028.4-0234_daily_bin1006.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/910045/Model_4FGL_J1028.4-0234_daily_bin1006.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/910045/ft1_filtered_4FGL_J1028.4-0234_daily_bin1006.fits
Spacecraft file(s): /scratch/kocevski/910045/ft2_4FGL_J1028.4-0234_daily_bin1006.fits
Exposure map: /scratch/kocevski/910045/expmap_500083201_500342401_4FGL_J1028.4-0234_daily_bin1006.fits
Exposure cube: /scratch/kocevski/910045/ltcube_500083201_500342401_4FGL_J1028.4-0234_daily_bin1006.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/910045/Model_4FGL_J1028.4-0234_daily_bin1006.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) = 5537.14382002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .31270       1.0000         .10000E-03   10000.    
     2 'norm      '    .10193E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7460       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.681       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14719E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .10336E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5280       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10556E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23456E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11785E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.5522       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2729       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7554       1.0000         .10000E-03   10000.    
    15 'norm      '    1.3349       1.0000         .10000E-03   10000.    
    16 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .84381       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89678       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=   5537.037     FROM MIGRAD    STATUS=CONVERGED    368 CALLS     1864 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31264        .54507       -.37975E-06   -.25366E-02
   2  norm          .10000E-03    .42342        .33520E-07** at limit **
   3  Prefactor     3.7344        6.6139       -.67704E-06   -.22443E-03
   4  Prefactor     19.702        37.025        .39277E-04    .62579E-04
   5  Prefactor     .10000E-03    25.674       -.20524E-04** at limit **
   6  norm          .10000E-03    6.7642        .71714E-05** at limit **
   7  Prefactor     2.5224        5.3736       -.16361E-05   -.41429E-03
   8  Prefactor     .10000E-03    15.530        .29523E-05** at limit **
   9  Prefactor     .10000E-03    15.666        .23890E-05** at limit **
  10  Prefactor     .10000E-03    7.6506       -.61729E-05** at limit **
  11  norm          2.5510        1.3025       -.20521E-06   -.28485E-03
  12  Prefactor     .10000E-03    2.2317       -.36959E-08** at limit **
  13  Prefactor     3.2730        3.1849        .17063E-06   -.30008E-03
  14  Prefactor     3.7392        6.7229       -.69181E-06   -.33246E-03
  15  norm          1.3354        .52682        .65905E-07    .33664E-03
  16  norm          .10000E-03    14.994        .22248E-05** at limit **
  17  Prefactor     .10000E-03    5.8781       -.15018E-05** at limit **
  18  Normalizat    .84406        .17701       -.26483E-05    .16033E-03
  19  Prefactor     .89676        .13402       -.69392E-06    .73013E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.312644
  norm       = 0.0001
  Prefactor  = 3.73439
  Prefactor  = 19.7019
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 2.52236
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.55105
  Prefactor  = 0.0001
  Prefactor  = 3.27298
  Prefactor  = 3.73923
  norm       = 1.33539
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.844061
  Prefactor  = 0.896756
 **********
 **   18 **HESSE 
 **********

 FCN=   5537.037     FROM HESSE     STATUS=OK           270 CALLS     2134 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31264        .53342        .68443E-04   -1.5596    
   2  norm          .10000E-03    .42554        .47283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.7344        6.6007        .20861E-03   -1.5321    
   4  Prefactor     19.702        36.949        .90283E-04   -1.4820    
   5  Prefactor     .10000E-03    25.970        .20486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.7777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5224        5.3581        .24437E-03   -1.5390    
   8  Prefactor     .10000E-03    15.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.6777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.5510        1.2988        .58420E-04   -1.5389    
  12  Prefactor     .10000E-03    2.2467        .10852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.2730        3.1690        .12334E-03   -1.5346    
  14  Prefactor     3.7392        6.6980        .20834E-03   -1.5321    
  15  norm          1.3354        .52582        .32624E-04   -1.5477    
  16  norm          .10000E-03    15.624        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.9423        .17581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .84406        .20503        .25608E-03   -.98455    
  19  Prefactor     .89676        .15660        .19543E-03   -.96255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34071e-09
Minuit parameter uncertainties:
  1  0.533429
  2  5.32603e-07
  3  6.60203
  4  36.9915
  5  0.00041091
  6  2.17853e-05
  7  5.35914
  8  1.59684e-05
  9  3.61568e-05
  10  3.73822e-05
  11  1.29882
  12  2.12708e-05
  13  3.16921
  14  6.69933
  15  0.525822
  16  7.24967e-05
  17  2.09998e-05
  18  0.205215
  19  0.156675
Done.

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

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  2.127e-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:  8.968e-01  1.567e-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:  8.441e-01  2.052e-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: 6.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/910045/likelihoodResults_500083201_500342401_4FGL_J1028.4-0234_daily_bin1006.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) = 5537.03898626
delta logL = -0.0021175293441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5537.03686876
delta logL = -2.6260750019e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6087       1.0000          .0000       10.000    
     3 'Normalizat'    .84407       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89677       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.

 FCN=   5537.037     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      196 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2647        .90712E-02** at limit **
   2  Index         2.6038        6.2968        .50000        .19163E-04
   3  Normalizat    .84406        .16934        .44183E-01   -.30164E-04
   4  Prefactor     .89676        .13367        .44964E-01   -.21136E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.60384
  Normalizat = 0.844059
  Prefactor  = 0.896757
 **********
 **   18 **HESSE 
 **********

 FCN=   5537.037     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6544        .10863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6038        6.3016        .50000       -.49978    
   3  Normalizat    .84406        .19753        .25608E-03   -.98455    
   4  Prefactor     .89676        .15598        .19543E-03   -.96255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46588e-10
Minuit parameter uncertainties:
  1  2.30581e-06
  2  4.76763
  3  0.197698
  4  0.156057
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/910045': 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) = 5537.03686869
delta logL = 4.24397512688e-08

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  2.306e-06  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.604e+00  4.768e+00  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:  8.968e-01  1.561e-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:  8.441e-01  1.977e-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/910045/cmap_HighResolution_500083201_500342401_4FGL_J1028.4-0234_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.04e-03', job_status='DONE', photon_flux_upper_limit='6.43e-08', time_completed='2021-09-01 23:48:20.480991', job_id='910045', GAL2='0.90', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630565300.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='4.24e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1006' AND source_name='4FGL J1028.4-0234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:48:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 910045: <4FGL_J1028.4-0234_daily_bin1006> in cluster <slac> Done

Job <4FGL_J1028.4-0234_daily_bin1006> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 23:35:34 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:35:38 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:35:38 2021
Terminated at Wed Sep  1 23:48:21 2021
Results reported at Wed Sep  1 23:48:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.4-0234_daily_bin1006 157.121 -2.5829 500083201 500342401 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 :                                   556.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            767 sec.

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

