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


Performing analysis on: 4FGL_J1028.4-0234_daily_bin875
RA = 157.121, Dec = -2.5829
tmin = 466128001, tmax = 466387201
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='908732', job_status='RUN', time_executed='2021-09-01 23:31:49.603674', time_epoch_executed='1630564309.6' WHERE source_name='4FGL J1028.4-0234' and cadence='daily' and bin_id='875'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/908732

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/908732/ft1_4FGL_J1028.4-0234_daily_bin875.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/908732/ft2_4FGL_J1028.4-0234_daily_bin875.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/908732/ft1_4FGL_J1028.4-0234_daily_bin875.fits outfile=/scratch/kocevski/908732/ft1_filteredMKT_4FGL_J1028.4-0234_daily_bin875.fits ra=157.121 dec=-2.5829 rad=12.0 tmin=466128001.0 tmax=466387201.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.54
user 3.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/908732/ft1_filtered_4FGL_J1028.4-0234_daily_bin875.fits" evtable="EVENTS" scfile=/scratch/kocevski/908732/ft2_4FGL_J1028.4-0234_daily_bin875.fits sctable="SC_DATA" outfile=/scratch/kocevski/908732/ltcube_466128001_466387201_4FGL_J1028.4-0234_daily_bin875.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/908732/ft2_4FGL_J1028.4-0234_daily_bin875.fits
.....................!
real 14.60
user 14.13
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/908732/ft1_filtered_4FGL_J1028.4-0234_daily_bin875.fits evtable="EVENTS" scfile=/scratch/kocevski/908732/ft2_4FGL_J1028.4-0234_daily_bin875.fits sctable="SC_DATA" expcube=/scratch/kocevski/908732/ltcube_466128001_466387201_4FGL_J1028.4-0234_daily_bin875.fits outfile=/scratch/kocevski/908732/expmap_466128001_466387201_4FGL_J1028.4-0234_daily_bin875.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/908732/ltcube_466128001_466387201_4FGL_J1028.4-0234_daily_bin875.fits
.....................!
real 193.52
user 187.99
sys 4.87

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/908732/ft1_filtered_4FGL_J1028.4-0234_daily_bin875.fits scfile=/scratch/kocevski/908732/ft2_4FGL_J1028.4-0234_daily_bin875.fits outfile=/scratch/kocevski/908732/cmap_466128001_466387201_4FGL_J1028.4-0234_daily_bin875.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.61
user 0.37
sys 0.17

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/908732/ft1_filtered_4FGL_J1028.4-0234_daily_bin875.fits evtable="EVENTS" scfile=/scratch/kocevski/908732/ft2_4FGL_J1028.4-0234_daily_bin875.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/908732/Model_4FGL_J1028.4-0234_daily_bin875.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/908732/ft1_filtered_4FGL_J1028.4-0234_daily_bin875.fits.....................!
real 57.80
user 56.46
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32878       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.3896       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .91507E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10480E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.729       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.6512       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .61784E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4741       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11796E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    15.234       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0214       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.6191       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .81127       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=   5783.999     FROM MIGRAD    STATUS=CONVERGED    694 CALLS     1987 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32880        .38740        .54260E-03   -.62509E-03
   2  norm          .10000E-03    1.1809        .15790E-03** at limit **
   3  Prefactor     8.3912        8.8257        .13840E-03    .47757E-04
   4  Prefactor     .10000E-03    17.648        .18142E-02** at limit **
   5  Prefactor     .10000E-03    189.72        .72279E-02** at limit **
   6  norm          .10000E-03    5.1870        .16911E-02** at limit **
   7  Prefactor     .10000E-03    3.4971        .13868E-02** at limit **
   8  Prefactor     .10000E-03    53.575        .18142E-02** at limit **
   9  Prefactor     26.746        27.897        .77487E-04   -.26908E-04
  10  Prefactor     .10000E-03    4.9882        .16585E-02** at limit **
  11  norm          2.6513        1.4877        .67067E-04    .27987E-03
  12  Prefactor     .10001E-03    67.488        .27901E-02** at limit **
  13  Prefactor     2.4740        3.1492        .14647E-03    .19195E-03
  14  Prefactor     .10000E-03    12.548        .36285E-03** at limit **
  15  norm          .10000E-03    1.6017        .82419E-03** at limit **
  16  norm          15.235        9.9237        .10262E-03    .59826E-05
  17  Prefactor     1.0014        19.973        .33563E-02    .23066E-03
  18  Normalizat    1.6192        .26374        .25191E-03    .21842E-03
  19  Prefactor     .81113        .19191        .25414E-03    .16305E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.328798
  norm       = 0.0001
  Prefactor  = 8.39122
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.7456
  Prefactor  = 0.0001
  norm       = 2.65133
  Prefactor  = 0.000100013
  Prefactor  = 2.47404
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.2348
  Prefactor  = 1.00143
  Normalizat = 1.61921
  Prefactor  = 0.811132
 **********
 **   18 **HESSE 
 **********

 FCN=   5783.999     FROM HESSE     STATUS=OK           252 CALLS     2239 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32880        .38729        .21704E-04   -1.5593    
   2  norm          .10000E-03    1.1809        .31580E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.3912        8.8252        .27681E-04   -1.5129    
   4  Prefactor     .10000E-03    17.648        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    195.75        .28912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.1871        .33821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.4973        .27736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    53.600        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.746        27.896        .15497E-04   -1.4673    
  10  Prefactor     .10000E-03    4.9882        .33171E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.6513        1.4874        .26827E-05   -1.5382    
  12  Prefactor     .10001E-03    69.671        .11160E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.4740        3.1489        .58587E-05   -1.5393    
  14  Prefactor     .10000E-03    12.548        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.6087        .16484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.235        9.9230        .41046E-05   -1.4927    
  17  Prefactor     1.0014        19.795        .13425E-03   -1.5508    
  18  Normalizat    1.6192        .26314        .50382E-04   -.74481    
  19  Prefactor     .81113        .19203        .10166E-04   -.99319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61793e-10
Minuit parameter uncertainties:
  1  0.387293
  2  2.28773e-06
  3  8.8266
  4  9.16591e-06
  5  0.000936063
  6  1.12712e-05
  7  2.23094e-05
  8  0.00015349
  9  27.9095
  10  2.38705e-05
  11  1.48745
  12  0.00193095
  13  3.1491
  14  7.52213e-06
  15  5.1322e-05
  16  9.9241
  17  8.90764
  18  0.263369
  19  0.192189
Done.

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

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  1.931e-03  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.613e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
237        Scale:  6.037e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  8.111e-01  1.922e-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.619e+00  2.634e-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: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/908732/likelihoodResults_466128001_466387201_4FGL_J1028.4-0234_daily_bin875.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) = 5783.99891111
delta logL = -6.93818265063e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5783.99870056
delta logL = 0.000141167384754

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38311E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8400       1.0000          .0000       10.000    
     3 'Normalizat'    1.6192       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81125       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   5783.330     FROM MIGRAD    STATUS=FAILED       277 CALLS      453 TOTAL
                     EDM=   .31E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .29483E-01    .17271E-03** at limit **
   2  Index         9.9464        6.9339        .51831E-01   -.50478E-03
   3  Normalizat    1.5362        .15879        .25714E-03   -.84967E-04
   4  Prefactor     .85384        .11316        .24844E-03   -.47590E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5783.330     FROM SIMPLEX   STATUS=UNCHANGED    168 CALLS      621 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .29483E-01    .11614E-04** at limit **
   2  Index         9.9464        6.9339        .36353E-03   -.50478E-03
   3  Normalizat    1.5362        .15879        .22459E-05   -.84967E-04
   4  Prefactor     .85384        .11316        .22830E-05   -.47590E-05
                               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.

 FCN=   5783.330     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      705 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .20462E-01    .20005E-03** at limit **
   2  Index         9.9463        8.4051        .20732E-02    .24676E-06
   3  Normalizat    1.5362        .11654        .10286E-04   -.17818E-03
   4  Prefactor     .85384        .86944E-01    .19875E-05   -.53768E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.94634
  Normalizat = 1.53622
  Prefactor  = 0.85384
 **********
 **   18 **HESSE 
 **********

 FCN=   5783.330     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      738 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .19002E-01    .20735E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.9463        8.5995        .82929E-04    1.4242    
   3  Normalizat    1.5362        .11376        .20571E-05   -.76766    
   4  Prefactor     .85384        .85225E-01    .39751E-06   -.97773    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.97433e-11
Minuit parameter uncertainties:
  1  1.0159e-08
  2  7.58408
  3  0.113779
  4  0.085238
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/908732': 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): 102
logL (Free Index) = 5783.32971436
delta logL = 0.669127368966

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  1.016e-08  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  9.946e+00  7.584e+00  0.000e+00  1.000e+01 (-1.000e+00)
237        Scale:  6.037e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  8.538e-01  8.524e-02  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.536e+00  1.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.41
Ra Dec: 157.121 -2.583
Photon Index (Free Index): 9.95 +/- 7.58
Photon Flux (Free Index): 6.73e-08 +/- 8.34e-07
Energy Flux (Free Index): 7.53e-06 +/- 9.31e-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/908732/cmap_HighResolution_466128001_466387201_4FGL_J1028.4-0234_daily_bin875.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.63e-03', comment='SUCCESS', energy_flux2='7.53e-06', dlogl='6.69e-01', photon_flux2='6.73e-08', job_status='DONE', time_completed='2021-09-01 23:41:39.881838', photon_index_error2='7.58', photon_index2='9.95', ts='-0.00', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='9.31e-05', EG='1.62', time_epoch_completed='1630564899.88', return_code='0', job_id='908732', GAL2='0.85', EG2='1.54', return_code2='102', photon_flux_error2='8.34e-07', ts2='1.41', photon_index='2.61' WHERE bin_id='875' AND source_name='4FGL J1028.4-0234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:41:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 908732: <4FGL_J1028.4-0234_daily_bin875> in cluster <slac> Done

Job <4FGL_J1028.4-0234_daily_bin875> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 23:30:36 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:31:36 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:31:36 2021
Terminated at Wed Sep  1 23:41:40 2021
Results reported at Wed Sep  1 23:41:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.4-0234_daily_bin875 157.121 -2.5829 466128001 466387201 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 :                                   586.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   604 sec.
    Turnaround time :                            664 sec.

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

