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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin1155
RA = 159.427, Dec = -28.3816
tmin = 538704001, tmax = 538963201
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='31331', job_status='RUN', time_executed='2021-09-02 06:28:18.302801', time_epoch_executed='1630589298.3' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='1155'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31331

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31331/ft1_4FGL_J1037.7-2822_daily_bin1155.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31331/ft2_4FGL_J1037.7-2822_daily_bin1155.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31331/ft1_4FGL_J1037.7-2822_daily_bin1155.fits outfile=/scratch/kocevski/31331/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin1155.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=538704001.0 tmax=538963201.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.56
user 3.29
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31331/ft1_filtered_4FGL_J1037.7-2822_daily_bin1155.fits" evtable="EVENTS" scfile=/scratch/kocevski/31331/ft2_4FGL_J1037.7-2822_daily_bin1155.fits sctable="SC_DATA" outfile=/scratch/kocevski/31331/ltcube_538704001_538963201_4FGL_J1037.7-2822_daily_bin1155.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/31331/ft2_4FGL_J1037.7-2822_daily_bin1155.fits
.....................!
real 13.09
user 12.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31331/ft1_filtered_4FGL_J1037.7-2822_daily_bin1155.fits evtable="EVENTS" scfile=/scratch/kocevski/31331/ft2_4FGL_J1037.7-2822_daily_bin1155.fits sctable="SC_DATA" expcube=/scratch/kocevski/31331/ltcube_538704001_538963201_4FGL_J1037.7-2822_daily_bin1155.fits outfile=/scratch/kocevski/31331/expmap_538704001_538963201_4FGL_J1037.7-2822_daily_bin1155.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/31331/ltcube_538704001_538963201_4FGL_J1037.7-2822_daily_bin1155.fits
.....................!
real 194.02
user 185.44
sys 5.54

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/31331/ft1_filtered_4FGL_J1037.7-2822_daily_bin1155.fits scfile=/scratch/kocevski/31331/ft2_4FGL_J1037.7-2822_daily_bin1155.fits outfile=/scratch/kocevski/31331/cmap_538704001_538963201_4FGL_J1037.7-2822_daily_bin1155.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31331/ft1_filtered_4FGL_J1037.7-2822_daily_bin1155.fits scfile=/scratch/kocevski/31331/ft2_4FGL_J1037.7-2822_daily_bin1155.fits outfile=/scratch/kocevski/31331/cmap_HighResolution_538704001_538963201_4FGL_J1037.7-2822_daily_bin1155.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.58
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31331/ft1_filtered_4FGL_J1037.7-2822_daily_bin1155.fits evtable="EVENTS" scfile=/scratch/kocevski/31331/ft2_4FGL_J1037.7-2822_daily_bin1155.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31331/Model_4FGL_J1037.7-2822_daily_bin1155.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/31331/ft1_filtered_4FGL_J1037.7-2822_daily_bin1155.fits.....................!
real 72.17
user 70.59
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0481       1.0000         .10000E-03   10000.    
     2 'norm      '    14.495       1.0000         .10000E-03   10000.    
     3 'norm      '    29.657       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.7968       1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7393       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.963       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.145       1.0000         .10000E-03   10000.    
    11 'norm      '    .15721E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.9729       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.3630       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .29755E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .66443E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.8571       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.9062       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .63028       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=   6784.105     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     2086 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0479        7.2646       -.17796E-06   -.65494E-04
   2  norm          14.494        2.9625        .18388E-07    .16756E-05
   3  norm          29.654        15.418        .12936E-06    .19703E-04
   4  Prefactor     .10000E-03    58.030        .24394E-05** at limit **
   5  Prefactor     .10000E-03    4.2384        .10538E-07** at limit **
   6  norm          9.7974        9.7355        .15407E-06   -.10370E-03
   7  norm          .10000E-03    4.0691        .14018E-07** at limit **
   8  Prefactor     4.7387        5.5245        .76479E-07    .18660E-05
   9  Prefactor     16.980        21.474        .30924E-05    .28431E-03
  10  Prefactor     18.160        21.607        .11308E-05    .34208E-03
  11  norm          .10001E-03    2.8331       -.27826E-06** at limit **
  12  Prefactor     9.9641        19.684       -.37586E-05   -.15163E-03
  13  Prefactor     .10000E-03    2.7222        .37682E-07** at limit **
  14  Prefactor     9.3668        9.3238       -.58194E-06   -.14491E-03
  15  Prefactor     .10002E-03    3.4332       -.10017E-06** at limit **
  16  Prefactor     .10000E-03    4.8027        .54211E-07** at limit **
  17  Prefactor     .10000E-03    41.501       -.17400E-05** at limit **
  18  Prefactor     4.8574        11.600        .35079E-05   -.49602E-03
  19  Normalizat    1.9063        .27066       -.75706E-06    .95270E-04
  20  Prefactor     .63027        .12444       -.37052E-07    .50344E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.04787
  norm       = 14.4941
  norm       = 29.6541
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 9.7974
  norm       = 0.0001
  Prefactor  = 4.73866
  Prefactor  = 16.98
  Prefactor  = 18.1605
  norm       = 0.000100008
  Prefactor  = 9.96411
  Prefactor  = 0.0001
  Prefactor  = 9.36677
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.85743
  Normalizat = 1.90635
  Prefactor  = 0.630272
 **********
 **   18 **HESSE 
 **********

 FCN=   6784.105     FROM HESSE     STATUS=OK           297 CALLS     2383 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0479        7.2639        .17897E-03   -1.5259    
   2  norm          14.494        2.9663        .61450E-04   -1.4946    
   3  norm          29.654        15.407        .73570E-04   -1.4618    
   4  Prefactor     .10000E-03    58.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.2389        .16561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.7974        9.7654        .64013E-03   -1.5082    
   7  norm          .10000E-03    4.0772        .16222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.7387        5.5216        .18483E-03   -1.5273    
   9  Prefactor     16.980        22.276        .97246E-04   -1.4884    
  10  Prefactor     18.160        20.503        .94025E-04   -1.4855    
  11  norm          .10001E-03    25.537        .24241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.9641        20.288        .12689E-03   -1.5077    
  13  Prefactor     .10000E-03    2.7415        .13255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.3668        9.3590        .13097E-03   -1.5096    
  15  Prefactor     .10002E-03    37.743        .28953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.100        .35047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    41.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.8574        13.823        .91262E-03   -1.5267    
  19  Normalizat    1.9063        .32033        .30438E-03   -.66919    
  20  Prefactor     .63027        .14766        .23251E-03   -1.0633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53762e-09
Minuit parameter uncertainties:
  1  7.26519
  2  2.9663
  3  15.4086
  4  0.000445227
  5  2.68967e-07
  6  9.76698
  7  8.36448e-07
  8  5.52218
  9  22.2869
  10  20.5106
  11  0.000904103
  12  20.3017
  13  1.69964e-06
  14  9.36049
  15  0.00160165
  16  6.30146e-05
  17  0.000311696
  18  13.8324
  19  0.320684
  20  0.147754
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  9.041e-04  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:  6.303e-01  1.478e-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.906e+00  3.207e-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: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31331/likelihoodResults_538704001_538963201_4FGL_J1037.7-2822_daily_bin1155.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) = 6784.10559758
delta logL = -0.000186447897249

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6784.10541136
delta logL = -2.23149982048e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11013E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3608       1.0000          .0000       5.0000    
     3 'Normalizat'    1.9065       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63024       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=   6784.105     FROM MIGRAD    STATUS=FAILED        94 CALLS      260 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10014E-03    1133.7        .30717E-02** at limit **
   2  alpha         2.3026        3.0701        .16493        .41951E-06
   3  Normalizat    1.9063        .45404E-01    .30438E-03   -.14729E-03
   4  Prefactor     .63027        .21516E-01    .23251E-03   -.13510E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6784.105     FROM SIMPLEX   STATUS=UNCHANGED    157 CALLS      417 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10014E-03    1133.7        .91078E-03** at limit **
   2  alpha         2.3026        3.0701        .15741E-04    .41951E-06
   3  Normalizat    1.9063        .45404E-01    .30574E-06   -.14729E-03
   4  Prefactor     .63027        .21516E-01    .17043E-06   -.13510E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6784.105     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      445 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10007E-03    28.734        .12287E-03** at limit **
   2  alpha         2.3061        3.6482        .65972E-02    .70068E-06
   3  Normalizat    1.9063        .30915        .60876E-04   -.14380E-03
   4  Prefactor     .63027        .14656        .93003E-05   -.13080E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010007
  alpha      = 2.30608
  Normalizat = 1.90634
  Prefactor  = 0.630273
 **********
 **   18 **HESSE 
 **********

 FCN=   6784.105     FROM HESSE     STATUS=OK            23 CALLS      468 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10007E-03    28.702        .24573E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3061        3.6312        .13194E-02   -.77645E-01
   3  Normalizat    1.9063        .30902        .12175E-04   -.66919    
   4  Prefactor     .63027        .14648        .18601E-05   -1.0633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88635e-09
Minuit parameter uncertainties:
  1  0.00283791
  2  175.522
  3  0.309343
  4  0.146569
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31331': 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) = 6784.10541095
delta logL = 1.84111740964e-07

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.001e-04  2.838e-03  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.306e+00  1.755e+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:  6.303e-01  1.466e-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.906e+00  3.093e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/31331/cmap_HighResolution_538704001_538963201_4FGL_J1037.7-2822_daily_bin1155.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-05', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-02 06:39:19.278569', job_id='31331', GAL2='0.63', fit_tolerance='1e-08', EG2='1.91', EG='1.91', time_epoch_completed='1630589959.28', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='1.84e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1155' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:39:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 31331: <4FGL_J1037.7-2822_daily_bin1155> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin1155 159.427 -28.3816 538704001 538963201 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 :                                   655.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             358.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            764 sec.

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

