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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin1421
RA = 159.427, Dec = -28.3816
tmin = 607651201, tmax = 607910401
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='31597', job_status='RUN', time_executed='2021-09-02 06:31:19.676766', time_epoch_executed='1630589479.68' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='1421'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31597

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31597/ft1_4FGL_J1037.7-2822_daily_bin1421.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31597/ft2_4FGL_J1037.7-2822_daily_bin1421.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31597/ft1_4FGL_J1037.7-2822_daily_bin1421.fits outfile=/scratch/kocevski/31597/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin1421.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=607651201.0 tmax=607910401.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.84
user 3.58
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31597/ft1_filtered_4FGL_J1037.7-2822_daily_bin1421.fits" evtable="EVENTS" scfile=/scratch/kocevski/31597/ft2_4FGL_J1037.7-2822_daily_bin1421.fits sctable="SC_DATA" outfile=/scratch/kocevski/31597/ltcube_607651201_607910401_4FGL_J1037.7-2822_daily_bin1421.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/31597/ft2_4FGL_J1037.7-2822_daily_bin1421.fits
.....................!
real 14.22
user 13.81
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31597/ft1_filtered_4FGL_J1037.7-2822_daily_bin1421.fits evtable="EVENTS" scfile=/scratch/kocevski/31597/ft2_4FGL_J1037.7-2822_daily_bin1421.fits sctable="SC_DATA" expcube=/scratch/kocevski/31597/ltcube_607651201_607910401_4FGL_J1037.7-2822_daily_bin1421.fits outfile=/scratch/kocevski/31597/expmap_607651201_607910401_4FGL_J1037.7-2822_daily_bin1421.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/31597/ltcube_607651201_607910401_4FGL_J1037.7-2822_daily_bin1421.fits
.....................!
real 192.21
user 186.08
sys 5.02

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/31597/ft1_filtered_4FGL_J1037.7-2822_daily_bin1421.fits scfile=/scratch/kocevski/31597/ft2_4FGL_J1037.7-2822_daily_bin1421.fits outfile=/scratch/kocevski/31597/cmap_607651201_607910401_4FGL_J1037.7-2822_daily_bin1421.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.55
user 0.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31597/ft1_filtered_4FGL_J1037.7-2822_daily_bin1421.fits evtable="EVENTS" scfile=/scratch/kocevski/31597/ft2_4FGL_J1037.7-2822_daily_bin1421.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31597/Model_4FGL_J1037.7-2822_daily_bin1421.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/31597/ft1_filtered_4FGL_J1037.7-2822_daily_bin1421.fits.....................!
real 57.00
user 54.97
sys 1.43

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.5468       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5192       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.9229       1.0000         .10000E-03   10000.    
     7 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.8099       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.981       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.1219       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0216       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11720E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1707       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92244       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=   5226.089     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     2032 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.9763        .24679E-06** at limit **
   2  norm          7.5471        2.4551       -.26539E-07    .26193E-05
   3  norm          .10000E-03    4.3252       -.92805E-08** at limit **
   4  Prefactor     7.5237        19.144        .83326E-06   -.55391E-04
   5  Prefactor     .10000E-03    4.9885       -.14144E-06** at limit **
   6  norm          2.9242        8.6759       -.71364E-06   -.19653E-03
   7  norm          .10000E-03    6.0489       -.17309E-06** at limit **
   8  Prefactor     .10000E-03    4.0280        .50998E-07** at limit **
   9  Prefactor     .10000E-03    43.607       -.11754E-05** at limit **
  10  Prefactor     .10000E-03    10.528       -.26575E-05** at limit **
  11  norm          2.8071        3.3973       -.22755E-07   -.28394E-03
  12  Prefactor     10.965        18.921       -.36027E-05    .16142E-03
  13  Prefactor     .10004E-03    4.1019        .83330E-06** at limit **
  14  Prefactor     9.0941        15.827       -.72478E-06   -.19657E-03
  15  Prefactor     1.0219        5.8690       -.27397E-05   -.89962E-03
  16  Prefactor     .10000E-03    18.453       -.54855E-05** at limit **
  17  Prefactor     .10000E-03    14.425        .50991E-05** at limit **
  18  Prefactor     .10000E-03    8.1749        .89823E-06** at limit **
  19  Normalizat    1.1702        .27167        .13294E-05   -.33920E-04
  20  Prefactor     .92259        .12897       -.75122E-07    .64181E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 7.54713
  norm       = 0.0001
  Prefactor  = 7.52375
  Prefactor  = 0.0001
  norm       = 2.9242
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 2.80709
  Prefactor  = 10.9649
  Prefactor  = 0.00010004
  Prefactor  = 9.09411
  Prefactor  = 1.02195
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.17019
  Prefactor  = 0.922589
 **********
 **   18 **HESSE 
 **********

 FCN=   5226.089     FROM HESSE     STATUS=OK           289 CALLS     2321 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.9776        .15747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.5471        2.4587        .62104E-04   -1.5158    
   3  norm          .10000E-03    4.3338        .14683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.5237        19.101        .14625E-03   -1.5159    
   5  Prefactor     .10000E-03    4.9889        .15768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.9242        8.7384        .23762E-03   -1.5366    
   7  norm          .10000E-03    6.0852        .17352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.0378        .14169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    45.044        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.8071        3.3455        .13972E-03   -1.5373    
  12  Prefactor     10.965        18.416        .12090E-03   -1.5046    
  13  Prefactor     .10004E-03    27.498        .25379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.0941        14.921        .13270E-03   -1.5105    
  15  Prefactor     1.0219        8.5060        .39595E-03   -1.5506    
  16  Prefactor     .10000E-03    17.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.2081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1702        .32577        .33480E-03   -.87529    
  20  Prefactor     .92259        .15553        .18246E-03   -.95356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84114e-09
Minuit parameter uncertainties:
  1  9.1307e-06
  2  2.45871
  3  1.20985e-06
  4  19.1164
  5  4.25761e-06
  6  8.74222
  7  7.17331e-06
  8  2.76134e-06
  9  0.000572065
  10  0.000126108
  11  3.34575
  12  18.4255
  13  0.0021004
  14  14.9276
  15  5.89751
  16  0.000375036
  17  0.000282396
  18  4.33927e-05
  19  0.32634
  20  0.155604
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  2.807e+00  3.346e+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.226e-01  1.556e-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.170e+00  3.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.34
Ra Dec: 159.427 -28.382
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 3.07e-08 +/- 3.66e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 1.22e-05

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

Saving results to:
/scratch/kocevski/31597/likelihoodResults_607651201_607910401_4FGL_J1037.7-2822_daily_bin1421.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) = 5225.96038486
delta logL = 0.128794021454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5225.95520006
delta logL = 0.133978816016

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3460       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9262       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1824       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91899       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=   5225.955     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      267 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3461        3.8817        .14937E-03   -.70837E-03
   2  alpha         1.9263        .86605        .21821E-01   -.42127E-04
   3  Normalizat    1.1823        .31230        .33330E-03    .26571E-04
   4  Prefactor     .91901        .15408        .18276E-03    .47463E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.34609
  alpha      = 1.92635
  Normalizat = 1.18231
  Prefactor  = 0.919015
 **********
 **   18 **HESSE 
 **********

 FCN=   5225.955     FROM HESSE     STATUS=OK            23 CALLS      290 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3461        3.8860        .59747E-05   -1.5342    
   2  alpha         1.9263        .86711        .87285E-03   -.23152    
   3  Normalizat    1.1823        .31258        .13332E-04   -.87151    
   4  Prefactor     .91901        .15422        .73104E-05   -.95480    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89248e-10
Minuit parameter uncertainties:
  1  3.88633
  2  0.8866
  3  0.313074
  4  0.154298
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31597': 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) = 5225.95520003
delta logL = 0.13397885393

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  3.346e+00  3.886e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  1.926e+00  8.866e-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.190e-01  1.543e-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.182e+00  3.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.61
Ra Dec: 159.427 -28.382
Photon Index (Free Index): 1.93 +/- 0.89
Photon Flux (Free Index): 2.01e-08 +/- 3.08e-08
Energy Flux (Free Index): 1.33e-05 +/- 1.76e-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/31597/cmap_HighResolution_607651201_607910401_4FGL_J1037.7-2822_daily_bin1421.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-05', comment='SUCCESS', photon_flux='3.07e-08', energy_flux2='1.33e-05', photon_flux_error='3.66e-08', dlogl='1.34e-01', energy_flux='1.03e-05', photon_flux2='2.01e-08', job_status='DONE', time_completed='2021-09-02 06:40:47.464737', photon_index_error2='0.89', photon_index2='1.93', ts='1.34', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='1.76e-05', EG='1.17', time_epoch_completed='1630590047.46', return_code='0', job_id='31597', GAL2='0.92', EG2='1.18', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='3.08e-08', ts2='1.61', photon_index='2.40' WHERE bin_id='1421' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:40:47 PDT 2021


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

Job <4FGL_J1037.7-2822_daily_bin1421> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 06:27:16 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:30:17 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:30:17 2021
Terminated at Thu Sep  2 06:40:48 2021
Results reported at Thu Sep  2 06:40:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin1421 159.427 -28.3816 607651201 607910401 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 :                                   560.54 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   630 sec.
    Turnaround time :                            812 sec.

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

