/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 194 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 = 7386
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1037.7-2822_daily_bin325
RA = 159.427, Dec = -28.3816
tmin = 323568001, tmax = 323827201
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='27061', job_status='RUN', time_executed='2021-09-02 06:15:51.032007', time_epoch_executed='1630588551.03' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='325'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/27061

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/27061/ft1_4FGL_J1037.7-2822_daily_bin325.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/27061/ft2_4FGL_J1037.7-2822_daily_bin325.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/27061/ft1_4FGL_J1037.7-2822_daily_bin325.fits outfile=/scratch/kocevski/27061/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin325.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=323568001.0 tmax=323827201.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.46
user 3.08
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/27061/ft1_filtered_4FGL_J1037.7-2822_daily_bin325.fits" evtable="EVENTS" scfile=/scratch/kocevski/27061/ft2_4FGL_J1037.7-2822_daily_bin325.fits sctable="SC_DATA" outfile=/scratch/kocevski/27061/ltcube_323568001_323827201_4FGL_J1037.7-2822_daily_bin325.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/27061/ft2_4FGL_J1037.7-2822_daily_bin325.fits
.....................!
real 12.18
user 11.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/27061/ft1_filtered_4FGL_J1037.7-2822_daily_bin325.fits evtable="EVENTS" scfile=/scratch/kocevski/27061/ft2_4FGL_J1037.7-2822_daily_bin325.fits sctable="SC_DATA" expcube=/scratch/kocevski/27061/ltcube_323568001_323827201_4FGL_J1037.7-2822_daily_bin325.fits outfile=/scratch/kocevski/27061/expmap_323568001_323827201_4FGL_J1037.7-2822_daily_bin325.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/27061/ltcube_323568001_323827201_4FGL_J1037.7-2822_daily_bin325.fits
.....................!
real 190.28
user 185.46
sys 4.26

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/27061/ft1_filtered_4FGL_J1037.7-2822_daily_bin325.fits scfile=/scratch/kocevski/27061/ft2_4FGL_J1037.7-2822_daily_bin325.fits outfile=/scratch/kocevski/27061/cmap_323568001_323827201_4FGL_J1037.7-2822_daily_bin325.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.57
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/27061/ft1_filtered_4FGL_J1037.7-2822_daily_bin325.fits scfile=/scratch/kocevski/27061/ft2_4FGL_J1037.7-2822_daily_bin325.fits outfile=/scratch/kocevski/27061/cmap_HighResolution_323568001_323827201_4FGL_J1037.7-2822_daily_bin325.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.58
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/27061/ft1_filtered_4FGL_J1037.7-2822_daily_bin325.fits evtable="EVENTS" scfile=/scratch/kocevski/27061/ft2_4FGL_J1037.7-2822_daily_bin325.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/27061/Model_4FGL_J1037.7-2822_daily_bin325.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/27061/ft1_filtered_4FGL_J1037.7-2822_daily_bin325.fits.....................!
real 62.89
user 61.43
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .73793       1.0000         .10000E-03   10000.    
     3 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    29.495       1.0000         .10000E-03   10000.    
     7 'norm      '    29.540       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2937       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13132E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .37415       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0817       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.2500       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .23584E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7583       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.671       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4964       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .77933       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=   5524.178     FROM MIGRAD    STATUS=CONVERGED    759 CALLS     2744 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.0092        .16243E-02** at limit **
   2  norm          .73761        1.5675        .13243E-03    .62563E-03
   3  norm          .10000E-03    14.087        .18142E-02** at limit **
   4  Prefactor     .10001E-03    42.845        .18142E-02** at limit **
   5  Prefactor     .10000E-03    38.130        .36285E-03** at limit **
   6  norm          29.494        18.025        .73772E-04    .32362E-05
   7  norm          29.541        13.958        .73715E-04   -.58605E-04
   8  Prefactor     1.2943        7.2241        .19395E-02    .14310E-03
   9  Prefactor     .10000E-03    40.146        .18142E-02** at limit **
  10  Prefactor     .10004E-03    78.712        .94428E-01** at limit **
  11  norm          .38688        54.830        .23937E-02    .80534E-04
  12  Prefactor     2.0902        39.122        .28621E-03    .40397E-04
  13  Prefactor     6.2419        8.6054        .16057E-03   -.14727E-03
  14  Prefactor     .10000E-03    12.880        .18142E-02** at limit **
  15  Prefactor     .10000E-03    1.7739        .96590E-03** at limit **
  16  Prefactor     .10006E-03    15.813        .33881E-02** at limit **
  17  Prefactor     1.8524        477.86        .31604E-03    .10792E-05
  18  Prefactor     17.610        25.541        .95278E-04    .71116E-04
  19  Normalizat    1.4964        .32453        .31064E-03   -.45166E-03
  20  Prefactor     .77930        .15012        .19921E-03   -.47583E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.737611
  norm       = 0.000100001
  Prefactor  = 0.000100008
  Prefactor  = 0.000100004
  norm       = 29.4938
  norm       = 29.5414
  Prefactor  = 1.29433
  Prefactor  = 0.0001
  Prefactor  = 0.000100039
  norm       = 0.386877
  Prefactor  = 2.09022
  Prefactor  = 6.24187
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100063
  Prefactor  = 1.85243
  Prefactor  = 17.6098
  Normalizat = 1.49643
  Prefactor  = 0.779302
 **********
 **   18 **HESSE 
 **********

 FCN=   5524.178     FROM HESSE     STATUS=OK           285 CALLS     3029 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.0092        .32486E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .73761        1.5673        .52974E-05   -1.5536    
   3  norm          .10000E-03    14.095        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    42.851        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    38.131        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          29.494        18.025        .29509E-05   -1.4621    
   7  norm          29.541        13.958        .29486E-05   -1.4620    
   8  Prefactor     1.2943        7.2180        .77579E-04   -1.5480    
   9  Prefactor     .10000E-03    40.170        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10004E-03    59.811        .10006       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .38688        42.417        .95750E-04   -1.5584    
  12  Prefactor     2.0902        38.997        .11448E-04   -1.5419    
  13  Prefactor     6.2419        8.4368        .64228E-05   -1.5208    
  14  Prefactor     .10000E-03    12.884        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.7740        .19318E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10006E-03    15.925        .67761E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.8524        476.04        .12642E-04   -1.5436    
  18  Prefactor     17.610        25.492        .38111E-05   -1.4868    
  19  Normalizat    1.4964        .32475        .62129E-04   -.77879    
  20  Prefactor     .77930        .15018        .39842E-04   -1.0050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.3329e-09
Minuit parameter uncertainties:
  1  8.92714e-06
  2  1.56735
  3  0.000175302
  4  0.00115926
  5  0.000805765
  6  18.0288
  7  13.9594
  8  6.114
  9  0.000183852
  10  0.00305752
  11  8.10678
  12  18.07
  13  8.43845
  14  6.27493e-05
  15  2.19882e-06
  16  0.00200824
  17  59.877
  18  25.5074
  19  0.325204
  20  0.150256
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  3.869e-01  8.107e+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:  7.793e-01  1.503e-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.496e+00  3.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/27061/likelihoodResults_323568001_323827201_4FGL_J1037.7-2822_daily_bin325.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): 102
logL (Free Index) = 5524.09922696
delta logL = 0.0784693462656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5524.06759407
delta logL = 0.110102234306

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .86219       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4127       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4556       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78868       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=   5524.068     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      216 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .86535        37.068        .12670E-01    .10412E-02
   2  alpha         3.4118        4.1347        .45305        .32608E-04
   3  Normalizat    1.4554        .47098E-01    .70970E-01    .90965E-05
   4  Prefactor     .78864        .22851E-01    .43570E-01   -.56423E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.865351
  alpha      = 3.41178
  Normalizat = 1.45545
  Prefactor  = 0.788643
 **********
 **   18 **HESSE 
 **********

 FCN=   5524.068     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .86535        17.567        .13426E-03   -1.5522    
   2  alpha         3.4118        4.1727        .25159E-01    .37332    
   3  Normalizat    1.4554        .32576        .31400E-03   -.79038    
   4  Prefactor     .78864        .15424        .19804E-03   -1.0015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13339e-07
Minuit parameter uncertainties:
  1  7.80007
  2  5.06354
  3  0.326224
  4  0.154322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/27061': 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) = 5524.0675929
delta logL = 0.110103406907

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  8.654e-01  7.800e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  3.412e+00  5.064e+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.886e-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.455e+00  3.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/27061/cmap_HighResolution_323568001_323827201_4FGL_J1037.7-2822_daily_bin325.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.94e-05', job_status='DONE', photon_flux_upper_limit='1.48e-07', time_completed='2021-09-02 06:26:08.952161', job_id='27061', GAL2='0.79', fit_tolerance='1e-08', EG2='1.46', EG='1.50', time_epoch_completed='1630589168.95', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.10e-01', ts2='0.24', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='325' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:26:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 27061: <4FGL_J1037.7-2822_daily_bin325> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin325> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep  2 06:12:15 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:12:16 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:12:16 2021
Terminated at Thu Sep  2 06:26:09 2021
Results reported at Thu Sep  2 06:26:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin325 159.427 -28.3816 323568001 323827201 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 :                                   614.38 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             283.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            834 sec.

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

