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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin1290
RA = 159.427, Dec = -28.3816
tmin = 573696001, tmax = 573955201
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='31466', job_status='RUN', time_executed='2021-09-02 06:29:39.322426', time_epoch_executed='1630589379.32' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='1290'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31466

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31466/ft1_4FGL_J1037.7-2822_daily_bin1290.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31466/ft2_4FGL_J1037.7-2822_daily_bin1290.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31466/ft1_4FGL_J1037.7-2822_daily_bin1290.fits outfile=/scratch/kocevski/31466/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin1290.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=573696001.0 tmax=573955201.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 4.59
user 4.31
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31466/ft1_filtered_4FGL_J1037.7-2822_daily_bin1290.fits" evtable="EVENTS" scfile=/scratch/kocevski/31466/ft2_4FGL_J1037.7-2822_daily_bin1290.fits sctable="SC_DATA" outfile=/scratch/kocevski/31466/ltcube_573696001_573955201_4FGL_J1037.7-2822_daily_bin1290.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/31466/ft2_4FGL_J1037.7-2822_daily_bin1290.fits
.....................!
real 12.32
user 11.99
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31466/ft1_filtered_4FGL_J1037.7-2822_daily_bin1290.fits evtable="EVENTS" scfile=/scratch/kocevski/31466/ft2_4FGL_J1037.7-2822_daily_bin1290.fits sctable="SC_DATA" expcube=/scratch/kocevski/31466/ltcube_573696001_573955201_4FGL_J1037.7-2822_daily_bin1290.fits outfile=/scratch/kocevski/31466/expmap_573696001_573955201_4FGL_J1037.7-2822_daily_bin1290.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/31466/ltcube_573696001_573955201_4FGL_J1037.7-2822_daily_bin1290.fits
.....................!
real 195.54
user 188.49
sys 6.27

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/31466/ft1_filtered_4FGL_J1037.7-2822_daily_bin1290.fits scfile=/scratch/kocevski/31466/ft2_4FGL_J1037.7-2822_daily_bin1290.fits outfile=/scratch/kocevski/31466/cmap_573696001_573955201_4FGL_J1037.7-2822_daily_bin1290.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31466/ft1_filtered_4FGL_J1037.7-2822_daily_bin1290.fits scfile=/scratch/kocevski/31466/ft2_4FGL_J1037.7-2822_daily_bin1290.fits outfile=/scratch/kocevski/31466/cmap_HighResolution_573696001_573955201_4FGL_J1037.7-2822_daily_bin1290.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31466/ft1_filtered_4FGL_J1037.7-2822_daily_bin1290.fits evtable="EVENTS" scfile=/scratch/kocevski/31466/ft2_4FGL_J1037.7-2822_daily_bin1290.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31466/Model_4FGL_J1037.7-2822_daily_bin1290.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/31466/ft1_filtered_4FGL_J1037.7-2822_daily_bin1290.fits.....................!
real 98.26
user 96.67
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8104       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3274       1.0000         .10000E-03   10000.    
     3 'norm      '    10.990       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19601E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    19.381       1.0000         .10000E-03   10000.    
     7 'norm      '    1.5058       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.9716       1.0000         .10000E-03   10000.    
    11 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21083E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13246       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14358E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1863       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3667       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .75240       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=   9698.846     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     1774 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8106        5.4799       -.89227E-07   -.52844E-04
   2  norm          1.3278        .89693       -.57451E-07   -.56194E-03
   3  norm          11.021        6.8327        .10383E-05   -.28168E-03
   4  Prefactor     .10000E-03    22.532        .72692E-05** at limit **
   5  Prefactor     .10000E-03    2.8479       -.11244E-05** at limit **
   6  norm          19.384        9.4174        .46480E-07    .31052E-03
   7  norm          1.4794        7.9343       -.49384E-05   -.58579E-03
   8  Prefactor     .10000E-03    1.8757       -.88819E-07** at limit **
   9  Prefactor     .10000E-03    12.599       -.14812E-05** at limit **
  10  Prefactor     9.9782        10.485        .32665E-06   -.92375E-04
  11  norm          .10000E-03    1.8394        .50452E-07** at limit **
  12  Prefactor     .10000E-03    4.9043       -.82962E-06** at limit **
  13  Prefactor     .10000E-03    2.8304        .10079E-05** at limit **
  14  Prefactor     .10000E-03    5.6211        .11051E-05** at limit **
  15  Prefactor     .15842        1.5809       -.85544E-06    .85204E-03
  16  Prefactor     .10000E-03    2.5065        .12084E-06** at limit **
  17  Prefactor     .10000E-03    31.397       -.10347E-04** at limit **
  18  Prefactor     2.1835        7.0620       -.12581E-05   -.28403E-03
  19  Normalizat    1.3665        .17083        .49752E-06    .20399E-03
  20  Prefactor     .75240        .86521E-01    .13109E-06    .26674E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.81057
  norm       = 1.32782
  norm       = 11.0213
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 19.3843
  norm       = 1.47937
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.97817
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.158416
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 2.18351
  Normalizat = 1.36646
  Prefactor  = 0.752405
 **********
 **   18 **HESSE 
 **********

 FCN=   9698.846     FROM HESSE     STATUS=OK           293 CALLS     2067 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8106        5.4796        .18343E-03   -1.5269    
   2  norm          1.3278        .88721        .74014E-04   -1.5478    
   3  norm          11.021        6.7931        .12085E-03   -1.5044    
   4  Prefactor     .10000E-03    22.103        .20247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.8353        .16186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          19.384        9.2745        .90979E-04   -1.4827    
   7  norm          1.4794        9.8635        .34875E-03   -1.5465    
   8  Prefactor     .10000E-03    1.8821        .13172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.9782        10.414        .12689E-03   -1.5076    
  11  norm          .10000E-03    1.8821        .25925E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.9096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.9114        .32110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.6689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .15842        16.465        .23310E-02   -1.5628    
  16  Prefactor     .10000E-03    2.5312        .15224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    30.106        .20505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.1835        7.1551        .27837E-03   -1.5412    
  19  Normalizat    1.3665        .20261        .27476E-03   -.81604    
  20  Prefactor     .75240        .10281        .18432E-03   -1.0151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.67084e-09
Minuit parameter uncertainties:
  1  5.48018
  2  0.887214
  3  6.79353
  4  0.00046756
  5  2.18935e-05
  6  9.27522
  7  7.64138
  8  6.10422e-07
  9  6.12858e-05
  10  10.4155
  11  5.51405e-06
  12  2.22784e-05
  13  3.35419e-05
  14  3.98321e-05
  15  3.22993
  16  4.02725e-06
  17  0.000766193
  18  7.15786
  19  0.202732
  20  0.102837
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  5.514e-06  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.404e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
294         beta:  9.457e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
295           Eb:  8.993e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  7.524e-01  1.028e-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.366e+00  2.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 159.427 -28.382
Photon Flux Upper Limit: 5.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.97e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31466/likelihoodResults_573696001_573955201_4FGL_J1037.7-2822_daily_bin1290.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) = 9698.84869581
delta logL = -0.00253523439642

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9698.84616197
delta logL = -1.38754330692e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4346       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3661       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75249       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=   9698.703     FROM MIGRAD    STATUS=CONVERGED    188 CALLS      335 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .79879E-01    .13466        .90712E-02   -.54013E-02
   2  alpha         4.3955        .95560        .41169       -.84514E-04
   3  Normalizat    1.3324        .16880        .62773E-01    .11219E-04
   4  Prefactor     .76250        .86187E-01    .43096E-01   -.23223E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.079879
  alpha      = 4.39545
  Normalizat = 1.33237
  Prefactor  = 0.762496
 **********
 **   18 **HESSE 
 **********

 FCN=   9698.703     FROM HESSE     STATUS=OK            35 CALLS      370 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .79879E-01    .18465        .45745E-03   -1.5764    
   2  alpha         4.3955        1.0748        .58958E-01    2.2811    
   3  Normalizat    1.3324        .20828        .27765E-03   -.82605    
   4  Prefactor     .76250        .10405        .18319E-03   -1.0113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22962e-08
Minuit parameter uncertainties:
  1  0.18465
  2  1.17363
  3  0.208415
  4  0.104081
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31466': 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) = 9698.70268304
delta logL = 0.143477541475

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  7.988e-02  1.846e-01  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  4.395e+00  1.174e+00  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:  7.625e-01  1.041e-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.332e+00  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 159.427 -28.382

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/31466/cmap_HighResolution_573696001_573955201_4FGL_J1037.7-2822_daily_bin1290.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.97e-05', job_status='DONE', photon_flux_upper_limit='5.90e-08', time_completed='2021-09-02 06:42:45.354146', job_id='31466', GAL2='0.76', fit_tolerance='1e-08', EG2='1.33', EG='1.37', time_epoch_completed='1630590165.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.43e-01', ts2='0.31', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1290' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:42:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 31466: <4FGL_J1037.7-2822_daily_bin1290> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin1290> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 06:26:57 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:28:44 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:28:44 2021
Terminated at Thu Sep  2 06:42:46 2021
Results reported at Thu Sep  2 06:42:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin1290 159.427 -28.3816 573696001 573955201 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 :                                   782.07 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             316.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            949 sec.

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

