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


Performing analysis on: 4FGL_J1028.4-0234_daily_bin470
RA = 157.121, Dec = -2.5829
tmin = 361152001, tmax = 361411201
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='907235', job_status='RUN', time_executed='2021-09-01 23:29:35.593844', time_epoch_executed='1630564175.59' WHERE source_name='4FGL J1028.4-0234' and cadence='daily' and bin_id='470'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907235

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907235/ft1_4FGL_J1028.4-0234_daily_bin470.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907235/ft2_4FGL_J1028.4-0234_daily_bin470.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907235/ft1_4FGL_J1028.4-0234_daily_bin470.fits outfile=/scratch/kocevski/907235/ft1_filteredMKT_4FGL_J1028.4-0234_daily_bin470.fits ra=157.121 dec=-2.5829 rad=12.0 tmin=361152001.0 tmax=361411201.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.56
user 3.37
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/907235/ft1_filtered_4FGL_J1028.4-0234_daily_bin470.fits" evtable="EVENTS" scfile=/scratch/kocevski/907235/ft2_4FGL_J1028.4-0234_daily_bin470.fits sctable="SC_DATA" outfile=/scratch/kocevski/907235/ltcube_361152001_361411201_4FGL_J1028.4-0234_daily_bin470.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/907235/ft2_4FGL_J1028.4-0234_daily_bin470.fits
.....................!
real 16.57
user 16.17
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907235/ft1_filtered_4FGL_J1028.4-0234_daily_bin470.fits evtable="EVENTS" scfile=/scratch/kocevski/907235/ft2_4FGL_J1028.4-0234_daily_bin470.fits sctable="SC_DATA" expcube=/scratch/kocevski/907235/ltcube_361152001_361411201_4FGL_J1028.4-0234_daily_bin470.fits outfile=/scratch/kocevski/907235/expmap_361152001_361411201_4FGL_J1028.4-0234_daily_bin470.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/907235/ltcube_361152001_361411201_4FGL_J1028.4-0234_daily_bin470.fits
.....................!
real 190.83
user 186.68
sys 3.75

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/907235/ft1_filtered_4FGL_J1028.4-0234_daily_bin470.fits scfile=/scratch/kocevski/907235/ft2_4FGL_J1028.4-0234_daily_bin470.fits outfile=/scratch/kocevski/907235/cmap_361152001_361411201_4FGL_J1028.4-0234_daily_bin470.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.40
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/907235/ft1_filtered_4FGL_J1028.4-0234_daily_bin470.fits evtable="EVENTS" scfile=/scratch/kocevski/907235/ft2_4FGL_J1028.4-0234_daily_bin470.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/907235/Model_4FGL_J1028.4-0234_daily_bin470.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/907235/ft1_filtered_4FGL_J1028.4-0234_daily_bin470.fits.....................!
real 59.43
user 58.21
sys 1.06

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3136       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10832E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .22956E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.332       1.0000         .10000E-03   10000.    
     9 'Prefactor '    79.962       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15292E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .63784       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.796       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.9011       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.9560       1.0000         .10000E-03   10000.    
    15 'norm      '    2.9726       1.0000         .10000E-03   10000.    
    16 'norm      '    24.205       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3850       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .73518       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.3093       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=   6045.316     FROM MIGRAD    STATUS=CONVERGED    383 CALLS     1900 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3137        .92753       -.10799E-07    .65343E-04
   2  norm          .10000E-03    .60690        .23804E-07** at limit **
   3  Prefactor     .10000E-03    9.4682       -.28917E-06** at limit **
   4  Prefactor     .10000E-03    70.794        .56336E-06** at limit **
   5  Prefactor     .10000E-03    26.583       -.62156E-06** at limit **
   6  norm          .10005E-03    11.548       -.13982E-05** at limit **
   7  Prefactor     .10000E-03    5.4654       -.15688E-05** at limit **
   8  Prefactor     28.315        46.954        .10726E-06    .18505E-04
   9  Prefactor     79.911        55.591       -.93429E-06    .27690E-04
  10  Prefactor     .10000E-03    25.410       -.56331E-05** at limit **
  11  norm          .63811        1.3079        .29838E-06    .18746E-03
  12  Prefactor     11.797        9.8144       -.22782E-06   -.30361E-04
  13  Prefactor     7.9012        4.5671        .19080E-07    .54017E-04
  14  Prefactor     7.9580        10.862       -.15329E-06   -.76086E-05
  15  norm          2.9726        1.0241       -.83360E-07    .12247E-04
  16  norm          24.201        11.870       -.56233E-07   -.28141E-05
  17  Prefactor     2.3862        19.133        .16867E-05    .17228E-04
  18  Normalizat    .73513        .23866        .12626E-05    .61379E-04
  19  Prefactor     1.3092        .17476       -.28612E-06    .14650E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.3137
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100053
  Prefactor  = 0.0001
  Prefactor  = 28.3148
  Prefactor  = 79.9107
  Prefactor  = 0.0001
  norm       = 0.638115
  Prefactor  = 11.7967
  Prefactor  = 7.9012
  Prefactor  = 7.95795
  norm       = 2.97258
  norm       = 24.2009
  Prefactor  = 2.38622
  Normalizat = 0.735127
  Prefactor  = 1.30924
 **********
 **   18 **HESSE 
 **********

 FCN=   6045.316     FROM HESSE     STATUS=OK           272 CALLS     2172 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3137        .92577        .45166E-04   -1.5404    
   2  norm          .10000E-03    .60855        .59148E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.5616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    71.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10005E-03    41.573        .47507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.4955        .17753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.315        46.838        .75267E-04   -1.4643    
   9  Prefactor     79.911        55.664        .22456E-03   -1.3918    
  10  Prefactor     .10000E-03    25.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .63811        1.2768        .12124E-03   -1.5548    
  12  Prefactor     11.797        9.7973        .11664E-03   -1.5021    
  13  Prefactor     7.9012        4.5623        .11649E-03   -1.5146    
  14  Prefactor     7.9580        10.813        .14215E-03   -1.5144    
  15  norm          2.9726        1.0311        .35861E-04   -1.5363    
  16  norm          24.201        11.870        .81419E-04   -1.4724    
  17  Prefactor     2.3862        19.249        .26523E-03   -1.5399    
  18  Normalizat    .73513        .27309        .36870E-03   -1.0252    
  19  Prefactor     1.3092        .20244        .21919E-03   -.83033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28602e-09
Minuit parameter uncertainties:
  1  0.925774
  2  1.85385e-09
  3  4.24154e-06
  4  3.2602e-05
  5  7.76088e-05
  6  0.00296516
  7  2.57781e-05
  8  46.8993
  9  55.7004
  10  0.000173963
  11  1.27687
  12  9.79861
  13  4.56248
  14  10.8159
  15  1.0311
  16  11.8712
  17  13.5602
  18  0.273601
  19  0.202565
Done.

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

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.180e+01  9.799e+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:  1.309e+00  2.026e-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:  7.351e-01  2.736e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.92
Ra Dec: 157.121 -2.583
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 8.04e-08 +/- 6.67e-08
Energy Flux (Fixed Index): 2.08e-05 +/- 1.73e-05

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

Saving results to:
/scratch/kocevski/907235/likelihoodResults_361152001_361411201_4FGL_J1028.4-0234_daily_bin470.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) = 6045.28052597
delta logL = 0.0350939897316

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6045.2667215
delta logL = 0.0488984570302

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.103       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8248       1.0000          .0000       10.000    
     3 'Normalizat'    .72284       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3163       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=   6045.267     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      216 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.089        184.22        .31515E-02    .16693E-03
   2  Index         2.8266        6.4080        .20244        .81375E-04
   3  Normalizat    .72305        .79932E-01    .83901E-01    .19868E-04
   4  Prefactor     1.3163        .64343E-01    .49472E-01   -.25616E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0889
  Index      = 2.82664
  Normalizat = 0.723047
  Prefactor  = 1.31632
 **********
 **   18 **HESSE 
 **********

 FCN=   6045.267     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.089        11.067        .12606E-03   -1.5073    
   2  Index         2.8266        .75284        .71299E-02   -.44967    
   3  Normalizat    .72305        .26557        .37156E-03   -1.0299    
   4  Prefactor     1.3163        .20283        .21869E-03   -.82823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0707e-11
Minuit parameter uncertainties:
  1  11.0696
  2  0.75639
  3  0.266043
  4  0.202948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907235': 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) = 6045.2667166
delta logL = 0.048903359695

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.009e+01  1.107e+01  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.827e+00  7.564e-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.316e+00  2.029e-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:  7.230e-01  2.660e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.00
Ra Dec: 157.121 -2.583
Photon Index (Free Index): 2.83 +/- 0.76
Photon Flux (Free Index): 8.91e-08 +/- 7.35e-08
Energy Flux (Free Index): 1.96e-05 +/- 1.67e-05

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/907235/cmap_HighResolution_361152001_361411201_4FGL_J1028.4-0234_daily_bin470.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.65e-02', comment='SUCCESS', photon_flux='8.04e-08', energy_flux2='1.96e-05', photon_flux_error='6.67e-08', dlogl='4.89e-02', energy_flux='2.08e-05', photon_flux2='8.91e-08', job_status='DONE', time_completed='2021-09-01 23:38:57.848756', photon_index_error2='0.76', photon_index2='2.83', ts='1.92', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', photon_flux_upper_limit='2.10e-07', energy_flux_error2='1.67e-05', EG='0.74', time_epoch_completed='1630564737.85', return_code='0', job_id='907235', GAL2='1.32', EG2='0.72', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='7.35e-08', ts2='2.00', photon_index='2.61' WHERE bin_id='470' AND source_name='4FGL J1028.4-0234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:38:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 907235: <4FGL_J1028.4-0234_daily_bin470> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.4-0234_daily_bin470 157.121 -2.5829 361152001 361411201 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 :                                   561.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             221.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            821 sec.

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

