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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin1016
RA = 159.427, Dec = -28.3816
tmin = 502675201, tmax = 502934401
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='30250', job_status='RUN', time_executed='2021-09-02 06:25:27.360962', time_epoch_executed='1630589127.36' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='1016'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30250

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30250/ft1_4FGL_J1037.7-2822_daily_bin1016.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30250/ft2_4FGL_J1037.7-2822_daily_bin1016.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30250/ft1_4FGL_J1037.7-2822_daily_bin1016.fits outfile=/scratch/kocevski/30250/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin1016.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=502675201.0 tmax=502934401.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.67
user 3.41
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/30250/ft2_4FGL_J1037.7-2822_daily_bin1016.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/30250/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin1016.fits evtable="EVENTS" outfile="/scratch/kocevski/30250/ft1_filtered_4FGL_J1037.7-2822_daily_bin1016.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.52
user 0.37
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/30250/ft1_filtered_4FGL_J1037.7-2822_daily_bin1016.fits" evtable="EVENTS" scfile=/scratch/kocevski/30250/ft2_4FGL_J1037.7-2822_daily_bin1016.fits sctable="SC_DATA" outfile=/scratch/kocevski/30250/ltcube_502675201_502934401_4FGL_J1037.7-2822_daily_bin1016.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/30250/ft2_4FGL_J1037.7-2822_daily_bin1016.fits
.....................!
real 17.71
user 17.29
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30250/ft1_filtered_4FGL_J1037.7-2822_daily_bin1016.fits evtable="EVENTS" scfile=/scratch/kocevski/30250/ft2_4FGL_J1037.7-2822_daily_bin1016.fits sctable="SC_DATA" expcube=/scratch/kocevski/30250/ltcube_502675201_502934401_4FGL_J1037.7-2822_daily_bin1016.fits outfile=/scratch/kocevski/30250/expmap_502675201_502934401_4FGL_J1037.7-2822_daily_bin1016.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/30250/ltcube_502675201_502934401_4FGL_J1037.7-2822_daily_bin1016.fits
.....................!
real 193.30
user 188.03
sys 4.28

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/30250/ft1_filtered_4FGL_J1037.7-2822_daily_bin1016.fits scfile=/scratch/kocevski/30250/ft2_4FGL_J1037.7-2822_daily_bin1016.fits outfile=/scratch/kocevski/30250/cmap_502675201_502934401_4FGL_J1037.7-2822_daily_bin1016.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.69
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/30250/ft1_filtered_4FGL_J1037.7-2822_daily_bin1016.fits scfile=/scratch/kocevski/30250/ft2_4FGL_J1037.7-2822_daily_bin1016.fits outfile=/scratch/kocevski/30250/cmap_HighResolution_502675201_502934401_4FGL_J1037.7-2822_daily_bin1016.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.60
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3647       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1319       1.0000         .10000E-03   10000.    
     3 'norm      '    6.8039       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.5995       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13941E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    27.299       1.0000         .10000E-03   10000.    
     7 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10799E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16598E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .80525       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10693E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .96231       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.1017       1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.063       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .22672E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .77750       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1224       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=   6416.270     FROM MIGRAD    STATUS=CONVERGED    426 CALLS     2035 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3660        8.3212       -.28442E-06    .26122E-04
   2  norm          2.1321        1.6611        .10701E-06   -.52718E-04
   3  norm          6.8148        9.8251        .29438E-06    .42672E-04
   4  Prefactor     8.5493        31.098       -.21423E-06   -.78292E-04
   5  Prefactor     .10000E-03    10.925       -.66910E-06** at limit **
   6  norm          27.329        13.678       -.25207E-06   -.36299E-03
   7  norm          .10000E-03    4.3706       -.26777E-06** at limit **
   8  Prefactor     .10000E-03    3.4379        .61988E-07** at limit **
   9  Prefactor     .10000E-03    12.640        .17335E-06** at limit **
  10  Prefactor     .10000E-03    25.633       -.90088E-06** at limit **
  11  norm          .80562        3.6215        .57482E-06   -.17394E-03
  12  Prefactor     .10000E-03    14.971        .14218E-06** at limit **
  13  Prefactor     .10000E-03    2.3781       -.37017E-07** at limit **
  14  Prefactor     .10000E-03    6.7204        .73363E-07** at limit **
  15  Prefactor     .96214        6.8082        .35678E-05   -.11789E-03
  16  Prefactor     8.1135        9.2233        .23470E-06   -.46170E-05
  17  Prefactor     38.055        44.208        .57252E-07   -.45726E-04
  18  Prefactor     .10000E-03    9.3777        .72198E-08** at limit **
  19  Normalizat    .77751        .25185       -.94138E-06   -.13367E-03
  20  Prefactor     1.1224        .12552       -.32966E-06   -.20840E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.36598
  norm       = 2.13214
  norm       = 6.81482
  Prefactor  = 8.54925
  Prefactor  = 0.0001
  norm       = 27.3287
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.805621
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.962136
  Prefactor  = 8.11355
  Prefactor  = 38.0554
  Prefactor  = 0.0001
  Normalizat = 0.777506
  Prefactor  = 1.1224
 **********
 **   18 **HESSE 
 **********

 FCN=   6416.270     FROM HESSE     STATUS=OK           289 CALLS     2324 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3660        8.3168        .73896E-03   -1.5165    
   2  norm          2.1321        1.6541        .86733E-04   -1.5416    
   3  norm          6.8148        9.8499        .15382E-03   -1.5186    
   4  Prefactor     8.5493        31.160        .13669E-03   -1.5123    
   5  Prefactor     .10000E-03    10.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          27.329        13.708        .76675E-04   -1.4662    
   7  norm          .10000E-03    4.3908        .16331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.4520        .14506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.870        .20389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .80562        6.3097        .27485E-02   -1.5528    
  12  Prefactor     .10000E-03    15.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.3941        .12036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.7729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .96214        6.8676        .39110E-03   -1.5512    
  16  Prefactor     8.1135        9.2320        .14086E-03   -1.5138    
  17  Prefactor     38.055        44.226        .64964E-04   -1.4473    
  18  Prefactor     .10000E-03    9.4548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .77751        .28535        .38674E-03   -1.0091    
  20  Prefactor     1.1224        .14494        .16984E-03   -.88754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57082e-08
Minuit parameter uncertainties:
  1  8.31807
  2  1.65413
  3  9.85222
  4  31.2193
  5  5.95939e-05
  6  13.7097
  7  9.17698e-06
  8  1.39202e-06
  9  5.12968e-05
  10  0.000239934
  11  4.50958
  12  1.13643e-05
  13  2.255e-06
  14  2.43009e-06
  15  5.14162
  16  9.23361
  17  44.2637
  18  3.1441e-05
  19  0.285905
  20  0.144995
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  8.056e-01  4.510e+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.122e+00  1.450e-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.775e-01  2.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/30250/likelihoodResults_502675201_502934401_4FGL_J1037.7-2822_daily_bin1016.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) = 6416.2498326
delta logL = 0.0206619090268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6416.24940453
delta logL = 0.0210899781141

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85209       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8175       1.0000          .0000       5.0000    
     3 'Normalizat'    .76841       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1246       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6416.249     FROM MIGRAD    STATUS=FAILED       100 CALLS      293 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85411        14.107        .24926E-02    .56193E-02
   2  alpha         2.8137        3.8827        .38911E-01    .14522E-03
   3  Normalizat    .76885        .27829        .38875E-03   -.85393E-05
   4  Prefactor     1.1242        .14405        .16972E-03    .30144E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6416.249     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      379 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85411        14.107        .99000E-04   -1.5523    
   2  alpha         2.8137        3.8827        .36056E-02    .12581    
   3  Normalizat    .76885        .27829        .53128E-03   -1.0123    
   4  Prefactor     1.1242        .14405        .19843E-03   -.88695    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6416.249     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      418 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85410        4.2113        .49852E-03   -.14595E-04
   2  alpha         2.8137        1.8168        .77822E-02    .76841E-06
   3  Normalizat    .76885        .27895        .15550E-04   -.29244E-06
   4  Prefactor     1.1242        .14334        .67886E-05   -.33493E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.854103
  alpha      = 2.81371
  Normalizat = 0.76885
  Prefactor  = 1.12425
 **********
 **   18 **HESSE 
 **********

 FCN=   6416.249     FROM HESSE     STATUS=OK            27 CALLS      445 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85410        3.8178        .19941E-04   -1.5523    
   2  alpha         2.8137        1.7496        .31129E-03    .12582    
   3  Normalizat    .76885        .27859        .31100E-05   -1.0123    
   4  Prefactor     1.1242        .14309        .13577E-05   -.88695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33462e-12
Minuit parameter uncertainties:
  1  3.61168
  2  1.94204
  3  0.279105
  4  0.143141
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30250': 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) = 6416.24940007
delta logL = 0.0210944408427

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  8.541e-01  3.612e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.814e+00  1.942e+00  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.124e+00  1.431e-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.689e-01  2.791e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 159.427 -28.382

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/30250/cmap_HighResolution_502675201_502934401_4FGL_J1037.7-2822_daily_bin1016.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.17e-05', job_status='DONE', photon_flux_upper_limit='1.25e-07', time_completed='2021-09-02 06:36:08.649083', job_id='30250', GAL2='1.12', fit_tolerance='1e-08', EG2='0.77', EG='0.78', time_epoch_completed='1630589768.65', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='2.11e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1016' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:36:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 30250: <4FGL_J1037.7-2822_daily_bin1016> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin1016> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 06:21:58 2021
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:24:12 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:24:12 2021
Terminated at Thu Sep  2 06:36:09 2021
Results reported at Thu Sep  2 06:36:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin1016 159.427 -28.3816 502675201 502934401 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.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            851 sec.

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

