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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin215
RA = 159.427, Dec = -28.3816
tmin = 295056001, tmax = 295315201
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='25563', job_status='RUN', time_executed='2021-09-02 06:08:30.566962', time_epoch_executed='1630588110.57' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/25563

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/25563/ft1_4FGL_J1037.7-2822_daily_bin215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/25563/ft2_4FGL_J1037.7-2822_daily_bin215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/25563/ft1_4FGL_J1037.7-2822_daily_bin215.fits outfile=/scratch/kocevski/25563/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin215.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=295056001.0 tmax=295315201.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 2.62
user 2.35
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/25563/ft1_filtered_4FGL_J1037.7-2822_daily_bin215.fits" evtable="EVENTS" scfile=/scratch/kocevski/25563/ft2_4FGL_J1037.7-2822_daily_bin215.fits sctable="SC_DATA" outfile=/scratch/kocevski/25563/ltcube_295056001_295315201_4FGL_J1037.7-2822_daily_bin215.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/25563/ft2_4FGL_J1037.7-2822_daily_bin215.fits
.....................!
real 12.46
user 12.06
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/25563/ft1_filtered_4FGL_J1037.7-2822_daily_bin215.fits evtable="EVENTS" scfile=/scratch/kocevski/25563/ft2_4FGL_J1037.7-2822_daily_bin215.fits sctable="SC_DATA" expcube=/scratch/kocevski/25563/ltcube_295056001_295315201_4FGL_J1037.7-2822_daily_bin215.fits outfile=/scratch/kocevski/25563/expmap_295056001_295315201_4FGL_J1037.7-2822_daily_bin215.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/25563/ltcube_295056001_295315201_4FGL_J1037.7-2822_daily_bin215.fits
.....................!
real 192.29
user 186.08
sys 5.05

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/25563/ft1_filtered_4FGL_J1037.7-2822_daily_bin215.fits scfile=/scratch/kocevski/25563/ft2_4FGL_J1037.7-2822_daily_bin215.fits outfile=/scratch/kocevski/25563/cmap_295056001_295315201_4FGL_J1037.7-2822_daily_bin215.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/25563/ft1_filtered_4FGL_J1037.7-2822_daily_bin215.fits scfile=/scratch/kocevski/25563/ft2_4FGL_J1037.7-2822_daily_bin215.fits outfile=/scratch/kocevski/25563/cmap_HighResolution_295056001_295315201_4FGL_J1037.7-2822_daily_bin215.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/25563/ft1_filtered_4FGL_J1037.7-2822_daily_bin215.fits evtable="EVENTS" scfile=/scratch/kocevski/25563/ft2_4FGL_J1037.7-2822_daily_bin215.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/25563/Model_4FGL_J1037.7-2822_daily_bin215.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/25563/ft1_filtered_4FGL_J1037.7-2822_daily_bin215.fits.....................!
real 79.65
user 78.30
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .70524       1.0000         .10000E-03   10000.    
     3 'norm      '    .44920E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.916       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.4116       1.0000         .10000E-03   10000.    
     6 'norm      '    11.538       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.652       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.3740       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .50056E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0385       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.968       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4010       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88690       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=   7796.023     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     2111 TOTAL
                     EDM=   .82E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.4674       -.10863E-05** at limit **
   2  norm          .70532        1.0102        .26440E-07   -.10920E-03
   3  norm          .10000E-03    5.4994        .15227E-06** at limit **
   4  Prefactor     28.909        28.083       -.29839E-05   -.52482E-04
   5  Prefactor     9.4103        9.8183       -.11046E-06   -.11516E-04
   6  norm          11.536        9.4859        .14649E-07   -.27547E-04
   7  norm          .10000E-03    4.5668        .22118E-06** at limit **
   8  Prefactor     13.653        9.9520        .30638E-06    .16260E-04
   9  Prefactor     .10000E-03    11.265        .75843E-07** at limit **
  10  Prefactor     .10000E-03    6.0348       -.12985E-07** at limit **
  11  norm          7.3745        4.2706       -.25853E-07   -.49769E-04
  12  Prefactor     .10000E-03    12.096       -.14347E-07** at limit **
  13  Prefactor     .10000E-03    1.3685       -.22553E-07** at limit **
  14  Prefactor     5.0392        3.3610        .22658E-06   -.85035E-03
  15  Prefactor     .10000E-03    1.2054        .12479E-07** at limit **
  16  Prefactor     11.968        8.5869       -.89421E-07   -.85684E-05
  17  Prefactor     .10000E-03    13.470        .34070E-07** at limit **
  18  Prefactor     .10000E-03    4.4519        .86362E-06** at limit **
  19  Normalizat    1.4008        .23058        .23277E-06   -.23473E-04
  20  Prefactor     .88695        .11232        .63626E-07   -.23942E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.705325
  norm       = 0.0001
  Prefactor  = 28.9091
  Prefactor  = 9.41027
  norm       = 11.5356
  norm       = 0.0001
  Prefactor  = 13.6535
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.37452
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.03918
  Prefactor  = 0.0001
  Prefactor  = 11.9683
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.40076
  Prefactor  = 0.886947
 **********
 **   18 **HESSE 
 **********

 FCN=   7796.023     FROM HESSE     STATUS=OK           301 CALLS     2412 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.4810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .70532        .87042        .10265E-02   -1.5540    
   3  norm          .10000E-03    52.148        .39538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     28.909        28.241        .74505E-04   -1.4632    
   5  Prefactor     9.4103        9.8018        .13063E-03   -1.5094    
   6  norm          11.536        9.4524        .11794E-03   -1.5029    
   7  norm          .10000E-03    4.5971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.653        9.9706        .10841E-03   -1.4969    
   9  Prefactor     .10000E-03    11.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.0404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.3745        4.2557        .13176E-03   -1.5165    
  12  Prefactor     .10000E-03    81.300        .58279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.3789        .10082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.0392        7.4242        .89570E-03   -1.5259    
  15  Prefactor     .10000E-03    1.2078        .94658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.968        8.5843        .11580E-03   -1.5016    
  17  Prefactor     .10000E-03    13.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.4604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4008        .27629        .31837E-03   -.80607    
  20  Prefactor     .88695        .13516        .19408E-03   -.96599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2876e-09
Minuit parameter uncertainties:
  1  8.86158e-06
  2  0.870437
  3  6.78349e-05
  4  28.2536
  5  9.80344
  6  9.45361
  7  3.92438e-06
  8  9.97182
  9  1.62847e-06
  10  6.69566e-07
  11  4.25589
  12  0.00035044
  13  2.60246e-07
  14  7.42551
  15  2.50867e-07
  16  8.58515
  17  1.36297e-06
  18  6.44798e-06
  19  0.27658
  20  0.135208
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  7.375e+00  4.256e+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.869e-01  1.352e-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.401e+00  2.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.88
Ra Dec: 159.427 -28.382
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 8.07e-08 +/- 4.65e-08
Energy Flux (Fixed Index): 2.69e-05 +/- 1.55e-05

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) = 7795.03180256
delta logL = 0.991180408858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7795.02597239
delta logL = 0.997010584698

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7203       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1418       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3394       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90726       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=   7795.026     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      275 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7205        4.0694        .77854E-04   -.36244E-03
   2  alpha         3.1418        .66115        .94839E-02   -.24536E-04
   3  Normalizat    1.3395        .27540        .32410E-03    .67385E-04
   4  Prefactor     .90721        .13622        .19206E-03    .14232E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.72047
  alpha      = 3.14177
  Normalizat = 1.33952
  Prefactor  = 0.907214
 **********
 **   18 **HESSE 
 **********

 FCN=   7795.026     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7205        3.4962        .31142E-05   -1.5322    
   2  alpha         3.1418        .56956        .37936E-03    .25962    
   3  Normalizat    1.3395        .27543        .12964E-04   -.82394    
   4  Prefactor     .90721        .13618        .38412E-04   -.95889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53995e-11
Minuit parameter uncertainties:
  1  3.49636
  2  0.574974
  3  0.275738
  4  0.13623
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/25563': 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) = 7795.02597227
delta logL = 0.997010697075

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  3.720e+00  3.496e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  3.142e+00  5.750e-01  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.072e-01  1.362e-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.340e+00  2.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.98
Ra Dec: 159.427 -28.382
Photon Index (Free Index): 3.14 +/- 0.57
Photon Flux (Free Index): 1.28e-07 +/- 6.52e-08
Energy Flux (Free Index): 2.58e-05 +/- 1.27e-05

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/25563/cmap_HighResolution_295056001_295315201_4FGL_J1037.7-2822_daily_bin215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.07e-08', energy_flux2='2.58e-05', photon_flux_error='4.65e-08', dlogl='9.97e-01', energy_flux='2.69e-05', photon_flux2='1.28e-07', job_status='DONE', time_completed='2021-09-02 06:18:59.309008', photon_index_error2='0.57', photon_index2='3.14', ts='4.88', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.27e-05', EG='1.40', time_epoch_completed='1630588739.31', return_code='0', job_id='25563', GAL2='0.91', EG2='1.34', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='6.52e-08', ts2='6.98', photon_index='2.40' WHERE bin_id='215' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:18:59 PDT 2021


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

Job <4FGL_J1037.7-2822_daily_bin215> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  2 06:06:58 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:07:00 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:07:00 2021
Terminated at Thu Sep  2 06:19:00 2021
Results reported at Thu Sep  2 06:19:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin215 159.427 -28.3816 295056001 295315201 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 :                                   624.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            722 sec.

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

