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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin870
RA = 159.427, Dec = -28.3816
tmin = 464832001, tmax = 465091201
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='30031', job_status='RUN', time_executed='2021-09-02 06:22:50.061941', time_epoch_executed='1630588970.06' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='870'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30031

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30031/ft1_4FGL_J1037.7-2822_daily_bin870.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30031/ft2_4FGL_J1037.7-2822_daily_bin870.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30031/ft1_4FGL_J1037.7-2822_daily_bin870.fits outfile=/scratch/kocevski/30031/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin870.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=464832001.0 tmax=465091201.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.43
user 3.20
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/30031/ft1_filtered_4FGL_J1037.7-2822_daily_bin870.fits" evtable="EVENTS" scfile=/scratch/kocevski/30031/ft2_4FGL_J1037.7-2822_daily_bin870.fits sctable="SC_DATA" outfile=/scratch/kocevski/30031/ltcube_464832001_465091201_4FGL_J1037.7-2822_daily_bin870.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/30031/ft2_4FGL_J1037.7-2822_daily_bin870.fits
.....................!
real 17.35
user 16.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30031/ft1_filtered_4FGL_J1037.7-2822_daily_bin870.fits evtable="EVENTS" scfile=/scratch/kocevski/30031/ft2_4FGL_J1037.7-2822_daily_bin870.fits sctable="SC_DATA" expcube=/scratch/kocevski/30031/ltcube_464832001_465091201_4FGL_J1037.7-2822_daily_bin870.fits outfile=/scratch/kocevski/30031/expmap_464832001_465091201_4FGL_J1037.7-2822_daily_bin870.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/30031/ltcube_464832001_465091201_4FGL_J1037.7-2822_daily_bin870.fits
.....................!
real 193.20
user 188.08
sys 4.11

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/30031/ft1_filtered_4FGL_J1037.7-2822_daily_bin870.fits scfile=/scratch/kocevski/30031/ft2_4FGL_J1037.7-2822_daily_bin870.fits outfile=/scratch/kocevski/30031/cmap_464832001_465091201_4FGL_J1037.7-2822_daily_bin870.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=159.427 yref=-28.3816 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/30031/ft1_filtered_4FGL_J1037.7-2822_daily_bin870.fits scfile=/scratch/kocevski/30031/ft2_4FGL_J1037.7-2822_daily_bin870.fits outfile=/scratch/kocevski/30031/cmap_HighResolution_464832001_465091201_4FGL_J1037.7-2822_daily_bin870.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.57
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/30031/ft1_filtered_4FGL_J1037.7-2822_daily_bin870.fits evtable="EVENTS" scfile=/scratch/kocevski/30031/ft2_4FGL_J1037.7-2822_daily_bin870.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/30031/Model_4FGL_J1037.7-2822_daily_bin870.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/30031/ft1_filtered_4FGL_J1037.7-2822_daily_bin870.fits.....................!
real 76.50
user 75.13
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2280       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1961       1.0000         .10000E-03   10000.    
     3 'norm      '    16.775       1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.987       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.1125       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4418       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11445E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.4871       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.541       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6017       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3125       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .96538       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1256       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=   7518.165     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2021 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2281        5.9249       -.16459E-06    .15304E-03
   2  norm          2.1964        1.7322        .17397E-07   -.10246E-03
   3  norm          16.775        9.9959        .29307E-07   -.85487E-04
   4  Prefactor     38.987        28.262       -.15212E-06   -.56236E-04
   5  Prefactor     .10000E-03    26.533        .17600E-06** at limit **
   6  norm          .10000E-03    5.5936        .15663E-06** at limit **
   7  norm          4.1142        8.2641        .12796E-06   -.20547E-04
   8  Prefactor     2.4421        4.9087        .19051E-05   -.95400E-03
   9  Prefactor     .10007E-03    27.064       -.84258E-05** at limit **
  10  Prefactor     .10000E-03    9.5368       -.91045E-07** at limit **
  11  norm          9.4861        4.2370        .30695E-08    .18512E-03
  12  Prefactor     16.511        19.618        .77275E-06    .11977E-03
  13  Prefactor     .10000E-03    2.7733       -.13124E-06** at limit **
  14  Prefactor     4.6025        9.2532        .12450E-05   -.31712E-03
  15  Prefactor     3.3140        6.0349        .16712E-05   -.99461E-03
  16  Prefactor     .10000E-03    2.5816        .54757E-07** at limit **
  17  Prefactor     .10000E-03    31.130        .13628E-06** at limit **
  18  Prefactor     .10000E-03    3.8070        .48733E-07** at limit **
  19  Normalizat    .96518        .24587        .15187E-05    .17303E-03
  20  Prefactor     1.1257        .12310       -.12272E-05   -.41338E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.22806
  norm       = 2.19638
  norm       = 16.7749
  Prefactor  = 38.9871
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.11419
  Prefactor  = 2.44206
  Prefactor  = 0.000100074
  Prefactor  = 0.0001
  norm       = 9.48611
  Prefactor  = 16.5115
  Prefactor  = 0.0001
  Prefactor  = 4.6025
  Prefactor  = 3.31396
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.965183
  Prefactor  = 1.12567
 **********
 **   18 **HESSE 
 **********

 FCN=   7518.165     FROM HESSE     STATUS=OK           293 CALLS     2314 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2281        5.9292        .87901E-03   -1.5251    
   2  norm          2.1964        1.7266        .95921E-04   -1.5412    
   3  norm          16.775        9.9985        .97787E-04   -1.4889    
   4  Prefactor     38.987        28.365        .64193E-04   -1.4458    
   5  Prefactor     .10000E-03    26.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.6196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.1142        8.2482        .19879E-03   -1.5302    
   8  Prefactor     2.4421        5.1051        .13091E-02   -1.5395    
   9  Prefactor     .10007E-03    33.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.5708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.4861        4.2308        .11411E-03   -1.5092    
  12  Prefactor     16.511        19.684        .98478E-04   -1.4895    
  13  Prefactor     .10000E-03    2.8490        .28168E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.6025        9.3498        .93818E-03   -1.5279    
  15  Prefactor     3.3140        6.4595        .11121E-02   -1.5344    
  16  Prefactor     .10000E-03    2.5887        .13606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    31.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.8098        .16523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .96518        .29122        .37703E-03   -.94206    
  20  Prefactor     1.1257        .14291        .18071E-03   -.88650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.42233e-09
Minuit parameter uncertainties:
  1  5.92991
  2  1.7266
  3  9.99945
  4  28.3746
  5  5.88066e-05
  6  2.39942e-05
  7  8.25044
  8  5.10596
  9  0.00313294
  10  1.86284e-05
  11  4.23092
  12  19.6917
  13  1.5938e-05
  14  9.35276
  15  6.46087
  16  5.61407e-06
  17  0.000188606
  18  6.2451e-06
  19  0.291695
  20  0.142958
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  9.486e+00  4.231e+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:  1.126e+00  1.430e-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:  9.652e-01  2.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.42
Ra Dec: 159.427 -28.382
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.04e-07 +/- 4.63e-08
Energy Flux (Fixed Index): 3.46e-05 +/- 1.55e-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) = 7517.68050057
delta logL = 0.48499068399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7517.63702184
delta logL = 0.528469409992

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.453       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9627       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0022       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1150       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=   7517.637     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      239 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.455        130.29        .29594E-02    .55330E-04
   2  alpha         1.9626        3.1143        .32915        .17047E-04
   3  Normalizat    1.0022        .29094        .83785E-01    .25294E-04
   4  Prefactor     1.1150        .10229        .37042E-01   -.22012E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.4552
  alpha      = 1.96258
  Normalizat = 1.00225
  Prefactor  = 1.115
 **********
 **   18 **HESSE 
 **********

 FCN=   7517.637     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.455        5.4355        .11837E-03   -1.5031    
   2  alpha         1.9626        .42533        .12422E-01   -.21666    
   3  Normalizat    1.0022        .27531        .37091E-03   -.92955    
   4  Prefactor     1.1150        .14131        .18151E-03   -.88989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25598e-12
Minuit parameter uncertainties:
  1  5.43578
  2  0.427513
  3  0.275704
  4  0.141356
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30031': 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) = 7517.63702174
delta logL = 0.528469514834

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.146e+01  5.436e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  1.963e+00  4.275e-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:  1.115e+00  1.414e-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.002e+00  2.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.45
Ra Dec: 159.427 -28.382
Photon Index (Free Index): 1.96 +/- 0.43
Photon Flux (Free Index): 7.16e-08 +/- 4.65e-08
Energy Flux (Free Index): 4.43e-05 +/- 2.53e-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/30031/cmap_HighResolution_464832001_465091201_4FGL_J1037.7-2822_daily_bin870.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.04e-07', energy_flux2='4.43e-05', photon_flux_error='4.63e-08', dlogl='5.28e-01', energy_flux='3.46e-05', photon_flux2='7.16e-08', job_status='DONE', time_completed='2021-09-02 06:33:12.401510', photon_index_error2='0.43', photon_index2='1.96', ts='10.42', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='2.53e-05', EG='0.97', time_epoch_completed='1630589592.4', return_code='0', job_id='30031', GAL2='1.11', EG2='1.00', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='4.65e-08', ts2='11.45', photon_index='2.40' WHERE bin_id='870' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:33:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 30031: <4FGL_J1037.7-2822_daily_bin870> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin870 159.427 -28.3816 464832001 465091201 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 :                                   619.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   633 sec.
    Turnaround time :                            692 sec.

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

