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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin392
RA = 159.427, Dec = -28.3816
tmin = 340934401, tmax = 341193601
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='27166', job_status='RUN', time_executed='2021-09-02 06:16:28.973199', time_epoch_executed='1630588588.97' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/27166

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/27166/ft1_4FGL_J1037.7-2822_daily_bin392.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/27166/ft2_4FGL_J1037.7-2822_daily_bin392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/27166/ft1_4FGL_J1037.7-2822_daily_bin392.fits outfile=/scratch/kocevski/27166/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin392.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=340934401.0 tmax=341193601.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.36
user 3.12
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/27166/ft2_4FGL_J1037.7-2822_daily_bin392.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/27166/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin392.fits evtable="EVENTS" outfile="/scratch/kocevski/27166/ft1_filtered_4FGL_J1037.7-2822_daily_bin392.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/27166/ft1_filtered_4FGL_J1037.7-2822_daily_bin392.fits" evtable="EVENTS" scfile=/scratch/kocevski/27166/ft2_4FGL_J1037.7-2822_daily_bin392.fits sctable="SC_DATA" outfile=/scratch/kocevski/27166/ltcube_340934401_341193601_4FGL_J1037.7-2822_daily_bin392.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/27166/ft2_4FGL_J1037.7-2822_daily_bin392.fits
.....................!
real 12.25
user 11.89
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/27166/ft1_filtered_4FGL_J1037.7-2822_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/27166/ft2_4FGL_J1037.7-2822_daily_bin392.fits sctable="SC_DATA" expcube=/scratch/kocevski/27166/ltcube_340934401_341193601_4FGL_J1037.7-2822_daily_bin392.fits outfile=/scratch/kocevski/27166/expmap_340934401_341193601_4FGL_J1037.7-2822_daily_bin392.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/27166/ltcube_340934401_341193601_4FGL_J1037.7-2822_daily_bin392.fits
.....................!
real 190.38
user 185.18
sys 4.56

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/27166/ft1_filtered_4FGL_J1037.7-2822_daily_bin392.fits scfile=/scratch/kocevski/27166/ft2_4FGL_J1037.7-2822_daily_bin392.fits outfile=/scratch/kocevski/27166/cmap_340934401_341193601_4FGL_J1037.7-2822_daily_bin392.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.57
user 0.38
sys 0.14

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

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/27166/ft1_filtered_4FGL_J1037.7-2822_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/27166/ft2_4FGL_J1037.7-2822_daily_bin392.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/27166/Model_4FGL_J1037.7-2822_daily_bin392.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/27166/ft1_filtered_4FGL_J1037.7-2822_daily_bin392.fits.....................!
real 79.63
user 77.90
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.1532       1.0000         .10000E-03   10000.    
     3 'norm      '    12.122       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.418       1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.708       1.0000         .10000E-03   10000.    
     6 'norm      '    .10124E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10732E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.190       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.978       1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.1384       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9092       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    141.10       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .96792       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0552       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=   8108.983     FROM MIGRAD    STATUS=CONVERGED    403 CALLS     2012 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.2214       -.65505E-06** at limit **
   2  norm          3.1532        1.4084       -.31024E-07    .84504E-04
   3  norm          12.121        9.5599        .48031E-06   -.80152E-04
   4  Prefactor     11.391        30.779       -.51410E-04   -.32317E-04
   5  Prefactor     28.707        17.255        .33532E-05    .12349E-05
   6  norm          .10000E-03    11.980        .84610E-08** at limit **
   7  norm          .10000E-03    4.4634        .97109E-06** at limit **
   8  Prefactor     28.192        10.089       -.52298E-06    .15551E-04
   9  Prefactor     .10000E-03    7.2812        .61057E-06** at limit **
  10  Prefactor     13.977        14.998        .93715E-06   -.32121E-04
  11  norm          .10000E-03    2.2207       -.40791E-07** at limit **
  12  Prefactor     9.1391        16.407       -.15708E-05   -.27519E-04
  13  Prefactor     4.9063        5.1886       -.40865E-06   -.55163E-03
  14  Prefactor     .10000E-03    4.7320       -.10256E-06** at limit **
  15  Prefactor     .10000E-03    1.4547       -.69991E-07** at limit **
  16  Prefactor     .10000E-03    2.5716       -.61725E-07** at limit **
  17  Prefactor     141.10        55.182        .12326E-05    .34557E-05
  18  Prefactor     .10000E-03    9.4867        .46959E-06** at limit **
  19  Normalizat    .96848        .23311        .80804E-05   -.20378E-03
  20  Prefactor     1.0549        .11373       -.70313E-06    .16106E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.15322
  norm       = 12.1206
  Prefactor  = 11.3906
  Prefactor  = 28.7074
  norm       = 0.000100002
  norm       = 0.000100003
  Prefactor  = 28.192
  Prefactor  = 0.0001
  Prefactor  = 13.9766
  norm       = 0.0001
  Prefactor  = 9.13905
  Prefactor  = 4.90634
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 141.098
  Prefactor  = 0.0001
  Normalizat = 0.968483
  Prefactor  = 1.05489
 **********
 **   18 **HESSE 
 **********

 FCN=   8108.983     FROM HESSE     STATUS=OK           289 CALLS     2301 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.2641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.1532        1.4081        .68772E-04   -1.5353    
   3  norm          12.121        9.5517        .11506E-03   -1.5012    
   4  Prefactor     11.391        30.847        .11856E-03   -1.5033    
   5  Prefactor     28.707        17.217        .74774E-04   -1.4636    
   6  norm          .10000E-03    12.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    38.786        .36052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.192        10.088        .75456E-04   -1.4646    
   9  Prefactor     .10000E-03    7.3120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.977        14.929        .10713E-03   -1.4960    
  11  norm          .10000E-03    2.2624        .13070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.1391        16.422        .13258E-03   -1.5103    
  13  Prefactor     4.9063        5.1717        .18153E-03   -1.5265    
  14  Prefactor     .10000E-03    4.7548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.4589        .10605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.5772        .14102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     141.10        55.168        .33915E-04   -1.3327    
  18  Prefactor     .10000E-03    9.5694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .96848        .27021        .36990E-03   -.94094    
  20  Prefactor     1.0549        .13312        .18271E-03   -.90922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.1492e-10
Minuit parameter uncertainties:
  1  9.23386e-07
  2  1.40809
  3  9.5529
  4  30.8897
  5  17.2195
  6  0.000279493
  7  0.000662463
  8  10.0889
  9  1.29223e-05
  10  14.9326
  11  2.05103e-06
  12  16.4302
  13  5.17212
  14  2.14649e-05
  15  7.67253e-06
  16  7.48509e-06
  17  55.1884
  18  6.08612e-05
  19  0.270594
  20  0.133167
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  2.051e-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.055e+00  1.332e-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.685e-01  2.706e-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: 7.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/27166/likelihoodResults_340934401_341193601_4FGL_J1037.7-2822_daily_bin392.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) = 8108.9854819
delta logL = -0.00210657056778

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8108.9833752
delta logL = 1.27525709104e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3869       1.0000          .0000       5.0000    
     3 'Normalizat'    .96848       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0549       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=   8108.983     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      233 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    96.270        .13219E-01** at limit **
   2  alpha         1.9280        3.9923        .16482       -.43110E-07
   3  Normalizat    .96849        .35191E-01    .36990E-03    .19526E-03
   4  Prefactor     1.0549        .18191E-01    .18271E-03    .42512E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.92803
  Normalizat = 0.96849
  Prefactor  = 1.05488
 **********
 **   18 **HESSE 
 **********

 FCN=   8108.983     FROM HESSE     STATUS=OK            25 CALLS      258 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7361        .28269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9280        2.8671        .65928E-02   -.23083    
   3  Normalizat    .96849        .25458        .14796E-04   -.94094    
   4  Prefactor     1.0549        .13169        .36542E-04   -.90922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.97868e-11
Minuit parameter uncertainties:
  1  1.84118e-05
  2  168.981
  3  0.254903
  4  0.131733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/27166': 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) = 8108.98337167
delta logL = 3.65887262888e-06

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  1.841e-05  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  1.928e+00  1.690e+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.055e+00  1.317e-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.685e-01  2.549e-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/27166/cmap_HighResolution_340934401_341193601_4FGL_J1037.7-2822_daily_bin392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.61e-05', job_status='DONE', photon_flux_upper_limit='7.81e-08', time_completed='2021-09-02 06:27:58.241842', job_id='27166', GAL2='1.05', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630589278.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.66e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='392' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:27:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 27166: <4FGL_J1037.7-2822_daily_bin392> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin392> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep  2 06:12:24 2021
Job was executed on host(s) <bullet0261>, 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:27:59 2021
Results reported at Thu Sep  2 06:27:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin392 159.427 -28.3816 340934401 341193601 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 :                                   686.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             242.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            935 sec.

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

