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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin768
RA = 159.427, Dec = -28.3816
tmin = 438393601, tmax = 438652801
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='28545', job_status='RUN', time_executed='2021-09-02 06:18:50.771134', time_epoch_executed='1630588730.77' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='768'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/28545

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/28545/ft1_4FGL_J1037.7-2822_daily_bin768.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/28545/ft2_4FGL_J1037.7-2822_daily_bin768.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/28545/ft1_4FGL_J1037.7-2822_daily_bin768.fits outfile=/scratch/kocevski/28545/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin768.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=438393601.0 tmax=438652801.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 6.37
user 6.11
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/28545/ft1_filtered_4FGL_J1037.7-2822_daily_bin768.fits" evtable="EVENTS" scfile=/scratch/kocevski/28545/ft2_4FGL_J1037.7-2822_daily_bin768.fits sctable="SC_DATA" outfile=/scratch/kocevski/28545/ltcube_438393601_438652801_4FGL_J1037.7-2822_daily_bin768.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/28545/ft2_4FGL_J1037.7-2822_daily_bin768.fits
.....................!
real 16.27
user 15.88
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/28545/ft1_filtered_4FGL_J1037.7-2822_daily_bin768.fits evtable="EVENTS" scfile=/scratch/kocevski/28545/ft2_4FGL_J1037.7-2822_daily_bin768.fits sctable="SC_DATA" expcube=/scratch/kocevski/28545/ltcube_438393601_438652801_4FGL_J1037.7-2822_daily_bin768.fits outfile=/scratch/kocevski/28545/expmap_438393601_438652801_4FGL_J1037.7-2822_daily_bin768.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/28545/ltcube_438393601_438652801_4FGL_J1037.7-2822_daily_bin768.fits
.....................!
real 192.47
user 187.16
sys 4.85

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/28545/ft1_filtered_4FGL_J1037.7-2822_daily_bin768.fits scfile=/scratch/kocevski/28545/ft2_4FGL_J1037.7-2822_daily_bin768.fits outfile=/scratch/kocevski/28545/cmap_438393601_438652801_4FGL_J1037.7-2822_daily_bin768.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/28545/ft1_filtered_4FGL_J1037.7-2822_daily_bin768.fits scfile=/scratch/kocevski/28545/ft2_4FGL_J1037.7-2822_daily_bin768.fits outfile=/scratch/kocevski/28545/cmap_HighResolution_438393601_438652801_4FGL_J1037.7-2822_daily_bin768.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.59
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/28545/ft1_filtered_4FGL_J1037.7-2822_daily_bin768.fits evtable="EVENTS" scfile=/scratch/kocevski/28545/ft2_4FGL_J1037.7-2822_daily_bin768.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/28545/Model_4FGL_J1037.7-2822_daily_bin768.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/28545/ft1_filtered_4FGL_J1037.7-2822_daily_bin768.fits.....................!
real 52.33
user 50.73
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9243       1.0000         .10000E-03   10000.    
     2 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.9269       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.149       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.340       1.0000         .10000E-03   10000.    
     6 'norm      '    12.270       1.0000         .10000E-03   10000.    
     7 'norm      '    4.2191       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9699       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4379       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.475       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .20685       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .35204E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.4600       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0609       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1141       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4515.885     FROM MIGRAD    STATUS=CONVERGED     95 CALLS     1707 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9231        2.5810        .18186E-05   -.89556E-03
   2  norm          .10000E-03    .91338       -.32989E-05** at limit **
   3  norm          5.9250        2.3421       -.41555E-05   -.24525E-03
   4  Prefactor     20.153        1.9073       -.20094E-05    .27485E-02
   5  Prefactor     13.340        1.0892       -.30287E-07    .43844E-03
   6  norm          12.259        3.0449        .41044E-05   -.19327E-02
   7  norm          4.2232        1.4667       -.14285E-05    .22197E-03
   8  Prefactor     7.9698        7.9232        .13301E-04    .31528E-02
   9  Prefactor     .10009E-03    21.409        .37899E-04** at limit **
  10  Prefactor     .10013E-03    22.169       -.21585E-04** at limit **
  11  norm          1.4409        5.1153        .16632E-05    .32604E-04
  12  Prefactor     13.479        4.5394       -.61869E-05    .43579E-02
  13  Prefactor     .10000E-03    6.1797       -.22249E-05** at limit **
  14  Prefactor     .10000E-03    4.4978       -.86040E-07** at limit **
  15  Prefactor     .10000E-03    2.3922       -.27611E-06** at limit **
  16  Prefactor     .10472E-03    894.21       -.28748E-05** at limit **
  17  Prefactor     .13702E-03    24.048        .49326E-04** at limit **
  18  Prefactor     8.4330        13.574        .10250E-04    .53342E-02
  19  Normalizat    1.0607        .36270        .12776E-04    .93312E-04
  20  Prefactor     1.1143        .18315       -.10768E-04    .21097E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.92307
  norm       = 0.0001
  norm       = 5.92503
  Prefactor  = 20.1528
  Prefactor  = 13.3403
  norm       = 12.2588
  norm       = 4.22324
  Prefactor  = 7.96982
  Prefactor  = 0.000100094
  Prefactor  = 0.000100126
  norm       = 1.44087
  Prefactor  = 13.4789
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000104716
  Prefactor  = 0.000137024
  Prefactor  = 8.43301
  Normalizat = 1.06069
  Prefactor  = 1.11435
 **********
 **   18 **HESSE 
 **********

 FCN=   4515.885     FROM HESSE     STATUS=OK           337 CALLS     2044 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9231        8.9751        .50912E-02   -1.5312    
   2  norm          .10000E-03    .89897        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.9250        10.397        .41236E-02   -1.5221    
   4  Prefactor     20.153        40.028        .22307E-02   -1.4810    
   5  Prefactor     13.340        13.844        .27416E-02   -1.4977    
   6  norm          12.259        19.341        .28589E-02   -1.5008    
   7  norm          4.2232        15.309        .49046E-02   -1.5297    
   8  Prefactor     7.9698        8.2062        .35507E-02   -1.5143    
   9  Prefactor     .10009E-03    22.213        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10013E-03    23.169        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4409        5.1871        .89974E-02   -1.5468    
  12  Prefactor     13.479        28.754        .27279E-02   -1.4974    
  13  Prefactor     .10000E-03    6.0777        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.4989        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.3864        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10472E-03    11.353        .10009       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .13702E-03    151.87        .10660E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.4330        14.904        .34456E-02   -1.5127    
  19  Normalizat    1.0607        .31841        .83571E-01   -.91024    
  20  Prefactor     1.1143        .15689        .37073E-01   -.89009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.52223e-07
Minuit parameter uncertainties:
  1  8.97814
  2  9.20358e-06
  3  10.4004
  4  40.081
  5  13.8477
  6  19.3505
  7  15.3237
  8  8.20735
  9  0.00289601
  10  0.00342131
  11  5.18869
  12  28.7834
  13  1.89873e-06
  14  1.45578e-06
  15  4.85078e-06
  16  0.0146371
  17  0.15035
  18  14.9101
  19  0.318989
  20  0.156951
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.441e+00  5.189e+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.114e+00  1.570e-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.061e+00  3.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/28545/likelihoodResults_438393601_438652801_4FGL_J1037.7-2822_daily_bin768.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) = 4515.87489813
delta logL = 0.00963068008969

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4515.87453858
delta logL = 0.00999022510405

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3423       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6128       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0565       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1154       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=   4515.875     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      245 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3425        5.0451        .23723E-03    .42939E-04
   2  alpha         2.6142        1.4937        .28629E-01    .61663E-05
   3  Normalizat    1.0568        .36357        .37060E-03    .74544E-05
   4  Prefactor     1.1152        .18318        .18195E-03   -.10622E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.34248
  alpha      = 2.61421
  Normalizat = 1.05682
  Prefactor  = 1.11519
 **********
 **   18 **HESSE 
 **********

 FCN=   4515.875     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3425        4.6903        .94891E-05   -1.5476    
   2  alpha         2.6142        1.4024        .11451E-02    .45699E-01
   3  Normalizat    1.0568        .36398        .14824E-04   -.91150    
   4  Prefactor     1.1152        .18329        .72779E-05   -.88983    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22316e-12
Minuit parameter uncertainties:
  1  4.69161
  2  1.48906
  3  0.364846
  4  0.183398
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/28545': 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) = 4515.87453749
delta logL = 0.00999131482422

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.342e+00  4.692e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.614e+00  1.489e+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.115e+00  1.834e-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.057e+00  3.648e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/28545/cmap_HighResolution_438393601_438652801_4FGL_J1037.7-2822_daily_bin768.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.24e-05', job_status='DONE', photon_flux_upper_limit='1.57e-07', time_completed='2021-09-02 06:27:44.783853', job_id='28545', GAL2='1.12', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630589264.78', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='9.99e-03', ts2='0.11', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='768' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:27:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 28545: <4FGL_J1037.7-2822_daily_bin768> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin768> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Sep  2 06:16:32 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:16:34 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:16:34 2021
Terminated at Thu Sep  2 06:27:45 2021
Results reported at Thu Sep  2 06:27:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin768 159.427 -28.3816 438393601 438652801 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 :                                   531.44 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             297.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            673 sec.

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

