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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin869
RA = 159.427, Dec = -28.3816
tmin = 464572801, tmax = 464832001
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='30030', job_status='RUN', time_executed='2021-09-02 06:24:47.401264', time_epoch_executed='1630589087.4' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='869'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30030

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30030/ft1_4FGL_J1037.7-2822_daily_bin869.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30030/ft2_4FGL_J1037.7-2822_daily_bin869.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30030/ft1_4FGL_J1037.7-2822_daily_bin869.fits outfile=/scratch/kocevski/30030/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin869.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=464572801.0 tmax=464832001.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.44
user 3.18
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/30030/ft2_4FGL_J1037.7-2822_daily_bin869.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/30030/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin869.fits evtable="EVENTS" outfile="/scratch/kocevski/30030/ft1_filtered_4FGL_J1037.7-2822_daily_bin869.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/30030/ft1_filtered_4FGL_J1037.7-2822_daily_bin869.fits" evtable="EVENTS" scfile=/scratch/kocevski/30030/ft2_4FGL_J1037.7-2822_daily_bin869.fits sctable="SC_DATA" outfile=/scratch/kocevski/30030/ltcube_464572801_464832001_4FGL_J1037.7-2822_daily_bin869.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/30030/ft2_4FGL_J1037.7-2822_daily_bin869.fits
.....................!
real 13.28
user 12.76
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30030/ft1_filtered_4FGL_J1037.7-2822_daily_bin869.fits evtable="EVENTS" scfile=/scratch/kocevski/30030/ft2_4FGL_J1037.7-2822_daily_bin869.fits sctable="SC_DATA" expcube=/scratch/kocevski/30030/ltcube_464572801_464832001_4FGL_J1037.7-2822_daily_bin869.fits outfile=/scratch/kocevski/30030/expmap_464572801_464832001_4FGL_J1037.7-2822_daily_bin869.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/30030/ltcube_464572801_464832001_4FGL_J1037.7-2822_daily_bin869.fits
.....................!
real 194.96
user 189.79
sys 3.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/30030/ft1_filtered_4FGL_J1037.7-2822_daily_bin869.fits scfile=/scratch/kocevski/30030/ft2_4FGL_J1037.7-2822_daily_bin869.fits outfile=/scratch/kocevski/30030/cmap_464572801_464832001_4FGL_J1037.7-2822_daily_bin869.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.64
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/30030/ft1_filtered_4FGL_J1037.7-2822_daily_bin869.fits scfile=/scratch/kocevski/30030/ft2_4FGL_J1037.7-2822_daily_bin869.fits outfile=/scratch/kocevski/30030/cmap_HighResolution_464572801_464832001_4FGL_J1037.7-2822_daily_bin869.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.66
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/30030/ft1_filtered_4FGL_J1037.7-2822_daily_bin869.fits evtable="EVENTS" scfile=/scratch/kocevski/30030/ft2_4FGL_J1037.7-2822_daily_bin869.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/30030/Model_4FGL_J1037.7-2822_daily_bin869.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/30030/ft1_filtered_4FGL_J1037.7-2822_daily_bin869.fits.....................!
real 84.05
user 81.47
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3703       1.0000         .10000E-03   10000.    
     2 'norm      '    .44323E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    32.655       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .95279       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.801       1.0000         .10000E-03   10000.    
     7 'norm      '    5.1966       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9810       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.932       1.0000         .10000E-03   10000.    
    11 'norm      '    .12321E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .61184       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.833       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1709       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1515       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98479       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=   8280.536     FROM MIGRAD    STATUS=CONVERGED    424 CALLS     2100 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3697        6.7803        .23550E-06    .41869E-05
   2  norm          .44377E-01    .48164       -.39400E-07    .12818E-03
   3  norm          32.659        11.470       -.17696E-06    .33439E-04
   4  Prefactor     .94609        14.458       -.26387E-05    .37423E-03
   5  Prefactor     .10000E-03    12.268       -.10693E-05** at limit **
   6  norm          10.799        7.5440       -.19832E-07    .17937E-03
   7  norm          5.1967        5.2933        .16665E-05    .61541E-04
   8  Prefactor     4.9811        4.7842       -.23288E-07    .81120E-05
   9  Prefactor     .10000E-03    4.3770       -.10822E-06** at limit **
  10  Prefactor     20.903        16.072       -.25484E-05   -.52362E-03
  11  norm          .10001E-03    2.3148       -.72127E-07** at limit **
  12  Prefactor     .58052        8.0941       -.21803E-05    .48519E-03
  13  Prefactor     .10000E-03    4.9850       -.15204E-05** at limit **
  14  Prefactor     28.826        12.413        .54698E-06    .28898E-03
  15  Prefactor     1.1711        7.4922        .29253E-05    .72055E-04
  16  Prefactor     .10000E-03    6.2524        .13052E-06** at limit **
  17  Prefactor     .10000E-03    26.797        .22467E-05** at limit **
  18  Prefactor     .10000E-03    9.8714        .60835E-06** at limit **
  19  Normalizat    1.1515        .22285        .75294E-06    .32010E-03
  20  Prefactor     .98478        .10766       -.23922E-06    .51753E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.36971
  norm       = 0.0443774
  norm       = 32.6589
  Prefactor  = 0.94609
  Prefactor  = 0.0001
  norm       = 10.7989
  norm       = 5.19666
  Prefactor  = 4.98108
  Prefactor  = 0.0001
  Prefactor  = 20.9033
  norm       = 0.000100009
  Prefactor  = 0.580524
  Prefactor  = 0.0001
  Prefactor  = 28.8258
  Prefactor  = 1.17113
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.15151
  Prefactor  = 0.984781
 **********
 **   18 **HESSE 
 **********

 FCN=   8280.536     FROM HESSE     STATUS=OK           301 CALLS     2401 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3697        6.7738        .22042E-03   -1.5341    
   2  norm          .44377E-01    3.2638        .12154E-02   -1.5666    
   3  norm          32.659        11.468        .70121E-04   -1.4564    
   4  Prefactor     .94609        102.03        .62366E-02   -1.5513    
   5  Prefactor     .10000E-03    12.620        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.799        7.5392        .12191E-03   -1.5051    
   7  norm          5.1967        5.5185        .88171E-03   -1.5252    
   8  Prefactor     4.9811        4.7842        .18019E-03   -1.5262    
   9  Prefactor     .10000E-03    4.3826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.903        17.374        .87545E-04   -1.4793    
  11  norm          .10001E-03    4.8898        .26426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .58052        55.968        .46586E-02   -1.5556    
  13  Prefactor     .10000E-03    5.0565        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.826        12.481        .74612E-04   -1.4634    
  15  Prefactor     1.1711        8.0642        .42404E-03   -1.5492    
  16  Prefactor     .10000E-03    6.4574        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.9048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1515        .26301        .33471E-03   -.88115    
  20  Prefactor     .98478        .12911        .18534E-03   -.93239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58694e-08
Minuit parameter uncertainties:
  1  6.77533
  2  0.760342
  3  11.4687
  4  19.6836
  5  7.35449e-05
  6  7.53985
  7  5.51902
  8  4.78453
  9  2.75308e-06
  10  17.3779
  11  0.000429202
  12  11.4102
  13  1.15419e-05
  14  12.4819
  15  6.14721
  16  1.97327e-06
  17  0.00027361
  18  3.28632e-05
  19  0.263315
  20  0.129154
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  9.848e-01  1.292e-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.152e+00  2.633e-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: 8.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.89e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/30030/likelihoodResults_464572801_464832001_4FGL_J1037.7-2822_daily_bin869.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) = 8280.53663024
delta logL = -0.000974302087343

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8280.5356565
delta logL = -5.60965418117e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11467E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4495       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1516       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98477       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=   8280.536     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      265 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10007E-03    6.7137        .21310E-02** at limit **
   2  alpha         2.5024        3.5879        .50000       -.51034E-04
   3  Normalizat    1.1515        .24390        .33471E-03    .11766E-03
   4  Prefactor     .98478        .12692        .18534E-03    .25731E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100067
  alpha      = 2.50235
  Normalizat = 1.15151
  Prefactor  = 0.984781
 **********
 **   18 **HESSE 
 **********

 FCN=   8280.536     FROM HESSE     STATUS=OK            29 CALLS      294 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10007E-03    6.0901        .42620E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5024        3.5538        .50000        .94057E-03
   3  Normalizat    1.1515        .24408        .13388E-04   -.88115    
   4  Prefactor     .98478        .12703        .37068E-04   -.93239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44414e-08
Minuit parameter uncertainties:
  1  0.00128172
  2  2.50517
  3  0.244322
  4  0.127066
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30030': 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) = 8280.53565397
delta logL = 1.96244036488e-06

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.001e-04  1.282e-03  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.502e+00  2.505e+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:  9.848e-01  1.271e-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.152e+00  2.443e-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/30030/cmap_HighResolution_464572801_464832001_4FGL_J1037.7-2822_daily_bin869.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.89e-05', job_status='DONE', photon_flux_upper_limit='8.67e-08', time_completed='2021-09-02 06:36:53.724253', job_id='30030', GAL2='0.98', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630589813.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.96e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='869' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:36:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 30030: <4FGL_J1037.7-2822_daily_bin869> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin869> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 06:21:40 2021
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:22:39 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:22:39 2021
Terminated at Thu Sep  2 06:36:54 2021
Results reported at Thu Sep  2 06:36:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin869 159.427 -28.3816 464572801 464832001 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 :                                   721.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            914 sec.

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

