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


Performing analysis on: 4FGL_J1028.4-0234_daily_bin515
RA = 157.121, Dec = -2.5829
tmin = 372816001, tmax = 373075201
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='907300', job_status='RUN', time_executed='2021-09-01 23:28:32.808757', time_epoch_executed='1630564112.81' WHERE source_name='4FGL J1028.4-0234' and cadence='daily' and bin_id='515'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907300

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907300/ft1_4FGL_J1028.4-0234_daily_bin515.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907300/ft2_4FGL_J1028.4-0234_daily_bin515.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907300/ft1_4FGL_J1028.4-0234_daily_bin515.fits outfile=/scratch/kocevski/907300/ft1_filteredMKT_4FGL_J1028.4-0234_daily_bin515.fits ra=157.121 dec=-2.5829 rad=12.0 tmin=372816001.0 tmax=373075201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.46
user 4.23
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/907300/ft1_filtered_4FGL_J1028.4-0234_daily_bin515.fits" evtable="EVENTS" scfile=/scratch/kocevski/907300/ft2_4FGL_J1028.4-0234_daily_bin515.fits sctable="SC_DATA" outfile=/scratch/kocevski/907300/ltcube_372816001_373075201_4FGL_J1028.4-0234_daily_bin515.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/907300/ft2_4FGL_J1028.4-0234_daily_bin515.fits
.....................!
real 12.88
user 12.50
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907300/ft1_filtered_4FGL_J1028.4-0234_daily_bin515.fits evtable="EVENTS" scfile=/scratch/kocevski/907300/ft2_4FGL_J1028.4-0234_daily_bin515.fits sctable="SC_DATA" expcube=/scratch/kocevski/907300/ltcube_372816001_373075201_4FGL_J1028.4-0234_daily_bin515.fits outfile=/scratch/kocevski/907300/expmap_372816001_373075201_4FGL_J1028.4-0234_daily_bin515.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/907300/ltcube_372816001_373075201_4FGL_J1028.4-0234_daily_bin515.fits
.....................!
real 189.96
user 185.59
sys 3.99

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/907300/ft1_filtered_4FGL_J1028.4-0234_daily_bin515.fits scfile=/scratch/kocevski/907300/ft2_4FGL_J1028.4-0234_daily_bin515.fits outfile=/scratch/kocevski/907300/cmap_372816001_373075201_4FGL_J1028.4-0234_daily_bin515.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/907300/ft1_filtered_4FGL_J1028.4-0234_daily_bin515.fits scfile=/scratch/kocevski/907300/ft2_4FGL_J1028.4-0234_daily_bin515.fits outfile=/scratch/kocevski/907300/cmap_HighResolution_372816001_373075201_4FGL_J1028.4-0234_daily_bin515.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.55
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/907300/ft1_filtered_4FGL_J1028.4-0234_daily_bin515.fits evtable="EVENTS" scfile=/scratch/kocevski/907300/ft2_4FGL_J1028.4-0234_daily_bin515.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/907300/Model_4FGL_J1028.4-0234_daily_bin515.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/907300/ft1_filtered_4FGL_J1028.4-0234_daily_bin515.fits.....................!
real 67.83
user 66.47
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8067       1.0000         .10000E-03   10000.    
     2 'norm      '    .81186       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.107       1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.007       1.0000         .10000E-03   10000.    
     6 'norm      '    .11116E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16450E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.029       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12456       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15263E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .69485       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1589       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11288E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9574       1.0000         .10000E-03   10000.    
    16 'norm      '    10.975       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.004       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .62519       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2940       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7066.879     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     1660 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8068        .93916       -.24458E-07    .66895E-03
   2  norm          .81045        1.6742       -.44436E-06   -.16192E-03
   3  Prefactor     .10000E-03    3.6196        .16667E-07** at limit **
   4  Prefactor     13.082        9.2835        .22270E-06   -.24590E-03
   5  Prefactor     23.982        25.009       -.40792E-06    .89074E-02
   6  norm          .10000E-03    6.5244        .91895E-07** at limit **
   7  Prefactor     .10000E-03    11.006        .14830E-06** at limit **
   8  Prefactor     13.941        14.995        .17678E-05   -.15433E-01
   9  Prefactor     .62782E-03    1996.0        .56805E-04** at limit **
  10  Prefactor     .10000E-03    15.867        .17525E-05** at limit **
  11  norm          .69600        .94081       -.51578E-07    .11579E-03
  12  Prefactor     .10000E-03    1.9052        .34020E-07** at limit **
  13  Prefactor     2.1599        2.1450       -.24887E-06   -.26119E-05
  14  Prefactor     .10000E-03    20.492        .10237E-06** at limit **
  15  norm          1.9573        .84510        .20516E-07    .58501E-03
  16  norm          10.973        7.9487        .56409E-06    .30662E-02
  17  Prefactor     23.011        13.116       -.30674E-06    .23147E-02
  18  Normalizat    .62519        .23092        .38864E-05    .38426E-03
  19  Prefactor     1.2942        .17874        .46456E-06    .60988E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.8068
  norm       = 0.81045
  Prefactor  = 0.0001
  Prefactor  = 13.0818
  Prefactor  = 23.9824
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9411
  Prefactor  = 0.000627817
  Prefactor  = 0.0001
  norm       = 0.696
  Prefactor  = 0.0001
  Prefactor  = 2.15992
  Prefactor  = 0.0001
  norm       = 1.95726
  norm       = 10.9728
  Prefactor  = 23.011
  Normalizat = 0.625191
  Prefactor  = 1.29415
 **********
 **   18 **HESSE 
 **********

 FCN=   7066.879     FROM HESSE     STATUS=OK           326 CALLS     1986 TOTAL
                     EDM=   .39E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8068        .94041        .45875E-02   -1.5269    
   2  norm          .81045        1.7109        .12484E-01   -1.5528    
   3  Prefactor     .10000E-03    3.6191        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.082        34.904        .27660E-02   -1.4984    
   5  Prefactor     23.982        27.846        .20438E-02   -1.4728    
   6  norm          .10000E-03    6.5224        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.805        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.941        45.442        .26734E-02   -1.4961    
   9  Prefactor     .62782E-03    46.920        .14227       -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.870        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .69600        1.0680        .21619E-01   -1.5541    
  12  Prefactor     .10000E-03    1.8958        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.1599        2.1579        .70090E-02   -1.5414    
  14  Prefactor     .10000E-03    5.1701        .68870E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9573        .83535        .74133E-02   -1.5428    
  16  norm          10.973        7.9576        .30234E-02   -1.5045    
  17  Prefactor     23.011        13.025        .20878E-02   -1.4748    
  18  Normalizat    .62519        .21135        .81949E-01   -1.0692    
  19  Prefactor     1.2942        .15936        .32715E-01   -.83481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85947e-06
Minuit parameter uncertainties:
  1  0.940416
  2  1.71103
  3  1.50897e-06
  4  34.9583
  5  27.8609
  6  4.3181e-06
  7  1.51355e-05
  8  45.555
  9  0.314987
  10  8.82723e-05
  11  1.06808
  12  2.50831e-08
  13  2.15797
  14  6.13204e-05
  15  0.835352
  16  7.95839
  17  13.0267
  18  0.211629
  19  0.159422
Done.

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

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  2.508e-08  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:  1.294e+00  1.594e-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:  6.252e-01  2.116e-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.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/907300/likelihoodResults_372816001_373075201_4FGL_J1028.4-0234_daily_bin515.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) = 7066.88131837
delta logL = -0.00247679722452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7066.8788415
delta logL = 6.69569999445e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6009       1.0000          .0000       10.000    
     3 'Normalizat'    .62518       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2942       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=   7066.879     FROM MIGRAD    STATUS=FAILED       101 CALLS      252 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.212        .11375E-01** at limit **
   2  Index         2.1262        8.7893        .50000       -.34245E-05
   3  Normalizat    .62519        .14516E-01    .36293E-03    .78906E-04
   4  Prefactor     1.2942        .11542E-01    .20592E-03    .14736E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7066.879     FROM SIMPLEX   STATUS=UNCHANGED    165 CALLS      417 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.212        .28117E-03** at limit **
   2  Index         2.1262        8.7893        .29760E-05   -.34245E-05
   3  Normalizat    .62519        .14516E-01    .45925E-07    .78906E-04
   4  Prefactor     1.2942        .11542E-01    .48982E-08    .14736E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7066.879     FROM MIGRAD    STATUS=FAILED        75 CALLS      492 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7088        .24294E-03** at limit **
   2  Index         2.1262        5.2491        .50000       -.34225E-05
   3  Normalizat    .62519        .22138        .29035E-05    .78311E-04
   4  Prefactor     1.2942        .17623        .82368E-05    .14741E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12623
  Normalizat = 0.62519
  Prefactor  = 1.29415
 **********
 **   18 **HESSE 
 **********

 FCN=   7066.879     FROM HESSE     STATUS=OK            27 CALLS      519 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2716        .48588E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1262        8.3587        .50000       -.61230    
   3  Normalizat    .62519        .21832        .58069E-06   -1.0692    
   4  Prefactor     1.2942        .17427        .16474E-05   -.83481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.89716e-09
Minuit parameter uncertainties:
  1  1.19796e-05
  2  91.0621
  3  0.218618
  4  0.174351
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907300': 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): 1
logL (Free Index) = 7066.87883804
delta logL = 3.5297634895e-06

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  1.198e-05  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.126e+00  9.106e+01  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:  1.294e+00  1.744e-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:  6.252e-01  2.186e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/907300/cmap_HighResolution_372816001_373075201_4FGL_J1028.4-0234_daily_bin515.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', job_status='DONE', photon_flux_upper_limit='6.02e-08', time_completed='2021-09-01 23:38:45.800562', job_id='907300', GAL2='1.29', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1630564725.8', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='3.53e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='515' AND source_name='4FGL J1028.4-0234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:38:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 907300: <4FGL_J1028.4-0234_daily_bin515> in cluster <slac> Done

Job <4FGL_J1028.4-0234_daily_bin515> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 23:25:22 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:26:43 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:26:43 2021
Terminated at Wed Sep  1 23:38:46 2021
Results reported at Wed Sep  1 23:38:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.4-0234_daily_bin515 157.121 -2.5829 372816001 373075201 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 :                                   610.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            804 sec.

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

