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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin925
RA = 159.427, Dec = -28.3816
tmin = 479088001, tmax = 479347201
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='30114', job_status='RUN', time_executed='2021-09-02 06:25:59.419218', time_epoch_executed='1630589159.42' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='925'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30114

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30114/ft1_4FGL_J1037.7-2822_daily_bin925.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30114/ft2_4FGL_J1037.7-2822_daily_bin925.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30114/ft1_4FGL_J1037.7-2822_daily_bin925.fits outfile=/scratch/kocevski/30114/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin925.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=479088001.0 tmax=479347201.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.47
user 3.26
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/30114/ft1_filtered_4FGL_J1037.7-2822_daily_bin925.fits" evtable="EVENTS" scfile=/scratch/kocevski/30114/ft2_4FGL_J1037.7-2822_daily_bin925.fits sctable="SC_DATA" outfile=/scratch/kocevski/30114/ltcube_479088001_479347201_4FGL_J1037.7-2822_daily_bin925.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/30114/ft2_4FGL_J1037.7-2822_daily_bin925.fits
.....................!
real 13.90
user 13.51
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30114/ft1_filtered_4FGL_J1037.7-2822_daily_bin925.fits evtable="EVENTS" scfile=/scratch/kocevski/30114/ft2_4FGL_J1037.7-2822_daily_bin925.fits sctable="SC_DATA" expcube=/scratch/kocevski/30114/ltcube_479088001_479347201_4FGL_J1037.7-2822_daily_bin925.fits outfile=/scratch/kocevski/30114/expmap_479088001_479347201_4FGL_J1037.7-2822_daily_bin925.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/30114/ltcube_479088001_479347201_4FGL_J1037.7-2822_daily_bin925.fits
.....................!
real 192.04
user 185.64
sys 4.50

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/30114/ft1_filtered_4FGL_J1037.7-2822_daily_bin925.fits scfile=/scratch/kocevski/30114/ft2_4FGL_J1037.7-2822_daily_bin925.fits outfile=/scratch/kocevski/30114/cmap_479088001_479347201_4FGL_J1037.7-2822_daily_bin925.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.55
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/30114/ft1_filtered_4FGL_J1037.7-2822_daily_bin925.fits scfile=/scratch/kocevski/30114/ft2_4FGL_J1037.7-2822_daily_bin925.fits outfile=/scratch/kocevski/30114/cmap_HighResolution_479088001_479347201_4FGL_J1037.7-2822_daily_bin925.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=159.427 yref=-28.3816 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/30114/ft1_filtered_4FGL_J1037.7-2822_daily_bin925.fits evtable="EVENTS" scfile=/scratch/kocevski/30114/ft2_4FGL_J1037.7-2822_daily_bin925.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/30114/Model_4FGL_J1037.7-2822_daily_bin925.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/30114/ft1_filtered_4FGL_J1037.7-2822_daily_bin925.fits.....................!
real 63.63
user 62.26
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .88472       1.0000         .10000E-03   10000.    
     3 'norm      '    25.724       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9764       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.5040       1.0000         .10000E-03   10000.    
     7 'norm      '    .19318E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.530       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.680       1.0000         .10000E-03   10000.    
    11 'norm      '    11.181       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4886       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.847       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.796       1.0000         .10000E-03   10000.    
    17 'Prefactor '    46.966       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1786       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93842       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=   5880.138     FROM MIGRAD    STATUS=CONVERGED    390 CALLS     2049 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.5320       -.10812E-06** at limit **
   2  norm          .88462        1.7242       -.28720E-06   -.98740E-03
   3  norm          25.724        16.318       -.15532E-05    .12413E-04
   4  Prefactor     2.9746        45.790       -.75831E-05   -.41072E-04
   5  Prefactor     .10000E-03    14.483       -.27962E-05** at limit **
   6  norm          4.5075        15.085        .74859E-05    .19725E-04
   7  norm          .10000E-03    25.237       -.24358E-05** at limit **
   8  Prefactor     .10000E-03    8.4669        .47430E-06** at limit **
   9  Prefactor     17.507        33.570       -.39644E-04   -.14629E-03
  10  Prefactor     17.673        26.346       -.94708E-05   -.26615E-05
  11  norm          11.182        7.3277        .47492E-05   -.41810E-04
  12  Prefactor     4.4924        42.212        .29136E-04    .13958E-03
  13  Prefactor     .10000E-03    2.2790        .50586E-06** at limit **
  14  Prefactor     14.845        13.923       -.68964E-06   -.12187E-04
  15  Prefactor     .10000E-03    2.0745        .23118E-06** at limit **
  16  Prefactor     13.796        11.342       -.46010E-06   -.17073E-04
  17  Prefactor     46.963        40.736       -.41316E-05    .12325E-05
  18  Prefactor     .10000E-03    7.0985        .13830E-06** at limit **
  19  Normalizat    1.1789        .27748        .75558E-05   -.17929E-03
  20  Prefactor     .93831        .12837       -.14642E-05    .28532E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.884619
  norm       = 25.7237
  Prefactor  = 2.97458
  Prefactor  = 0.0001
  norm       = 4.50752
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 17.5074
  Prefactor  = 17.6733
  norm       = 11.1818
  Prefactor  = 4.49236
  Prefactor  = 0.0001
  Prefactor  = 14.8451
  Prefactor  = 0.0001
  Prefactor  = 13.7956
  Prefactor  = 46.9627
  Prefactor  = 0.0001
  Normalizat = 1.17889
  Prefactor  = 0.938307
 **********
 **   18 **HESSE 
 **********

 FCN=   5880.138     FROM HESSE     STATUS=OK           293 CALLS     2342 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.5659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .88462        1.6968        .13224E-03   -1.5520    
   3  norm          25.724        16.283        .78982E-04   -1.4693    
   4  Prefactor     2.9746        45.632        .23534E-03   -1.5363    
   5  Prefactor     .10000E-03    14.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.5075        14.895        .18971E-03   -1.5283    
   7  norm          .10000E-03    26.018        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.5409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.507        33.410        .95659E-04   -1.4871    
  10  Prefactor     17.673        26.259        .95253E-04   -1.4867    
  11  norm          11.182        7.3033        .11981E-03   -1.5039    
  12  Prefactor     4.4924        41.378        .19004E-03   -1.5284    
  13  Prefactor     .10000E-03    2.2888        .11295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.845        13.940        .10395E-03   -1.4937    
  15  Prefactor     .10000E-03    2.0805        .10784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.796        11.342        .10784E-03   -1.4965    
  17  Prefactor     46.963        40.723        .58508E-04   -1.4336    
  18  Prefactor     .10000E-03    7.1278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1789        .32641        .34964E-03   -.87258    
  20  Prefactor     .93831        .15253        .19036E-03   -.94815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00323e-09
Minuit parameter uncertainties:
  1  5.40198e-06
  2  1.69685
  3  16.2856
  4  23.3221
  5  8.19307e-05
  6  14.9068
  7  0.000526734
  8  2.18207e-05
  9  33.4458
  10  26.2761
  11  7.30386
  12  27.2926
  13  1.9591e-05
  14  13.9426
  15  9.08361e-07
  16  11.3439
  17  40.7473
  18  4.66465e-06
  19  0.326976
  20  0.152596
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.118e+01  7.304e+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.383e-01  1.526e-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.179e+00  3.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.50
Ra Dec: 159.427 -28.382
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.22e-07 +/- 7.99e-08
Energy Flux (Fixed Index): 4.08e-05 +/- 2.67e-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) = 5880.12869572
delta logL = 0.0095232963813

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5880.12641967
delta logL = 0.011799345104

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.441       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2806       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1973       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93321       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=   5880.126     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      211 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.441        145.93        .29609E-02    .16528E-03
   2  alpha         2.2804        2.7511        .28690        .41777E-04
   3  Normalizat    1.1973        .28060        .78506E-01    .13423E-04
   4  Prefactor     .93323        .61591E-01    .45427E-01    .41884E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 11.4413
  alpha      = 2.2804
  Normalizat = 1.19734
  Prefactor  = 0.93323
 **********
 **   18 **HESSE 
 **********

 FCN=   5880.126     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.441        6.7695        .11844E-03   -1.5031    
   2  alpha         2.2804        .83725        .16033E-01   -.87955E-01
   3  Normalizat    1.1973        .33022        .34750E-03   -.86685    
   4  Prefactor     .93323        .15391        .19087E-03   -.94989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.15033e-12
Minuit parameter uncertainties:
  1  6.76994
  2  0.853884
  3  0.330798
  4  0.153983
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30114': 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) = 5880.12641961
delta logL = 0.0117994083139

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.144e+01  6.770e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.280e+00  8.539e-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:  9.332e-01  1.540e-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.197e+00  3.308e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.57
Ra Dec: 159.427 -28.382
Photon Index (Free Index): 2.28 +/- 0.85
Photon Flux (Free Index): 1.06e-07 +/- 1.26e-07
Energy Flux (Free Index): 4.06e-05 +/- 2.37e-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/30114/cmap_HighResolution_479088001_479347201_4FGL_J1037.7-2822_daily_bin925.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.22e-07', energy_flux2='4.06e-05', photon_flux_error='7.99e-08', dlogl='1.18e-02', energy_flux='4.08e-05', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-09-02 06:35:07.655562', photon_index_error2='0.85', photon_index2='2.28', ts='9.50', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='2.37e-05', EG='1.18', time_epoch_completed='1630589707.66', return_code='0', job_id='30114', GAL2='0.93', EG2='1.20', return_code2='0', energy_flux_error='2.67e-05', photon_flux_error2='1.26e-07', ts2='9.57', photon_index='2.40' WHERE bin_id='925' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:35:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 30114: <4FGL_J1037.7-2822_daily_bin925> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin925> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 06:21:47 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:23:11 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:23:11 2021
Terminated at Thu Sep  2 06:35:08 2021
Results reported at Thu Sep  2 06:35:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin925 159.427 -28.3816 479088001 479347201 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 :                                   545.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            801 sec.

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

