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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin1028
RA = 159.427, Dec = -28.3816
tmin = 505785601, tmax = 506044801
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='30262', job_status='RUN', time_executed='2021-09-02 06:28:09.318003', time_epoch_executed='1630589289.32' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='1028'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30262

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30262/ft1_4FGL_J1037.7-2822_daily_bin1028.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30262/ft2_4FGL_J1037.7-2822_daily_bin1028.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30262/ft1_4FGL_J1037.7-2822_daily_bin1028.fits outfile=/scratch/kocevski/30262/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin1028.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=505785601.0 tmax=506044801.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.66
user 3.38
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/30262/ft1_filtered_4FGL_J1037.7-2822_daily_bin1028.fits" evtable="EVENTS" scfile=/scratch/kocevski/30262/ft2_4FGL_J1037.7-2822_daily_bin1028.fits sctable="SC_DATA" outfile=/scratch/kocevski/30262/ltcube_505785601_506044801_4FGL_J1037.7-2822_daily_bin1028.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/30262/ft2_4FGL_J1037.7-2822_daily_bin1028.fits
.....................!
real 14.35
user 13.25
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30262/ft1_filtered_4FGL_J1037.7-2822_daily_bin1028.fits evtable="EVENTS" scfile=/scratch/kocevski/30262/ft2_4FGL_J1037.7-2822_daily_bin1028.fits sctable="SC_DATA" expcube=/scratch/kocevski/30262/ltcube_505785601_506044801_4FGL_J1037.7-2822_daily_bin1028.fits outfile=/scratch/kocevski/30262/expmap_505785601_506044801_4FGL_J1037.7-2822_daily_bin1028.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/30262/ltcube_505785601_506044801_4FGL_J1037.7-2822_daily_bin1028.fits
.....................!
real 191.58
user 185.98
sys 4.33

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/30262/ft1_filtered_4FGL_J1037.7-2822_daily_bin1028.fits scfile=/scratch/kocevski/30262/ft2_4FGL_J1037.7-2822_daily_bin1028.fits outfile=/scratch/kocevski/30262/cmap_505785601_506044801_4FGL_J1037.7-2822_daily_bin1028.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.58
user 0.42
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/30262/ft1_filtered_4FGL_J1037.7-2822_daily_bin1028.fits evtable="EVENTS" scfile=/scratch/kocevski/30262/ft2_4FGL_J1037.7-2822_daily_bin1028.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/30262/Model_4FGL_J1037.7-2822_daily_bin1028.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/30262/ft1_filtered_4FGL_J1037.7-2822_daily_bin1028.fits.....................!
real 81.54
user 80.14
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .53430E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    9.6603       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.054       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.328       1.0000         .10000E-03   10000.    
     6 'norm      '    14.264       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6136       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.0154       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.587       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4244       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .42886       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.516       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11796E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1556       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95999       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=   7683.360     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     1833 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.933       -.18806E-05** at limit **
   2  norm          .52241E-01    .50597        .84108E-07   -.23341E-03
   3  norm          9.6598        10.233        .63307E-06    .28412E-04
   4  Prefactor     17.054        17.880        .10934E-06   -.15583E-04
   5  Prefactor     11.326        15.070        .23935E-06   -.14023E-04
   6  norm          14.264        12.007       -.23371E-06   -.98186E-04
   7  norm          .10000E-03    5.4869        .49402E-06** at limit **
   8  Prefactor     .10000E-03    2.6984        .15496E-07** at limit **
   9  Prefactor     3.6154        11.002        .39719E-05    .83086E-04
  10  Prefactor     .10000E-03    22.588        .11901E-05** at limit **
  11  norm          9.0140        4.5250       -.12297E-06   -.32731E-03
  12  Prefactor     11.584        14.497       -.82483E-07   -.40158E-04
  13  Prefactor     2.4232        4.8964        .11482E-06   -.22009E-03
  14  Prefactor     .10000E-03    11.267        .11511E-05** at limit **
  15  Prefactor     .42259        3.4226        .14523E-05   -.24014E-03
  16  Prefactor     .10000E-03    4.9330       -.12431E-06** at limit **
  17  Prefactor     34.508        30.522        .14195E-05    .20022E-05
  18  Prefactor     .10000E-03    6.7407       -.77523E-06** at limit **
  19  Normalizat    1.1557        .22433       -.97850E-06   -.11739E-03
  20  Prefactor     .95999        .11000        .23390E-07   -.16060E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.052241
  norm       = 9.65979
  Prefactor  = 17.0535
  Prefactor  = 11.3259
  norm       = 14.2641
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.61545
  Prefactor  = 0.0001
  norm       = 9.01398
  Prefactor  = 11.5837
  Prefactor  = 2.42317
  Prefactor  = 0.0001
  Prefactor  = 0.422591
  Prefactor  = 0.0001
  Prefactor  = 34.5083
  Prefactor  = 0.0001
  Normalizat = 1.15567
  Prefactor  = 0.959994
 **********
 **   18 **HESSE 
 **********

 FCN=   7683.360     FROM HESSE     STATUS=OK           297 CALLS     2130 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.209        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .52241E-01    3.3617        .11965E-02   -1.5662    
   3  norm          9.6598        10.260        .64466E-03   -1.5086    
   4  Prefactor     17.054        17.884        .96985E-04   -1.4882    
   5  Prefactor     11.326        15.060        .11903E-03   -1.5035    
   6  norm          14.264        12.004        .10605E-03   -1.4952    
   7  norm          .10000E-03    5.5254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.7128        .14062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.6154        11.325        .10627E-02   -1.5328    
  10  Prefactor     .10000E-03    22.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.0140        4.4956        .11939E-03   -1.5107    
  12  Prefactor     11.584        14.521        .11769E-03   -1.5027    
  13  Prefactor     2.4232        4.8493        .24568E-03   -1.5397    
  14  Prefactor     .10000E-03    11.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .42259        6.0672        .27945E-02   -1.5578    
  16  Prefactor     .10000E-03    4.9892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     34.508        30.662        .68210E-04   -1.4532    
  18  Prefactor     .10000E-03    6.8456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1557        .26816        .32848E-03   -.87984    
  20  Prefactor     .95999        .13312        .18229E-03   -.94075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.95611e-08
Minuit parameter uncertainties:
  1  0.000124096
  2  0.837387
  3  10.2616
  4  17.8893
  5  15.0646
  6  12.006
  7  1.83671e-07
  8  5.50892e-07
  9  11.3315
  10  7.98779e-05
  11  4.49577
  12  14.5249
  13  4.85007
  14  3.98151e-05
  15  3.20246
  16  4.43527e-06
  17  30.6759
  18  1.57053e-05
  19  0.268479
  20  0.133169
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  9.014e+00  4.496e+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.600e-01  1.332e-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.156e+00  2.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.75
Ra Dec: 159.427 -28.382
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 9.86e-08 +/- 4.92e-08
Energy Flux (Fixed Index): 3.29e-05 +/- 1.64e-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) = 7683.35168593
delta logL = 0.00810003532388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7683.34934603
delta logL = 0.0104399350084

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.3065       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3308       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1635       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95780       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=   7683.349     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      247 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.3122        4.9540        .12386E-03    .11677E-02
   2  alpha         2.3313        .51282        .11774E-01    .98562E-04
   3  Normalizat    1.1633        .26318        .32760E-03    .38069E-04
   4  Prefactor     .95787        .13246        .18248E-03   -.15165E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.31224
  alpha      = 2.33132
  Normalizat = 1.16327
  Prefactor  = 0.957869
 **********
 **   18 **HESSE 
 **********

 FCN=   7683.349     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.3122        4.8673        .49544E-05   -1.5098    
   2  alpha         2.3313        .50325        .47097E-03   -.67524E-01
   3  Normalizat    1.1633        .26320        .13104E-04   -.87746    
   4  Prefactor     .95787        .13253        .36497E-04   -.94147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65484e-10
Minuit parameter uncertainties:
  1  4.86747
  2  0.506727
  3  0.263501
  4  0.132579
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30262': 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) = 7683.34934392
delta logL = 0.0104420416401

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  9.312e+00  4.867e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.331e+00  5.067e-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.579e-01  1.326e-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.163e+00  2.635e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.79
Ra Dec: 159.427 -28.382
Photon Index (Free Index): 2.33 +/- 0.51
Photon Flux (Free Index): 9.21e-08 +/- 6.36e-08
Energy Flux (Free Index): 3.33e-05 +/- 1.64e-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/30262/cmap_HighResolution_505785601_506044801_4FGL_J1037.7-2822_daily_bin1028.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.86e-08', energy_flux2='3.33e-05', photon_flux_error='4.92e-08', dlogl='1.04e-02', energy_flux='3.29e-05', photon_flux2='9.21e-08', job_status='DONE', time_completed='2021-09-02 06:38:25.504179', photon_index_error2='0.51', photon_index2='2.33', ts='13.75', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.64e-05', EG='1.16', time_epoch_completed='1630589905.5', return_code='0', job_id='30262', GAL2='0.96', EG2='1.16', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='6.36e-08', ts2='13.79', photon_index='2.40' WHERE bin_id='1028' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:38:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 30262: <4FGL_J1037.7-2822_daily_bin1028> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin1028> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 06:21:59 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:24:19 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:24:19 2021
Terminated at Thu Sep  2 06:38:26 2021
Results reported at Thu Sep  2 06:38:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin1028 159.427 -28.3816 505785601 506044801 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 :                                   611.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            987 sec.

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

