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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin868
RA = 159.427, Dec = -28.3816
tmin = 464313601, tmax = 464572801
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='30028', job_status='RUN', time_executed='2021-09-02 06:26:03.121845', time_epoch_executed='1630589163.12' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='868'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30028

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30028/ft1_4FGL_J1037.7-2822_daily_bin868.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30028/ft2_4FGL_J1037.7-2822_daily_bin868.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30028/ft1_4FGL_J1037.7-2822_daily_bin868.fits outfile=/scratch/kocevski/30028/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin868.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=464313601.0 tmax=464572801.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.38
user 3.13
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/30028/ft2_4FGL_J1037.7-2822_daily_bin868.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/30028/ft2_4FGL_J1037.7-2822_daily_bin868.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/30028/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin868.fits evtable="EVENTS" outfile="/scratch/kocevski/30028/ft1_filtered_4FGL_J1037.7-2822_daily_bin868.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.36
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/30028/ft1_filtered_4FGL_J1037.7-2822_daily_bin868.fits" evtable="EVENTS" scfile=/scratch/kocevski/30028/ft2_4FGL_J1037.7-2822_daily_bin868.fits sctable="SC_DATA" outfile=/scratch/kocevski/30028/ltcube_464313601_464572801_4FGL_J1037.7-2822_daily_bin868.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/30028/ft2_4FGL_J1037.7-2822_daily_bin868.fits
.....................!
real 12.40
user 11.97
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30028/ft1_filtered_4FGL_J1037.7-2822_daily_bin868.fits evtable="EVENTS" scfile=/scratch/kocevski/30028/ft2_4FGL_J1037.7-2822_daily_bin868.fits sctable="SC_DATA" expcube=/scratch/kocevski/30028/ltcube_464313601_464572801_4FGL_J1037.7-2822_daily_bin868.fits outfile=/scratch/kocevski/30028/expmap_464313601_464572801_4FGL_J1037.7-2822_daily_bin868.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/30028/ltcube_464313601_464572801_4FGL_J1037.7-2822_daily_bin868.fits
.....................!
real 189.99
user 184.80
sys 4.60

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 174 point sources and 0 extended sources

Setting source of interest to:
4FGL J1037.7-2822 @ 159.427 -28.3816

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/30028/ft1_filtered_4FGL_J1037.7-2822_daily_bin868.fits scfile=/scratch/kocevski/30028/ft2_4FGL_J1037.7-2822_daily_bin868.fits outfile=/scratch/kocevski/30028/cmap_464313601_464572801_4FGL_J1037.7-2822_daily_bin868.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=159.427 yref=-28.3816 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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/30028/ft1_filtered_4FGL_J1037.7-2822_daily_bin868.fits scfile=/scratch/kocevski/30028/ft2_4FGL_J1037.7-2822_daily_bin868.fits outfile=/scratch/kocevski/30028/cmap_HighResolution_464313601_464572801_4FGL_J1037.7-2822_daily_bin868.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=159.427 yref=-28.3816 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.57
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/30028/ft1_filtered_4FGL_J1037.7-2822_daily_bin868.fits evtable="EVENTS" scfile=/scratch/kocevski/30028/ft2_4FGL_J1037.7-2822_daily_bin868.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/30028/Model_4FGL_J1037.7-2822_daily_bin868.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/30028/ft1_filtered_4FGL_J1037.7-2822_daily_bin868.fits.....................!
real 88.15
user 85.67
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/30028/ft1_filtered_4FGL_J1037.7-2822_daily_bin868.fits', '/scratch/kocevski/30028/ft2_4FGL_J1037.7-2822_daily_bin868.fits', expMap='/scratch/kocevski/30028/expmap_464313601_464572801_4FGL_J1037.7-2822_daily_bin868.fits', expCube='/scratch/kocevski/30028/ltcube_464313601_464572801_4FGL_J1037.7-2822_daily_bin868.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/30028/Model_4FGL_J1037.7-2822_daily_bin868.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1037.7-2822'

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  3.073e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.404e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
294         beta:  9.457e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
295           Eb:  8.993e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/30028/ft1_filtered_4FGL_J1037.7-2822_daily_bin868.fits
Spacecraft file(s): /scratch/kocevski/30028/ft2_4FGL_J1037.7-2822_daily_bin868.fits
Exposure map: /scratch/kocevski/30028/expmap_464313601_464572801_4FGL_J1037.7-2822_daily_bin868.fits
Exposure cube: /scratch/kocevski/30028/ltcube_464313601_464572801_4FGL_J1037.7-2822_daily_bin868.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/30028/Model_4FGL_J1037.7-2822_daily_bin868.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) = 8849.90772294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6664       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    13.692       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.4068       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .59752E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.3269       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10901E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.233       1.0000         .10000E-03   10000.    
    11 'norm      '    8.0520       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.104       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.486       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.3286       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.2972       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4077       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .82931       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8849.801     FROM MIGRAD    STATUS=CONVERGED    403 CALLS     1764 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6664        4.4481         .0000        .19712E-01
   2  norm          .10000E-03    .32730         .0000    ** at limit **
   3  norm          13.690        9.2515         .0000        .28248E-03
   4  Prefactor     9.4037        12.895         .0000        .12234E-02
   5  Prefactor     .10000E-03    7.2660         .0000    ** at limit **
   6  norm          .10009E-03    4.7472         .0000    ** at limit **
   7  norm          5.3186        6.6409         .0000        .18581E-02
   8  Prefactor     .10016E-03    4.2088         .0000    ** at limit **
   9  Prefactor     .10000E-03    4.2235         .0000    ** at limit **
  10  Prefactor     34.231        18.698         .0000        .41671E-02
  11  norm          8.0521        4.2734         .0000        .88551E-02
  12  Prefactor     17.102        13.615         .0000        .11390E-02
  13  Prefactor     .10000E-03    1.2381         .0000    ** at limit **
  14  Prefactor     15.485        9.2770         .0000        .47968E-03
  15  Prefactor     .10000E-03    1.6643         .0000    ** at limit **
  16  Prefactor     9.3288        7.6972         .0000        .21750E-02
  17  Prefactor     .10002E-03    14.672         .0000    ** at limit **
  18  Prefactor     8.2974        9.3113         .0000        .94025E-03
  19  Normalizat    1.4077        .19851         .0000        .45357E-03
  20  Prefactor     .82930        .99939E-01     .0000        .90245E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.66638
  norm       = 0.0001
  norm       = 13.6898
  Prefactor  = 9.40375
  Prefactor  = 0.0001
  norm       = 0.000100094
  norm       = 5.31862
  Prefactor  = 0.000100157
  Prefactor  = 0.0001
  Prefactor  = 34.2313
  norm       = 8.05214
  Prefactor  = 17.1025
  Prefactor  = 0.0001
  Prefactor  = 15.4851
  Prefactor  = 0.0001
  Prefactor  = 9.32879
  Prefactor  = 0.000100019
  Prefactor  = 8.29738
  Normalizat = 1.40767
  Prefactor  = 0.829301
 **********
 **   18 **HESSE 
 **********

 FCN=   8849.801     FROM HESSE     STATUS=OK           287 CALLS     2051 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6664        4.4045        .15812E-02   -1.5450    
   2  norm          .10000E-03    .33213        .52524E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          13.690        9.2432        .10825E-03   -1.4968    
   4  Prefactor     9.4037        12.880        .13067E-03   -1.5095    
   5  Prefactor     .10000E-03    7.3018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10009E-03    16.183        .38596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.3186        6.4942        .17413E-03   -1.5247    
   8  Prefactor     .10016E-03    24.953        .37422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.2285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     34.231        18.700        .68490E-04   -1.4537    
  11  norm          8.0521        4.2716        .12539E-03   -1.5140    
  12  Prefactor     17.102        13.640        .96844E-04   -1.4881    
  13  Prefactor     .10000E-03    1.2453        .10210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.485        9.2793        .10178E-03   -1.4921    
  15  Prefactor     .10000E-03    1.6750        .11849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.3288        7.6973        .65608E-03   -1.5097    
  17  Prefactor     .10002E-03    14.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.2974        9.3139        .69589E-03   -1.5132    
  19  Normalizat    1.4077        .23327        .30263E-03   -.80407    
  20  Prefactor     .82930        .11769        .19522E-03   -.98657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04083e-08
Minuit parameter uncertainties:
  1  4.40532
  2  3.16209e-06
  3  9.24411
  4  12.884
  5  2.95696e-05
  6  0.00246793
  7  6.49506
  8  0.00395417
  9  2.51708e-05
  10  18.7028
  11  4.27179
  12  13.6423
  13  1.16721e-06
  14  9.28019
  15  1.25478e-06
  16  7.69812
  17  0.00107028
  18  9.31548
  19  0.233445
  20  0.117723
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  8.052e+00  4.272e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.404e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
294         beta:  9.457e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
295           Eb:  8.993e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  8.293e-01  1.177e-01  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.408e+00  2.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.58
Ra Dec: 159.427 -28.382
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 8.81e-08 +/- 4.67e-08
Energy Flux (Fixed Index): 2.94e-05 +/- 1.56e-05

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) = 8849.55589337
delta logL = 0.244803995201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8849.54217344
delta logL = 0.25852392695

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9430       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7622       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3810       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83805       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8849.542     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      239 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9430        43.166        .41180E-02    .50050E-03
   2  alpha         2.7622        3.8091        .26486        .84639E-04
   3  Normalizat    1.3810        .93024E-01    .68901E-01    .11732E-04
   4  Prefactor     .83806        .40340E-01    .44210E-01    .11339E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.94297
  alpha      = 2.76219
  Normalizat = 1.38097
  Prefactor  = 0.838056
 **********
 **   18 **HESSE 
 **********

 FCN=   8849.542     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9430        4.7724        .10113E-03   -1.5220    
   2  alpha         2.7622        .56734        .10222E-01    .10507    
   3  Normalizat    1.3810        .23169        .30483E-03   -.81181    
   4  Prefactor     .83806        .11733        .19427E-03   -.98340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.72821e-09
Minuit parameter uncertainties:
  1  4.77266
  2  0.572386
  3  0.231863
  4  0.117365
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30028': 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) = 8849.54217344
delta logL = 0.258523929977

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  5.943e+00  4.773e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.762e+00  5.724e-01  0.000e+00  5.000e+00 ( 1.000e+00)
294         beta:  9.457e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
295           Eb:  8.993e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  8.381e-01  1.174e-01  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.381e+00  2.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.23
Ra Dec: 159.427 -28.382
Photon Index (Free Index): 2.76 +/- 0.57
Photon Flux (Free Index): 1.11e-07 +/- 5.74e-08
Energy Flux (Free Index): 2.74e-05 +/- 1.32e-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/30028/cmap_HighResolution_464313601_464572801_4FGL_J1037.7-2822_daily_bin868.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.81e-08', energy_flux2='2.74e-05', photon_flux_error='4.67e-08', dlogl='2.59e-01', energy_flux='2.94e-05', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-02 06:36:41.767081', photon_index_error2='0.57', photon_index2='2.76', ts='6.58', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.32e-05', EG='1.41', time_epoch_completed='1630589801.77', return_code='0', job_id='30028', GAL2='0.84', EG2='1.38', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='5.74e-08', ts2='7.23', photon_index='2.40' WHERE bin_id='868' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:36:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 30028: <4FGL_J1037.7-2822_daily_bin868> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin868> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 06:21:40 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:22:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 06:22:39 2021
Terminated at Thu Sep  2 06:36:42 2021
Results reported at Thu Sep  2 06:36:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin868 159.427 -28.3816 464313601 464572801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1037.7-2822 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   636.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             305.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            902 sec.

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

