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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin1065
RA = 159.427, Dec = -28.3816
tmin = 515376001, tmax = 515635201
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='31233', job_status='RUN', time_executed='2021-09-02 06:27:44.306465', time_epoch_executed='1630589264.31' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='1065'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31233

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31233/ft1_4FGL_J1037.7-2822_daily_bin1065.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31233/ft2_4FGL_J1037.7-2822_daily_bin1065.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31233/ft1_4FGL_J1037.7-2822_daily_bin1065.fits outfile=/scratch/kocevski/31233/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin1065.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=515376001.0 tmax=515635201.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.24
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31233/ft1_filtered_4FGL_J1037.7-2822_daily_bin1065.fits" evtable="EVENTS" scfile=/scratch/kocevski/31233/ft2_4FGL_J1037.7-2822_daily_bin1065.fits sctable="SC_DATA" outfile=/scratch/kocevski/31233/ltcube_515376001_515635201_4FGL_J1037.7-2822_daily_bin1065.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/31233/ft2_4FGL_J1037.7-2822_daily_bin1065.fits
.....................!
real 14.15
user 13.68
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31233/ft1_filtered_4FGL_J1037.7-2822_daily_bin1065.fits evtable="EVENTS" scfile=/scratch/kocevski/31233/ft2_4FGL_J1037.7-2822_daily_bin1065.fits sctable="SC_DATA" expcube=/scratch/kocevski/31233/ltcube_515376001_515635201_4FGL_J1037.7-2822_daily_bin1065.fits outfile=/scratch/kocevski/31233/expmap_515376001_515635201_4FGL_J1037.7-2822_daily_bin1065.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/31233/ltcube_515376001_515635201_4FGL_J1037.7-2822_daily_bin1065.fits
.....................!
real 190.13
user 185.72
sys 3.96

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/31233/ft1_filtered_4FGL_J1037.7-2822_daily_bin1065.fits scfile=/scratch/kocevski/31233/ft2_4FGL_J1037.7-2822_daily_bin1065.fits outfile=/scratch/kocevski/31233/cmap_515376001_515635201_4FGL_J1037.7-2822_daily_bin1065.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.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31233/ft1_filtered_4FGL_J1037.7-2822_daily_bin1065.fits scfile=/scratch/kocevski/31233/ft2_4FGL_J1037.7-2822_daily_bin1065.fits outfile=/scratch/kocevski/31233/cmap_HighResolution_515376001_515635201_4FGL_J1037.7-2822_daily_bin1065.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.56
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31233/ft1_filtered_4FGL_J1037.7-2822_daily_bin1065.fits evtable="EVENTS" scfile=/scratch/kocevski/31233/ft2_4FGL_J1037.7-2822_daily_bin1065.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31233/Model_4FGL_J1037.7-2822_daily_bin1065.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/31233/ft1_filtered_4FGL_J1037.7-2822_daily_bin1065.fits.....................!
real 66.91
user 65.61
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.4955       1.0000         .10000E-03   10000.    
     3 'norm      '    6.7357       1.0000         .10000E-03   10000.    
     4 'Prefactor '    46.549       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.890       1.0000         .10000E-03   10000.    
     6 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .29515E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .49562E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.363       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0664       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.047       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.1027       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.703       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3090       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .83125       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=   6209.736     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     2360 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.5548       -.15972E-06** at limit **
   2  norm          2.4956        1.9379       -.10867E-06   -.42265E-03
   3  norm          6.7345        13.944        .17132E-05    .58507E-05
   4  Prefactor     46.540        38.365       -.83556E-05    .38180E-04
   5  Prefactor     13.884        20.542        .27318E-07    .42055E-04
   6  norm          .10000E-03    12.925        .19139E-06** at limit **
   7  norm          .10004E-03    6.4931       -.13063E-05** at limit **
   8  Prefactor     .10000E-03    2.7446       -.44674E-06** at limit **
   9  Prefactor     .10000E-03    5.0242       -.95893E-07** at limit **
  10  Prefactor     .10006E-03    11.920        .59853E-06** at limit **
  11  norm          10.360        5.3448       -.59777E-06   -.25067E-03
  12  Prefactor     4.0661        9.8237       -.43118E-06   -.11331E-03
  13  Prefactor     .10000E-03    3.9704       -.43063E-07** at limit **
  14  Prefactor     24.046        13.540       -.42634E-07    .38931E-05
  15  Prefactor     .10000E-03    1.4102       -.43903E-06** at limit **
  16  Prefactor     4.1039        11.119       -.11448E-05   -.13365E-03
  17  Prefactor     .10000E-03    18.712        .39681E-06** at limit **
  18  Prefactor     18.703        15.277       -.51262E-06   -.13576E-05
  19  Normalizat    1.3091        .25215        .15683E-05    .35913E-04
  20  Prefactor     .83115        .12033        .42406E-07    .19289E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.49563
  norm       = 6.73446
  Prefactor  = 46.5399
  Prefactor  = 13.8841
  norm       = 0.0001
  norm       = 0.000100036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100058
  norm       = 10.3599
  Prefactor  = 4.06612
  Prefactor  = 0.0001
  Prefactor  = 24.0459
  Prefactor  = 0.0001
  Prefactor  = 4.10392
  Prefactor  = 0.0001
  Prefactor  = 18.7032
  Normalizat = 1.30909
  Prefactor  = 0.831152
 **********
 **   18 **HESSE 
 **********

 FCN=   6209.736     FROM HESSE     STATUS=OK           297 CALLS     2657 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.5634        .16425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.4956        1.9384        .91372E-04   -1.5392    
   3  norm          6.7345        13.858        .15461E-03   -1.5189    
   4  Prefactor     46.540        38.155        .58768E-04   -1.4343    
   5  Prefactor     13.884        20.465        .10747E-03   -1.4963    
   6  norm          .10000E-03    13.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10004E-03    19.786        .37838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.7478        .12750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.0311        .17248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10006E-03    83.030        .49511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.360        5.0903        .11847E-03   -1.5064    
  12  Prefactor     4.0661        9.8315        .19994E-03   -1.5305    
  13  Prefactor     .10000E-03    4.0872        .30576E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.046        13.558        .81685E-04   -1.4727    
  15  Prefactor     .10000E-03    1.4126        .91380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.1039        11.204        .19903E-03   -1.5303    
  17  Prefactor     .10000E-03    18.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.703        15.300        .92613E-04   -1.4843    
  19  Normalizat    1.3091        .29944        .32058E-03   -.83295    
  20  Prefactor     .83115        .14361        .19148E-03   -.98590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71965e-09
Minuit parameter uncertainties:
  1  5.01821e-07
  2  1.93843
  3  13.8641
  4  38.1751
  5  20.4756
  6  0.000136693
  7  0.00170009
  8  1.25616e-06
  9  6.254e-06
  10  0.00439371
  11  5.0905
  12  9.83541
  13  1.58336e-05
  14  13.5594
  15  5.10908e-07
  16  11.2101
  17  1.52065e-06
  18  15.3033
  19  0.299837
  20  0.143671
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.036e+01  5.090e+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:  8.312e-01  1.437e-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.309e+00  2.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.17
Ra Dec: 159.427 -28.382
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.13e-07 +/- 5.57e-08
Energy Flux (Fixed Index): 3.78e-05 +/- 1.86e-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) = 6209.34372337
delta logL = 0.391916531841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6209.3402055
delta logL = 0.395434401243

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1029       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8536       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2626       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84610       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=   6209.340     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      274 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1034        5.7583        .90440E-04   -.10563E-02
   2  alpha         2.8535        .56776        .88559E-02   -.11269E-03
   3  Normalizat    1.2627        .29058        .32526E-03    .12247E-03
   4  Prefactor     .84615        .14044        .18992E-03    .28949E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.10337
  alpha      = 2.85352
  Normalizat = 1.26271
  Prefactor  = 0.84615
 **********
 **   18 **HESSE 
 **********

 FCN=   6209.340     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1034        5.3116        .36176E-05   -1.5175    
   2  alpha         2.8535        .52402        .35424E-03    .14188    
   3  Normalizat    1.2627        .29041        .13010E-04   -.84686    
   4  Prefactor     .84615        .14038        .37983E-04   -.98049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33312e-10
Minuit parameter uncertainties:
  1  5.31196
  2  0.52802
  3  0.290786
  4  0.140438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31233': 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) = 6209.34020477
delta logL = 0.395435130611

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  7.103e+00  5.312e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.854e+00  5.280e-01  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:  8.461e-01  1.404e-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.263e+00  2.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.02
Ra Dec: 159.427 -28.382
Photon Index (Free Index): 2.85 +/- 0.53
Photon Flux (Free Index): 1.53e-07 +/- 7.90e-08
Energy Flux (Free Index): 3.56e-05 +/- 1.64e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/31233/cmap_HighResolution_515376001_515635201_4FGL_J1037.7-2822_daily_bin1065.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.13e-07', energy_flux2='3.56e-05', photon_flux_error='5.57e-08', dlogl='3.95e-01', energy_flux='3.78e-05', photon_flux2='1.53e-07', job_status='DONE', time_completed='2021-09-02 06:37:36.710995', photon_index_error2='0.53', photon_index2='2.85', ts='7.17', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.64e-05', EG='1.31', time_epoch_completed='1630589856.71', return_code='0', job_id='31233', GAL2='0.85', EG2='1.26', return_code2='0', energy_flux_error='1.86e-05', photon_flux_error2='7.90e-08', ts2='8.02', photon_index='2.40' WHERE bin_id='1065' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:37:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 31233: <4FGL_J1037.7-2822_daily_bin1065> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin1065 159.427 -28.3816 515376001 515635201 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 :                                   585.52 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             354.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   660 sec.
    Turnaround time :                            673 sec.

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

