/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 186 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 = 7394
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1028.4-0234_daily_bin11
RA = 157.121, Dec = -2.5829
tmin = 242179201, tmax = 242438401
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='904494', job_status='RUN', time_executed='2021-09-01 23:21:52.655217', time_epoch_executed='1630563712.66' WHERE source_name='4FGL J1028.4-0234' and cadence='daily' and bin_id='11'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/904494

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/904494/ft1_4FGL_J1028.4-0234_daily_bin11.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/904494/ft2_4FGL_J1028.4-0234_daily_bin11.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/904494/ft1_4FGL_J1028.4-0234_daily_bin11.fits outfile=/scratch/kocevski/904494/ft1_filteredMKT_4FGL_J1028.4-0234_daily_bin11.fits ra=157.121 dec=-2.5829 rad=12.0 tmin=242179201.0 tmax=242438401.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 1.20
user 1.04
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/904494/ft1_filtered_4FGL_J1028.4-0234_daily_bin11.fits" evtable="EVENTS" scfile=/scratch/kocevski/904494/ft2_4FGL_J1028.4-0234_daily_bin11.fits sctable="SC_DATA" outfile=/scratch/kocevski/904494/ltcube_242179201_242438401_4FGL_J1028.4-0234_daily_bin11.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/904494/ft2_4FGL_J1028.4-0234_daily_bin11.fits
.....................!
real 14.60
user 14.29
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/904494/ft1_filtered_4FGL_J1028.4-0234_daily_bin11.fits evtable="EVENTS" scfile=/scratch/kocevski/904494/ft2_4FGL_J1028.4-0234_daily_bin11.fits sctable="SC_DATA" expcube=/scratch/kocevski/904494/ltcube_242179201_242438401_4FGL_J1028.4-0234_daily_bin11.fits outfile=/scratch/kocevski/904494/expmap_242179201_242438401_4FGL_J1028.4-0234_daily_bin11.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/904494/ltcube_242179201_242438401_4FGL_J1028.4-0234_daily_bin11.fits
.....................!
real 156.56
user 151.98
sys 4.21

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/904494/ft1_filtered_4FGL_J1028.4-0234_daily_bin11.fits scfile=/scratch/kocevski/904494/ft2_4FGL_J1028.4-0234_daily_bin11.fits outfile=/scratch/kocevski/904494/cmap_242179201_242438401_4FGL_J1028.4-0234_daily_bin11.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.48
user 0.33
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/904494/ft1_filtered_4FGL_J1028.4-0234_daily_bin11.fits scfile=/scratch/kocevski/904494/ft2_4FGL_J1028.4-0234_daily_bin11.fits outfile=/scratch/kocevski/904494/cmap_HighResolution_242179201_242438401_4FGL_J1028.4-0234_daily_bin11.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.48
user 0.31
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/904494/ft1_filtered_4FGL_J1028.4-0234_daily_bin11.fits evtable="EVENTS" scfile=/scratch/kocevski/904494/ft2_4FGL_J1028.4-0234_daily_bin11.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/904494/Model_4FGL_J1028.4-0234_daily_bin11.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/904494/ft1_filtered_4FGL_J1028.4-0234_daily_bin11.fits.....................!
real 73.03
user 71.76
sys 1.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5526       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3373       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.832       1.0000         .10000E-03   10000.    
     6 'norm      '    13.868       1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.217       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9646       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .41386       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.224       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4702       1.0000         .10000E-03   10000.    
    16 'norm      '    8.4607       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1149       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .86410       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2202       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=   10010.09     FROM MIGRAD    STATUS=CONVERGED    383 CALLS     2220 TOTAL
                     EDM=   .32E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5526        .63782        .60087E-08    .15641E-03
   2  norm          1.3374        1.0314       -.83641E-08    .10533E-06
   3  Prefactor     .10000E-03    12.346        .54549E-06** at limit **
   4  Prefactor     .10000E-03    8.1493        .22764E-07** at limit **
   5  Prefactor     24.837        29.170       -.47124E-06    .20330E-04
   6  norm          13.867        12.556        .33289E-06    .65694E-04
   7  Prefactor     40.208        13.304        .34687E-06    .16272E-03
   8  Prefactor     4.9862        137.81       -.10799E-04    .52981E-05
   9  Prefactor     .10000E-03    42.982        .71875E-06** at limit **
  10  Prefactor     .10000E-03    8.8968        .22550E-06** at limit **
  11  norm          .41398        .86274        .12097E-06   -.23551E-04
  12  Prefactor     .10000E-03    1.6766       -.34687E-07** at limit **
  13  Prefactor     .10000E-03    2.3090        .68694E-07** at limit **
  14  Prefactor     30.221        9.7430       -.12915E-06    .45937E-04
  15  norm          1.4701        .47602       -.10042E-06    .74543E-04
  16  norm          8.4607        5.1353       -.61406E-07    .19417E-04
  17  Prefactor     4.1148        6.2475        .23435E-05   -.49872E-04
  18  Normalizat    .86439        .17769       -.82443E-06    .20019E-04
  19  Prefactor     1.2200        .13007        .70269E-06    .13071E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.55256
  norm       = 1.33736
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.8365
  norm       = 13.8666
  Prefactor  = 40.2083
  Prefactor  = 4.98624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.413975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.2215
  norm       = 1.47012
  norm       = 8.46072
  Prefactor  = 4.11479
  Normalizat = 0.864387
  Prefactor  = 1.21999
 **********
 **   18 **HESSE 
 **********

 FCN=   10010.09     FROM HESSE     STATUS=OK           268 CALLS     2488 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5526        .63710        .38379E-04   -1.5388    
   2  norm          1.3374        1.0307        .86991E-04   -1.5477    
   3  Prefactor     .10000E-03    12.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.1529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.837        29.196        .80387E-04   -1.4711    
   6  norm          13.867        12.541        .10756E-03   -1.4963    
   7  Prefactor     40.208        13.273        .63207E-04   -1.4439    
   8  Prefactor     4.9862        138.23        .18050E-03   -1.5261    
   9  Prefactor     .10000E-03    43.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.9227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .41398        .84472        .12848E-03   -1.5579    
  12  Prefactor     .10000E-03    1.6876        .12647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.4048        .29602E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.221        9.7743        .72879E-04   -1.4608    
  15  norm          1.4701        .47722        .35942E-04   -1.5465    
  16  norm          8.4607        5.1353        .13782E-03   -1.5126    
  17  Prefactor     4.1148        6.2922        .99363E-03   -1.5302    
  18  Normalizat    .86439        .20649        .32781E-03   -.97723    
  19  Prefactor     1.2200        .15298        .22078E-03   -.85718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.16418e-11
Minuit parameter uncertainties:
  1  0.637099
  2  1.03066
  3  7.74949e-05
  4  2.24815e-06
  5  29.2126
  6  12.5431
  7  13.2745
  8  52.641
  9  0.000192312
  10  2.70542e-05
  11  0.844743
  12  1.64461e-06
  13  5.89385e-06
  14  9.77477
  15  0.477219
  16  5.1356
  17  6.29321
  18  0.206677
  19  0.153034
Done.

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

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  1.645e-06  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.220e+00  1.530e-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.644e-01  2.067e-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: 5.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/904494/likelihoodResults_242179201_242438401_4FGL_J1028.4-0234_daily_bin11.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) = 10010.0884324
delta logL = -0.00281283094955

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10010.0856195
delta logL = 3.45080479747e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6081       1.0000          .0000       10.000    
     3 'Normalizat'    .86439       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2200       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=   10010.09     FROM MIGRAD    STATUS=FAILED        90 CALLS      251 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10048E-03    102.68        .12663E-02** at limit **
   2  Index         2.5439        8.0698        .50000        .20920E-04
   3  Normalizat    .86439        .34833E-01    .32781E-03   -.97105E-05
   4  Prefactor     1.2200        .27527E-01    .22078E-03   -.16478E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10010.09     FROM SIMPLEX   STATUS=PROGRESS     147 CALLS      398 TOTAL
                     EDM=   .40E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10045E-03    102.68        .14355E-03** at limit **
   2  Index         2.5437        8.0698        .65192E-04    .20920E-04
   3  Normalizat    .86439        .34833E-01    .67401E-06   -.97105E-05
   4  Prefactor     1.2200        .27527E-01    .39828E-06   -.16478E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10010.09     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      442 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.590        .25325E-03** at limit **
   2  Index         2.3668        6.6388        .50000       -.97907E-07
   3  Normalizat    .86439        .19099        .13112E-04   -.34681E-06
   4  Prefactor     1.2200        .15098        .88313E-05    .10813E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.36682
  Normalizat = 0.864388
  Prefactor  = 1.21999
 **********
 **   18 **HESSE 
 **********

 FCN=   10010.09     FROM HESSE     STATUS=OK            29 CALLS      471 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8039        .50650E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3668        8.5289        .50000       -.55464    
   3  Normalizat    .86439        .19120        .26225E-05   -.97723    
   4  Prefactor     1.2200        .15109        .17663E-05   -.85718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.47633e-12
Minuit parameter uncertainties:
  1  1.93343e-06
  2  99.8508
  3  0.191345
  4  0.151147
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/904494': 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) = 10010.0856188
delta logL = 8.26297764434e-07

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  1.933e-06  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.367e+00  9.985e+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.220e+00  1.511e-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.644e-01  1.913e-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/904494/cmap_HighResolution_242179201_242438401_4FGL_J1028.4-0234_daily_bin11.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.99e-03', job_status='DONE', photon_flux_upper_limit='5.10e-08', time_completed='2021-09-01 23:32:28.666659', job_id='904494', GAL2='1.22', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1630564348.67', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='8.26e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='11' AND source_name='4FGL J1028.4-0234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:32:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 904494: <4FGL_J1028.4-0234_daily_bin11> in cluster <slac> Done

Job <4FGL_J1028.4-0234_daily_bin11> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  1 23:15:55 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:18:39 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:18:39 2021
Terminated at Wed Sep  1 23:32:29 2021
Results reported at Wed Sep  1 23:32:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.4-0234_daily_bin11 157.121 -2.5829 242179201 242438401 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 :                                   634.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            994 sec.

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

