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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin735
RA = 159.427, Dec = -28.3816
tmin = 429840001, tmax = 430099201
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='28494', job_status='RUN', time_executed='2021-09-02 06:19:29.160189', time_epoch_executed='1630588769.16' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/28494

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/28494/ft1_4FGL_J1037.7-2822_daily_bin735.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/28494/ft2_4FGL_J1037.7-2822_daily_bin735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/28494/ft1_4FGL_J1037.7-2822_daily_bin735.fits outfile=/scratch/kocevski/28494/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin735.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=429840001.0 tmax=430099201.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 5.92
user 5.62
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/28494/ft1_filtered_4FGL_J1037.7-2822_daily_bin735.fits" evtable="EVENTS" scfile=/scratch/kocevski/28494/ft2_4FGL_J1037.7-2822_daily_bin735.fits sctable="SC_DATA" outfile=/scratch/kocevski/28494/ltcube_429840001_430099201_4FGL_J1037.7-2822_daily_bin735.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/28494/ft2_4FGL_J1037.7-2822_daily_bin735.fits
.....................!
real 15.61
user 15.18
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/28494/ft1_filtered_4FGL_J1037.7-2822_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/28494/ft2_4FGL_J1037.7-2822_daily_bin735.fits sctable="SC_DATA" expcube=/scratch/kocevski/28494/ltcube_429840001_430099201_4FGL_J1037.7-2822_daily_bin735.fits outfile=/scratch/kocevski/28494/expmap_429840001_430099201_4FGL_J1037.7-2822_daily_bin735.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/28494/ltcube_429840001_430099201_4FGL_J1037.7-2822_daily_bin735.fits
.....................!
real 192.62
user 187.62
sys 4.32

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/28494/ft1_filtered_4FGL_J1037.7-2822_daily_bin735.fits scfile=/scratch/kocevski/28494/ft2_4FGL_J1037.7-2822_daily_bin735.fits outfile=/scratch/kocevski/28494/cmap_429840001_430099201_4FGL_J1037.7-2822_daily_bin735.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.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/28494/ft1_filtered_4FGL_J1037.7-2822_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/28494/ft2_4FGL_J1037.7-2822_daily_bin735.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/28494/Model_4FGL_J1037.7-2822_daily_bin735.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/28494/ft1_filtered_4FGL_J1037.7-2822_daily_bin735.fits.....................!
real 48.16
user 46.72
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .81366       1.0000         .10000E-03   10000.    
     3 'norm      '    1.7151       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.2093       1.0000         .10000E-03   10000.    
     7 'norm      '    10.234       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0114       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.186       1.0000         .10000E-03   10000.    
    11 'norm      '    .10682E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.9677       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9700       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.7088       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.329       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1019       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91637       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=   4055.353     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     2041 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.2977       -.14805E-07** at limit **
   2  norm          .81356        1.9264        .17839E-06   -.42433E-04
   3  norm          1.7146        23.581        .10595E-04   -.12524E-03
   4  Prefactor     .10000E-03    14.056       -.18163E-06** at limit **
   5  Prefactor     .10000E-03    6.0186       -.17588E-07** at limit **
   6  norm          9.2092        13.230       -.25604E-06    .24807E-04
   7  norm          10.234        13.324       -.21025E-06    .26970E-04
   8  Prefactor     .10000E-03    3.8140       -.89641E-08** at limit **
   9  Prefactor     2.9680        39.543        .46729E-05    .19057E-03
  10  Prefactor     17.172        29.516        .80973E-06    .10318E-03
  11  norm          .10000E-03    4.7373       -.98365E-06** at limit **
  12  Prefactor     9.9835        21.768       -.20681E-05    .20066E-04
  13  Prefactor     4.9768        10.341        .36611E-07    .85171E-04
  14  Prefactor     7.6971        19.419        .20915E-06    .33683E-04
  15  Prefactor     .10000E-03    9.2930        .53307E-06** at limit **
  16  Prefactor     19.329        14.474        .12191E-06    .17263E-04
  17  Prefactor     .10000E-03    17.771        .79508E-07** at limit **
  18  Prefactor     .10000E-03    7.6729       -.88669E-07** at limit **
  19  Normalizat    1.1020        .30136       -.14278E-05    .24500E-05
  20  Prefactor     .91634        .14328        .49492E-07    .18469E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.813558
  norm       = 1.71463
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.20923
  norm       = 10.2343
  Prefactor  = 0.0001
  Prefactor  = 2.96802
  Prefactor  = 17.1721
  norm       = 0.000100001
  Prefactor  = 9.9835
  Prefactor  = 4.97679
  Prefactor  = 7.69712
  Prefactor  = 0.0001
  Prefactor  = 19.3288
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10201
  Prefactor  = 0.916342
 **********
 **   18 **HESSE 
 **********

 FCN=   4055.353     FROM HESSE     STATUS=OK           293 CALLS     2334 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.2985        .12894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .81356        1.9160        .12661E-03   -1.5528    
   3  norm          1.7146        24.047        .16044E-02   -1.5446    
   4  Prefactor     .10000E-03    14.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.0198        .15259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.2092        13.191        .13207E-03   -1.5101    
   7  norm          10.234        13.284        .12525E-03   -1.5068    
   8  Prefactor     .10000E-03    3.8202        .12146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.9680        40.125        .23388E-03   -1.5363    
  10  Prefactor     17.172        29.148        .96612E-04   -1.4879    
  11  norm          .10000E-03    4.8888        .13615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.9835        21.728        .12692E-03   -1.5076    
  13  Prefactor     4.9768        10.093        .18039E-03   -1.5262    
  14  Prefactor     7.6971        19.148        .14443E-03   -1.5153    
  15  Prefactor     .10000E-03    9.4440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.329        14.484        .91101E-04   -1.4828    
  17  Prefactor     .10000E-03    17.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.6804        .17229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1020        .35716        .33181E-03   -.89687    
  20  Prefactor     .91634        .17226        .17986E-03   -.95572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14968e-09
Minuit parameter uncertainties:
  1  1.87714e-06
  2  1.91614
  3  12.8482
  4  1.25895e-05
  5  4.02877e-06
  6  13.1951
  7  13.2879
  8  1.4254e-06
  9  21.8433
  10  29.1719
  11  0.000154644
  12  21.7457
  13  10.0963
  14  19.1629
  15  0.000103193
  16  14.4868
  17  1.76441e-05
  18  9.66614e-06
  19  0.357951
  20  0.172366
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  1.546e-04  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.163e-01  1.724e-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.102e+00  3.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 159.427 -28.382
Photon Flux Upper Limit: 1.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.62e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/28494/likelihoodResults_429840001_430099201_4FGL_J1037.7-2822_daily_bin735.txt

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) = 4055.35390252
delta logL = -0.000975693834334

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4055.3529199
delta logL = 6.93144784236e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12919E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3497       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1020       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91633       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=   4055.353     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      264 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .19443        .51852E-01** at limit **
   2  alpha         3.3630        3.6893        .44653       -.32080E-05
   3  Normalizat    1.1020        .36858E-02    .74975E-01   -.55000E-04
   4  Prefactor     .91634        .18492E-02    .45213E-01   -.57558E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.36304
  Normalizat = 1.10201
  Prefactor  = 0.916341
 **********
 **   18 **HESSE 
 **********

 FCN=   4055.353     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      297 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    556.28        .11062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.3630        3.3154        .50000        .35247    
   3  Normalizat    1.1020        .41379E-01    .33182E-03   -.89687    
   4  Prefactor     .91634        .20779E-01    .17986E-03   -.95572    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.21368e-06
Minuit parameter uncertainties:
  1  6.43416e-05
  2  808.132
  3  0.0413801
  4  0.0207792
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/28494': 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): 102
logL (Free Index) = 4055.35291913
delta logL = 7.6982810242e-06

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  6.434e-05  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  3.363e+00  8.081e+02  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.163e-01  2.078e-02  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.102e+00  4.138e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 159.427 -28.382

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/28494/cmap_HighResolution_429840001_430099201_4FGL_J1037.7-2822_daily_bin735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.62e-05', job_status='DONE', photon_flux_upper_limit='1.38e-07', time_completed='2021-09-02 06:28:15.952051', job_id='28494', GAL2='0.92', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630589295.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='7.70e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='735' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:28:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 28494: <4FGL_J1037.7-2822_daily_bin735> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin735> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Sep  2 06:16:27 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:16:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 06:16:30 2021
Terminated at Thu Sep  2 06:28:17 2021
Results reported at Thu Sep  2 06:28:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin735 159.427 -28.3816 429840001 430099201 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 :                                   522.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            710 sec.

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

