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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin873
RA = 159.427, Dec = -28.3816
tmin = 465609601, tmax = 465868801
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='30036', job_status='RUN', time_executed='2021-09-02 06:22:56.200648', time_epoch_executed='1630588976.2' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='873'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30036

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30036/ft1_4FGL_J1037.7-2822_daily_bin873.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30036/ft2_4FGL_J1037.7-2822_daily_bin873.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30036/ft1_4FGL_J1037.7-2822_daily_bin873.fits outfile=/scratch/kocevski/30036/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin873.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=465609601.0 tmax=465868801.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.53
user 3.31
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/30036/ft2_4FGL_J1037.7-2822_daily_bin873.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/30036/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin873.fits evtable="EVENTS" outfile="/scratch/kocevski/30036/ft1_filtered_4FGL_J1037.7-2822_daily_bin873.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/30036/ft1_filtered_4FGL_J1037.7-2822_daily_bin873.fits" evtable="EVENTS" scfile=/scratch/kocevski/30036/ft2_4FGL_J1037.7-2822_daily_bin873.fits sctable="SC_DATA" outfile=/scratch/kocevski/30036/ltcube_465609601_465868801_4FGL_J1037.7-2822_daily_bin873.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/30036/ft2_4FGL_J1037.7-2822_daily_bin873.fits
.....................!
real 13.60
user 13.24
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30036/ft1_filtered_4FGL_J1037.7-2822_daily_bin873.fits evtable="EVENTS" scfile=/scratch/kocevski/30036/ft2_4FGL_J1037.7-2822_daily_bin873.fits sctable="SC_DATA" expcube=/scratch/kocevski/30036/ltcube_465609601_465868801_4FGL_J1037.7-2822_daily_bin873.fits outfile=/scratch/kocevski/30036/expmap_465609601_465868801_4FGL_J1037.7-2822_daily_bin873.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/30036/ltcube_465609601_465868801_4FGL_J1037.7-2822_daily_bin873.fits
.....................!
real 193.22
user 187.88
sys 4.93

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/30036/ft1_filtered_4FGL_J1037.7-2822_daily_bin873.fits scfile=/scratch/kocevski/30036/ft2_4FGL_J1037.7-2822_daily_bin873.fits outfile=/scratch/kocevski/30036/cmap_465609601_465868801_4FGL_J1037.7-2822_daily_bin873.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/30036/ft1_filtered_4FGL_J1037.7-2822_daily_bin873.fits scfile=/scratch/kocevski/30036/ft2_4FGL_J1037.7-2822_daily_bin873.fits outfile=/scratch/kocevski/30036/cmap_HighResolution_465609601_465868801_4FGL_J1037.7-2822_daily_bin873.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/30036/ft1_filtered_4FGL_J1037.7-2822_daily_bin873.fits evtable="EVENTS" scfile=/scratch/kocevski/30036/ft2_4FGL_J1037.7-2822_daily_bin873.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/30036/Model_4FGL_J1037.7-2822_daily_bin873.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/30036/ft1_filtered_4FGL_J1037.7-2822_daily_bin873.fits....................!
real 67.36
user 65.89
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5015       1.0000         .10000E-03   10000.    
     2 'norm      '    .55983       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.1479       1.0000         .10000E-03   10000.    
     7 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.5546       1.0000         .10000E-03   10000.    
    10 'Prefactor '    45.620       1.0000         .10000E-03   10000.    
    11 'norm      '    2.9822       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13955E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.4207       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.8234       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.565       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3785       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88824       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=   6289.809     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     2061 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5020        9.2488        .38074E-07   -.47820E-05
   2  norm          .55991        .99453        .15868E-06    .67175E-03
   3  norm          .10000E-03    6.0551       -.13933E-06** at limit **
   4  Prefactor     .10000E-03    26.111       -.17174E-06** at limit **
   5  Prefactor     .10000E-03    9.6682       -.45246E-06** at limit **
   6  norm          4.1684        13.519        .16192E-05    .13450E-03
   7  norm          .10000E-03    11.220       -.12383E-05** at limit **
   8  Prefactor     .10000E-03    2.4214        .22023E-07** at limit **
   9  Prefactor     7.5023        16.204       -.22461E-05   -.16290E-03
  10  Prefactor     45.612        28.474       -.17572E-05   -.14305E-03
  11  norm          2.9833        5.1577        .27802E-05   -.99000E-03
  12  Prefactor     .10007E-03    68.583        .86331E-05** at limit **
  13  Prefactor     .10000E-03    1.7800       -.14186E-06** at limit **
  14  Prefactor     .10000E-03    10.021       -.48984E-07** at limit **
  15  Prefactor     9.4171        6.9596        .86512E-08   -.14153E-03
  16  Prefactor     8.8260        12.096        .77937E-07   -.43261E-04
  17  Prefactor     .10000E-03    19.750       -.18220E-07** at limit **
  18  Prefactor     17.568        19.073        .12948E-06   -.34778E-04
  19  Normalizat    1.3782        .26589       -.64998E-06   -.16908E-03
  20  Prefactor     .88828        .12530       -.12942E-06   -.25842E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.50199
  norm       = 0.559913
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.16838
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 7.50229
  Prefactor  = 45.6118
  norm       = 2.98327
  Prefactor  = 0.000100071
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.41715
  Prefactor  = 8.826
  Prefactor  = 0.0001
  Prefactor  = 17.5684
  Normalizat = 1.37824
  Prefactor  = 0.888283
 **********
 **   18 **HESSE 
 **********

 FCN=   6289.809     FROM HESSE     STATUS=OK           291 CALLS     2352 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5020        9.2450        .15740E-03   -1.5198    
   2  norm          .55991        .82619        .10251E-02   -1.5558    
   3  norm          .10000E-03    6.0873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.6913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.1684        13.617        .19791E-03   -1.5300    
   7  norm          .10000E-03    11.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.4248        .12053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.5023        16.318        .14591E-03   -1.5160    
  10  Prefactor     45.612        28.625        .59361E-04   -1.4356    
  11  norm          2.9833        5.3257        .10173E-02   -1.5363    
  12  Prefactor     .10007E-03    78.682        .36371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.7968        .10330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.4171        6.9742        .13057E-03   -1.5094    
  16  Prefactor     8.8260        12.096        .13494E-03   -1.5114    
  17  Prefactor     .10000E-03    19.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.568        19.086        .95565E-04   -1.4869    
  19  Normalizat    1.3782        .32223        .32967E-03   -.81260    
  20  Prefactor     .88828        .15208        .19482E-03   -.96552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03273e-09
Minuit parameter uncertainties:
  1  9.24705
  2  0.826206
  3  1.97889e-05
  4  0.000111932
  5  3.02821e-06
  6  13.6274
  7  0.00022495
  8  1.63474e-06
  9  16.3281
  10  28.6337
  11  5.3265
  12  0.00473758
  13  1.35841e-05
  14  0.000127486
  15  6.97481
  16  12.0994
  17  3.04256e-05
  18  19.0926
  19  0.322705
  20  0.15215
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  2.983e+00  5.326e+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

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  8.883e-01  1.522e-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.378e+00  3.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.51
Ra Dec: 159.427 -28.382
Photon Flux Upper Limit: 1.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.00e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/30036/likelihoodResults_465609601_465868801_4FGL_J1037.7-2822_daily_bin873.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6289.80576042
delta logL = 0.00356422769983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6289.80509081
delta logL = 0.00423383537145

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8257       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4974       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3753       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88918       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.

 FCN=   6289.805     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8257        167.48        .60485E-02    .78756E-03
   2  alpha         2.4975        2.7942        .41152        .29153E-04
   3  Normalizat    1.3752        .83290E-01    .74562E-01    .97603E-05
   4  Prefactor     .88921        .38472E-01    .44867E-01    .62423E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.82574
  alpha      = 2.49747
  Normalizat = 1.37522
  Prefactor  = 0.889211
 **********
 **   18 **HESSE 
 **********

 FCN=   6289.805     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8257        5.0184        .19539E-03   -1.5372    
   2  alpha         2.4975        1.0443        .21817E-01   -.10112E-02
   3  Normalizat    1.3752        .31219        .32996E-03   -.81348    
   4  Prefactor     .88921        .15192        .19473E-03   -.96519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29646e-09
Minuit parameter uncertainties:
  1  5.01914
  2  1.07729
  3  0.31262
  4  0.151989
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30036': 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) = 6289.80509078
delta logL = 0.00423386338935

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  2.826e+00  5.019e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.497e+00  1.077e+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:  8.892e-01  1.520e-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.375e+00  3.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.51
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/30036/cmap_HighResolution_465609601_465868801_4FGL_J1037.7-2822_daily_bin873.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.00e-05', job_status='DONE', photon_flux_upper_limit='1.50e-07', time_completed='2021-09-02 06:33:09.684563', job_id='30036', GAL2='0.89', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1630589589.68', return_code2='0', ts='0.51', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='4.23e-03', ts2='0.53', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='873' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:33:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 30036: <4FGL_J1037.7-2822_daily_bin873> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin873 159.427 -28.3816 465609601 465868801 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 :                                   608.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            692 sec.

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

