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


Performing analysis on: 4FGL_J1028.4-0234_daily_bin795
RA = 157.121, Dec = -2.5829
tmin = 445392001, tmax = 445651201
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='908608', job_status='RUN', time_executed='2021-09-01 23:31:07.776382', time_epoch_executed='1630564267.78' WHERE source_name='4FGL J1028.4-0234' and cadence='daily' and bin_id='795'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/908608

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/908608/ft1_4FGL_J1028.4-0234_daily_bin795.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/908608/ft2_4FGL_J1028.4-0234_daily_bin795.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/908608/ft1_4FGL_J1028.4-0234_daily_bin795.fits outfile=/scratch/kocevski/908608/ft1_filteredMKT_4FGL_J1028.4-0234_daily_bin795.fits ra=157.121 dec=-2.5829 rad=12.0 tmin=445392001.0 tmax=445651201.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.84
user 3.60
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/908608/ft2_4FGL_J1028.4-0234_daily_bin795.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/908608/ft1_filteredMKT_4FGL_J1028.4-0234_daily_bin795.fits evtable="EVENTS" outfile="/scratch/kocevski/908608/ft1_filtered_4FGL_J1028.4-0234_daily_bin795.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/908608/ft1_filtered_4FGL_J1028.4-0234_daily_bin795.fits" evtable="EVENTS" scfile=/scratch/kocevski/908608/ft2_4FGL_J1028.4-0234_daily_bin795.fits sctable="SC_DATA" outfile=/scratch/kocevski/908608/ltcube_445392001_445651201_4FGL_J1028.4-0234_daily_bin795.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/908608/ft2_4FGL_J1028.4-0234_daily_bin795.fits
.....................!
real 16.12
user 15.68
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/908608/ft1_filtered_4FGL_J1028.4-0234_daily_bin795.fits evtable="EVENTS" scfile=/scratch/kocevski/908608/ft2_4FGL_J1028.4-0234_daily_bin795.fits sctable="SC_DATA" expcube=/scratch/kocevski/908608/ltcube_445392001_445651201_4FGL_J1028.4-0234_daily_bin795.fits outfile=/scratch/kocevski/908608/expmap_445392001_445651201_4FGL_J1028.4-0234_daily_bin795.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/908608/ltcube_445392001_445651201_4FGL_J1028.4-0234_daily_bin795.fits
.....................!
real 191.42
user 186.07
sys 4.83

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/908608/ft1_filtered_4FGL_J1028.4-0234_daily_bin795.fits scfile=/scratch/kocevski/908608/ft2_4FGL_J1028.4-0234_daily_bin795.fits outfile=/scratch/kocevski/908608/cmap_445392001_445651201_4FGL_J1028.4-0234_daily_bin795.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/908608/ft1_filtered_4FGL_J1028.4-0234_daily_bin795.fits scfile=/scratch/kocevski/908608/ft2_4FGL_J1028.4-0234_daily_bin795.fits outfile=/scratch/kocevski/908608/cmap_HighResolution_445392001_445651201_4FGL_J1028.4-0234_daily_bin795.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0457       1.0000         .10000E-03   10000.    
     2 'norm      '    .27962       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    68.061       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23134E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17572E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.0578       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7078       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.8741       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9968       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8504       1.0000         .10000E-03   10000.    
    16 'norm      '    .65029       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1036       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .74925       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=   7764.340     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     1944 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0461        .63553        .10035E-07   -.15287E-03
   2  norm          .28025        .78968        .10190E-06   -.68559E-03
   3  Prefactor     .10000E-03    5.1702       -.93537E-08** at limit **
   4  Prefactor     68.070        38.141        .13032E-05    .13290E-03
   5  Prefactor     .10000E-03    29.818        .40353E-06** at limit **
   6  norm          .10000E-03    3.9527        .68757E-09** at limit **
   7  Prefactor     .10000E-03    3.5510        .11954E-07** at limit **
   8  Prefactor     .10000E-03    22.853       -.59926E-06** at limit **
   9  Prefactor     .10000E-03    28.366        .11319E-06** at limit **
  10  Prefactor     .10000E-03    12.111       -.56113E-07** at limit **
  11  norm          7.0579        1.8325        .24001E-08   -.77706E-04
  12  Prefactor     6.7116        6.4489       -.16841E-06   -.22497E-03
  13  Prefactor     5.8768        3.0711       -.14500E-06   -.14687E-03
  14  Prefactor     3.9799        9.1858        .27140E-05    .22398E-03
  15  norm          2.8493        .70114       -.32962E-07   -.28207E-03
  16  norm          .64781        3.1880        .11552E-05   -.65857E-03
  17  Prefactor     .10000E-03    5.0029        .39844E-08** at limit **
  18  Normalizat    1.1031        .17480       -.87060E-06   -.15007E-04
  19  Prefactor     .74958        .12469        .16053E-06   -.10195E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.04609
  norm       = 0.280246
  Prefactor  = 0.0001
  Prefactor  = 68.0699
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 7.05791
  Prefactor  = 6.71155
  Prefactor  = 5.87677
  Prefactor  = 3.97987
  norm       = 2.84925
  norm       = 0.647814
  Prefactor  = 0.0001
  Normalizat = 1.1031
  Prefactor  = 0.749577
 **********
 **   18 **HESSE 
 **********

 FCN=   7764.340     FROM HESSE     STATUS=OK           274 CALLS     2218 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0461        .63400        .37604E-04   -1.5422    
   2  norm          .28025        .90838        .13027E-02   -1.5602    
   3  Prefactor     .10000E-03    5.1937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     68.070        38.451        .48652E-04   -1.4056    
   5  Prefactor     .10000E-03    30.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.9553        .17109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.5588        .16204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    238.05        .90353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.0579        1.8312        .57507E-04   -1.5177    
  12  Prefactor     6.7116        6.5044        .15493E-03   -1.5190    
  13  Prefactor     5.8768        3.0834        .10582E-03   -1.5223    
  14  Prefactor     3.9799        9.3769        .20173E-03   -1.5309    
  15  norm          2.8493        .70134        .34597E-04   -1.5370    
  16  norm          .64781        5.7879        .41017E-03   -1.5547    
  17  Prefactor     .10000E-03    5.0274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1031        .20327        .26084E-03   -.89652    
  19  Prefactor     .74958        .14614        .23402E-03   -1.0161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25757e-09
Minuit parameter uncertainties:
  1  0.634005
  2  0.908422
  3  1.69312e-06
  4  38.4652
  5  3.364e-05
  6  6.43761e-07
  7  1.84707e-06
  8  7.22152e-05
  9  0.00206375
  10  6.29778e-07
  11  1.83119
  12  6.50512
  13  3.08346
  14  9.38032
  15  0.701345
  16  3.87291
  17  9.93322e-06
  18  0.203413
  19  0.146213
Done.

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

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  6.712e+00  6.505e+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

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  7.496e-01  1.462e-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.103e+00  2.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.34
Ra Dec: 157.121 -2.583
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 4.57e-08 +/- 4.43e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.15e-05

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

Saving results to:
/scratch/kocevski/908608/likelihoodResults_445392001_445651201_4FGL_J1028.4-0234_daily_bin795.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): 0
logL (Free Index) = 7764.32912088
delta logL = 0.0109153299845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7764.32127047
delta logL = 0.0187657420474

Fit tolerance = 1e-08

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

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

 FCN=   7764.321     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      272 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6739        8.4098        .14476E-03    .26899E-03
   2  Index         2.4019        1.0334        .11457E-01    .57817E-04
   3  Normalizat    1.1119        .19788        .25995E-03   -.16662E-03
   4  Prefactor     .74393        .14759        .23480E-03   -.26470E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.67395
  Index      = 2.40195
  Normalizat = 1.11194
  Prefactor  = 0.743931
 **********
 **   18 **HESSE 
 **********

 FCN=   7764.321     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6739        8.0810        .57902E-05   -1.5154    
   2  Index         2.4019        .99249        .45830E-03   -.54639    
   3  Normalizat    1.1119        .19765        .10398E-04   -.89369    
   4  Prefactor     .74393        .14737        .93920E-05   -1.0183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08092e-10
Minuit parameter uncertainties:
  1  8.08213
  2  1.00164
  3  0.197778
  4  0.147451
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/908608': 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) = 7764.32126853
delta logL = 0.0187676841815

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  7.674e+00  8.082e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.402e+00  1.002e+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:  7.439e-01  1.475e-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.112e+00  1.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.37
Ra Dec: 157.121 -2.583
Photon Index (Free Index): 2.40 +/- 1.00
Photon Flux (Free Index): 4.11e-08 +/- 4.77e-08
Energy Flux (Free Index): 1.34e-05 +/- 1.57e-05

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/908608/cmap_HighResolution_445392001_445651201_4FGL_J1028.4-0234_daily_bin795.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='4.57e-08', energy_flux2='1.34e-05', photon_flux_error='4.43e-08', dlogl='1.88e-02', energy_flux='1.18e-05', photon_flux2='4.11e-08', job_status='DONE', time_completed='2021-09-01 23:42:04.579460', photon_index_error2='1.00', photon_index2='2.40', ts='1.34', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.57e-05', EG='1.10', time_epoch_completed='1630564924.58', return_code='0', job_id='908608', GAL2='0.74', EG2='1.11', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='4.77e-08', ts2='1.37', photon_index='2.61' WHERE bin_id='795' AND source_name='4FGL J1028.4-0234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:42:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 908608: <4FGL_J1028.4-0234_daily_bin795> in cluster <slac> Done

Job <4FGL_J1028.4-0234_daily_bin795> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 23:30:26 2021
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:30:59 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:30:59 2021
Terminated at Wed Sep  1 23:42:05 2021
Results reported at Wed Sep  1 23:42:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.4-0234_daily_bin795 157.121 -2.5829 445392001 445651201 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 :                                   654.24 sec.
    Max Memory :                                 1253 MB
    Average Memory :                             362.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   665 sec.
    Turnaround time :                            699 sec.

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

