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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin1161
RA = 159.427, Dec = -28.3816
tmin = 540259201, tmax = 540518401
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='31337', job_status='RUN', time_executed='2021-09-02 06:28:20.606100', time_epoch_executed='1630589300.61' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='1161'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31337

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31337/ft1_4FGL_J1037.7-2822_daily_bin1161.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31337/ft2_4FGL_J1037.7-2822_daily_bin1161.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31337/ft1_4FGL_J1037.7-2822_daily_bin1161.fits outfile=/scratch/kocevski/31337/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin1161.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=540259201.0 tmax=540518401.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.58
user 3.34
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31337/ft1_filtered_4FGL_J1037.7-2822_daily_bin1161.fits" evtable="EVENTS" scfile=/scratch/kocevski/31337/ft2_4FGL_J1037.7-2822_daily_bin1161.fits sctable="SC_DATA" outfile=/scratch/kocevski/31337/ltcube_540259201_540518401_4FGL_J1037.7-2822_daily_bin1161.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/31337/ft2_4FGL_J1037.7-2822_daily_bin1161.fits
.....................!
real 15.16
user 14.74
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31337/ft1_filtered_4FGL_J1037.7-2822_daily_bin1161.fits evtable="EVENTS" scfile=/scratch/kocevski/31337/ft2_4FGL_J1037.7-2822_daily_bin1161.fits sctable="SC_DATA" expcube=/scratch/kocevski/31337/ltcube_540259201_540518401_4FGL_J1037.7-2822_daily_bin1161.fits outfile=/scratch/kocevski/31337/expmap_540259201_540518401_4FGL_J1037.7-2822_daily_bin1161.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/31337/ltcube_540259201_540518401_4FGL_J1037.7-2822_daily_bin1161.fits
.....................!
real 190.68
user 185.84
sys 4.24

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/31337/ft1_filtered_4FGL_J1037.7-2822_daily_bin1161.fits scfile=/scratch/kocevski/31337/ft2_4FGL_J1037.7-2822_daily_bin1161.fits outfile=/scratch/kocevski/31337/cmap_540259201_540518401_4FGL_J1037.7-2822_daily_bin1161.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31337/ft1_filtered_4FGL_J1037.7-2822_daily_bin1161.fits scfile=/scratch/kocevski/31337/ft2_4FGL_J1037.7-2822_daily_bin1161.fits outfile=/scratch/kocevski/31337/cmap_HighResolution_540259201_540518401_4FGL_J1037.7-2822_daily_bin1161.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.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31337/ft1_filtered_4FGL_J1037.7-2822_daily_bin1161.fits evtable="EVENTS" scfile=/scratch/kocevski/31337/ft2_4FGL_J1037.7-2822_daily_bin1161.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31337/Model_4FGL_J1037.7-2822_daily_bin1161.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/31337/ft1_filtered_4FGL_J1037.7-2822_daily_bin1161.fits.....................!
real 86.76
user 85.40
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.407       1.0000         .10000E-03   10000.    
     3 'norm      '    12.005       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.3016       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6982       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    27.628       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.782       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .76881       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1917       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=   8797.220     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1710 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.721        .13563E-04** at limit **
   2  norm          10.407        2.3111       -.34192E-08   -.79370E-04
   3  norm          12.006        9.8007        .21661E-07    .15211E-04
   4  Prefactor     .10000E-03    35.424       -.31978E-05** at limit **
   5  Prefactor     .10000E-03    6.3881       -.28225E-05** at limit **
   6  norm          .10000E-03    4.0082       -.32953E-06** at limit **
   7  norm          1.2984        7.4156       -.33922E-05   -.90343E-03
   8  Prefactor     2.6978        6.2309       -.76842E-06   -.37858E-03
   9  Prefactor     .10000E-03    3.8449        .24906E-05** at limit **
  10  Prefactor     .10000E-03    6.0831        .39009E-05** at limit **
  11  norm          27.628        5.4449        .13235E-07   -.11781E-03
  12  Prefactor     .10000E-03    4.1452       -.13761E-05** at limit **
  13  Prefactor     .10000E-03    1.5444        .13883E-06** at limit **
  14  Prefactor     12.781        10.565        .79152E-07   -.70196E-04
  15  Prefactor     .10000E-03    4.6227       -.11033E-05** at limit **
  16  Prefactor     .10000E-03    2.9255        .10928E-06** at limit **
  17  Prefactor     .10000E-03    15.574       -.11442E-04** at limit **
  18  Prefactor     .10000E-03    3.5012       -.99881E-06** at limit **
  19  Normalizat    .76900        .22819        .38419E-06    .27061E-04
  20  Prefactor     1.1917        .11685        .28496E-06    .69594E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 10.407
  norm       = 12.0058
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.29844
  Prefactor  = 2.69777
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 27.6275
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7805
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.768999
  Prefactor  = 1.19165
 **********
 **   18 **HESSE 
 **********

 FCN=   8797.220     FROM HESSE     STATUS=OK           285 CALLS     1995 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.407        2.3124        .64205E-04   -1.5063    
   3  norm          12.006        9.8051        .11561E-03   -1.5015    
   4  Prefactor     .10000E-03    35.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.4056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.0698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2984        8.3843        .38722E-03   -1.5480    
   8  Prefactor     2.6978        6.2431        .24801E-03   -1.5379    
   9  Prefactor     .10000E-03    3.8352        .17921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.0552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          27.628        5.4406        .76218E-04   -1.4656    
  12  Prefactor     .10000E-03    4.1479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.5599        .11367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.781        10.561        .11204E-03   -1.4993    
  15  Prefactor     .10000E-03    4.7686        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.9460        .15665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.5087        .17134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .76900        .25596        .41286E-03   -1.0123    
  20  Prefactor     1.1917        .13237        .17833E-03   -.86589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.031e-09
Minuit parameter uncertainties:
  1  0.000135595
  2  2.3124
  3  9.80638
  4  1.73312e-05
  5  6.17082e-06
  6  1.5984e-05
  7  6.60003
  8  6.24456
  9  1.65515e-06
  10  6.51257e-08
  11  5.44067
  12  1.31999e-06
  13  1.41501e-06
  14  10.5626
  15  7.70387e-09
  16  1.98522e-06
  17  8.21134e-06
  18  5.94172e-07
  19  0.256361
  20  0.132405
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  2.763e+01  5.441e+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:  1.192e+00  1.324e-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:  7.690e-01  2.564e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 88.99
Ra Dec: 159.427 -28.382
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 3.02e-07 +/- 5.95e-08
Energy Flux (Fixed Index): 1.01e-04 +/- 1.99e-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) = 8793.54767431
delta logL = 3.67186655348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8793.29615526
delta logL = 3.92338559994

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    37.883       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8571       1.0000          .0000       5.0000    
     3 'Normalizat'    .87642       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1578       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=   8793.296     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      232 TOTAL
                     EDM=   .98E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          37.885        9.3513        .16280E-02   -.24232E-04
   2  alpha         1.8570        .21462        .15584        .12410E-05
   3  Normalizat    .87653        .21930        .88016E-01    .48410E-04
   4  Prefactor     1.1577        .11428        .35715E-01    .23027E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 37.8851
  alpha      = 1.85698
  Normalizat = 0.876525
  Prefactor  = 1.15769
 **********
 **   18 **HESSE 
 **********

 FCN=   8793.296     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          37.885        7.9646        .65118E-04   -1.4476    
   2  alpha         1.8570        .18830        .66620E-02   -.26013    
   3  Normalizat    .87653        .25039        .38978E-03   -.97290    
   4  Prefactor     1.1577        .13117        .18069E-03   -.87643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96781e-12
Minuit parameter uncertainties:
  1  7.96479
  2  0.188494
  3  0.250722
  4  0.131208
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31337': 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) = 8793.29615491
delta logL = 3.92338595126

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  3.789e+01  7.965e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  1.857e+00  1.885e-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:  1.158e+00  1.312e-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:  8.765e-01  2.507e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 96.57
Ra Dec: 159.427 -28.382
Photon Index (Free Index): 1.86 +/- 0.19
Photon Flux (Free Index): 2.12e-07 +/- 5.48e-08
Energy Flux (Free Index): 1.60e-04 +/- 4.82e-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/31337/cmap_HighResolution_540259201_540518401_4FGL_J1037.7-2822_daily_bin1161.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.02e-07', energy_flux2='1.60e-04', photon_flux_error='5.95e-08', dlogl='3.92e+00', energy_flux='1.01e-04', photon_flux2='2.12e-07', job_status='DONE', time_completed='2021-09-02 06:38:57.102865', photon_index_error2='0.19', photon_index2='1.86', ts='88.99', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='4.82e-05', EG='0.77', time_epoch_completed='1630589937.1', return_code='0', job_id='31337', GAL2='1.16', EG2='0.88', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='5.48e-08', ts2='96.57', photon_index='2.40' WHERE bin_id='1161' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:38:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 31337: <4FGL_J1037.7-2822_daily_bin1161> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin1161> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 06:26:39 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:27:34 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:27:34 2021
Terminated at Thu Sep  2 06:38:57 2021
Results reported at Thu Sep  2 06:38:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin1161 159.427 -28.3816 540259201 540518401 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 :                                   632.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             378.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            738 sec.

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

