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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin779
RA = 159.427, Dec = -28.3816
tmin = 441244801, tmax = 441504001
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='28561', job_status='RUN', time_executed='2021-09-02 06:19:44.056526', time_epoch_executed='1630588784.06' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='779'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/28561

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/28561/ft1_4FGL_J1037.7-2822_daily_bin779.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/28561/ft2_4FGL_J1037.7-2822_daily_bin779.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/28561/ft1_4FGL_J1037.7-2822_daily_bin779.fits outfile=/scratch/kocevski/28561/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin779.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=441244801.0 tmax=441504001.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.21
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/28561/ft2_4FGL_J1037.7-2822_daily_bin779.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/28561/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin779.fits evtable="EVENTS" outfile="/scratch/kocevski/28561/ft1_filtered_4FGL_J1037.7-2822_daily_bin779.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/28561/ft1_filtered_4FGL_J1037.7-2822_daily_bin779.fits" evtable="EVENTS" scfile=/scratch/kocevski/28561/ft2_4FGL_J1037.7-2822_daily_bin779.fits sctable="SC_DATA" outfile=/scratch/kocevski/28561/ltcube_441244801_441504001_4FGL_J1037.7-2822_daily_bin779.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/28561/ft2_4FGL_J1037.7-2822_daily_bin779.fits
.....................!
real 14.34
user 13.89
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/28561/ft1_filtered_4FGL_J1037.7-2822_daily_bin779.fits evtable="EVENTS" scfile=/scratch/kocevski/28561/ft2_4FGL_J1037.7-2822_daily_bin779.fits sctable="SC_DATA" expcube=/scratch/kocevski/28561/ltcube_441244801_441504001_4FGL_J1037.7-2822_daily_bin779.fits outfile=/scratch/kocevski/28561/expmap_441244801_441504001_4FGL_J1037.7-2822_daily_bin779.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/28561/ltcube_441244801_441504001_4FGL_J1037.7-2822_daily_bin779.fits
.....................!
real 192.12
user 186.39
sys 5.01

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/28561/ft1_filtered_4FGL_J1037.7-2822_daily_bin779.fits scfile=/scratch/kocevski/28561/ft2_4FGL_J1037.7-2822_daily_bin779.fits outfile=/scratch/kocevski/28561/cmap_441244801_441504001_4FGL_J1037.7-2822_daily_bin779.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.57
user 0.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7190       1.0000         .10000E-03   10000.    
     2 'norm      '    .25673       1.0000         .10000E-03   10000.    
     3 'norm      '    10.482       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9226       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18105E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.5352       1.0000         .10000E-03   10000.    
     7 'norm      '    2.7903       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5630       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.1591       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.111       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5660       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16307E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.085       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.910       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1424       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96482       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=   10493.91     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     1815 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7187        6.6726       -.26333E-06   -.57434E-04
   2  norm          .25645        .55058        .79260E-07    .20149E-03
   3  norm          10.481        8.1722        .59931E-07   -.27166E-04
   4  Prefactor     6.9183        19.724       -.69914E-05   -.35381E-04
   5  Prefactor     .10000E-03    5.3489        .35689E-06** at limit **
   6  norm          3.5332        5.3686        .28557E-06   -.41137E-04
   7  norm          2.7898        5.4177       -.41905E-06   -.97335E-04
   8  Prefactor     2.5630        2.6205       -.34393E-07    .32127E-04
   9  Prefactor     .10000E-03    8.6422        .26452E-05** at limit **
  10  Prefactor     .10000E-03    15.235        .18755E-04** at limit **
  11  norm          5.1579        3.1964       -.10866E-05   -.10318E-02
  12  Prefactor     11.114        12.127        .71082E-06   -.60404E-04
  13  Prefactor     1.5638        .58473        .99837E-07   -.38906E-02
  14  Prefactor     .10000E-03    11.746       -.12589E-04** at limit **
  15  Prefactor     .10000E-03    1.9119       -.16046E-06** at limit **
  16  Prefactor     12.084        8.1143       -.83592E-07   -.12395E-03
  17  Prefactor     .10000E-03    22.899       -.10229E-04** at limit **
  18  Prefactor     15.913        10.367        .27558E-07    .10094E-03
  19  Normalizat    1.1424        .17810        .10304E-05    .37294E-04
  20  Prefactor     .96486        .91357E-01   -.33258E-07    .22852E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.71873
  norm       = 0.256449
  norm       = 10.481
  Prefactor  = 6.91825
  Prefactor  = 0.000100002
  norm       = 3.53319
  norm       = 2.78981
  Prefactor  = 2.563
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.15794
  Prefactor  = 11.1139
  Prefactor  = 1.56381
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 12.0841
  Prefactor  = 0.0001
  Prefactor  = 15.913
  Normalizat = 1.14241
  Prefactor  = 0.964862
 **********
 **   18 **HESSE 
 **********

 FCN=   10493.91     FROM HESSE     STATUS=OK           303 CALLS     2118 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7187        6.6670        .32043E-03   -1.5446    
   2  norm          .25645        .42552        .10777E-02   -1.5607    
   3  norm          10.481        8.1587        .12376E-03   -1.5060    
   4  Prefactor     6.9183        19.645        .15248E-03   -1.5182    
   5  Prefactor     .10000E-03    21.764        .45555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.5332        5.3186        .21499E-03   -1.5332    
   7  norm          2.7898        5.3847        .24358E-03   -1.5374    
   8  Prefactor     2.5630        2.6296        .16361E-03   -1.5388    
   9  Prefactor     .10000E-03    8.6977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.1579        3.3779        .13737E-03   -1.5254    
  12  Prefactor     11.114        12.123        .12019E-03   -1.5041    
  13  Prefactor     1.5638        3.4862        .12770E-02   -1.5458    
  14  Prefactor     .10000E-03    11.958        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.1579        .27307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.084        8.1265        .57615E-03   -1.5013    
  17  Prefactor     .10000E-03    22.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.913        10.371        .10041E-03   -1.4910    
  19  Normalizat    1.1424        .21157        .31767E-03   -.88402    
  20  Prefactor     .96486        .10879        .17966E-03   -.93910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08754e-08
Minuit parameter uncertainties:
  1  6.66986
  2  0.425527
  3  8.15954
  4  19.6631
  5  0.000408717
  6  5.31927
  7  5.38562
  8  2.62971
  9  8.7964e-06
  10  0.000101599
  11  3.37799
  12  12.1259
  13  3.48667
  14  0.000178762
  15  1.3412e-06
  16  8.12723
  17  1.06923e-05
  18  10.3723
  19  0.211731
  20  0.108812
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  5.158e+00  3.378e+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:  9.649e-01  1.088e-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.142e+00  2.117e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.97
Ra Dec: 159.427 -28.382
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 5.64e-08 +/- 3.69e-08
Energy Flux (Fixed Index): 1.88e-05 +/- 1.23e-05

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) = 10492.2001898
delta logL = 1.71461017184

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10492.1875771
delta logL = 1.72722289917

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7748       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5959       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0347       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99973       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=   10492.19     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      254 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7744        8.6380        .78564E-02    .83772E-03
   2  alpha         3.5961        3.7927        .23643        .11524E-03
   3  Normalizat    1.0347        .63459E-01    .74810E-01    .30038E-04
   4  Prefactor     .99974        .32028E-01    .46264E-01    .40810E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.77444
  alpha      = 3.59609
  Normalizat = 1.03469
  Prefactor  = 0.999742
 **********
 **   18 **HESSE 
 **********

 FCN=   10492.19     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .91E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7744        4.3485        .53167E-04   -1.5442    
   2  alpha         3.5961        1.3696        .98571E-02    .45386    
   3  Normalizat    1.0347        .21886        .33107E-03   -.91877    
   4  Prefactor     .99974        .11225        .17673E-03   -.92738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.12713e-08
Minuit parameter uncertainties:
  1  4.34927
  2  1.47285
  3  0.219055
  4  0.112278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/28561': 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) = 10492.1875771
delta logL = 1.72722291964

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.774e+00  4.349e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  3.596e+00  1.473e+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:  9.997e-01  1.123e-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.035e+00  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.83
Ra Dec: 159.427 -28.382
Photon Index (Free Index): 3.60 +/- 1.47
Photon Flux (Free Index): 1.34e-07 +/- 6.13e-08
Energy Flux (Free Index): 2.31e-05 +/- 1.08e-05

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/28561/cmap_HighResolution_441244801_441504001_4FGL_J1037.7-2822_daily_bin779.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.64e-08', energy_flux2='2.31e-05', photon_flux_error='3.69e-08', dlogl='1.73e+00', energy_flux='1.88e-05', photon_flux2='1.34e-07', job_status='DONE', time_completed='2021-09-02 06:31:44.963870', photon_index_error2='1.47', photon_index2='3.60', ts='4.97', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.08e-05', EG='1.14', time_epoch_completed='1630589504.96', return_code='0', job_id='28561', GAL2='1.00', EG2='1.03', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='6.13e-08', ts2='8.83', photon_index='2.40' WHERE bin_id='779' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:31:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 28561: <4FGL_J1037.7-2822_daily_bin779> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin779> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Sep  2 06:16:33 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:16:35 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:35 2021
Terminated at Thu Sep  2 06:31:45 2021
Results reported at Thu Sep  2 06:31:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin779 159.427 -28.3816 441244801 441504001 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 :                                   720.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

