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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin1018
RA = 159.427, Dec = -28.3816
tmin = 503193601, tmax = 503452801
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='30252', job_status='RUN', time_executed='2021-09-02 06:24:31.762511', time_epoch_executed='1630589071.76' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='1018'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30252

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30252/ft1_4FGL_J1037.7-2822_daily_bin1018.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30252/ft2_4FGL_J1037.7-2822_daily_bin1018.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30252/ft1_4FGL_J1037.7-2822_daily_bin1018.fits outfile=/scratch/kocevski/30252/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin1018.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=503193601.0 tmax=503452801.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 5.20
user 4.92
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/30252/ft1_filtered_4FGL_J1037.7-2822_daily_bin1018.fits" evtable="EVENTS" scfile=/scratch/kocevski/30252/ft2_4FGL_J1037.7-2822_daily_bin1018.fits sctable="SC_DATA" outfile=/scratch/kocevski/30252/ltcube_503193601_503452801_4FGL_J1037.7-2822_daily_bin1018.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/30252/ft2_4FGL_J1037.7-2822_daily_bin1018.fits
.....................!
real 15.17
user 14.75
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30252/ft1_filtered_4FGL_J1037.7-2822_daily_bin1018.fits evtable="EVENTS" scfile=/scratch/kocevski/30252/ft2_4FGL_J1037.7-2822_daily_bin1018.fits sctable="SC_DATA" expcube=/scratch/kocevski/30252/ltcube_503193601_503452801_4FGL_J1037.7-2822_daily_bin1018.fits outfile=/scratch/kocevski/30252/expmap_503193601_503452801_4FGL_J1037.7-2822_daily_bin1018.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/30252/ltcube_503193601_503452801_4FGL_J1037.7-2822_daily_bin1018.fits
.....................!
real 192.87
user 186.27
sys 5.84

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/30252/ft1_filtered_4FGL_J1037.7-2822_daily_bin1018.fits scfile=/scratch/kocevski/30252/ft2_4FGL_J1037.7-2822_daily_bin1018.fits outfile=/scratch/kocevski/30252/cmap_503193601_503452801_4FGL_J1037.7-2822_daily_bin1018.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.85
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/30252/ft1_filtered_4FGL_J1037.7-2822_daily_bin1018.fits scfile=/scratch/kocevski/30252/ft2_4FGL_J1037.7-2822_daily_bin1018.fits outfile=/scratch/kocevski/30252/cmap_HighResolution_503193601_503452801_4FGL_J1037.7-2822_daily_bin1018.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.68
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/30252/ft1_filtered_4FGL_J1037.7-2822_daily_bin1018.fits evtable="EVENTS" scfile=/scratch/kocevski/30252/ft2_4FGL_J1037.7-2822_daily_bin1018.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/30252/Model_4FGL_J1037.7-2822_daily_bin1018.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/30252/ft1_filtered_4FGL_J1037.7-2822_daily_bin1018.fits.....................!
real 71.69
user 70.05
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    1.0164       1.0000         .10000E-03   10000.    
     3 'norm      '    43.317       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.4703       1.0000         .10000E-03   10000.    
     7 'norm      '    1.8310       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.7378       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5270       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.0136       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .30899E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11729E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.371       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .61184       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2806       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=   7064.349     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2125 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.1082        .15198E-06** at limit **
   2  norm          1.0162        1.3894       -.35347E-07   -.76293E-04
   3  norm          43.319        15.362        .45443E-06    .97537E-04
   4  Prefactor     .10000E-03    60.756       -.68188E-05** at limit **
   5  Prefactor     .10000E-03    5.1976        .10551E-07** at limit **
   6  norm          6.4764        8.2241       -.18174E-05   -.55128E-03
   7  norm          1.8195        9.7611       -.53769E-05   -.42317E-03
   8  Prefactor     9.7382        9.3798       -.18304E-06   -.13867E-04
   9  Prefactor     1.5280        1.1239        .41115E-06   -.22584E-03
  10  Prefactor     .10000E-03    13.925        .13758E-06** at limit **
  11  norm          2.0128        3.5840       -.79502E-07   -.17224E-03
  12  Prefactor     .10000E-03    6.6681       -.13383E-06** at limit **
  13  Prefactor     .10000E-03    2.6090       -.73176E-07** at limit **
  14  Prefactor     .10295E-03    8.0908        .27620E-05** at limit **
  15  Prefactor     .11513E-03    3.0410       -.13791E-05** at limit **
  16  Prefactor     18.371        11.640       -.26220E-06   -.17120E-03
  17  Prefactor     .10000E-03    16.686       -.78545E-08** at limit **
  18  Prefactor     .10000E-03    3.7191       -.15552E-07** at limit **
  19  Normalizat    .61184        .25705        .11027E-05   -.48139E-04
  20  Prefactor     1.2806        .13042        .39461E-07   -.11571E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.01622
  norm       = 43.3194
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 6.4764
  norm       = 1.81952
  Prefactor  = 9.73819
  Prefactor  = 1.52799
  Prefactor  = 0.0001
  norm       = 2.01276
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010295
  Prefactor  = 0.000115132
  Prefactor  = 18.371
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.611836
  Prefactor  = 1.28056
 **********
 **   18 **HESSE 
 **********

 FCN=   7064.349     FROM HESSE     STATUS=OK           305 CALLS     2430 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.1514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0162        1.2283        .11045E-02   -1.5506    
   3  norm          43.319        15.373        .60912E-04   -1.4391    
   4  Prefactor     .10000E-03    61.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.2046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.4764        8.0635        .15778E-03   -1.5199    
   7  norm          1.8195        9.6227        .30842E-03   -1.5438    
   8  Prefactor     9.7382        9.3696        .12842E-03   -1.5084    
   9  Prefactor     1.5280        21.314        .17276E-02   -1.5461    
  10  Prefactor     .10000E-03    13.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.0128        3.5689        .20036E-03   -1.5424    
  12  Prefactor     .10000E-03    6.6836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.6423        .13225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10295E-03    100.09        .38903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11513E-03    6.2794        .43148E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.371        11.643        .93445E-04   -1.4850    
  17  Prefactor     .10000E-03    16.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.7240        .15830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .61184        .27255        .44226E-03   -1.0748    
  20  Prefactor     1.2806        .14255        .16775E-03   -.83887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21323e-08
Minuit parameter uncertainties:
  1  7.4558e-06
  2  1.22828
  3  15.3744
  4  0.000996381
  5  5.85073e-06
  6  8.06483
  7  8.37052
  8  9.37099
  9  11.418
  10  1.56064e-05
  11  3.56924
  12  7.80523e-06
  13  1.06216e-05
  14  0.0344249
  15  0.0194975
  16  11.644
  17  3.77837e-06
  18  1.5464e-06
  19  0.273151
  20  0.142591
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  2.013e+00  3.569e+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.281e+00  1.426e-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:  6.118e-01  2.732e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/30252/likelihoodResults_503193601_503452801_4FGL_J1037.7-2822_daily_bin1018.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) = 7064.34710269
delta logL = 0.00236619727184

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7064.34665349
delta logL = 0.00281539538719

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0974       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2678       1.0000          .0000       5.0000    
     3 'Normalizat'    .61616       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2792       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=   7064.347     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      251 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0973        3.8662        .20804E-03    .51318E-03
   2  alpha         2.2678        1.6563        .36698E-01    .18984E-04
   3  Normalizat    .61617        .27127        .44078E-03   -.34820E-05
   4  Prefactor     1.2792        .14281        .16782E-03   -.92809E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.09726
  alpha      = 2.26783
  Normalizat = 0.61617
  Prefactor  = 1.27923
 **********
 **   18 **HESSE 
 **********

 FCN=   7064.347     FROM HESSE     STATUS=OK            23 CALLS      274 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0973        3.7641        .83217E-05   -1.5418    
   2  alpha         2.2678        1.6178        .14679E-02   -.93001E-01
   3  Normalizat    .61617        .27059        .17631E-04   -1.0730    
   4  Prefactor     1.2792        .14264        .67127E-05   -.83927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98507e-10
Minuit parameter uncertainties:
  1  3.76449
  2  1.76109
  3  0.271174
  4  0.142681
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30252': 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) = 7064.34665349
delta logL = 0.00281539804473

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  2.097e+00  3.764e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.268e+00  1.761e+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:  1.279e+00  1.427e-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:  6.162e-01  2.712e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.43
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/30252/cmap_HighResolution_503193601_503452801_4FGL_J1037.7-2822_daily_bin1018.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.87e-05', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-02 06:35:50.568803', job_id='30252', GAL2='1.28', fit_tolerance='1e-08', EG2='0.62', EG='0.61', time_epoch_completed='1630589750.57', return_code2='0', ts='0.43', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='2.82e-03', ts2='0.43', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1018' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:35:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 30252: <4FGL_J1037.7-2822_daily_bin1018> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin1018 159.427 -28.3816 503193601 503452801 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 :                                   671.50 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            833 sec.

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

