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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin715
RA = 159.427, Dec = -28.3816
tmin = 424656001, tmax = 424915201
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='28464', job_status='RUN', time_executed='2021-09-02 06:16:39.329667', time_epoch_executed='1630588599.33' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/28464

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/28464/ft1_4FGL_J1037.7-2822_daily_bin715.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/28464/ft2_4FGL_J1037.7-2822_daily_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/28464/ft1_4FGL_J1037.7-2822_daily_bin715.fits outfile=/scratch/kocevski/28464/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin715.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=424656001.0 tmax=424915201.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 4.55
user 4.33
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/28464/ft2_4FGL_J1037.7-2822_daily_bin715.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/28464/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/28464/ft1_filtered_4FGL_J1037.7-2822_daily_bin715.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.49
user 0.30
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/28464/ft1_filtered_4FGL_J1037.7-2822_daily_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/28464/ft2_4FGL_J1037.7-2822_daily_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/28464/ltcube_424656001_424915201_4FGL_J1037.7-2822_daily_bin715.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/28464/ft2_4FGL_J1037.7-2822_daily_bin715.fits
.....................!
real 12.18
user 11.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/28464/ft1_filtered_4FGL_J1037.7-2822_daily_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/28464/ft2_4FGL_J1037.7-2822_daily_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/28464/ltcube_424656001_424915201_4FGL_J1037.7-2822_daily_bin715.fits outfile=/scratch/kocevski/28464/expmap_424656001_424915201_4FGL_J1037.7-2822_daily_bin715.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/28464/ltcube_424656001_424915201_4FGL_J1037.7-2822_daily_bin715.fits
.....................!
real 190.45
user 185.41
sys 4.25

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/28464/ft1_filtered_4FGL_J1037.7-2822_daily_bin715.fits scfile=/scratch/kocevski/28464/ft2_4FGL_J1037.7-2822_daily_bin715.fits outfile=/scratch/kocevski/28464/cmap_424656001_424915201_4FGL_J1037.7-2822_daily_bin715.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=159.427 yref=-28.3816 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/28464/ft1_filtered_4FGL_J1037.7-2822_daily_bin715.fits scfile=/scratch/kocevski/28464/ft2_4FGL_J1037.7-2822_daily_bin715.fits outfile=/scratch/kocevski/28464/cmap_HighResolution_424656001_424915201_4FGL_J1037.7-2822_daily_bin715.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/28464/ft1_filtered_4FGL_J1037.7-2822_daily_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/28464/ft2_4FGL_J1037.7-2822_daily_bin715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/28464/Model_4FGL_J1037.7-2822_daily_bin715.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/28464/ft1_filtered_4FGL_J1037.7-2822_daily_bin715.fits.....................!
real 101.05
user 99.47
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.646       1.0000         .10000E-03   10000.    
     2 'norm      '    .10236E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .28759E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    16.901       1.0000         .10000E-03   10000.    
     7 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .27720E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3302       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .73587       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5091       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.749       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3640       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93627       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=   10285.83     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2164 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.646        10.698        .25314E-02    .14027E-02
   2  norm          .10000E-03    .56779        .28226E-01** at limit **
   3  norm          .10000E-03    7.8609        .90712E-02** at limit **
   4  Prefactor     .10000E-03    18.887        .12474    ** at limit **
   5  Prefactor     .10000E-03    4.2833        .90712E-02** at limit **
   6  norm          16.898        8.4871        .24356E-02   -.19601E-02
   7  norm          .10000E-03    2.5047        .90712E-02** at limit **
   8  Prefactor     .10000E-03    4.0054        .72183E-01** at limit **
   9  Prefactor     .10000E-03    5.7236        .90712E-02** at limit **
  10  Prefactor     .10000E-03    4.5796        .90712E-02** at limit **
  11  norm          .10000E-03    1.3928        .90712E-02** at limit **
  12  Prefactor     .10000E-03    4.7131        .90712E-02** at limit **
  13  Prefactor     1.3289        3.9269        .95199E-02    .17961E-02
  14  Prefactor     .70046        7.0706        .69990E-01    .74221E-03
  15  Prefactor     1.5098        3.8921        .87062E-02    .16288E-02
  16  Prefactor     .10000E-03    2.9010        .90712E-02** at limit **
  17  Prefactor     14.748        18.371        .26073E-02   -.41746E-04
  18  Prefactor     .10000E-03    17.735        .90712E-02** at limit **
  19  Normalizat    1.3637        .19214        .69388E-01    .29092E-05
  20  Prefactor     .93633        .94052E-01    .45466E-01    .18492E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 15.6459
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 16.8984
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.32894
  Prefactor  = 0.70046
  Prefactor  = 1.50977
  Prefactor  = 0.0001
  Prefactor  = 14.7481
  Prefactor  = 0.0001
  Normalizat = 1.36369
  Prefactor  = 0.936327
 **********
 **   18 **HESSE 
 **********

 FCN=   10285.83     FROM HESSE     STATUS=OK           307 CALLS     2471 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.646        10.698        .10126E-03   -1.4917    
   2  norm          .10000E-03    1.0318        .14777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.9495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.632        .11452       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.2904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          16.898        8.4841        .97422E-04   -1.4886    
   7  norm          .10000E-03    2.5170        .15670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.5227        .65370E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.7434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.5894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.4270        .23338E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.7234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.3289        3.7127        .28024E-03   -1.5477    
  14  Prefactor     .70046        23.966        .43415E-02   -1.5541    
  15  Prefactor     1.5098        3.8832        .30477E-03   -1.5462    
  16  Prefactor     .10000E-03    2.9276        .16867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.748        18.357        .10429E-03   -1.4940    
  18  Prefactor     .10000E-03    18.472        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3637        .23120        .30700E-03   -.81685    
  20  Prefactor     .93633        .11415        .18542E-03   -.94883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26323e-09
Minuit parameter uncertainties:
  1  10.6997
  2  1.03329e-07
  3  4.53401e-06
  4  0.000381038
  5  7.34949e-06
  6  8.48466
  7  3.14063e-07
  8  0.000134754
  9  3.6405e-06
  10  1.92149e-05
  11  6.685e-08
  12  1.21665e-05
  13  3.71333
  14  8.19746
  15  3.88388
  16  1.14308e-06
  17  18.3644
  18  1.4265e-05
  19  0.231381
  20  0.114183
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  6.685e-08  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.363e-01  1.142e-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.364e+00  2.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/28464/likelihoodResults_424656001_424915201_4FGL_J1037.7-2822_daily_bin715.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): 102
logL (Free Index) = 10285.8335979
delta logL = -0.00334092426783

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10285.8302566
delta logL = 3.48170942743e-07

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 'alpha     '    2.3874       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3637       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93631       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=   10285.83     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      242 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    195.53        .23600E-02** at limit **
   2  alpha         1.6881        4.1441        .50000       -.13783E-06
   3  Normalizat    1.3637        .54997E-01    .30700E-03    .34853E-03
   4  Prefactor     .93633        .28327E-01    .18542E-03    .62618E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.68812
  Normalizat = 1.3637
  Prefactor  = 0.936327
 **********
 **   18 **HESSE 
 **********

 FCN=   10285.83     FROM HESSE     STATUS=OK            29 CALLS      271 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.8528        .47200E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6881        2.5845        .50000       -.33075    
   3  Normalizat    1.3637        .22067        .61400E-04   -.81685    
   4  Prefactor     .93633        .11369        .37084E-04   -.94883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16275e-10
Minuit parameter uncertainties:
  1  5.40578e-06
  2  169.454
  3  0.220826
  4  0.11372
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/28464': 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) = 10285.8302478
delta logL = 9.1402871476e-06

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  5.406e-06  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  1.688e+00  1.695e+02  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.363e-01  1.137e-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.364e+00  2.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/28464/cmap_HighResolution_424656001_424915201_4FGL_J1037.7-2822_daily_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.81e-05', job_status='DONE', photon_flux_upper_limit='5.43e-08', time_completed='2021-09-02 06:30:47.460810', job_id='28464', GAL2='0.94', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1630589447.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='9.14e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='715' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:30:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 28464: <4FGL_J1037.7-2822_daily_bin715> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin715> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Sep  2 06:16:25 2021
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:16:27 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:16:27 2021
Terminated at Thu Sep  2 06:30:48 2021
Results reported at Thu Sep  2 06:30:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin715 159.427 -28.3816 424656001 424915201 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 :                                   835.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             386.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            863 sec.

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

