/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 166 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 = 7484
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1037.7-2822_daily_bin395
RA = 159.427, Dec = -28.3816
tmin = 341712001, tmax = 341971201
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='27170', job_status='RUN', time_executed='2021-09-02 06:15:26.339428', time_epoch_executed='1630588526.34' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='395'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/27170

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/27170/ft1_4FGL_J1037.7-2822_daily_bin395.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/27170/ft2_4FGL_J1037.7-2822_daily_bin395.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/27170/ft1_4FGL_J1037.7-2822_daily_bin395.fits outfile=/scratch/kocevski/27170/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin395.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=341712001.0 tmax=341971201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.66
user 3.20
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/27170/ft1_filtered_4FGL_J1037.7-2822_daily_bin395.fits" evtable="EVENTS" scfile=/scratch/kocevski/27170/ft2_4FGL_J1037.7-2822_daily_bin395.fits sctable="SC_DATA" outfile=/scratch/kocevski/27170/ltcube_341712001_341971201_4FGL_J1037.7-2822_daily_bin395.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/27170/ft2_4FGL_J1037.7-2822_daily_bin395.fits
.....................!
real 13.47
user 11.91
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/27170/ft1_filtered_4FGL_J1037.7-2822_daily_bin395.fits evtable="EVENTS" scfile=/scratch/kocevski/27170/ft2_4FGL_J1037.7-2822_daily_bin395.fits sctable="SC_DATA" expcube=/scratch/kocevski/27170/ltcube_341712001_341971201_4FGL_J1037.7-2822_daily_bin395.fits outfile=/scratch/kocevski/27170/expmap_341712001_341971201_4FGL_J1037.7-2822_daily_bin395.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/27170/ltcube_341712001_341971201_4FGL_J1037.7-2822_daily_bin395.fits
.....................!
real 192.89
user 186.96
sys 5.23

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/27170/ft1_filtered_4FGL_J1037.7-2822_daily_bin395.fits scfile=/scratch/kocevski/27170/ft2_4FGL_J1037.7-2822_daily_bin395.fits outfile=/scratch/kocevski/27170/cmap_341712001_341971201_4FGL_J1037.7-2822_daily_bin395.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/27170/ft1_filtered_4FGL_J1037.7-2822_daily_bin395.fits scfile=/scratch/kocevski/27170/ft2_4FGL_J1037.7-2822_daily_bin395.fits outfile=/scratch/kocevski/27170/cmap_HighResolution_341712001_341971201_4FGL_J1037.7-2822_daily_bin395.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/27170/ft1_filtered_4FGL_J1037.7-2822_daily_bin395.fits evtable="EVENTS" scfile=/scratch/kocevski/27170/ft2_4FGL_J1037.7-2822_daily_bin395.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/27170/Model_4FGL_J1037.7-2822_daily_bin395.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/27170/ft1_filtered_4FGL_J1037.7-2822_daily_bin395.fits.....................!
real 67.66
user 66.13
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    2.9983       1.0000         .10000E-03   10000.    
     3 'norm      '    23.980       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.703       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.0347       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.7800       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3537       1.0000         .10000E-03   10000.    
     9 'Prefactor '    56.599       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9529       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2640       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.104       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.763       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.726       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .95470       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98627       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=   6567.288     FROM MIGRAD    STATUS=CONVERGED    396 CALLS     2005 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.5051       -.23684E-05** at limit **
   2  norm          2.9984        1.5547        .31761E-07   -.14546E-04
   3  norm          23.979        13.183       -.20480E-06   -.52404E-05
   4  Prefactor     27.701        25.854       -.18390E-05   -.72394E-05
   5  Prefactor     8.0343        10.770        .13722E-06   -.50205E-04
   6  norm          .10000E-03    3.4779        .11189E-07** at limit **
   7  norm          7.7798        8.4577        .35350E-07   -.21009E-04
   8  Prefactor     6.3538        8.4889       -.43770E-08   -.10660E-04
   9  Prefactor     56.599        22.408        .85925E-06   -.10182E-04
  10  Prefactor     .10000E-03    5.4003        .22642E-05** at limit **
  11  norm          .10000E-03    1.9405       -.10798E-06** at limit **
  12  Prefactor     .10000E-03    20.384       -.49144E-06** at limit **
  13  Prefactor     2.9534        3.7606        .18921E-05   -.11694E-04
  14  Prefactor     2.2635        1.9559        .16590E-07   -.69584E-03
  15  Prefactor     12.105        7.8788       -.98325E-07   -.25487E-04
  16  Prefactor     19.764        12.363       -.40264E-07   -.72435E-05
  17  Prefactor     .10000E-03    11.283        .37295E-06** at limit **
  18  Prefactor     10.727        14.670        .65246E-06   -.44691E-05
  19  Normalizat    .95456        .25524       -.10169E-05   -.45686E-05
  20  Prefactor     .98634        .12307        .98356E-07   -.44193E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.99841
  norm       = 23.9793
  Prefactor  = 27.7012
  Prefactor  = 8.03435
  norm       = 0.0001
  norm       = 7.77981
  Prefactor  = 6.35378
  Prefactor  = 56.5994
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.9534
  Prefactor  = 2.26346
  Prefactor  = 12.1047
  Prefactor  = 19.7635
  Prefactor  = 0.0001
  Prefactor  = 10.7267
  Normalizat = 0.954564
  Prefactor  = 0.986341
 **********
 **   18 **HESSE 
 **********

 FCN=   6567.288     FROM HESSE     STATUS=OK           297 CALLS     2302 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.5076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.9984        1.5554        .69894E-04   -1.5362    
   3  norm          23.979        13.194        .81800E-04   -1.4728    
   4  Prefactor     27.701        25.873        .76115E-04   -1.4655    
   5  Prefactor     8.0343        10.789        .70724E-03   -1.5141    
   6  norm          .10000E-03    3.4838        .14756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.7798        8.4512        .14376E-03   -1.5150    
   8  Prefactor     6.3538        8.4907        .15924E-03   -1.5204    
   9  Prefactor     56.599        22.425        .53322E-04   -1.4202    
  10  Prefactor     .10000E-03    5.3702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.9697        .11025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.9534        3.7724        .17019E-03   -1.5364    
  14  Prefactor     2.2635        7.5723        .13649E-02   -1.5407    
  15  Prefactor     12.105        7.9076        .11514E-03   -1.5012    
  16  Prefactor     19.764        12.369        .90095E-04   -1.4819    
  17  Prefactor     .10000E-03    11.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.727        14.673        .12234E-03   -1.5053    
  19  Normalizat    .95456        .29846        .37371E-03   -.94569    
  20  Prefactor     .98634        .14517        .18568E-03   -.93186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19138e-09
Minuit parameter uncertainties:
  1  6.47252e-07
  2  1.55544
  3  13.1955
  4  25.8836
  5  10.7917
  6  1.65265e-06
  7  8.45251
  8  8.49227
  9  22.4287
  10  9.27525e-06
  11  1.30095e-05
  12  5.25455e-05
  13  3.77268
  14  7.57549
  15  7.90833
  16  12.3707
  17  1.98715e-06
  18  14.6775
  19  0.298977
  20  0.145228
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  1.301e-05  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.863e-01  1.452e-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:  9.546e-01  2.990e-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.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/27170/likelihoodResults_341712001_341971201_4FGL_J1037.7-2822_daily_bin395.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) = 6567.29010408
delta logL = -0.00241690981875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6567.2876897
delta logL = -2.52819518209e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3992       1.0000          .0000       5.0000    
     3 'Normalizat'    .95451       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98621       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=   6567.288     FROM MIGRAD    STATUS=FAILED        91 CALLS      238 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    160.89        .11036E-02** at limit **
   2  alpha         2.2860        3.5697        .50000        .10598E-05
   3  Normalizat    .95456        .61456E-01    .37371E-03    .13285E-03
   4  Prefactor     .98634        .31211E-01    .18568E-03    .28644E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6567.288     FROM SIMPLEX   STATUS=UNCHANGED    189 CALLS      427 TOTAL
                     EDM=   .87E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    160.89        .21360E-03** at limit **
   2  alpha         2.2860        3.5697        .86867E-06    .10598E-05
   3  Normalizat    .95456        .61456E-01    .31694E-07    .13285E-03
   4  Prefactor     .98634        .31211E-01    .53678E-08    .28644E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6567.288     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      459 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    482.70        .22072E-03** at limit **
   2  alpha         2.2866        2.9644        .50000        .71259E-07
   3  Normalizat    .95456        .25239        .14949E-04    .13263E-03
   4  Prefactor     .98634        .12827        .37136E-04    .28587E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.28662
  Normalizat = 0.954564
  Prefactor  = 0.986342
 **********
 **   18 **HESSE 
 **********

 FCN=   6567.288     FROM HESSE     STATUS=OK            29 CALLS      488 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0804        .44143E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2866        3.5549        .50000       -.85454E-01
   3  Normalizat    .95456        .28144        .29897E-05   -.94569    
   4  Prefactor     .98634        .14309        .74273E-05   -.93186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.91673e-11
Minuit parameter uncertainties:
  1  5.77368e-06
  2  129.848
  3  0.28188
  4  0.143149
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/27170': 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) = 6567.2876869
delta logL = 2.747592589e-07

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  5.774e-06  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.287e+00  1.298e+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.863e-01  1.431e-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:  9.546e-01  2.819e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/27170/cmap_HighResolution_341712001_341971201_4FGL_J1037.7-2822_daily_bin395.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-05', job_status='DONE', photon_flux_upper_limit='8.03e-08', time_completed='2021-09-02 06:26:02.861950', job_id='27170', GAL2='0.99', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630589162.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.75e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='395' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:26:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 27170: <4FGL_J1037.7-2822_daily_bin395> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin395> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep  2 06:12:25 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:12:26 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:12:26 2021
Terminated at Thu Sep  2 06:26:03 2021
Results reported at Thu Sep  2 06:26:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin395 159.427 -28.3816 341712001 341971201 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 :                                   630.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            818 sec.

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

