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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin834
RA = 159.427, Dec = -28.3816
tmin = 455500801, tmax = 455760001
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='29977', job_status='RUN', time_executed='2021-09-02 06:25:19.298655', time_epoch_executed='1630589119.3' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='834'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/29977

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/29977/ft1_4FGL_J1037.7-2822_daily_bin834.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/29977/ft2_4FGL_J1037.7-2822_daily_bin834.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/29977/ft1_4FGL_J1037.7-2822_daily_bin834.fits outfile=/scratch/kocevski/29977/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin834.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=455500801.0 tmax=455760001.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.50
user 3.20
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/29977/ft2_4FGL_J1037.7-2822_daily_bin834.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/29977/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin834.fits evtable="EVENTS" outfile="/scratch/kocevski/29977/ft1_filtered_4FGL_J1037.7-2822_daily_bin834.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.54
user 0.34
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/29977/ft1_filtered_4FGL_J1037.7-2822_daily_bin834.fits" evtable="EVENTS" scfile=/scratch/kocevski/29977/ft2_4FGL_J1037.7-2822_daily_bin834.fits sctable="SC_DATA" outfile=/scratch/kocevski/29977/ltcube_455500801_455760001_4FGL_J1037.7-2822_daily_bin834.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/29977/ft2_4FGL_J1037.7-2822_daily_bin834.fits
.....................!
real 13.72
user 13.31
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/29977/ft1_filtered_4FGL_J1037.7-2822_daily_bin834.fits evtable="EVENTS" scfile=/scratch/kocevski/29977/ft2_4FGL_J1037.7-2822_daily_bin834.fits sctable="SC_DATA" expcube=/scratch/kocevski/29977/ltcube_455500801_455760001_4FGL_J1037.7-2822_daily_bin834.fits outfile=/scratch/kocevski/29977/expmap_455500801_455760001_4FGL_J1037.7-2822_daily_bin834.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/29977/ltcube_455500801_455760001_4FGL_J1037.7-2822_daily_bin834.fits
.....................!
real 191.51
user 186.20
sys 4.76

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/29977/ft1_filtered_4FGL_J1037.7-2822_daily_bin834.fits scfile=/scratch/kocevski/29977/ft2_4FGL_J1037.7-2822_daily_bin834.fits outfile=/scratch/kocevski/29977/cmap_455500801_455760001_4FGL_J1037.7-2822_daily_bin834.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.64
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/29977/ft1_filtered_4FGL_J1037.7-2822_daily_bin834.fits scfile=/scratch/kocevski/29977/ft2_4FGL_J1037.7-2822_daily_bin834.fits outfile=/scratch/kocevski/29977/cmap_HighResolution_455500801_455760001_4FGL_J1037.7-2822_daily_bin834.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.91
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/29977/ft1_filtered_4FGL_J1037.7-2822_daily_bin834.fits evtable="EVENTS" scfile=/scratch/kocevski/29977/ft2_4FGL_J1037.7-2822_daily_bin834.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/29977/Model_4FGL_J1037.7-2822_daily_bin834.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/29977/ft1_filtered_4FGL_J1037.7-2822_daily_bin834.fits.....................!
real 81.71
user 78.64
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    1.6247       1.0000         .10000E-03   10000.    
     3 'norm      '    21.043       1.0000         .10000E-03   10000.    
     4 'Prefactor '    61.899       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .15016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7029       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11603E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10876E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7761       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4530       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.6240       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .75849       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=   7916.857     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     1742 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.8619        .14394E-05** at limit **
   2  norm          1.6248        1.1022        .10603E-07   -.10443E-03
   3  norm          21.045        11.117        .15336E-06   -.55833E-04
   4  Prefactor     61.901        25.634        .11847E-05    .18335E-03
   5  Prefactor     .10000E-03    5.5078        .13894E-05** at limit **
   6  norm          .10000E-03    14.177        .55750E-05** at limit **
   7  norm          .10001E-03    3.5250        .66431E-07** at limit **
   8  Prefactor     .10000E-03    2.8729       -.77801E-06** at limit **
   9  Prefactor     3.7023        5.5152        .16934E-05   -.13007E-02
  10  Prefactor     .10000E-03    4.0831       -.20080E-05** at limit **
  11  norm          .10000E-03    .93813       -.15334E-07** at limit **
  12  Prefactor     .10000E-03    6.7444       -.87511E-06** at limit **
  13  Prefactor     .10000E-03    1.5873        .11266E-06** at limit **
  14  Prefactor     .10008E-03    3.5920       -.12813E-05** at limit **
  15  Prefactor     .10000E-03    2.8327        .59605E-06** at limit **
  16  Prefactor     1.7753        4.8262        .33280E-06   -.28383E-03
  17  Prefactor     .10000E-03    11.339       -.23175E-05** at limit **
  18  Prefactor     4.4508        12.372       -.79328E-06   -.85450E-04
  19  Normalizat    1.6239        .21535       -.16559E-06    .65658E-04
  20  Prefactor     .75855        .10578       -.13462E-06    .69133E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.62476
  norm       = 21.0445
  Prefactor  = 61.9014
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 3.70228
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100084
  Prefactor  = 0.0001
  Prefactor  = 1.77525
  Prefactor  = 0.000100001
  Prefactor  = 4.45075
  Normalizat = 1.62387
  Prefactor  = 0.758551
 **********
 **   18 **HESSE 
 **********

 FCN=   7916.857     FROM HESSE     STATUS=OK           291 CALLS     2033 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9033        .17158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6248        1.0946        .74435E-04   -1.5453    
   3  norm          21.045        11.069        .87314E-04   -1.4790    
   4  Prefactor     61.901        25.636        .51001E-04   -1.4133    
   5  Prefactor     .10000E-03    5.5377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    14.666        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    17.281        .31878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.8955        .14753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.7023        7.9325        .10493E-02   -1.5323    
  10  Prefactor     .10000E-03    4.1628        .17717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .94706        .84139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.7774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.9965        .21666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10008E-03    18.346        .31156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.8640        .14636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.7753        4.8613        .31412E-03   -1.5441    
  17  Prefactor     .10000E-03    11.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.4508        12.405        .19082E-03   -1.5286    
  19  Normalizat    1.6239        .25504        .29002E-03   -.74355    
  20  Prefactor     .75855        .12625        .20096E-03   -1.0127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.34148e-09
Minuit parameter uncertainties:
  1  6.21285e-05
  2  1.09466
  3  11.07
  4  25.6402
  5  6.4756e-05
  6  0.0003688
  7  0.000637318
  8  2.83568e-05
  9  7.93479
  10  8.96361e-05
  11  3.82054e-08
  12  4.86952e-05
  13  1.14633e-05
  14  0.00247763
  15  2.27287e-05
  16  4.86234
  17  0.000167907
  18  12.4119
  19  0.255248
  20  0.126293
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  3.821e-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:  7.586e-01  1.263e-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.624e+00  2.552e-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: 4.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.66e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/29977/likelihoodResults_455500801_455760001_4FGL_J1037.7-2822_daily_bin834.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) = 7916.8618634
delta logL = -0.00494751314272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7916.85690711
delta logL = 8.78070932231e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10410E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2038       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6239       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75855       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=   7916.857     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      240 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    31.735        .90712E-02** at limit **
   2  alpha         1.6296        2.8880        .41523        .64424E-07
   3  Normalizat    1.6239        .24696E-01    .65569E-01    .19108E-04
   4  Prefactor     .75855        .12323E-01    .43175E-01    .38516E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.62961
  Normalizat = 1.62387
  Prefactor  = 0.758551
 **********
 **   18 **HESSE 
 **********

 FCN=   7916.857     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      273 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    173.01        .11099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6296        4.0652        .50000       -.35560    
   3  Normalizat    1.6239        .65109E-01    .29002E-03   -.74355    
   4  Prefactor     .75855        .32498E-01    .20096E-03   -1.0127    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.57936e-09
Minuit parameter uncertainties:
  1  0.000173308
  2  951.589
  3  0.0651126
  4  0.0324992
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/29977': 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): 102
logL (Free Index) = 7916.8568934
delta logL = 2.24861478273e-05

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  1.733e-04  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  1.630e+00  9.516e+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:  7.586e-01  3.250e-02  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.624e+00  6.511e-02  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/29977/cmap_HighResolution_455500801_455760001_4FGL_J1037.7-2822_daily_bin834.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.66e-05', job_status='DONE', photon_flux_upper_limit='4.98e-08', time_completed='2021-09-02 06:36:28.910302', job_id='29977', GAL2='0.76', fit_tolerance='1e-08', EG2='1.62', EG='1.62', time_epoch_completed='1630589788.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='2.25e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='834' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:36:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 29977: <4FGL_J1037.7-2822_daily_bin834> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin834 159.427 -28.3816 455500801 455760001 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 :                                   665.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             253.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            893 sec.

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

