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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin823
RA = 159.427, Dec = -28.3816
tmin = 452649601, tmax = 452908801
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='29960', job_status='RUN', time_executed='2021-09-02 06:22:23.847136', time_epoch_executed='1630588943.85' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='823'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/29960

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/29960/ft1_4FGL_J1037.7-2822_daily_bin823.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/29960/ft2_4FGL_J1037.7-2822_daily_bin823.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/29960/ft1_4FGL_J1037.7-2822_daily_bin823.fits outfile=/scratch/kocevski/29960/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin823.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=452649601.0 tmax=452908801.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.42
user 3.21
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/29960/ft2_4FGL_J1037.7-2822_daily_bin823.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/29960/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin823.fits evtable="EVENTS" outfile="/scratch/kocevski/29960/ft1_filtered_4FGL_J1037.7-2822_daily_bin823.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.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/29960/ft1_filtered_4FGL_J1037.7-2822_daily_bin823.fits" evtable="EVENTS" scfile=/scratch/kocevski/29960/ft2_4FGL_J1037.7-2822_daily_bin823.fits sctable="SC_DATA" outfile=/scratch/kocevski/29960/ltcube_452649601_452908801_4FGL_J1037.7-2822_daily_bin823.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/29960/ft2_4FGL_J1037.7-2822_daily_bin823.fits
.....................!
real 12.52
user 11.84
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/29960/ft1_filtered_4FGL_J1037.7-2822_daily_bin823.fits evtable="EVENTS" scfile=/scratch/kocevski/29960/ft2_4FGL_J1037.7-2822_daily_bin823.fits sctable="SC_DATA" expcube=/scratch/kocevski/29960/ltcube_452649601_452908801_4FGL_J1037.7-2822_daily_bin823.fits outfile=/scratch/kocevski/29960/expmap_452649601_452908801_4FGL_J1037.7-2822_daily_bin823.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/29960/ltcube_452649601_452908801_4FGL_J1037.7-2822_daily_bin823.fits
.....................!
real 191.28
user 186.37
sys 4.31

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/29960/ft1_filtered_4FGL_J1037.7-2822_daily_bin823.fits scfile=/scratch/kocevski/29960/ft2_4FGL_J1037.7-2822_daily_bin823.fits outfile=/scratch/kocevski/29960/cmap_452649601_452908801_4FGL_J1037.7-2822_daily_bin823.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.36
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/29960/ft1_filtered_4FGL_J1037.7-2822_daily_bin823.fits evtable="EVENTS" scfile=/scratch/kocevski/29960/ft2_4FGL_J1037.7-2822_daily_bin823.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/29960/Model_4FGL_J1037.7-2822_daily_bin823.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/29960/ft1_filtered_4FGL_J1037.7-2822_daily_bin823.fits.....................!
real 65.36
user 64.03
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    2.3709       1.0000         .10000E-03   10000.    
     3 'norm      '    23.637       1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.773       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    19.553       1.0000         .10000E-03   10000.    
     7 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.117       1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.014       1.0000         .10000E-03   10000.    
    11 'norm      '    6.5313       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.613       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.321       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .93841       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0320       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=   6188.079     FROM MIGRAD    STATUS=CONVERGED    383 CALLS     2006 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.2219        .62727E-06** at limit **
   2  norm          2.3710        1.6207       -.10503E-06   -.24087E-03
   3  norm          23.637        14.702       -.27442E-06   -.28750E-04
   4  Prefactor     33.768        33.648       -.74799E-05   -.14718E-04
   5  Prefactor     .10000E-03    11.749        .47786E-05** at limit **
   6  norm          19.553        15.899        .18897E-05   -.45071E-04
   7  norm          .10000E-03    2.5360        .99457E-07** at limit **
   8  Prefactor     .10000E-03    3.7927        .22300E-05** at limit **
   9  Prefactor     18.115        21.024       -.40742E-05   -.88523E-05
  10  Prefactor     37.995        26.881       -.23723E-04    .45121E-04
  11  norm          6.5325        5.5388        .53440E-05   -.61284E-04
  12  Prefactor     20.613        25.653        .19243E-05    .42144E-05
  13  Prefactor     .10000E-03    3.7367       -.15025E-05** at limit **
  14  Prefactor     23.319        15.614       -.83039E-07    .62776E-04
  15  Prefactor     .10000E-03    2.1449       -.18184E-07** at limit **
  16  Prefactor     .10000E-03    7.1241       -.17976E-05** at limit **
  17  Prefactor     .10000E-03    12.508       -.37681E-05** at limit **
  18  Prefactor     .10000E-03    6.2869       -.71379E-07** at limit **
  19  Normalizat    .93839        .26414        .45407E-05   -.20236E-04
  20  Prefactor     1.0321        .12836        .18837E-06    .12108E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.37104
  norm       = 23.6369
  Prefactor  = 33.7683
  Prefactor  = 0.0001
  norm       = 19.5532
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.1147
  Prefactor  = 37.995
  norm       = 6.53255
  Prefactor  = 20.6135
  Prefactor  = 0.000100001
  Prefactor  = 23.319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.938391
  Prefactor  = 1.03205
 **********
 **   18 **HESSE 
 **********

 FCN=   6188.079     FROM HESSE     STATUS=OK           291 CALLS     2297 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.2294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3710        1.6149        .79871E-04   -1.5400    
   3  norm          23.637        14.709        .82390E-04   -1.4735    
   4  Prefactor     33.768        33.646        .68953E-04   -1.4545    
   5  Prefactor     .10000E-03    11.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          19.553        15.876        .90578E-04   -1.4823    
   7  norm          .10000E-03    2.5372        .12232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.8085        .14958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.115        20.984        .94096E-04   -1.4856    
  10  Prefactor     37.995        26.837        .65006E-04   -1.4474    
  11  norm          6.5325        5.5197        .14681E-03   -1.5197    
  12  Prefactor     20.613        25.640        .88221E-04   -1.4800    
  13  Prefactor     .10000E-03    3.7509        .14781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.319        15.609        .82946E-04   -1.4742    
  15  Prefactor     .10000E-03    2.1498        .11249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.1901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.3104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .93839        .30393        .38425E-03   -.95124    
  20  Prefactor     1.0321        .14889        .18467E-03   -.91669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37835e-10
Minuit parameter uncertainties:
  1  3.69671e-06
  2  1.61491
  3  14.7116
  4  33.6651
  5  1.02833e-05
  6  15.8793
  7  8.26584e-06
  8  9.3783e-06
  9  20.9927
  10  26.8456
  11  5.52014
  12  25.6534
  13  0.000139958
  14  15.6112
  15  3.02855e-06
  16  1.36365e-05
  17  6.63272e-06
  18  1.19152e-05
  19  0.304489
  20  0.148946
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  6.533e+00  5.520e+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.032e+00  1.489e-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.384e-01  3.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.95
Ra Dec: 159.427 -28.382
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 7.15e-08 +/- 6.04e-08
Energy Flux (Fixed Index): 2.39e-05 +/- 2.02e-05

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

Saving results to:
/scratch/kocevski/29960/likelihoodResults_452649601_452908801_4FGL_J1037.7-2822_daily_bin823.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) = 6188.07819512
delta logL = 0.00126418873333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6188.07785741
delta logL = 0.00160189796497

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6673       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3665       1.0000          .0000       5.0000    
     3 'Normalizat'    .94085       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0313       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=   6188.078     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      230 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6627        125.47        .38851E-02    .20043E-03
   2  alpha         2.3655        3.4367        .41226        .27307E-04
   3  Normalizat    .94066        .12745        .86690E-01    .24898E-04
   4  Prefactor     1.0314        .47806E-01    .41159E-01    .26834E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.66267
  alpha      = 2.36547
  Normalizat = 0.940661
  Prefactor  = 1.03141
 **********
 **   18 **HESSE 
 **********

 FCN=   6188.078     FROM HESSE     STATUS=OK            31 CALLS      261 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6627        5.6301        .14900E-03   -1.5192    
   2  alpha         2.3655        .68277        .14223E-01   -.53837E-01
   3  Normalizat    .94066        .29658        .38386E-03   -.95046    
   4  Prefactor     1.0314        .14849        .18472E-03   -.91690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07451e-12
Minuit parameter uncertainties:
  1  5.63056
  2  0.691584
  3  0.297094
  4  0.148546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/29960': 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) = 6188.07785445
delta logL = 0.00160485873948

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  6.663e+00  5.631e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.365e+00  6.916e-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.031e+00  1.485e-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.407e-01  2.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.99
Ra Dec: 159.427 -28.382
Photon Index (Free Index): 2.37 +/- 0.69
Photon Flux (Free Index): 6.91e-08 +/- 6.66e-08
Energy Flux (Free Index): 2.40e-05 +/- 1.88e-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/29960/cmap_HighResolution_452649601_452908801_4FGL_J1037.7-2822_daily_bin823.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.38e-05', comment='SUCCESS', photon_flux='7.15e-08', energy_flux2='2.40e-05', photon_flux_error='6.04e-08', dlogl='1.60e-03', energy_flux='2.39e-05', photon_flux2='6.91e-08', job_status='DONE', time_completed='2021-09-02 06:32:19.674575', photon_index_error2='0.69', photon_index2='2.37', ts='2.95', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.91e-07', energy_flux_error2='1.88e-05', EG='0.94', time_epoch_completed='1630589539.67', return_code='0', job_id='29960', GAL2='1.03', EG2='0.94', return_code2='0', energy_flux_error='2.02e-05', photon_flux_error2='6.66e-08', ts2='2.99', photon_index='2.40' WHERE bin_id='823' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:32:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 29960: <4FGL_J1037.7-2822_daily_bin823> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin823 159.427 -28.3816 452649601 452908801 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 :                                   593.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             352.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   613 sec.
    Turnaround time :                            645 sec.

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

