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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin1138
RA = 159.427, Dec = -28.3816
tmin = 534297601, tmax = 534556801
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='31313', job_status='RUN', time_executed='2021-09-02 06:28:51.468139', time_epoch_executed='1630589331.47' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='1138'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31313

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31313/ft1_4FGL_J1037.7-2822_daily_bin1138.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31313/ft2_4FGL_J1037.7-2822_daily_bin1138.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31313/ft1_4FGL_J1037.7-2822_daily_bin1138.fits outfile=/scratch/kocevski/31313/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin1138.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=534297601.0 tmax=534556801.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.87
user 3.40
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31313/ft1_filtered_4FGL_J1037.7-2822_daily_bin1138.fits" evtable="EVENTS" scfile=/scratch/kocevski/31313/ft2_4FGL_J1037.7-2822_daily_bin1138.fits sctable="SC_DATA" outfile=/scratch/kocevski/31313/ltcube_534297601_534556801_4FGL_J1037.7-2822_daily_bin1138.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/31313/ft2_4FGL_J1037.7-2822_daily_bin1138.fits
.....................!
real 12.70
user 12.23
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31313/ft1_filtered_4FGL_J1037.7-2822_daily_bin1138.fits evtable="EVENTS" scfile=/scratch/kocevski/31313/ft2_4FGL_J1037.7-2822_daily_bin1138.fits sctable="SC_DATA" expcube=/scratch/kocevski/31313/ltcube_534297601_534556801_4FGL_J1037.7-2822_daily_bin1138.fits outfile=/scratch/kocevski/31313/expmap_534297601_534556801_4FGL_J1037.7-2822_daily_bin1138.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/31313/ltcube_534297601_534556801_4FGL_J1037.7-2822_daily_bin1138.fits
.....................!
real 192.19
user 186.19
sys 5.53

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/31313/ft1_filtered_4FGL_J1037.7-2822_daily_bin1138.fits scfile=/scratch/kocevski/31313/ft2_4FGL_J1037.7-2822_daily_bin1138.fits outfile=/scratch/kocevski/31313/cmap_534297601_534556801_4FGL_J1037.7-2822_daily_bin1138.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/31313/ft1_filtered_4FGL_J1037.7-2822_daily_bin1138.fits scfile=/scratch/kocevski/31313/ft2_4FGL_J1037.7-2822_daily_bin1138.fits outfile=/scratch/kocevski/31313/cmap_HighResolution_534297601_534556801_4FGL_J1037.7-2822_daily_bin1138.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31313/ft1_filtered_4FGL_J1037.7-2822_daily_bin1138.fits evtable="EVENTS" scfile=/scratch/kocevski/31313/ft2_4FGL_J1037.7-2822_daily_bin1138.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31313/Model_4FGL_J1037.7-2822_daily_bin1138.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/31313/ft1_filtered_4FGL_J1037.7-2822_daily_bin1138.fits.....................!
real 70.71
user 69.23
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.8658       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    16.960       1.0000         .10000E-03   10000.    
     7 'norm      '    6.7490       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.473       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21373E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.9823       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11167E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4551       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .97865       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0988       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=   6811.154     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     1706 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    8.6960        .90712E-02** at limit **
   2  norm          7.8656        2.1209        .35743E-02   -.10321E-04
   3  norm          .10000E-03    10.359        .90712E-02** at limit **
   4  Prefactor     .10000E-03    25.317        .90712E-02** at limit **
   5  Prefactor     .10000E-03    3.7888        .90712E-02** at limit **
   6  norm          16.962        13.034        .24313E-02    .19364E-03
   7  norm          6.7480        7.5814        .38613E-02    .10353E-02
   8  Prefactor     .10000E-03    3.9704        .90712E-02** at limit **
   9  Prefactor     17.472        16.987        .23954E-02    .50612E-04
  10  Prefactor     .10003E-03    57.956        .90712E-02** at limit **
  11  norm          5.9829        5.3399        .41042E-02    .88565E-03
  12  Prefactor     .10000E-03    13.394        .90712E-02** at limit **
  13  Prefactor     .10000E-03    7.9296        .90712E-02** at limit **
  14  Prefactor     6.4555        11.610        .39492E-02    .16483E-03
  15  Prefactor     .10000E-03    2.8069        .90712E-02** at limit **
  16  Prefactor     .10000E-03    4.0723        .90712E-02** at limit **
  17  Prefactor     .10003E-03    59.294        .90712E-02** at limit **
  18  Prefactor     .10000E-03    6.5655        .90712E-02** at limit **
  19  Normalizat    .97889        .25229        .85062E-01    .24690E-04
  20  Prefactor     1.0986        .12528        .37634E-01   -.97025E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100007
  norm       = 7.86564
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.9622
  norm       = 6.74802
  Prefactor  = 0.0001
  Prefactor  = 17.4721
  Prefactor  = 0.000100028
  norm       = 5.98287
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 6.45549
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010003
  Prefactor  = 0.0001
  Normalizat = 0.978892
  Prefactor  = 1.09863
 **********
 **   18 **HESSE 
 **********

 FCN=   6811.154     FROM HESSE     STATUS=OK           287 CALLS     1993 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    8.7239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.8656        2.1228        .60144E-04   -1.5147    
   3  norm          .10000E-03    10.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    25.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.7893        .15689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          16.962        13.014        .97253E-04   -1.4884    
   7  norm          6.7480        7.5684        .77225E-03   -1.5188    
   8  Prefactor     .10000E-03    3.9991        .16059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.472        16.978        .95815E-04   -1.4872    
  10  Prefactor     .10003E-03    58.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.9829        5.2966        .16417E-03   -1.5219    
  12  Prefactor     .10000E-03    13.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.1956        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.4555        11.580        .15797E-03   -1.5200    
  15  Prefactor     .10000E-03    2.8247        .13498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.0880        .16264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10003E-03    59.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.5964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .97889        .29214        .37660E-03   -.93741    
  20  Prefactor     1.0986        .14575        .18232E-03   -.89510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53959e-09
Minuit parameter uncertainties:
  1  0.000487447
  2  2.12279
  3  0.000271321
  4  3.77519e-05
  5  2.01215e-06
  6  13.0162
  7  7.56947
  8  6.85689e-06
  9  16.9824
  10  0.0025837
  11  5.29698
  12  0.000128804
  13  0.000328793
  14  11.5837
  15  7.11172e-07
  16  8.40054e-06
  17  0.00268899
  18  1.72016e-05
  19  0.29262
  20  0.145808
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  5.983e+00  5.297e+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:  1.099e+00  1.458e-01  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  9.789e-01  2.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.84
Ra Dec: 159.427 -28.382
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 6.54e-08 +/- 5.79e-08
Energy Flux (Fixed Index): 2.19e-05 +/- 1.93e-05

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

Saving results to:
/scratch/kocevski/31313/likelihoodResults_534297601_534556801_4FGL_J1037.7-2822_daily_bin1138.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) = 6810.42046843
delta logL = 0.733203698146

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6810.4123783
delta logL = 0.741293831588

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0629       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2995       1.0000          .0000       5.0000    
     3 'Normalizat'    .89000       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1262       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=   6810.412     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      242 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0629        31.755        .57948E-02    .16468E-02
   2  alpha         3.2995        4.0357        .27969        .66441E-04
   3  Normalizat    .89001        .86307E-01    .88647E-01    .26460E-04
   4  Prefactor     1.1262        .41663E-01    .36666E-01   -.26772E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.06288
  alpha      = 3.2995
  Normalizat = 0.890012
  Prefactor  = 1.12621
 **********
 **   18 **HESSE 
 **********

 FCN=   6810.412     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0629        4.8675        .83892E-04   -1.5358    
   2  alpha         3.2995        .95975        .10880E-01    .32552    
   3  Normalizat    .89001        .29889        .39258E-03   -.96812    
   4  Prefactor     1.1262        .14894        .18022E-03   -.88633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.92045e-09
Minuit parameter uncertainties:
  1  4.86814
  2  0.988167
  3  0.29945
  4  0.148998
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31313': 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) = 6810.4123783
delta logL = 0.741293832651

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  3.063e+00  4.868e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  3.300e+00  9.882e-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:  1.126e+00  1.490e-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:  8.900e-01  2.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.49
Ra Dec: 159.427 -28.382
Photon Index (Free Index): 3.30 +/- 0.99
Photon Flux (Free Index): 1.38e-07 +/- 9.27e-08
Energy Flux (Free Index): 2.61e-05 +/- 1.68e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/31313/cmap_HighResolution_534297601_534556801_4FGL_J1037.7-2822_daily_bin1138.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.12e-05', comment='SUCCESS', photon_flux='6.54e-08', energy_flux2='2.61e-05', photon_flux_error='5.79e-08', dlogl='7.41e-01', energy_flux='2.19e-05', photon_flux2='1.38e-07', job_status='DONE', time_completed='2021-09-02 06:39:01.805392', photon_index_error2='0.99', photon_index2='3.30', ts='1.84', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.83e-07', energy_flux_error2='1.68e-05', EG='0.98', time_epoch_completed='1630589941.81', return_code='0', job_id='31313', GAL2='1.13', EG2='0.89', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='9.27e-08', ts2='3.49', photon_index='2.40' WHERE bin_id='1138' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:39:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 31313: <4FGL_J1037.7-2822_daily_bin1138> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin1138> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 06:26:34 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:27:19 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:27:19 2021
Terminated at Thu Sep  2 06:39:02 2021
Results reported at Thu Sep  2 06:39:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin1138 159.427 -28.3816 534297601 534556801 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 :                                   604.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            748 sec.

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

