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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin979
RA = 159.427, Dec = -28.3816
tmin = 493084801, tmax = 493344001
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='30198', job_status='RUN', time_executed='2021-09-02 06:25:54.068581', time_epoch_executed='1630589154.07' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='979'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30198

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30198/ft1_4FGL_J1037.7-2822_daily_bin979.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30198/ft2_4FGL_J1037.7-2822_daily_bin979.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30198/ft1_4FGL_J1037.7-2822_daily_bin979.fits outfile=/scratch/kocevski/30198/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin979.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=493084801.0 tmax=493344001.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.64
user 3.37
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/30198/ft1_filtered_4FGL_J1037.7-2822_daily_bin979.fits" evtable="EVENTS" scfile=/scratch/kocevski/30198/ft2_4FGL_J1037.7-2822_daily_bin979.fits sctable="SC_DATA" outfile=/scratch/kocevski/30198/ltcube_493084801_493344001_4FGL_J1037.7-2822_daily_bin979.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/30198/ft2_4FGL_J1037.7-2822_daily_bin979.fits
.....................!
real 13.94
user 13.45
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30198/ft1_filtered_4FGL_J1037.7-2822_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/30198/ft2_4FGL_J1037.7-2822_daily_bin979.fits sctable="SC_DATA" expcube=/scratch/kocevski/30198/ltcube_493084801_493344001_4FGL_J1037.7-2822_daily_bin979.fits outfile=/scratch/kocevski/30198/expmap_493084801_493344001_4FGL_J1037.7-2822_daily_bin979.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/30198/ltcube_493084801_493344001_4FGL_J1037.7-2822_daily_bin979.fits
.....................!
real 191.92
user 186.83
sys 4.56

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/30198/ft1_filtered_4FGL_J1037.7-2822_daily_bin979.fits scfile=/scratch/kocevski/30198/ft2_4FGL_J1037.7-2822_daily_bin979.fits outfile=/scratch/kocevski/30198/cmap_493084801_493344001_4FGL_J1037.7-2822_daily_bin979.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.67
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/30198/ft1_filtered_4FGL_J1037.7-2822_daily_bin979.fits scfile=/scratch/kocevski/30198/ft2_4FGL_J1037.7-2822_daily_bin979.fits outfile=/scratch/kocevski/30198/cmap_HighResolution_493084801_493344001_4FGL_J1037.7-2822_daily_bin979.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.71
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/30198/ft1_filtered_4FGL_J1037.7-2822_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/30198/ft2_4FGL_J1037.7-2822_daily_bin979.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/30198/Model_4FGL_J1037.7-2822_daily_bin979.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/30198/ft1_filtered_4FGL_J1037.7-2822_daily_bin979.fits.....................!
real 61.99
user 59.14
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0965       1.0000         .10000E-03   10000.    
     2 'norm      '    .37393       1.0000         .10000E-03   10000.    
     3 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.699       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.126       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 '    .10121E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.539       1.0000         .10000E-03   10000.    
    11 'norm      '    5.5273       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10485E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5650       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.870       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.867       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.506       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .89452       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1421       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=   5798.655     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2041 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0966        11.110       -.14009E-05   -.56662E-04
   2  norm          .38120        1.3736       -.94228E-06   -.47339E-03
   3  norm          .10000E-03    6.0080        .23917E-06** at limit **
   4  Prefactor     31.747        32.436       -.48314E-04    .41665E-04
   5  Prefactor     .10000E-03    5.3341        .37099E-06** at limit **
   6  norm          12.127        12.984       -.27318E-05    .94268E-04
   7  norm          .10000E-03    2.7923        .22082E-06** at limit **
   8  Prefactor     .10000E-03    2.8326       -.69847E-07** at limit **
   9  Prefactor     .10000E-03    18.892       -.12241E-05** at limit **
  10  Prefactor     10.552        26.477       -.14826E-04    .44682E-04
  11  norm          5.5272        5.1641        .23709E-05    .20231E-03
  12  Prefactor     .10000E-03    21.986       -.55594E-07** at limit **
  13  Prefactor     .10000E-03    2.7660        .32959E-06** at limit **
  14  Prefactor     2.5582        22.825       -.17690E-04   -.10249E-03
  15  Prefactor     10.866        9.4984        .60639E-05   -.22030E-05
  16  Prefactor     .10000E-03    3.9209       -.24656E-07** at limit **
  17  Prefactor     18.615        61.003       -.76475E-04   -.16897E-04
  18  Prefactor     18.568        23.223        .28510E-04    .75943E-04
  19  Normalizat    .89439        .29495        .85721E-05    .20322E-03
  20  Prefactor     1.1422        .13732        .16847E-05    .37570E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.09657
  norm       = 0.381202
  norm       = 0.0001
  Prefactor  = 31.7468
  Prefactor  = 0.0001
  norm       = 12.1271
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5516
  norm       = 5.52717
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.55817
  Prefactor  = 10.8662
  Prefactor  = 0.0001
  Prefactor  = 18.6153
  Prefactor  = 18.5678
  Normalizat = 0.894387
  Prefactor  = 1.14223
 **********
 **   18 **HESSE 
 **********

 FCN=   5798.655     FROM HESSE     STATUS=OK           295 CALLS     2336 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0966        11.107        .17810E-03   -1.5256    
   2  norm          .38120        2.0157        .15734E-02   -1.5584    
   3  norm          .10000E-03    6.0249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     31.747        32.427        .71167E-04   -1.4580    
   5  Prefactor     .10000E-03    5.3370        .17177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.127        12.968        .11504E-03   -1.5011    
   7  norm          .10000E-03    2.7950        .12425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.8380        .12516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.552        26.263        .12342E-03   -1.5058    
  11  norm          5.5272        5.1343        .14427E-03   -1.5238    
  12  Prefactor     .10000E-03    22.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.7768        .12347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.5582        22.605        .25488E-03   -1.5388    
  15  Prefactor     10.866        9.4992        .12152E-03   -1.5049    
  16  Prefactor     .10000E-03    3.9303        .14726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.615        61.029        .92208E-04   -1.4845    
  18  Prefactor     18.568        23.180        .93104E-04   -1.4846    
  19  Normalizat    .89439        .33451        .39641E-03   -.96658    
  20  Prefactor     1.1422        .15832        .17802E-03   -.88128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.38703e-10
Minuit parameter uncertainties:
  1  11.1113
  2  1.75301
  3  4.78838e-05
  4  32.4446
  5  7.06501e-05
  6  12.971
  7  3.40438e-05
  8  8.50945e-06
  9  5.48342e-05
  10  26.2919
  11  5.13472
  12  0.000275638
  13  5.59161e-05
  14  15.2164
  15  9.50052
  16  9.98736e-06
  17  61.235
  18  23.1908
  19  0.335292
  20  0.158384
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  5.527e+00  5.135e+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.142e+00  1.584e-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.944e-01  3.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.54
Ra Dec: 159.427 -28.382
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 6.05e-08 +/- 5.61e-08
Energy Flux (Fixed Index): 2.02e-05 +/- 1.88e-05

TS (Fixed Index): 3.54
Ra Dec: 159.427 -28.382
Photon Flux Upper Limit: 1.81e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.06e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/30198/likelihoodResults_493084801_493344001_4FGL_J1037.7-2822_daily_bin979.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) = 5798.61762408
delta logL = 0.0370069583132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5798.61136984
delta logL = 0.043261200346

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0540       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6242       1.0000          .0000       5.0000    
     3 'Normalizat'    .87770       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1466       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5798.611     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      250 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0535        4.7775        .12824E-03    .13918E-03
   2  alpha         2.6252        .75499        .15087E-01    .12749E-04
   3  Normalizat    .87768        .31923        .39968E-03    .56405E-04
   4  Prefactor     1.1466        .15843        .17769E-03    .18660E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.05345
  alpha      = 2.62517
  Normalizat = 0.877676
  Prefactor  = 1.14662
 **********
 **   18 **HESSE 
 **********

 FCN=   5798.611     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0535        4.5894        .51298E-05   -1.5258    
   2  alpha         2.6252        .72519        .60349E-03    .50091E-01
   3  Normalizat    .87768        .31915        .15987E-04   -.97249    
   4  Prefactor     1.1466        .15844        .35538E-04   -.87990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69822e-11
Minuit parameter uncertainties:
  1  4.58968
  2  0.73579
  3  0.319842
  4  0.158509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30198': 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) = 5798.61136881
delta logL = 0.0432622260578

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  5.053e+00  4.590e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.625e+00  7.358e-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.147e+00  1.585e-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.777e-01  3.198e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.64
Ra Dec: 159.427 -28.382
Photon Index (Free Index): 2.63 +/- 0.74
Photon Flux (Free Index): 7.63e-08 +/- 7.80e-08
Energy Flux (Free Index): 2.08e-05 +/- 1.64e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/30198/cmap_HighResolution_493084801_493344001_4FGL_J1037.7-2822_daily_bin979.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.06e-05', comment='SUCCESS', photon_flux='6.05e-08', energy_flux2='2.08e-05', photon_flux_error='5.61e-08', dlogl='4.33e-02', energy_flux='2.02e-05', photon_flux2='7.63e-08', job_status='DONE', time_completed='2021-09-02 06:35:43.817801', photon_index_error2='0.74', photon_index2='2.63', ts='3.54', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.81e-07', energy_flux_error2='1.64e-05', EG='0.89', time_epoch_completed='1630589743.82', return_code='0', job_id='30198', GAL2='1.15', EG2='0.88', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='7.80e-08', ts2='3.64', photon_index='2.40' WHERE bin_id='979' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:35:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 30198: <4FGL_J1037.7-2822_daily_bin979> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin979> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 06:21:54 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:23:49 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:23:49 2021
Terminated at Thu Sep  2 06:35:44 2021
Results reported at Thu Sep  2 06:35:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin979 159.427 -28.3816 493084801 493344001 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 :                                   585.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            830 sec.

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

