/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 40 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 = 7406
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1037.7-2822_daily_bin1355
RA = 159.427, Dec = -28.3816
tmin = 590544001, tmax = 590803201
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='31531', job_status='RUN', time_executed='2021-09-02 06:30:29.881245', time_epoch_executed='1630589429.88' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='1355'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31531

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31531/ft1_4FGL_J1037.7-2822_daily_bin1355.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31531/ft2_4FGL_J1037.7-2822_daily_bin1355.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31531/ft1_4FGL_J1037.7-2822_daily_bin1355.fits outfile=/scratch/kocevski/31531/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin1355.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=590544001.0 tmax=590803201.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 4.24
user 4.00
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/31531/ft2_4FGL_J1037.7-2822_daily_bin1355.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/31531/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin1355.fits evtable="EVENTS" outfile="/scratch/kocevski/31531/ft1_filtered_4FGL_J1037.7-2822_daily_bin1355.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/31531/ft1_filtered_4FGL_J1037.7-2822_daily_bin1355.fits" evtable="EVENTS" scfile=/scratch/kocevski/31531/ft2_4FGL_J1037.7-2822_daily_bin1355.fits sctable="SC_DATA" outfile=/scratch/kocevski/31531/ltcube_590544001_590803201_4FGL_J1037.7-2822_daily_bin1355.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/31531/ft2_4FGL_J1037.7-2822_daily_bin1355.fits
.....................!
real 14.71
user 14.33
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31531/ft1_filtered_4FGL_J1037.7-2822_daily_bin1355.fits evtable="EVENTS" scfile=/scratch/kocevski/31531/ft2_4FGL_J1037.7-2822_daily_bin1355.fits sctable="SC_DATA" expcube=/scratch/kocevski/31531/ltcube_590544001_590803201_4FGL_J1037.7-2822_daily_bin1355.fits outfile=/scratch/kocevski/31531/expmap_590544001_590803201_4FGL_J1037.7-2822_daily_bin1355.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/31531/ltcube_590544001_590803201_4FGL_J1037.7-2822_daily_bin1355.fits
.....................!
real 192.54
user 188.16
sys 3.98

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/31531/ft1_filtered_4FGL_J1037.7-2822_daily_bin1355.fits scfile=/scratch/kocevski/31531/ft2_4FGL_J1037.7-2822_daily_bin1355.fits outfile=/scratch/kocevski/31531/cmap_590544001_590803201_4FGL_J1037.7-2822_daily_bin1355.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31531/ft1_filtered_4FGL_J1037.7-2822_daily_bin1355.fits scfile=/scratch/kocevski/31531/ft2_4FGL_J1037.7-2822_daily_bin1355.fits outfile=/scratch/kocevski/31531/cmap_HighResolution_590544001_590803201_4FGL_J1037.7-2822_daily_bin1355.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/31531/ft1_filtered_4FGL_J1037.7-2822_daily_bin1355.fits evtable="EVENTS" scfile=/scratch/kocevski/31531/ft2_4FGL_J1037.7-2822_daily_bin1355.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31531/Model_4FGL_J1037.7-2822_daily_bin1355.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/31531/ft1_filtered_4FGL_J1037.7-2822_daily_bin1355.fits.....................!
real 87.19
user 85.89
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1469       1.0000         .10000E-03   10000.    
     2 'norm      '    3.4359       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2712       1.0000         .10000E-03   10000.    
     6 'norm      '    11.222       1.0000         .10000E-03   10000.    
     7 'norm      '    .21341E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.234       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11374E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5405       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5158       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.2039       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8389       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1974       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99541       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=   8689.129     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2101 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1470        5.3731        .13487E-06   -.47513E-04
   2  norm          3.4359        1.7751        .10693E-07    .37748E-04
   3  norm          .10000E-03    3.9442       -.12243E-06** at limit **
   4  Prefactor     .10000E-03    13.270       -.98438E-07** at limit **
   5  Prefactor     5.2711        9.3071       -.68068E-08    .65641E-04
   6  norm          11.230        10.793        .18366E-05    .66707E-03
   7  norm          .10101E-03    6.2494       -.24910E-05** at limit **
   8  Prefactor     .10000E-03    4.2084        .34689E-07** at limit **
   9  Prefactor     11.230        15.892        .17471E-07    .28494E-03
  10  Prefactor     .10000E-03    16.806       -.74474E-06** at limit **
  11  norm          .10000E-03    1.7378        .18181E-07** at limit **
  12  Prefactor     6.5414        13.951       -.10352E-06   -.17998E-04
  13  Prefactor     .10000E-03    1.9472        .60886E-07** at limit **
  14  Prefactor     3.5142        9.3556        .39144E-05    .11044E-03
  15  Prefactor     9.2034        6.0212       -.90492E-07   -.20573E-03
  16  Prefactor     .10003E-03    5.8167        .25415E-05** at limit **
  17  Prefactor     3.8471        42.412       -.90335E-06   -.78419E-04
  18  Prefactor     .10000E-03    9.2740       -.29300E-06** at limit **
  19  Normalizat    1.1974        .21024        .58204E-07    .50771E-03
  20  Prefactor     .99537        .10169       -.76785E-07    .69467E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.14697
  norm       = 3.4359
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.2711
  norm       = 11.2305
  norm       = 0.000101008
  Prefactor  = 0.0001
  Prefactor  = 11.2297
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 6.54136
  Prefactor  = 0.0001
  Prefactor  = 3.51418
  Prefactor  = 9.20342
  Prefactor  = 0.000100027
  Prefactor  = 3.84707
  Prefactor  = 0.0001
  Normalizat = 1.19745
  Prefactor  = 0.995371
 **********
 **   18 **HESSE 
 **********

 FCN=   8689.129     FROM HESSE     STATUS=OK           303 CALLS     2404 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1470        5.3421        .28124E-03   -1.5415    
   2  norm          3.4359        1.7756        .84843E-04   -1.5337    
   3  norm          .10000E-03    3.9610        .18082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.2711        9.2945        .17507E-03   -1.5249    
   6  norm          11.230        12.281        .11959E-03   -1.5038    
   7  norm          .10101E-03    12.853        .56714E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.2650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.230        15.673        .11953E-03   -1.5038    
  10  Prefactor     .10000E-03    17.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.0319        .22967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.5414        13.897        .15692E-03   -1.5196    
  13  Prefactor     .10000E-03    1.9770        .12692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.5142        9.7472        .10780E-02   -1.5333    
  15  Prefactor     9.2034        6.0693        .13211E-03   -1.5101    
  16  Prefactor     .10003E-03    17.469        .34741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.8471        42.789        .20598E-03   -1.5316    
  18  Prefactor     .10000E-03    9.4175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1974        .25060        .32811E-03   -.86682    
  20  Prefactor     .99537        .12021        .18301E-03   -.92884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80956e-09
Minuit parameter uncertainties:
  1  5.34327
  2  1.7756
  3  1.27338e-05
  4  2.05045e-05
  5  9.29703
  6  12.2834
  7  0.00720095
  8  2.61694e-06
  9  15.6788
  10  0.000433648
  11  0.000102921
  12  13.9042
  13  2.78638e-06
  14  9.75158
  15  6.06966
  16  0.00138458
  17  25.6833
  18  5.3514e-05
  19  0.250853
  20  0.120247
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  1.029e-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.954e-01  1.202e-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  2.509e-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: 8.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31531/likelihoodResults_590544001_590803201_4FGL_J1037.7-2822_daily_bin1355.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) = 8689.12957249
delta logL = -0.000789509265815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8689.12878366
delta logL = -6.79903678247e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11190E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4571       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1977       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99527       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8689.129     FROM MIGRAD    STATUS=FAILED        95 CALLS      261 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10019E-03    9.3788        .21269E-02** at limit **
   2  alpha         2.5266        3.5850        .16464       -.58107E-04
   3  Normalizat    1.1974        .22906        .32811E-03    .51207E-03
   4  Prefactor     .99537        .11856        .18301E-03    .10204E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8689.129     FROM SIMPLEX   STATUS=UNCHANGED    119 CALLS      380 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10019E-03    9.3788        .43350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5266        3.5850        .47090E-03    .10648E-01
   3  Normalizat    1.1974        .22906        .46687E-04   -.86682    
   4  Prefactor     .99537        .11856        .29212E-04   -.92884    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8689.129     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      406 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    8.7474        .42539E-03** at limit **
   2  alpha         2.5269        3.5584        .65855E-02   -.58019E-04
   3  Normalizat    1.1974        .22920        .65622E-04   -.12467E-03
   4  Prefactor     .99537        .11865        .36602E-04   -.17953E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100007
  alpha      = 2.52689
  Normalizat = 1.19744
  Prefactor  = 0.995372
 **********
 **   18 **HESSE 
 **********

 FCN=   8689.129     FROM HESSE     STATUS=OK            23 CALLS      429 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    8.7384        .85078E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5269        3.5580        .13171E-02    .10755E-01
   3  Normalizat    1.1974        .22920        .13124E-04   -.86682    
   4  Prefactor     .99537        .11865        .73205E-05   -.92884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15561e-09
Minuit parameter uncertainties:
  1  0.000494168
  2  2.49993
  3  0.229392
  4  0.118678
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31531': 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) = 8689.12878043
delta logL = 2.55035047303e-06

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  4.942e-04  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.527e+00  2.500e+00  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.954e-01  1.187e-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  2.294e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/31531/cmap_HighResolution_590544001_590803201_4FGL_J1037.7-2822_daily_bin1355.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.99e-05', job_status='DONE', photon_flux_upper_limit='8.96e-08', time_completed='2021-09-02 06:43:17.518979', job_id='31531', GAL2='1.00', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1630590197.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.55e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1355' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:43:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 31531: <4FGL_J1037.7-2822_daily_bin1355> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin1355> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 06:27:07 2021
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:29:33 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:29:33 2021
Terminated at Thu Sep  2 06:43:18 2021
Results reported at Thu Sep  2 06:43:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin1355 159.427 -28.3816 590544001 590803201 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 :                                   763.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            971 sec.

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

