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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin731
RA = 159.427, Dec = -28.3816
tmin = 428803201, tmax = 429062401
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='28488', job_status='RUN', time_executed='2021-09-02 06:19:48.931310', time_epoch_executed='1630588788.93' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/28488

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/28488/ft1_4FGL_J1037.7-2822_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/28488/ft2_4FGL_J1037.7-2822_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/28488/ft1_4FGL_J1037.7-2822_daily_bin731.fits outfile=/scratch/kocevski/28488/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin731.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=428803201.0 tmax=429062401.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 6.68
user 6.30
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/28488/ft1_filtered_4FGL_J1037.7-2822_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/28488/ft2_4FGL_J1037.7-2822_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/28488/ltcube_428803201_429062401_4FGL_J1037.7-2822_daily_bin731.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/28488/ft2_4FGL_J1037.7-2822_daily_bin731.fits
.....................!
real 14.03
user 13.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/28488/ft1_filtered_4FGL_J1037.7-2822_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/28488/ft2_4FGL_J1037.7-2822_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/28488/ltcube_428803201_429062401_4FGL_J1037.7-2822_daily_bin731.fits outfile=/scratch/kocevski/28488/expmap_428803201_429062401_4FGL_J1037.7-2822_daily_bin731.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/28488/ltcube_428803201_429062401_4FGL_J1037.7-2822_daily_bin731.fits
.....................!
real 191.23
user 185.05
sys 5.22

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/28488/ft1_filtered_4FGL_J1037.7-2822_daily_bin731.fits scfile=/scratch/kocevski/28488/ft2_4FGL_J1037.7-2822_daily_bin731.fits outfile=/scratch/kocevski/28488/cmap_428803201_429062401_4FGL_J1037.7-2822_daily_bin731.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/28488/ft1_filtered_4FGL_J1037.7-2822_daily_bin731.fits scfile=/scratch/kocevski/28488/ft2_4FGL_J1037.7-2822_daily_bin731.fits outfile=/scratch/kocevski/28488/cmap_HighResolution_428803201_429062401_4FGL_J1037.7-2822_daily_bin731.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.60
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/28488/ft1_filtered_4FGL_J1037.7-2822_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/28488/ft2_4FGL_J1037.7-2822_daily_bin731.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/28488/Model_4FGL_J1037.7-2822_daily_bin731.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/28488/ft1_filtered_4FGL_J1037.7-2822_daily_bin731.fits....................!
real 53.54
user 51.65
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.819       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.535       1.0000         .10000E-03   10000.    
     6 'norm      '    42.711       1.0000         .10000E-03   10000.    
     7 'norm      '    15.864       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.2997       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11155E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.076       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .59213       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.379       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.2322       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99574       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=   4480.047     FROM MIGRAD    STATUS=CONVERGED    396 CALLS     2037 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    31.464       -.16539E-05** at limit **
   2  norm          .10000E-03    .67922        .38110E-07** at limit **
   3  norm          .10000E-03    8.8619        .46708E-06** at limit **
   4  Prefactor     38.816        39.999       -.42396E-06   -.39504E-04
   5  Prefactor     23.537        27.648        .28913E-06    .21554E-04
   6  norm          42.713        26.345        .34354E-06    .62648E-04
   7  norm          15.859        19.438       -.19297E-06   -.16809E-04
   8  Prefactor     .10000E-03    6.7591        .10354E-06** at limit **
   9  Prefactor     .10000E-03    8.4099       -.30398E-06** at limit **
  10  Prefactor     .10000E-03    9.4659        .54659E-06** at limit **
  11  norm          3.2988        3.9534        .13153E-06    .13086E-03
  12  Prefactor     .10000E-03    15.483       -.18577E-05** at limit **
  13  Prefactor     .10001E-03    4.4862       -.11712E-05** at limit **
  14  Prefactor     10.062        16.838       -.41818E-06   -.15282E-05
  15  Prefactor     .59249        11.755        .48501E-05   -.83563E-04
  16  Prefactor     16.381        15.486        .19561E-06    .21352E-04
  17  Prefactor     .10000E-03    20.245        .28476E-05** at limit **
  18  Prefactor     .10000E-03    8.5365       -.40080E-07** at limit **
  19  Normalizat    1.2325        .31293       -.75790E-06    .11861E-04
  20  Prefactor     .99554        .15338       -.17456E-06    .26882E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 38.8155
  Prefactor  = 23.5367
  norm       = 42.7126
  norm       = 15.8595
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.29877
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  Prefactor  = 10.0624
  Prefactor  = 0.592491
  Prefactor  = 16.3815
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Normalizat = 1.23249
  Prefactor  = 0.99554
 **********
 **   18 **HESSE 
 **********

 FCN=   4480.047     FROM HESSE     STATUS=OK           291 CALLS     2328 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    32.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .68771        .53850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.9085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     38.816        40.133        .64330E-04   -1.4461    
   5  Prefactor     23.537        27.665        .82567E-04   -1.4737    
   6  norm          42.713        26.370        .61341E-04   -1.4400    
   7  norm          15.859        19.454        .10056E-03   -1.4911    
   8  Prefactor     .10000E-03    6.7998        .16996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.4355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.5346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.2988        3.9303        .14060E-03   -1.5345    
  12  Prefactor     .10000E-03    16.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    8.3870        .25777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.062        16.685        .12623E-03   -1.5073    
  15  Prefactor     .59249        12.716        .44668E-03   -1.5554    
  16  Prefactor     16.381        15.506        .98963E-04   -1.4898    
  17  Prefactor     .10000E-03    21.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.5613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2325        .37115        .35565E-03   -.85605    
  20  Prefactor     .99554        .18305        .19396E-03   -.92878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.75987e-10
Minuit parameter uncertainties:
  1  0.000273876
  2  8.51057e-07
  3  4.47744e-05
  4  40.1607
  5  27.6804
  6  26.3775
  7  19.4615
  8  7.30832e-06
  9  2.82422e-05
  10  7.10198e-05
  11  3.93065
  12  0.000256669
  13  0.00040983
  14  16.6931
  15  5.49056
  16  15.5098
  17  0.000467845
  18  6.14672e-06
  19  0.371954
  20  0.183163
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  3.299e+00  3.931e+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:  9.955e-01  1.832e-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.232e+00  3.720e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 159.427 -28.382
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 3.61e-08 +/- 4.30e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 1.44e-05

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

Saving results to:
/scratch/kocevski/28488/likelihoodResults_428803201_429062401_4FGL_J1037.7-2822_daily_bin731.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) = 4479.98536838
delta logL = 0.0618093630555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4479.98295882
delta logL = 0.0642189265218

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2758       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0873       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2402       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99224       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=   4479.983     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      261 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2757        5.2979        .15382E-03    .45616E-03
   2  alpha         2.0870        .83007        .17427E-01    .42810E-04
   3  Normalizat    1.2402        .36243        .35470E-03   -.25161E-04
   4  Prefactor     .99223        .18125        .19423E-03   -.61636E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.27566
  alpha      = 2.08696
  Normalizat = 1.24022
  Prefactor  = 0.992229
 **********
 **   18 **HESSE 
 **********

 FCN=   4479.983     FROM HESSE     STATUS=OK            23 CALLS      284 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2757        5.2081        .61528E-05   -1.5294    
   2  alpha         2.0870        .81662        .69707E-03   -.16598    
   3  Normalizat    1.2402        .36270        .14188E-04   -.85369    
   4  Prefactor     .99223        .18138        .38845E-04   -.92989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20577e-10
Minuit parameter uncertainties:
  1  5.20863
  2  0.832342
  3  0.363438
  4  0.181495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/28488': 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) = 4479.98295871
delta logL = 0.0642190327126

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  4.276e+00  5.209e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.087e+00  8.323e-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.922e-01  1.815e-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.240e+00  3.634e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.26
Ra Dec: 159.427 -28.382
Photon Index (Free Index): 2.09 +/- 0.83
Photon Flux (Free Index): 3.09e-08 +/- 3.96e-08
Energy Flux (Free Index): 1.55e-05 +/- 2.09e-05

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/28488/cmap_HighResolution_428803201_429062401_4FGL_J1037.7-2822_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.07e-05', comment='SUCCESS', photon_flux='3.61e-08', energy_flux2='1.55e-05', photon_flux_error='4.30e-08', dlogl='6.42e-02', energy_flux='1.20e-05', photon_flux2='3.09e-08', job_status='DONE', time_completed='2021-09-02 06:28:53.183461', photon_index_error2='0.83', photon_index2='2.09', ts='1.13', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='2.09e-05', EG='1.23', time_epoch_completed='1630589333.18', return_code='0', job_id='28488', GAL2='0.99', EG2='1.24', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='3.96e-08', ts2='1.26', photon_index='2.40' WHERE bin_id='731' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:28:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 28488: <4FGL_J1037.7-2822_daily_bin731> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin731> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Sep  2 06:16:27 2021
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:16:28 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:16:28 2021
Terminated at Thu Sep  2 06:28:53 2021
Results reported at Thu Sep  2 06:28:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin731 159.427 -28.3816 428803201 429062401 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 :                                   541.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             261.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            746 sec.

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

