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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin782
RA = 159.427, Dec = -28.3816
tmin = 442022401, tmax = 442281601
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='29897', job_status='RUN', time_executed='2021-09-02 06:23:49.729422', time_epoch_executed='1630589029.73' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='782'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/29897

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/29897/ft1_4FGL_J1037.7-2822_daily_bin782.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/29897/ft2_4FGL_J1037.7-2822_daily_bin782.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/29897/ft1_4FGL_J1037.7-2822_daily_bin782.fits outfile=/scratch/kocevski/29897/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin782.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=442022401.0 tmax=442281601.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.79
user 3.56
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/29897/ft1_filtered_4FGL_J1037.7-2822_daily_bin782.fits" evtable="EVENTS" scfile=/scratch/kocevski/29897/ft2_4FGL_J1037.7-2822_daily_bin782.fits sctable="SC_DATA" outfile=/scratch/kocevski/29897/ltcube_442022401_442281601_4FGL_J1037.7-2822_daily_bin782.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/29897/ft2_4FGL_J1037.7-2822_daily_bin782.fits
.....................!
real 11.88
user 11.41
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/29897/ft1_filtered_4FGL_J1037.7-2822_daily_bin782.fits evtable="EVENTS" scfile=/scratch/kocevski/29897/ft2_4FGL_J1037.7-2822_daily_bin782.fits sctable="SC_DATA" expcube=/scratch/kocevski/29897/ltcube_442022401_442281601_4FGL_J1037.7-2822_daily_bin782.fits outfile=/scratch/kocevski/29897/expmap_442022401_442281601_4FGL_J1037.7-2822_daily_bin782.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/29897/ltcube_442022401_442281601_4FGL_J1037.7-2822_daily_bin782.fits
.....................!
real 191.64
user 185.87
sys 5.42

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/29897/ft1_filtered_4FGL_J1037.7-2822_daily_bin782.fits scfile=/scratch/kocevski/29897/ft2_4FGL_J1037.7-2822_daily_bin782.fits outfile=/scratch/kocevski/29897/cmap_442022401_442281601_4FGL_J1037.7-2822_daily_bin782.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.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/29897/ft1_filtered_4FGL_J1037.7-2822_daily_bin782.fits scfile=/scratch/kocevski/29897/ft2_4FGL_J1037.7-2822_daily_bin782.fits outfile=/scratch/kocevski/29897/cmap_HighResolution_442022401_442281601_4FGL_J1037.7-2822_daily_bin782.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/29897/ft1_filtered_4FGL_J1037.7-2822_daily_bin782.fits evtable="EVENTS" scfile=/scratch/kocevski/29897/ft2_4FGL_J1037.7-2822_daily_bin782.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/29897/Model_4FGL_J1037.7-2822_daily_bin782.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/29897/ft1_filtered_4FGL_J1037.7-2822_daily_bin782.fits.....................!
real 82.94
user 81.25
sys 1.52

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1831       1.0000         .10000E-03   10000.    
     3 'norm      '    6.9058       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0925       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.7641       1.0000         .10000E-03   10000.    
     6 'norm      '    .21414       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .61221E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7614       1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.603       1.0000         .10000E-03   10000.    
    11 'norm      '    .12140E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.5986       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11855E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14956       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.151       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4893       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92748       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=   8295.566     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2142 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6682        .82284E-08** at limit **
   2  norm          1.1833        1.3244        .21223E-06   -.28089E-03
   3  norm          6.9028        8.4069       -.54471E-06   -.15568E-03
   4  Prefactor     4.0685        34.908        .65409E-05    .37103E-04
   5  Prefactor     6.7627        10.391        .11078E-05    .55216E-04
   6  norm          .25473        4.6213        .77962E-06   -.53355E-03
   7  norm          .10000E-03    5.4537        .11232E-06** at limit **
   8  Prefactor     .61783E-02    4.3081       -.32837E-06    .38875E-03
   9  Prefactor     2.7476        19.952       -.52692E-06   -.18248E-03
  10  Prefactor     24.576        19.178       -.33296E-05   -.86165E-03
  11  norm          .10001E-03    2.7039        .31005E-05** at limit **
  12  Prefactor     7.5940        18.212        .60868E-07   -.14133E-03
  13  Prefactor     .10000E-03    2.3792        .52434E-06** at limit **
  14  Prefactor     .10002E-03    5.7882        .14754E-05** at limit **
  15  Prefactor     .16000        2.6295        .80006E-07    .23560E-03
  16  Prefactor     .10000E-03    6.4112       -.36264E-07** at limit **
  17  Prefactor     22.164        38.561       -.15969E-05   -.59906E-04
  18  Prefactor     .10000E-03    6.0094       -.19846E-06** at limit **
  19  Normalizat    1.4890        .22690       -.21805E-05   -.48272E-03
  20  Prefactor     .92761        .10704        .24807E-06   -.88092E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.18334
  norm       = 6.90283
  Prefactor  = 4.06849
  Prefactor  = 6.76273
  norm       = 0.254733
  norm       = 0.0001
  Prefactor  = 0.00617827
  Prefactor  = 2.74764
  Prefactor  = 24.5764
  norm       = 0.000100009
  Prefactor  = 7.59401
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 0.160001
  Prefactor  = 0.0001
  Prefactor  = 22.1644
  Prefactor  = 0.0001
  Normalizat = 1.489
  Prefactor  = 0.927609
 **********
 **   18 **HESSE 
 **********

 FCN=   8295.566     FROM HESSE     STATUS=OK           307 CALLS     2449 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6689        .14530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1833        1.3007        .10580E-03   -1.5490    
   3  norm          6.9028        8.3936        .15267E-03   -1.5182    
   4  Prefactor     4.0685        35.161        .19928E-03   -1.5305    
   5  Prefactor     6.7627        10.418        .15428E-03   -1.5188    
   6  norm          .25473        58.446        .36580E-02   -1.5607    
   7  norm          .10000E-03    5.4933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .61783E-02    8.2209        .59745E-01   -1.5692    
   9  Prefactor     2.7476        19.042        .24494E-03   -1.5376    
  10  Prefactor     24.576        20.432        .80760E-04   -1.4716    
  11  norm          .10001E-03    4.4695        .26103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.5940        17.857        .14548E-03   -1.5157    
  13  Prefactor     .10000E-03    2.4123        .13703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    28.079        .41180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .16000        40.991        .27876E-02   -1.5628    
  16  Prefactor     .10000E-03    6.4697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.164        38.621        .85105E-04   -1.4766    
  18  Prefactor     .10000E-03    6.0228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4890        .26862        .31270E-03   -.78088    
  20  Prefactor     .92761        .12809        .19254E-03   -.95183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11285e-08
Minuit parameter uncertainties:
  1  1.41836e-07
  2  1.30078
  3  8.39499
  4  23.9395
  5  10.4211
  6  7.72311
  7  2.2317e-06
  8  0.447136
  9  14.473
  10  20.4382
  11  0.000402915
  12  17.8699
  13  9.76517e-06
  14  0.00142019
  15  5.12393
  16  1.9111e-05
  17  38.6645
  18  2.65966e-05
  19  0.268882
  20  0.12813
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  4.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.276e-01  1.281e-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.489e+00  2.689e-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.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.97e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/29897/likelihoodResults_442022401_442281601_4FGL_J1037.7-2822_daily_bin782.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): 102
logL (Free Index) = 8295.56708368
delta logL = -0.0010667598599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8295.56601641
delta logL = 5.11527105118e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10348E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4486       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4889       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92766       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=   8295.566     FROM MIGRAD    STATUS=FAILED        96 CALLS      261 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10007E-03    9.3267        .21843E-02** at limit **
   2  alpha         2.5022        3.7053        .50000       -.59087E-04
   3  Normalizat    1.4890        .25008        .31270E-03    .25199E-03
   4  Prefactor     .92761        .12609        .19254E-03    .34100E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8295.566     FROM SIMPLEX   STATUS=UNCHANGED    121 CALLS      382 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10007E-03    9.3267        .36362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5022        3.7053        .47067E-03    .86357E-03
   3  Normalizat    1.4890        .25008        .44273E-04   -.78088    
   4  Prefactor     .92761        .12609        .30231E-04   -.95183    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8295.566     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      415 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    5.6477        .43687E-03** at limit **
   2  alpha         2.5025        3.5583        .50000       -.59085E-04
   3  Normalizat    1.4890        .25026        .62540E-04    .98890E-05
   4  Prefactor     .92761        .12619        .38508E-04    .20076E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100015
  alpha      = 2.50252
  Normalizat = 1.489
  Prefactor  = 0.92761
 **********
 **   18 **HESSE 
 **********

 FCN=   8295.566     FROM HESSE     STATUS=OK            29 CALLS      444 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    5.5546        .87373E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5025        3.5527        .50000        .10079E-02
   3  Normalizat    1.4890        .25031        .12508E-04   -.78088    
   4  Prefactor     .92761        .12622        .77015E-05   -.95183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.97426e-09
Minuit parameter uncertainties:
  1  0.00057262
  2  2.50095
  3  0.250516
  4  0.126258
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/29897': 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) = 8295.56601474
delta logL = 2.17434717342e-06

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  5.726e-04  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.503e+00  2.501e+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.276e-01  1.263e-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.489e+00  2.505e-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/29897/cmap_HighResolution_442022401_442281601_4FGL_J1037.7-2822_daily_bin782.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.97e-05', job_status='DONE', photon_flux_upper_limit='8.89e-08', time_completed='2021-09-02 06:36:06.128749', job_id='29897', GAL2='0.93', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1630589766.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.17e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='782' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:36:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 29897: <4FGL_J1037.7-2822_daily_bin782> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin782 159.427 -28.3816 442022401 442281601 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 :                                   735.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            877 sec.

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

