/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 117 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 = 7397
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1028.4-0234_daily_bin292
RA = 157.121, Dec = -2.5829
tmin = 315014401, tmax = 315273601
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='905940', job_status='RUN', time_executed='2021-09-01 23:25:24.683098', time_epoch_executed='1630563924.68' WHERE source_name='4FGL J1028.4-0234' and cadence='daily' and bin_id='292'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905940

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905940/ft1_4FGL_J1028.4-0234_daily_bin292.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905940/ft2_4FGL_J1028.4-0234_daily_bin292.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905940/ft1_4FGL_J1028.4-0234_daily_bin292.fits outfile=/scratch/kocevski/905940/ft1_filteredMKT_4FGL_J1028.4-0234_daily_bin292.fits ra=157.121 dec=-2.5829 rad=12.0 tmin=315014401.0 tmax=315273601.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 2.94
user 2.74
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905940/ft1_filtered_4FGL_J1028.4-0234_daily_bin292.fits" evtable="EVENTS" scfile=/scratch/kocevski/905940/ft2_4FGL_J1028.4-0234_daily_bin292.fits sctable="SC_DATA" outfile=/scratch/kocevski/905940/ltcube_315014401_315273601_4FGL_J1028.4-0234_daily_bin292.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/905940/ft2_4FGL_J1028.4-0234_daily_bin292.fits
.....................!
real 12.76
user 12.44
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905940/ft1_filtered_4FGL_J1028.4-0234_daily_bin292.fits evtable="EVENTS" scfile=/scratch/kocevski/905940/ft2_4FGL_J1028.4-0234_daily_bin292.fits sctable="SC_DATA" expcube=/scratch/kocevski/905940/ltcube_315014401_315273601_4FGL_J1028.4-0234_daily_bin292.fits outfile=/scratch/kocevski/905940/expmap_315014401_315273601_4FGL_J1028.4-0234_daily_bin292.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/905940/ltcube_315014401_315273601_4FGL_J1028.4-0234_daily_bin292.fits
.....................!
real 156.19
user 151.51
sys 4.32

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/905940/ft1_filtered_4FGL_J1028.4-0234_daily_bin292.fits scfile=/scratch/kocevski/905940/ft2_4FGL_J1028.4-0234_daily_bin292.fits outfile=/scratch/kocevski/905940/cmap_315014401_315273601_4FGL_J1028.4-0234_daily_bin292.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.47
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905940/ft1_filtered_4FGL_J1028.4-0234_daily_bin292.fits scfile=/scratch/kocevski/905940/ft2_4FGL_J1028.4-0234_daily_bin292.fits outfile=/scratch/kocevski/905940/cmap_HighResolution_315014401_315273601_4FGL_J1028.4-0234_daily_bin292.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.49
user 0.32
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/905940/ft1_filtered_4FGL_J1028.4-0234_daily_bin292.fits evtable="EVENTS" scfile=/scratch/kocevski/905940/ft2_4FGL_J1028.4-0234_daily_bin292.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/905940/Model_4FGL_J1028.4-0234_daily_bin292.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/905940/ft1_filtered_4FGL_J1028.4-0234_daily_bin292.fits.....................!
real 47.83
user 46.61
sys 1.07

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4198       1.0000         .10000E-03   10000.    
     2 'norm      '    3.0214       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10575E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11095E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    52.186       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10769E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .36234       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.912       1.0000         .10000E-03   10000.    
    18 'Normalizat'    2.0061       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .41223       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=   5285.562     FROM MIGRAD    STATUS=CONVERGED    386 CALLS     1900 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4198        .75783        .54405E-08    .37790E-05
   2  norm          3.0208        2.6254        .44689E-07   -.11369E-03
   3  Prefactor     .10000E-03    5.2254       -.27570E-07** at limit **
   4  Prefactor     .10000E-03    60.730       -.10820E-05** at limit **
   5  Prefactor     .10000E-03    55.593        .95281E-07** at limit **
   6  norm          .10000E-03    7.9445       -.70841E-07** at limit **
   7  Prefactor     .10000E-03    11.769       -.48155E-06** at limit **
   8  Prefactor     .10000E-03    51.276        .63621E-06** at limit **
   9  Prefactor     52.176        61.446        .28237E-09   -.29531E-04
  10  Prefactor     .10000E-03    21.398       -.56899E-06** at limit **
  11  norm          .10000E-03    .88056       -.92480E-08** at limit **
  12  Prefactor     .10000E-03    21.264        .85384E-07** at limit **
  13  Prefactor     .10000E-03    .92717        .25294E-08** at limit **
  14  Prefactor     .10000E-03    13.205        .22433E-06** at limit **
  15  norm          .36237        1.0471        .10397E-05   -.36670E-03
  16  norm          .10000E-03    1.9968        .30210E-08** at limit **
  17  Prefactor     24.915        21.735       -.22608E-05   -.15325E-03
  18  Normalizat    2.0059        .23755       -.16259E-06   -.81337E-04
  19  Prefactor     .41249        .16405       -.88903E-07   -.27910E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.41982
  norm       = 3.02085
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 52.176
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.36237
  norm       = 0.0001
  Prefactor  = 24.9148
  Normalizat = 2.00585
  Prefactor  = 0.412489
 **********
 **   18 **HESSE 
 **********

 FCN=   5285.562     FROM HESSE     STATUS=OK           260 CALLS     2160 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4198        .75236        .44633E-04   -1.5470    
   2  norm          3.0208        2.6196        .10565E-03   -1.5360    
   3  Prefactor     .10000E-03    5.2356        .16230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    61.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    56.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.9545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    51.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     52.176        61.299        .55519E-04   -1.4262    
  10  Prefactor     .10000E-03    21.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .90585        .13306E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.107        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .92906        .68360E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .36237        1.0500        .81014E-04   -1.5588    
  16  norm          .10000E-03    1.9975        .10033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     24.915        21.850        .80258E-04   -1.4709    
  18  Normalizat    2.0059        .27051        .23196E-03   -.64404    
  19  Prefactor     .41249        .18472        .32634E-03   -1.1618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36801e-10
Minuit parameter uncertainties:
  1  0.752368
  2  2.61969
  3  5.62401e-06
  4  0.000656122
  5  4.60934e-05
  6  1.6884e-05
  7  9.68848e-05
  8  0.000719166
  9  61.3731
  10  0.000103837
  11  1.40785e-06
  12  3.05752e-06
  13  2.0997e-07
  14  2.41956e-05
  15  1.05006
  16  4.45877e-08
  17  21.8571
  18  0.270718
  19  0.184983
Done.

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

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  3.058e-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:  4.125e-01  1.850e-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:  2.006e+00  2.707e-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.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/905940/likelihoodResults_315014401_315273601_4FGL_J1028.4-0234_daily_bin292.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) = 5285.56262428
delta logL = -0.000215880485484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5285.56241174
delta logL = -3.34329706675e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6907       1.0000          .0000       10.000    
     3 'Normalizat'    2.0060       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .41255       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=   5285.537     FROM MIGRAD    STATUS=FAILED       209 CALLS      377 TOTAL
                     EDM=   .40E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .78854        66.250        .39339E-02   -.12321E-01
   2  Index         3.6916        2.1565        .50000        .28204E-05
   3  Normalizat    1.9831        .27033E-01    .23196E-03    .34406E-04
   4  Prefactor     .42054        .18903E-01    .32634E-03    .33618E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5285.537     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      451 TOTAL
                     EDM=   .86E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .78854        66.250        .23389E-03   -.12321E-01
   2  Index         3.6916        2.1565        .28282E-02    .28204E-05
   3  Normalizat    1.9831        .27033E-01    .10066E-03    .34406E-04
   4  Prefactor     .42054        .18903E-01    .56478E-04    .33618E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5285.537     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      484 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .78855        6.4428        .78678E-03   -.49217E-03
   2  Index         3.6916        2.7528        .72523E-02    .27562E-04
   3  Normalizat    1.9831        .28008        .92784E-05    .64205E-04
   4  Prefactor     .42054        .18649        .13053E-04    .47553E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.788548
  Index      = 3.69164
  Normalizat = 1.98309
  Prefactor  = 0.420537
 **********
 **   18 **HESSE 
 **********

 FCN=   5285.537     FROM HESSE     STATUS=OK            27 CALLS      511 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .78855        6.6016        .15736E-03   -1.5886    
   2  Index         3.6916        2.7694        .14505E-02   -.26475    
   3  Normalizat    1.9831        .28080        .18557E-05   -.64975    
   4  Prefactor     .42054        .18676        .26107E-05   -1.1577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.17949e-12
Minuit parameter uncertainties:
  1  4.56359
  2  2.94971
  3  0.281034
  4  0.187031
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905940': 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) = 5285.5366727
delta logL = 0.0257357006085

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  7.885e-01  4.564e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  3.692e+00  2.950e+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:  4.205e-01  1.870e-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.983e+00  2.810e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/905940/cmap_HighResolution_315014401_315273601_4FGL_J1028.4-0234_daily_bin292.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', job_status='DONE', photon_flux_upper_limit='1.49e-07', time_completed='2021-09-01 23:32:53.630815', job_id='905940', GAL2='0.42', fit_tolerance='1e-08', EG2='1.98', EG='2.01', time_epoch_completed='1630564373.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.41', dlogl='2.57e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='292' AND source_name='4FGL J1028.4-0234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:32:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 905940: <4FGL_J1028.4-0234_daily_bin292> in cluster <slac> Done

Job <4FGL_J1028.4-0234_daily_bin292> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 23:20:36 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:23:20 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:23:20 2021
Terminated at Wed Sep  1 23:32:54 2021
Results reported at Wed Sep  1 23:32:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.4-0234_daily_bin292 157.121 -2.5829 315014401 315273601 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 :                                   446.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   573 sec.
    Turnaround time :                            738 sec.

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

