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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin811
RA = 159.427, Dec = -28.3816
tmin = 449539201, tmax = 449798401
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='29942', job_status='RUN', time_executed='2021-09-02 06:25:31.150033', time_epoch_executed='1630589131.15' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='811'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/29942

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/29942/ft1_4FGL_J1037.7-2822_daily_bin811.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/29942/ft2_4FGL_J1037.7-2822_daily_bin811.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/29942/ft1_4FGL_J1037.7-2822_daily_bin811.fits outfile=/scratch/kocevski/29942/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin811.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=449539201.0 tmax=449798401.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.74
user 5.44
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/29942/ft1_filtered_4FGL_J1037.7-2822_daily_bin811.fits" evtable="EVENTS" scfile=/scratch/kocevski/29942/ft2_4FGL_J1037.7-2822_daily_bin811.fits sctable="SC_DATA" outfile=/scratch/kocevski/29942/ltcube_449539201_449798401_4FGL_J1037.7-2822_daily_bin811.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/29942/ft2_4FGL_J1037.7-2822_daily_bin811.fits
.....................!
real 15.45
user 15.07
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/29942/ft1_filtered_4FGL_J1037.7-2822_daily_bin811.fits evtable="EVENTS" scfile=/scratch/kocevski/29942/ft2_4FGL_J1037.7-2822_daily_bin811.fits sctable="SC_DATA" expcube=/scratch/kocevski/29942/ltcube_449539201_449798401_4FGL_J1037.7-2822_daily_bin811.fits outfile=/scratch/kocevski/29942/expmap_449539201_449798401_4FGL_J1037.7-2822_daily_bin811.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/29942/ltcube_449539201_449798401_4FGL_J1037.7-2822_daily_bin811.fits
.....................!
real 192.35
user 186.98
sys 4.74

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/29942/ft1_filtered_4FGL_J1037.7-2822_daily_bin811.fits scfile=/scratch/kocevski/29942/ft2_4FGL_J1037.7-2822_daily_bin811.fits outfile=/scratch/kocevski/29942/cmap_449539201_449798401_4FGL_J1037.7-2822_daily_bin811.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/29942/ft1_filtered_4FGL_J1037.7-2822_daily_bin811.fits scfile=/scratch/kocevski/29942/ft2_4FGL_J1037.7-2822_daily_bin811.fits outfile=/scratch/kocevski/29942/cmap_HighResolution_449539201_449798401_4FGL_J1037.7-2822_daily_bin811.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=159.427 yref=-28.3816 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/29942/ft1_filtered_4FGL_J1037.7-2822_daily_bin811.fits evtable="EVENTS" scfile=/scratch/kocevski/29942/ft2_4FGL_J1037.7-2822_daily_bin811.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/29942/Model_4FGL_J1037.7-2822_daily_bin811.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/29942/ft1_filtered_4FGL_J1037.7-2822_daily_bin811.fits.....................!
real 91.38
user 89.17
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .18542       1.0000         .10000E-03   10000.    
     3 'norm      '    6.1531       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2779       1.0000         .10000E-03   10000.    
     6 'norm      '    .79079       1.0000         .10000E-03   10000.    
     7 'norm      '    .15432E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2854       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7090       1.0000         .10000E-03   10000.    
    11 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6515       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6066       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7566       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7782       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.048       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11298E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .70652       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1539       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=   9413.403     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     1749 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3225       -.11868E-06** at limit **
   2  norm          .18539        .65031        .11297E-06    .18673E-04
   3  norm          6.1577        6.3573       -.62017E-06   -.10973E-04
   4  Prefactor     .10000E-03    5.1524        .21844E-05** at limit **
   5  Prefactor     7.2875        11.704        .88322E-05    .22788E-04
   6  norm          .77982        .75475       -.64214E-07   -.42578E-03
   7  norm          .10000E-03    5.4707       -.34827E-05** at limit **
   8  Prefactor     .10000E-03    1.6724       -.38614E-07** at limit **
   9  Prefactor     5.2959        9.6829        .10529E-05   -.15831E-05
  10  Prefactor     3.7109        8.8758        .55012E-06   -.21020E-04
  11  norm          .10000E-03    1.2570        .12493E-07** at limit **
  12  Prefactor     4.6603        9.7964        .11261E-06   -.31962E-04
  13  Prefactor     4.6058        3.1957       -.31515E-06   -.93577E-05
  14  Prefactor     3.7554        5.9112        .10069E-06    .14490E-04
  15  Prefactor     2.7766        3.5862       -.29695E-07   -.99382E-05
  16  Prefactor     13.047        8.2194        .29541E-06   -.32306E-05
  17  Prefactor     .10000E-03    13.063        .38720E-06** at limit **
  18  Prefactor     .10000E-03    6.8419        .10941E-05** at limit **
  19  Normalizat    .70652        .18647       -.20115E-06   -.10117E-04
  20  Prefactor     1.1539        .10008       -.45525E-06    .11195E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.185389
  norm       = 6.15766
  Prefactor  = 0.0001
  Prefactor  = 7.28749
  norm       = 0.779817
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.29591
  Prefactor  = 3.71094
  norm       = 0.0001
  Prefactor  = 4.66033
  Prefactor  = 4.60579
  Prefactor  = 3.7554
  Prefactor  = 2.77662
  Prefactor  = 13.0471
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.706516
  Prefactor  = 1.15393
 **********
 **   18 **HESSE 
 **********

 FCN=   9413.403     FROM HESSE     STATUS=OK           297 CALLS     2046 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3295        .17271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .18539        .63979        .14112E-03   -1.5622    
   3  norm          6.1577        6.3611        .16184E-03   -1.5212    
   4  Prefactor     .10000E-03    5.1507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.2875        11.906        .14868E-03   -1.5168    
   6  norm          .77982        7.6385        .24811E-02   -1.5531    
   7  norm          .10000E-03    5.6686        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.6784        .12253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.2959        9.6294        .17483E-03   -1.5248    
  10  Prefactor     3.7109        8.8573        .10484E-02   -1.5323    
  11  norm          .10000E-03    1.2795        .10588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.6603        9.7662        .93302E-03   -1.5276    
  13  Prefactor     4.6058        3.1814        .13543E-03   -1.5279    
  14  Prefactor     3.7554        5.8883        .20831E-03   -1.5320    
  15  Prefactor     2.7766        3.5731        .19977E-03   -1.5375    
  16  Prefactor     13.047        8.2277        .11089E-03   -1.4985    
  17  Prefactor     .10000E-03    13.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.8991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .70652        .21050        .37332E-03   -1.0364    
  20  Prefactor     1.1539        .11415        .16296E-03   -.87761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94855e-10
Minuit parameter uncertainties:
  1  9.50533e-07
  2  0.639816
  3  6.36177
  4  1.08671e-05
  5  11.9104
  6  4.88175
  7  1.82771e-05
  8  7.23538e-07
  9  9.63218
  10  8.86043
  11  1.05242e-06
  12  9.76954
  13  3.18153
  14  5.88925
  15  3.57335
  16  8.22838
  17  4.00862e-06
  18  4.20092e-06
  19  0.210739
  20  0.114177
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  1.052e-06  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.404e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
294         beta:  9.457e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
295           Eb:  8.993e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  1.154e+00  1.142e-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:  7.065e-01  2.107e-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: 5.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/29942/likelihoodResults_449539201_449798401_4FGL_J1037.7-2822_daily_bin811.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) = 9413.40704191
delta logL = -0.0037222328865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9413.40331947
delta logL = 2.08949131775e-07

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 'alpha     '    2.3922       1.0000          .0000       5.0000    
     3 'Normalizat'    .70652       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1539       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=   9413.403     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      238 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    61.632        .10649E-01** at limit **
   2  alpha         2.0183        3.8945        .16480        .20833E-07
   3  Normalizat    .70652        .31451E-01    .37332E-03    .20312E-03
   4  Prefactor     1.1539        .17284E-01    .16296E-03    .53343E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.01827
  Normalizat = 0.706517
  Prefactor  = 1.15393
 **********
 **   18 **HESSE 
 **********

 FCN=   9413.403     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4092        .11133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0183        3.4039        .65920E-02   -.19391    
   3  Normalizat    .70652        .20475        .14933E-04   -1.0364    
   4  Prefactor     1.1539        .11263        .32593E-04   -.87761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.61375e-11
Minuit parameter uncertainties:
  1  9.45823e-07
  2  143.114
  3  0.204975
  4  0.112653
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/29942': 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) = 9413.40331613
delta logL = 3.53972791345e-06

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  9.458e-07  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.018e+00  1.431e+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:  1.154e+00  1.127e-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:  7.065e-01  2.050e-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/29942/cmap_HighResolution_449539201_449798401_4FGL_J1037.7-2822_daily_bin811.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.70e-05', job_status='DONE', photon_flux_upper_limit='5.08e-08', time_completed='2021-09-02 06:38:05.504218', job_id='29942', GAL2='1.15', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1630589885.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='3.54e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='811' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:38:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 29942: <4FGL_J1037.7-2822_daily_bin811> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin811 159.427 -28.3816 449539201 449798401 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 :                                   745.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            993 sec.

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

