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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin819
RA = 159.427, Dec = -28.3816
tmin = 451612801, tmax = 451872001
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='29954', job_status='RUN', time_executed='2021-09-02 06:25:42.230616', time_epoch_executed='1630589142.23' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='819'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/29954

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/29954/ft1_4FGL_J1037.7-2822_daily_bin819.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/29954/ft2_4FGL_J1037.7-2822_daily_bin819.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/29954/ft1_4FGL_J1037.7-2822_daily_bin819.fits outfile=/scratch/kocevski/29954/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin819.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=451612801.0 tmax=451872001.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.37
user 3.17
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/29954/ft1_filtered_4FGL_J1037.7-2822_daily_bin819.fits" evtable="EVENTS" scfile=/scratch/kocevski/29954/ft2_4FGL_J1037.7-2822_daily_bin819.fits sctable="SC_DATA" outfile=/scratch/kocevski/29954/ltcube_451612801_451872001_4FGL_J1037.7-2822_daily_bin819.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/29954/ft2_4FGL_J1037.7-2822_daily_bin819.fits
.....................!
real 18.36
user 18.00
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/29954/ft1_filtered_4FGL_J1037.7-2822_daily_bin819.fits evtable="EVENTS" scfile=/scratch/kocevski/29954/ft2_4FGL_J1037.7-2822_daily_bin819.fits sctable="SC_DATA" expcube=/scratch/kocevski/29954/ltcube_451612801_451872001_4FGL_J1037.7-2822_daily_bin819.fits outfile=/scratch/kocevski/29954/expmap_451612801_451872001_4FGL_J1037.7-2822_daily_bin819.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/29954/ltcube_451612801_451872001_4FGL_J1037.7-2822_daily_bin819.fits
.....................!
real 189.97
user 185.46
sys 4.10

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/29954/ft1_filtered_4FGL_J1037.7-2822_daily_bin819.fits scfile=/scratch/kocevski/29954/ft2_4FGL_J1037.7-2822_daily_bin819.fits outfile=/scratch/kocevski/29954/cmap_451612801_451872001_4FGL_J1037.7-2822_daily_bin819.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.61
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/29954/ft1_filtered_4FGL_J1037.7-2822_daily_bin819.fits scfile=/scratch/kocevski/29954/ft2_4FGL_J1037.7-2822_daily_bin819.fits outfile=/scratch/kocevski/29954/cmap_HighResolution_451612801_451872001_4FGL_J1037.7-2822_daily_bin819.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.66
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    3.3338       1.0000         .10000E-03   10000.    
     3 'norm      '    19.275       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.606       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.442       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .65667       1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.339       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5769       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .51536       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1580       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5001       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .68627       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=   5568.577     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     2007 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.0878       -.17907E-05** at limit **
   2  norm          3.3339        2.1873       -.13649E-07   -.69254E-04
   3  norm          19.276        12.586       -.48684E-06   -.21378E-03
   4  Prefactor     16.604        32.419       -.30789E-05   -.14927E-03
   5  Prefactor     .10000E-03    5.6012       -.46479E-06** at limit **
   6  norm          .10000E-03    7.7322        .33518E-06** at limit **
   7  norm          .10000E-03    3.9976        .14383E-05** at limit **
   8  Prefactor     .10000E-03    2.5854        .22073E-08** at limit **
   9  Prefactor     .10000E-03    7.7805       -.38378E-06** at limit **
  10  Prefactor     .10000E-03    5.0695        .90813E-06** at limit **
  11  norm          .10000E-03    1.6110        .18680E-07** at limit **
  12  Prefactor     11.441        14.135       -.35718E-06   -.61141E-04
  13  Prefactor     .65834        5.5253        .63166E-06   -.28827E-03
  14  Prefactor     28.337        16.374       -.12194E-05   -.44557E-03
  15  Prefactor     6.5768        5.4399       -.56516E-07   -.36236E-03
  16  Prefactor     .51018        11.010        .33602E-05   -.66610E-03
  17  Prefactor     .10000E-03    37.964       -.44479E-06** at limit **
  18  Prefactor     4.1543        8.4648       -.51275E-06   -.52059E-03
  19  Normalizat    1.5001        .26102        .72212E-06   -.18979E-03
  20  Prefactor     .68629        .12071       -.15468E-06   -.21038E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 3.33393
  norm       = 19.2756
  Prefactor  = 16.6044
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.4409
  Prefactor  = 0.658345
  Prefactor  = 28.3366
  Prefactor  = 6.57676
  Prefactor  = 0.510176
  Prefactor  = 0.0001
  Prefactor  = 4.15428
  Normalizat = 1.50007
  Prefactor  = 0.686292
 **********
 **   18 **HESSE 
 **********

 FCN=   5568.577     FROM HESSE     STATUS=OK           287 CALLS     2294 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.1740        .14886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.3339        2.2000        .84532E-04   -1.5343    
   3  norm          19.276        12.637        .91229E-04   -1.4830    
   4  Prefactor     16.604        32.803        .98284E-04   -1.4893    
   5  Prefactor     .10000E-03    5.6032        .17247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.8232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.0801        .14687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.5876        .11718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.7944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.0971        .16450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.6229        .92450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.441        14.156        .11844E-03   -1.5031    
  13  Prefactor     .65834        6.5401        .34877E-03   -1.5546    
  14  Prefactor     28.337        16.448        .75258E-04   -1.4643    
  15  Prefactor     6.5768        5.5197        .77147E-03   -1.5195    
  16  Prefactor     .51018        23.373        .37479E-02   -1.5565    
  17  Prefactor     .10000E-03    38.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.1543        14.229        .98832E-03   -1.5300    
  19  Normalizat    1.5001        .31387        .29661E-03   -.77776    
  20  Prefactor     .68629        .14428        .19997E-03   -1.0407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.41018e-09
Minuit parameter uncertainties:
  1  0.000106195
  2  2.20002
  3  12.6386
  4  32.8382
  5  2.78803e-05
  6  3.51093e-05
  7  8.58957e-05
  8  2.49264e-07
  9  2.99333e-05
  10  6.07632e-05
  11  1.09294e-06
  12  14.1604
  13  4.15029
  14  16.451
  15  5.52018
  16  6.90853
  17  6.66739e-05
  18  14.2411
  19  0.31428
  20  0.14436
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  1.093e-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:  6.863e-01  1.444e-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.500e+00  3.143e-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.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/29954/likelihoodResults_451612801_451872001_4FGL_J1037.7-2822_daily_bin819.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) = 5568.57952023
delta logL = -0.00290455776576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5568.57661583
delta logL = -1.58725924848e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4033       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4999       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68637       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=   5568.577     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      220 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    2.4533        .92452E-03** at limit **
   2  alpha         2.3868        3.7391        .16476        .96173E-06
   3  Normalizat    1.5001        .29574        .29661E-03   -.24147E-05
   4  Prefactor     .68629        .14178        .19997E-03   -.57421E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010001
  alpha      = 2.38678
  Normalizat = 1.50007
  Prefactor  = 0.686291
 **********
 **   18 **HESSE 
 **********

 FCN=   5568.577     FROM HESSE     STATUS=OK            23 CALLS      243 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    1.6239        .18490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3868        3.7796        .65905E-02   -.45304E-01
   3  Normalizat    1.5001        .29603        .11864E-04   -.77776    
   4  Prefactor     .68629        .14192        .79987E-05   -1.0407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40202e-08
Minuit parameter uncertainties:
  1  0.000256878
  2  231.861
  3  0.296377
  4  0.141995
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/29954': 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) = 5568.57661567
delta logL = 6.23458618065e-09

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  2.569e-04  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.387e+00  2.319e+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:  6.863e-01  1.420e-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.500e+00  2.964e-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/29954/cmap_HighResolution_451612801_451872001_4FGL_J1037.7-2822_daily_bin819.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.65e-05', job_status='DONE', photon_flux_upper_limit='7.93e-08', time_completed='2021-09-02 06:35:22.595008', job_id='29954', GAL2='0.69', fit_tolerance='1e-08', EG2='1.50', EG='1.50', time_epoch_completed='1630589722.6', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='6.23e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='819' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:35:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 29954: <4FGL_J1037.7-2822_daily_bin819> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin819> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 06:21:34 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:22:04 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:04 2021
Terminated at Thu Sep  2 06:35:23 2021
Results reported at Thu Sep  2 06:35:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin819 159.427 -28.3816 451612801 451872001 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 :                                   572.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            829 sec.

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

