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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin895
RA = 159.427, Dec = -28.3816
tmin = 471312001, tmax = 471571201
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='30069', job_status='RUN', time_executed='2021-09-02 06:26:05.920283', time_epoch_executed='1630589165.92' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='895'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30069

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30069/ft1_4FGL_J1037.7-2822_daily_bin895.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30069/ft2_4FGL_J1037.7-2822_daily_bin895.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30069/ft1_4FGL_J1037.7-2822_daily_bin895.fits outfile=/scratch/kocevski/30069/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin895.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=471312001.0 tmax=471571201.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 5.57
user 4.81
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/30069/ft1_filtered_4FGL_J1037.7-2822_daily_bin895.fits" evtable="EVENTS" scfile=/scratch/kocevski/30069/ft2_4FGL_J1037.7-2822_daily_bin895.fits sctable="SC_DATA" outfile=/scratch/kocevski/30069/ltcube_471312001_471571201_4FGL_J1037.7-2822_daily_bin895.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/30069/ft2_4FGL_J1037.7-2822_daily_bin895.fits
.....................!
real 13.64
user 13.24
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30069/ft1_filtered_4FGL_J1037.7-2822_daily_bin895.fits evtable="EVENTS" scfile=/scratch/kocevski/30069/ft2_4FGL_J1037.7-2822_daily_bin895.fits sctable="SC_DATA" expcube=/scratch/kocevski/30069/ltcube_471312001_471571201_4FGL_J1037.7-2822_daily_bin895.fits outfile=/scratch/kocevski/30069/expmap_471312001_471571201_4FGL_J1037.7-2822_daily_bin895.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/30069/ltcube_471312001_471571201_4FGL_J1037.7-2822_daily_bin895.fits
.....................!
real 190.65
user 185.82
sys 4.40

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/30069/ft1_filtered_4FGL_J1037.7-2822_daily_bin895.fits scfile=/scratch/kocevski/30069/ft2_4FGL_J1037.7-2822_daily_bin895.fits outfile=/scratch/kocevski/30069/cmap_471312001_471571201_4FGL_J1037.7-2822_daily_bin895.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.78
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/30069/ft1_filtered_4FGL_J1037.7-2822_daily_bin895.fits scfile=/scratch/kocevski/30069/ft2_4FGL_J1037.7-2822_daily_bin895.fits outfile=/scratch/kocevski/30069/cmap_HighResolution_471312001_471571201_4FGL_J1037.7-2822_daily_bin895.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.61
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/30069/ft1_filtered_4FGL_J1037.7-2822_daily_bin895.fits evtable="EVENTS" scfile=/scratch/kocevski/30069/ft2_4FGL_J1037.7-2822_daily_bin895.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/30069/Model_4FGL_J1037.7-2822_daily_bin895.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/30069/ft1_filtered_4FGL_J1037.7-2822_daily_bin895.fits.....................!
real 85.93
user 83.17
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/30069/ft1_filtered_4FGL_J1037.7-2822_daily_bin895.fits', '/scratch/kocevski/30069/ft2_4FGL_J1037.7-2822_daily_bin895.fits', expMap='/scratch/kocevski/30069/expmap_471312001_471571201_4FGL_J1037.7-2822_daily_bin895.fits', expCube='/scratch/kocevski/30069/ltcube_471312001_471571201_4FGL_J1037.7-2822_daily_bin895.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/30069/Model_4FGL_J1037.7-2822_daily_bin895.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/30069/ft1_filtered_4FGL_J1037.7-2822_daily_bin895.fits
Spacecraft file(s): /scratch/kocevski/30069/ft2_4FGL_J1037.7-2822_daily_bin895.fits
Exposure map: /scratch/kocevski/30069/expmap_471312001_471571201_4FGL_J1037.7-2822_daily_bin895.fits
Exposure cube: /scratch/kocevski/30069/ltcube_471312001_471571201_4FGL_J1037.7-2822_daily_bin895.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/30069/Model_4FGL_J1037.7-2822_daily_bin895.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) = 8174.43973665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .99000       1.0000         .10000E-03   10000.    
     3 'norm      '    23.431       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.238       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11021E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.204       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.903       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    32.885       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11952E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11751E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3135       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10787E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2905       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98781       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8174.413     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2047 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.388        .39207E-05** at limit **
   2  norm          .99063        1.3191        .55082E-07    .11051E-03
   3  norm          23.431        13.122        .12190E-06    .16178E-05
   4  Prefactor     14.234        37.783       -.67098E-05   -.43223E-05
   5  Prefactor     .10000E-03    25.901        .80663E-06** at limit **
   6  norm          10.206        10.328        .46610E-06    .11051E-04
   7  norm          .10000E-03    3.5545        .51856E-07** at limit **
   8  Prefactor     .10000E-03    2.2900        .13257E-06** at limit **
   9  Prefactor     24.902        22.945       -.18337E-06    .50461E-04
  10  Prefactor     .10000E-03    11.095       -.13166E-05** at limit **
  11  norm          32.890        7.1154        .14272E-06    .99282E-04
  12  Prefactor     .10000E-03    13.923       -.26909E-05** at limit **
  13  Prefactor     .10000E-03    4.3215        .64410E-07** at limit **
  14  Prefactor     1.3108        .97616        .73456E-08   -.12946E-03
  15  Prefactor     .10000E-03    4.2941       -.41282E-07** at limit **
  16  Prefactor     .10000E-03    3.1219        .45931E-07** at limit **
  17  Prefactor     .10000E-03    36.688       -.84097E-06** at limit **
  18  Prefactor     .10000E-03    3.2224        .87618E-07** at limit **
  19  Normalizat    1.2901        .23754        .92851E-06   -.73454E-05
  20  Prefactor     .98796        .11592       -.54268E-07    .46618E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.990632
  norm       = 23.4311
  Prefactor  = 14.2342
  Prefactor  = 0.0001
  norm       = 10.206
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.9025
  Prefactor  = 0.0001
  norm       = 32.89
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.31081
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.2901
  Prefactor  = 0.987956
 **********
 **   18 **HESSE 
 **********

 FCN=   8174.413     FROM HESSE     STATUS=OK           291 CALLS     2338 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .99063        1.1572        .11529E-02   -1.5509    
   3  norm          23.431        13.133        .82752E-04   -1.4739    
   4  Prefactor     14.234        37.939        .10615E-03   -1.4953    
   5  Prefactor     .10000E-03    26.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.206        10.313        .12544E-03   -1.5069    
   7  norm          .10000E-03    3.5694        .16641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.2979        .13361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.902        23.018        .80272E-04   -1.4710    
  10  Prefactor     .10000E-03    11.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          32.890        7.1228        .69876E-04   -1.4560    
  12  Prefactor     .10000E-03    13.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.4914        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.3108        14.872        .19224E-02   -1.5479    
  15  Prefactor     .10000E-03    4.4043        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.1336        .15599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    37.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.2261        .15850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2901        .28704        .34526E-03   -.83862    
  20  Prefactor     .98796        .14021        .19576E-03   -.93132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.91062e-11
Minuit parameter uncertainties:
  1  2.72056e-05
  2  1.15726
  3  13.1343
  4  38.0034
  5  0.000111251
  6  10.315
  7  1.4006e-06
  8  7.10562e-07
  9  23.0258
  10  7.67042e-06
  11  7.12295
  12  3.34441e-07
  13  1.18946e-05
  14  8.83284
  15  6.74512e-06
  16  1.85189e-06
  17  1.0877e-05
  18  1.15418e-06
  19  0.287397
  20  0.140258
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  3.289e+01  7.123e+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:  9.880e-01  1.403e-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.290e+00  2.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 69.65
Ra Dec: 159.427 -28.382
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 3.60e-07 +/- 7.79e-08
Energy Flux (Fixed Index): 1.20e-04 +/- 2.60e-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) = 8173.86030949
delta logL = 0.552479829052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8173.86027879
delta logL = 0.552510530187

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    38.034       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1673       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3604       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96506       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=   8173.860     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      238 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          38.046        45.207        .16247E-02    .16010E-03
   2  alpha         2.1672        1.0393        .15452        .68624E-04
   3  Normalizat    1.3604        .30588        .76428E-01    .12529E-04
   4  Prefactor     .96504        .13172        .45829E-01    .27368E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 38.0456
  alpha      = 2.16721
  Normalizat = 1.36042
  Prefactor  = 0.96504
 **********
 **   18 **HESSE 
 **********

 FCN=   8173.860     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          38.046        9.1381        .32495E-03   -1.4474    
   2  alpha         2.1672        .22594        .65154E-02   -.13351    
   3  Normalizat    1.3604        .28384        .33825E-03   -.81780    
   4  Prefactor     .96504        .14011        .19789E-03   -.93904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45548e-10
Minuit parameter uncertainties:
  1  9.13844
  2  0.226253
  3  0.284164
  4  0.140166
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30069': 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) = 8173.86027794
delta logL = 0.552511377206

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  3.805e+01  9.138e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.167e+00  2.263e-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:  9.650e-01  1.402e-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.360e+00  2.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 70.93
Ra Dec: 159.427 -28.382
Photon Index (Free Index): 2.17 +/- 0.23
Photon Flux (Free Index): 3.03e-07 +/- 8.54e-08
Energy Flux (Free Index): 1.35e-04 +/- 3.47e-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/30069/cmap_HighResolution_471312001_471571201_4FGL_J1037.7-2822_daily_bin895.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.60e-07', energy_flux2='1.35e-04', photon_flux_error='7.79e-08', dlogl='5.53e-01', energy_flux='1.20e-04', photon_flux2='3.03e-07', job_status='DONE', time_completed='2021-09-02 06:37:03.645279', photon_index_error2='0.23', photon_index2='2.17', ts='69.65', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='3.47e-05', EG='1.29', time_epoch_completed='1630589823.65', return_code='0', job_id='30069', GAL2='0.97', EG2='1.36', return_code2='0', energy_flux_error='2.60e-05', photon_flux_error2='8.54e-08', ts2='70.93', photon_index='2.40' WHERE bin_id='895' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:37:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 30069: <4FGL_J1037.7-2822_daily_bin895> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin895> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 06:21:44 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:22:58 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:58 2021
Terminated at Thu Sep  2 06:37:04 2021
Results reported at Thu Sep  2 06:37:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin895 159.427 -28.3816 471312001 471571201 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 :                                   652.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            920 sec.

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

