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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin1046
RA = 159.427, Dec = -28.3816
tmin = 510451201, tmax = 510710401
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='31214', job_status='RUN', time_executed='2021-09-02 06:30:05.172823', time_epoch_executed='1630589405.17' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='1046'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31214

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31214/ft1_4FGL_J1037.7-2822_daily_bin1046.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31214/ft2_4FGL_J1037.7-2822_daily_bin1046.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31214/ft1_4FGL_J1037.7-2822_daily_bin1046.fits outfile=/scratch/kocevski/31214/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin1046.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=510451201.0 tmax=510710401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.05
user 3.74
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31214/ft1_filtered_4FGL_J1037.7-2822_daily_bin1046.fits" evtable="EVENTS" scfile=/scratch/kocevski/31214/ft2_4FGL_J1037.7-2822_daily_bin1046.fits sctable="SC_DATA" outfile=/scratch/kocevski/31214/ltcube_510451201_510710401_4FGL_J1037.7-2822_daily_bin1046.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/31214/ft2_4FGL_J1037.7-2822_daily_bin1046.fits
.....................!
real 14.08
user 13.73
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31214/ft1_filtered_4FGL_J1037.7-2822_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/31214/ft2_4FGL_J1037.7-2822_daily_bin1046.fits sctable="SC_DATA" expcube=/scratch/kocevski/31214/ltcube_510451201_510710401_4FGL_J1037.7-2822_daily_bin1046.fits outfile=/scratch/kocevski/31214/expmap_510451201_510710401_4FGL_J1037.7-2822_daily_bin1046.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/31214/ltcube_510451201_510710401_4FGL_J1037.7-2822_daily_bin1046.fits
.....................!
real 190.90
user 185.64
sys 4.44

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/31214/ft1_filtered_4FGL_J1037.7-2822_daily_bin1046.fits scfile=/scratch/kocevski/31214/ft2_4FGL_J1037.7-2822_daily_bin1046.fits outfile=/scratch/kocevski/31214/cmap_510451201_510710401_4FGL_J1037.7-2822_daily_bin1046.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31214/ft1_filtered_4FGL_J1037.7-2822_daily_bin1046.fits scfile=/scratch/kocevski/31214/ft2_4FGL_J1037.7-2822_daily_bin1046.fits outfile=/scratch/kocevski/31214/cmap_HighResolution_510451201_510710401_4FGL_J1037.7-2822_daily_bin1046.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .66235       1.0000         .10000E-03   10000.    
     3 'norm      '    .52253E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.258       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7870       1.0000         .10000E-03   10000.    
     6 'norm      '    9.9379       1.0000         .10000E-03   10000.    
     7 'norm      '    2.7353       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.490       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10849E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.299       1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.5371       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8814       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.161       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6109       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .42167       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3373       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7161.102     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2059 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1186         .0000    ** at limit **
   2  norm          .66277        1.5473         .0000        .16681E-02
   3  norm          .10000E-03    4.1992         .0000    ** at limit **
   4  Prefactor     28.256        28.809         .0000        .66067E-03
   5  Prefactor     4.7865        9.7867         .0000       -.29988E-03
   6  norm          9.9367        9.3097         .0000       -.11219E-02
   7  norm          2.7362        7.8664         .0000        .86437E-03
   8  Prefactor     12.490        8.8438         .0000       -.21638E-03
   9  Prefactor     .10000E-03    10.133         .0000    ** at limit **
  10  Prefactor     13.304        12.427         .0000        .45512E-02
  11  norm          .10000E-03    1.8345         .0000    ** at limit **
  12  Prefactor     8.5314        20.397         .0000       -.43361E-04
  13  Prefactor     2.8818        5.2983         .0000        .18221E-01
  14  Prefactor     14.163        12.145         .0000        .14566E-02
  15  Prefactor     .10000E-03    3.0741         .0000    ** at limit **
  16  Prefactor     .10000E-03    1.9055         .0000    ** at limit **
  17  Prefactor     3.6181        49.781         .0000       -.78936E-03
  18  Prefactor     .10000E-03    8.6038         .0000    ** at limit **
  19  Normalizat    .42154        .30463         .0000        .39866E-04
  20  Prefactor     1.3373        .14654         .0000       -.43737E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.662766
  norm       = 0.000100001
  Prefactor  = 28.2558
  Prefactor  = 4.78652
  norm       = 9.93666
  norm       = 2.73616
  Prefactor  = 12.4897
  Prefactor  = 0.0001
  Prefactor  = 13.3045
  norm       = 0.0001
  Prefactor  = 8.53142
  Prefactor  = 2.88178
  Prefactor  = 14.1627
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.61812
  Prefactor  = 0.0001
  Normalizat = 0.42154
  Prefactor  = 1.3373
 **********
 **   18 **HESSE 
 **********

 FCN=   7161.102     FROM HESSE     STATUS=OK           297 CALLS     2356 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1206        .14595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .66277        1.5056        .14565E-03   -1.5545    
   3  norm          .10000E-03    7.4621        .60262E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     28.256        28.585        .75366E-04   -1.4644    
   5  Prefactor     4.7865        9.7743        .18388E-03   -1.5270    
   6  norm          9.9367        9.2197        .12711E-03   -1.5077    
   7  norm          2.7362        7.7819        .24619E-03   -1.5377    
   8  Prefactor     12.490        8.8361        .11335E-03   -1.5001    
   9  Prefactor     .10000E-03    10.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.304        12.368        .10984E-03   -1.4978    
  11  norm          .10000E-03    1.8522        .11162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.5314        20.105        .13720E-03   -1.5124    
  13  Prefactor     2.8818        5.1999        .11188E-02   -1.5368    
  14  Prefactor     14.163        12.029        .10644E-03   -1.4955    
  15  Prefactor     .10000E-03    3.1106        .14477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.9078        .11408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.6181        49.630        .21263E-03   -1.5328    
  18  Prefactor     .10000E-03    8.6827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .42154        .28360        .51793E-03   -1.1620    
  20  Prefactor     1.3373        .14333        .16220E-03   -.82204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57252e-08
Minuit parameter uncertainties:
  1  3.8724e-05
  2  1.50566
  3  0.000181422
  4  28.599
  5  9.77757
  6  9.221
  7  7.78474
  8  8.83697
  9  6.86311e-05
  10  12.3701
  11  3.7031e-07
  12  20.1207
  13  5.20067
  14  12.0315
  15  3.47784e-05
  16  8.37756e-07
  17  26.8273
  18  3.99097e-05
  19  0.284569
  20  0.143374
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  3.703e-07  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.337e+00  1.434e-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:  4.215e-01  2.846e-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: 7.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.54e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31214/likelihoodResults_510451201_510710401_4FGL_J1037.7-2822_daily_bin1046.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) = 7161.10417288
delta logL = -0.00256171165347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7161.1016112
delta logL = -3.20414983435e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10135E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4223       1.0000          .0000       5.0000    
     3 'Normalizat'    .42151       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3373       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=   7161.102     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      196 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.0970        .90712E-02** at limit **
   2  alpha         2.4418        3.6236        .41177       -.54165E-04
   3  Normalizat    .42154        .26139        .11688        .17845E-03
   4  Prefactor     1.3373        .14075        .31989E-01    .27249E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.44183
  Normalizat = 0.421542
  Prefactor  = 1.3373
 **********
 **   18 **HESSE 
 **********

 FCN=   7161.102     FROM HESSE     STATUS=OK            31 CALLS      227 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9640        .11317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4418        3.5477        .50000       -.23272E-01
   3  Normalizat    .42154        .25800        .51793E-03   -1.1620    
   4  Prefactor     1.3373        .13952        .16220E-03   -.82204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06021e-09
Minuit parameter uncertainties:
  1  6.69766e-05
  2  2.53644
  3  0.258735
  4  0.139556
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31214': 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) = 7161.10161037
delta logL = 7.98227119958e-07

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  6.698e-05  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.442e+00  2.536e+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.337e+00  1.396e-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:  4.215e-01  2.587e-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/31214/cmap_HighResolution_510451201_510710401_4FGL_J1037.7-2822_daily_bin1046.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.54e-05', job_status='DONE', photon_flux_upper_limit='7.62e-08', time_completed='2021-09-02 06:41:03.529140', job_id='31214', GAL2='1.34', fit_tolerance='1e-08', EG2='0.42', EG='0.42', time_epoch_completed='1630590063.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='7.98e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1046' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:41:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 31214: <4FGL_J1037.7-2822_daily_bin1046> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin1046> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 06:26:21 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:26:24 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:26:24 2021
Terminated at Thu Sep  2 06:41:04 2021
Results reported at Thu Sep  2 06:41:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin1046 159.427 -28.3816 510451201 510710401 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 :                                   652.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            883 sec.

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

