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


Performing analysis on: 4FGL_J1037.7+5711_daily_bin681
RA = 159.429, Dec = 57.192
tmin = 415843201, tmax = 416102401
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='18394', job_status='RUN', time_executed='2021-09-02 05:45:28.557170', time_epoch_executed='1630586728.56' WHERE source_name='4FGL J1037.7+5711' and cadence='daily' and bin_id='681'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/18394

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/18394/ft1_4FGL_J1037.7+5711_daily_bin681.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/18394/ft2_4FGL_J1037.7+5711_daily_bin681.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/18394/ft1_4FGL_J1037.7+5711_daily_bin681.fits outfile=/scratch/kocevski/18394/ft1_filteredMKT_4FGL_J1037.7+5711_daily_bin681.fits ra=159.429 dec=57.192 rad=12.0 tmin=415843201.0 tmax=416102401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.94
user 5.63
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/18394/ft2_4FGL_J1037.7+5711_daily_bin681.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/18394/ft2_4FGL_J1037.7+5711_daily_bin681.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/18394/ft1_filteredMKT_4FGL_J1037.7+5711_daily_bin681.fits evtable="EVENTS" outfile="/scratch/kocevski/18394/ft1_filtered_4FGL_J1037.7+5711_daily_bin681.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.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/18394/ft1_filtered_4FGL_J1037.7+5711_daily_bin681.fits" evtable="EVENTS" scfile=/scratch/kocevski/18394/ft2_4FGL_J1037.7+5711_daily_bin681.fits sctable="SC_DATA" outfile=/scratch/kocevski/18394/ltcube_415843201_416102401_4FGL_J1037.7+5711_daily_bin681.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/18394/ft2_4FGL_J1037.7+5711_daily_bin681.fits
.....................!
real 13.40
user 13.03
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/18394/ft1_filtered_4FGL_J1037.7+5711_daily_bin681.fits evtable="EVENTS" scfile=/scratch/kocevski/18394/ft2_4FGL_J1037.7+5711_daily_bin681.fits sctable="SC_DATA" expcube=/scratch/kocevski/18394/ltcube_415843201_416102401_4FGL_J1037.7+5711_daily_bin681.fits outfile=/scratch/kocevski/18394/expmap_415843201_416102401_4FGL_J1037.7+5711_daily_bin681.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/18394/ltcube_415843201_416102401_4FGL_J1037.7+5711_daily_bin681.fits
.....................!
real 190.80
user 185.34
sys 5.02

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 240 point sources and 0 extended sources

Setting source of interest to:
4FGL J1037.7+5711 @ 159.429 57.192

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/18394/ft1_filtered_4FGL_J1037.7+5711_daily_bin681.fits scfile=/scratch/kocevski/18394/ft2_4FGL_J1037.7+5711_daily_bin681.fits outfile=/scratch/kocevski/18394/cmap_415843201_416102401_4FGL_J1037.7+5711_daily_bin681.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.429 yref=57.192 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/18394/ft1_filtered_4FGL_J1037.7+5711_daily_bin681.fits scfile=/scratch/kocevski/18394/ft2_4FGL_J1037.7+5711_daily_bin681.fits outfile=/scratch/kocevski/18394/cmap_HighResolution_415843201_416102401_4FGL_J1037.7+5711_daily_bin681.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.429 yref=57.192 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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/18394/ft1_filtered_4FGL_J1037.7+5711_daily_bin681.fits evtable="EVENTS" scfile=/scratch/kocevski/18394/ft2_4FGL_J1037.7+5711_daily_bin681.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/18394/Model_4FGL_J1037.7+5711_daily_bin681.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/18394/ft1_filtered_4FGL_J1037.7+5711_daily_bin681.fits.....................!
real 32.93
user 31.61
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/18394/ft1_filtered_4FGL_J1037.7+5711_daily_bin681.fits', '/scratch/kocevski/18394/ft2_4FGL_J1037.7+5711_daily_bin681.fits', expMap='/scratch/kocevski/18394/expmap_415843201_416102401_4FGL_J1037.7+5711_daily_bin681.fits', expCube='/scratch/kocevski/18394/ltcube_415843201_416102401_4FGL_J1037.7+5711_daily_bin681.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/18394/Model_4FGL_J1037.7+5711_daily_bin681.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1037.7+5711'

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  1.718e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
417        alpha:  1.758e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
418         beta:  7.199e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
419           Eb:  1.415e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/18394/ft1_filtered_4FGL_J1037.7+5711_daily_bin681.fits
Spacecraft file(s): /scratch/kocevski/18394/ft2_4FGL_J1037.7+5711_daily_bin681.fits
Exposure map: /scratch/kocevski/18394/expmap_415843201_416102401_4FGL_J1037.7+5711_daily_bin681.fits
Exposure cube: /scratch/kocevski/18394/ltcube_415843201_416102401_4FGL_J1037.7+5711_daily_bin681.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/18394/Model_4FGL_J1037.7+5711_daily_bin681.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) = 2599.12440977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7805       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.9731       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18343E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.0483       1.0000         .10000E-03   10000.    
    10 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2603       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.1549       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    37.316       1.0000         .10000E-03   10000.    
    17 'norm      '    7.4913       1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    486.54       1.0000         .10000E-03   10000.    
    22 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.026       1.0000         .10000E-03   10000.    
    24 'Prefactor '    75.893       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    8.3304       1.0000         .10000E-03   10000.    
    30 'norm      '    4.0994       1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.8825       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .67046       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1282       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2598.969     FROM MIGRAD    STATUS=CONVERGED    902 CALLS     4646 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1874        .13233E-06** at limit **
   2  Prefactor     2.7854        6.7831       -.68777E-06   -.23959E-04
   3  Prefactor     9.9840        29.597       -.12790E-05   -.38732E-05
   4  Prefactor     .10000E-03    9.7812       -.29661E-06** at limit **
   5  Prefactor     .10000E-03    6.0872       -.34070E-06** at limit **
   6  Prefactor     .10000E-03    138.99        .95987E-05** at limit **
   7  norm          .10000E-03    8.2223       -.43821E-06** at limit **
   8  Prefactor     .10000E-03    69.302       -.20599E-05** at limit **
   9  norm          2.0486        1.0430       -.18203E-07   -.16313E-05
  10  norm          .10000E-03    14.082       -.72721E-06** at limit **
  11  Prefactor     2.2645        8.9556        .10291E-05    .20385E-04
  12  norm          .10000E-03    .98940       -.74551E-06** at limit **
  13  norm          3.1554        3.0066       -.73077E-07   -.18188E-04
  14  Prefactor     .10000E-03    38.009        .12034E-05** at limit **
  15  norm          .10000E-03    16.593        .69500E-07** at limit **
  16  Prefactor     37.353        68.901        .95660E-06   -.26574E-05
  17  norm          7.4857        8.9758       -.17861E-06    .76997E-05
  18  norm          .10000E-03    1.3627        .42214E-06** at limit **
  19  Prefactor     .10000E-03    192.56        .18141E-05** at limit **
  20  Prefactor     .10000E-03    239.72        .89476E-05** at limit **
  21  Prefactor     486.36        376.34       -.10782E-06   -.13927E-04
  22  norm          .10000E-03    2.4986        .87862E-06** at limit **
  23  Prefactor     28.253        137.38        .10269E-05    .50812E-06
  24  Prefactor     75.919        48.213       -.56531E-06   -.77326E-04
  25  Prefactor     .10000E-03    42.967       -.15424E-06** at limit **
  26  norm          .10000E-03    20.544       -.11621E-06** at limit **
  27  Prefactor     .10000E-03    9.3671        .15271E-05** at limit **
  28  Prefactor     .10000E-03    16.452       -.11450E-06** at limit **
  29  norm          8.3263        13.832        .20423E-06    .15722E-05
  30  norm          4.0997        5.5762        .18292E-06   -.23231E-05
  31  Prefactor     3.8820        5.8934        .12030E-06    .16720E-05
  32  Normalizat    .66937        .31532        .34253E-05    .56252E-05
  33  Prefactor     1.1294        .34904       -.19614E-05    .40953E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.78544
  Prefactor  = 9.98398
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.04865
  norm       = 0.0001
  Prefactor  = 2.26445
  norm       = 0.0001
  norm       = 3.15539
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 37.3529
  norm       = 7.48573
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 486.36
  norm       = 0.0001
  Prefactor  = 28.253
  Prefactor  = 75.9192
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.3263
  norm       = 4.09971
  Prefactor  = 3.88196
  Normalizat = 0.669373
  Prefactor  = 1.12939
 **********
 **   18 **HESSE 
 **********

 FCN=   2598.969     FROM HESSE     STATUS=OK           691 CALLS     5337 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6774        .10658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.7854        6.7540        .18476E-03   -1.5374    
   3  Prefactor     9.9840        29.338        .12689E-03   -1.5076    
   4  Prefactor     .10000E-03    9.7839        .15575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.0977        .12288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    137.99        .28730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.2306        .14281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    69.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.0486        1.0417        .28887E-04   -1.5422    
  10  norm          .10000E-03    14.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.2645        8.8642        .27180E-03   -1.5407    
  12  norm          .10000E-03    1.0239        .98753E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.1554        3.0103        .83668E-04   -1.5353    
  14  Prefactor     .10000E-03    38.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    16.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     37.353        69.590        .65609E-04   -1.4485    
  17  norm          7.4857        9.0755        .10767E-03   -1.5161    
  18  norm          .10000E-03    1.3670        .57963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    192.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    239.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     486.36        375.92        .92961E-04   -1.1261    
  22  norm          .10000E-03    2.5173        .78259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     28.253        136.99        .75676E-04   -1.4644    
  24  Prefactor     75.919        48.225        .46092E-04   -1.3963    
  25  Prefactor     .10000E-03    42.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    20.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    9.4201        .15172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    16.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          8.3263        13.822        .13890E-03   -1.5131    
  30  norm          4.0997        5.5617        .13218E-03   -1.5303    
  31  Prefactor     3.8820        5.8822        .14694E-03   -1.5314    
  32  Normalizat    .66937        .31522        .26272E-03   -1.0511    
  33  Prefactor     1.1294        .35029        .25406E-03   -.88533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.52403e-11
Minuit parameter uncertainties:
  1  4.3641e-05
  2  6.75589
  3  29.3808
  4  4.40314e-06
  5  4.75548e-06
  6  0.000121817
  7  4.82541e-06
  8  9.76941e-05
  9  1.04175
  10  2.17906e-05
  11  8.86936
  12  9.3194e-08
  13  3.01048
  14  7.98692e-06
  15  1.10053e-06
  16  69.7415
  17  9.07717
  18  2.431e-06
  19  0.000146471
  20  0.000127546
  21  377.862
  22  4.18796e-06
  23  124.89
  24  48.2501
  25  2.33247e-05
  26  4.13468e-06
  27  1.69883e-05
  28  1.05223e-05
  29  13.8277
  30  5.56239
  31  5.88307
  32  0.316074
  33  0.351004
Done.

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

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  1.000e-04  2.431e-06  1.000e-04  1.000e+04 ( 1.000e-12)
417        alpha:  1.758e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
418         beta:  7.199e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
419           Eb:  1.415e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
765    Prefactor:  1.129e+00  3.510e-01  0.000e+00  1.000e+01 ( 1.000e+00)
766        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
767        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
764   Normalization:  6.694e-01  3.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 159.429 57.192
Photon Flux Upper Limit: 7.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/18394/likelihoodResults_415843201_416102401_4FGL_J1037.7+5711_daily_bin681.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) = 2598.97192826
delta logL = -0.00303449130433

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2598.96889332
delta logL = 4.45546447736e-07

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 'alpha     '    1.7741       1.0000          .0000       5.0000    
     3 'Normalizat'    .66938       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1294       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7680E+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=   2598.123     FROM MIGRAD    STATUS=CONVERGED    157 CALLS      303 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13881E-01    .12571E-01    .11219E-02    .19793E-01
   2  alpha         5.0000        .79687        .50000    ** at limit **
   3  Normalizat    .54092        .30271        .26275E-02    .33156E-03
   4  Prefactor     1.2338        .35491        .25405E-02    .33703E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0138815
  alpha      = 5
  Normalizat = 0.540922
  Prefactor  = 1.23379
 **********
 **   18 **HESSE 
 **********

 FCN=   2598.123     FROM HESSE     STATUS=OK            31 CALLS      334 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13881E-01    .16185E-01    .50243E-05   -1.5731    
   2  alpha         5.0000        3.3341        .37880        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .54092        .29298        .10510E-03   -1.1055    
   4  Prefactor     1.2338        .35121        .10162E-03   -.85298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70793e-09
Minuit parameter uncertainties:
  1  0.0161847
  2  0.000148727
  3  0.293817
  4  0.351877
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/18394': 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) = 2598.12313996
delta logL = 0.845753807872

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  1.388e-02  1.618e-02  1.000e-04  1.000e+04 ( 1.000e-12)
417        alpha:  5.000e+00  1.487e-04  0.000e+00  5.000e+00 ( 1.000e+00)
418         beta:  7.199e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
419           Eb:  1.415e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
765    Prefactor:  1.234e+00  3.519e-01  0.000e+00  1.000e+01 ( 1.000e+00)
766        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
767        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
764   Normalization:  5.409e-01  2.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.88
Ra Dec: 159.429 57.192
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.30e-07 +/- 1.51e-07
Energy Flux (Free Index): 1.78e-05 +/- 2.07e-05

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/18394/cmap_HighResolution_415843201_416102401_4FGL_J1037.7+5711_daily_bin681.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.17e-05', comment='SUCCESS', energy_flux2='1.78e-05', dlogl='8.46e-01', photon_flux2='1.30e-07', job_status='DONE', time_completed='2021-09-02 05:57:05.572095', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='7.07e-08', energy_flux_error2='2.07e-05', EG='0.67', time_epoch_completed='1630587425.57', return_code='0', job_id='18394', GAL2='1.23', EG2='0.54', return_code2='0', photon_flux_error2='1.51e-07', ts2='1.88', photon_index='1.76' WHERE bin_id='681' AND source_name='4FGL J1037.7+5711' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:57:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 18394: <4FGL_J1037.7+5711_daily_bin681> in cluster <slac> Done

Job <4FGL_J1037.7+5711_daily_bin681> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 05:42:37 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 05:42: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 05:42:39 2021
Terminated at Thu Sep  2 05:57:06 2021
Results reported at Thu Sep  2 05:57:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7+5711_daily_bin681 159.429 57.192 415843201 416102401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1037.7+5711 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   691.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            869 sec.

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

