aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 4 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7520
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1037.7+5711_daily_bin1718
RA = 159.429, Dec = 57.192
tmin = 684633601, tmax = 684892801
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='94701', job_status='RUN', time_executed='2022-09-16 15:26:31.624234', time_epoch_executed='1663367191.62' WHERE source_name='4FGL J1037.7+5711' and cadence='daily' and bin_id='1718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94701

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94701/ft1_4FGL_J1037.7+5711_daily_bin1718.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94701/ft2_4FGL_J1037.7+5711_daily_bin1718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94701/ft1_4FGL_J1037.7+5711_daily_bin1718.fits outfile=/scratch/kocevski/94701/ft1_filteredMKT_4FGL_J1037.7+5711_daily_bin1718.fits ra=159.429 dec=57.192 rad=12.0 tmin=684633601.0 tmax=684892801.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.26
user 3.01
sys 0.22

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

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

Number of photons that the gtmktime cut: 494

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/94701/ft1_filtered_4FGL_J1037.7+5711_daily_bin1718.fits" evtable="EVENTS" scfile=/scratch/kocevski/94701/ft2_4FGL_J1037.7+5711_daily_bin1718.fits sctable="SC_DATA" outfile=/scratch/kocevski/94701/ltcube_684633601_684892801_4FGL_J1037.7+5711_daily_bin1718.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/94701/ft2_4FGL_J1037.7+5711_daily_bin1718.fits
.....................!
real 17.25
user 16.80
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94701/ft1_filtered_4FGL_J1037.7+5711_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/94701/ft2_4FGL_J1037.7+5711_daily_bin1718.fits sctable="SC_DATA" expcube=/scratch/kocevski/94701/ltcube_684633601_684892801_4FGL_J1037.7+5711_daily_bin1718.fits outfile=/scratch/kocevski/94701/expmap_684633601_684892801_4FGL_J1037.7+5711_daily_bin1718.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/94701/ltcube_684633601_684892801_4FGL_J1037.7+5711_daily_bin1718.fits
.....................!
real 192.27
user 186.66
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 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/94701/ft1_filtered_4FGL_J1037.7+5711_daily_bin1718.fits scfile=/scratch/kocevski/94701/ft2_4FGL_J1037.7+5711_daily_bin1718.fits outfile=/scratch/kocevski/94701/cmap_684633601_684892801_4FGL_J1037.7+5711_daily_bin1718.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.63
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94701/ft1_filtered_4FGL_J1037.7+5711_daily_bin1718.fits scfile=/scratch/kocevski/94701/ft2_4FGL_J1037.7+5711_daily_bin1718.fits outfile=/scratch/kocevski/94701/cmap_HighResolution_684633601_684892801_4FGL_J1037.7+5711_daily_bin1718.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/94701/ft1_filtered_4FGL_J1037.7+5711_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/94701/ft2_4FGL_J1037.7+5711_daily_bin1718.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/94701/Model_4FGL_J1037.7+5711_daily_bin1718.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/94701/ft1_filtered_4FGL_J1037.7+5711_daily_bin1718.fits.....................!
real 56.97
user 55.50
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/94701/ft1_filtered_4FGL_J1037.7+5711_daily_bin1718.fits', '/scratch/kocevski/94701/ft2_4FGL_J1037.7+5711_daily_bin1718.fits', expMap='/scratch/kocevski/94701/expmap_684633601_684892801_4FGL_J1037.7+5711_daily_bin1718.fits', expCube='/scratch/kocevski/94701/ltcube_684633601_684892801_4FGL_J1037.7+5711_daily_bin1718.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/94701/Model_4FGL_J1037.7+5711_daily_bin1718.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  0.000e+00  1.000e+06 ( 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 -5.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/94701/ft1_filtered_4FGL_J1037.7+5711_daily_bin1718.fits
Spacecraft file(s): /scratch/kocevski/94701/ft2_4FGL_J1037.7+5711_daily_bin1718.fits
Exposure map: /scratch/kocevski/94701/expmap_684633601_684892801_4FGL_J1037.7+5711_daily_bin1718.fits
Exposure cube: /scratch/kocevski/94701/ltcube_684633601_684892801_4FGL_J1037.7+5711_daily_bin1718.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/94701/Model_4FGL_J1037.7+5711_daily_bin1718.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) = 5235.87144833

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4951       1.0000          .0000       .10000E+07
     2 'Prefactor '    5.9164       1.0000          .0000       .10000E+07
     3 'Prefactor '    .15132E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .81965E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.4364       1.0000          .0000       .10000E+07
     6 'norm      '    .85396E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23878E-02   1.0000          .0000       .10000E+07
     8 'norm      '    2.0964       1.0000          .0000       .10000E+07
     9 'norm      '    .18554E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .12979E-03   1.0000          .0000       .10000E+07
    11 'norm      '    1.9276       1.0000          .0000       .10000E+07
    12 'norm      '    2.7282       1.0000          .0000       .10000E+07
    13 'Prefactor '    .24905E-04   1.0000          .0000       .10000E+07
    14 'norm      '    7.2967       1.0000          .0000       .10000E+07
    15 'Prefactor '    .27123E-06   1.0000          .0000       .10000E+07
    16 'norm      '    .50159       1.0000          .0000       .10000E+07
    17 'norm      '    2.1799       1.0000          .0000       .10000E+07
    18 'Prefactor '    .33213       1.0000          .0000       .10000E+07
    19 'Prefactor '    45.186       1.0000          .0000       .10000E+07
    20 'norm      '    3.5987       1.0000          .0000       .10000E+07
    21 'Prefactor '    .27325E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .82159E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .50120E-01   1.0000          .0000       .10000E+07
    24 'norm      '    .29439E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    .12304E-02   1.0000          .0000       .10000E+07
    26 'Prefactor '    40.422       1.0000          .0000       .10000E+07
    27 'norm      '    5.9379       1.0000          .0000       .10000E+07
    28 'norm      '    1.8233       1.0000          .0000       .10000E+07
    29 'Prefactor '    .10916E-01   1.0000          .0000       .10000E+07
    30 'Normalizat'    1.3384       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .54089       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5235.838     FROM MIGRAD    STATUS=CONVERGED    241 CALLS     2991 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4969        1.1732       -.34925E-07   -.46239E-02
   2  Prefactor     5.8832        4.4782       -.31141E-07   -.34352E-03
   3  Prefactor     .46463E-07    10.908       -.25984E-06** at limit **
   4  Prefactor     .33307E-09    6.4410        .17918E-06** at limit **
   5  Prefactor     1.5870        9.3268        .57171E-07   -.16956E-03
   6  norm           .0000        5.5229       -.14532E-06** at limit **
   7  Prefactor     .15269E-05    21.193       -.80246E-06** at limit **
   8  norm          2.0957        .64663        .61567E-08    .23345E-02
   9  norm          .16653E-09    5.8936       -.94313E-07** at limit **
  10  Prefactor      .0000        3.1731        .10792E-06** at limit **
  11  norm          1.9293        .77485       -.35763E-07   -.48548E-02
  12  norm          2.7291        2.1960        .12421E-07    .46047E-03
  13  Prefactor     .13547E-05    11.743       -.29061E-06** at limit **
  14  norm          7.2980        9.2999       -.35396E-07   -.57360E-03
  15  Prefactor     .11102E-09    7.9229        .16058E-06** at limit **
  16  norm          .50858        1.8786       -.10223E-06   -.50241E-03
  17  norm          2.1800        1.6272        .45457E-07    .24405E-02
  18  Prefactor     .54605E-04    29.733       -.81168E-06** at limit **
  19  Prefactor     50.825        193.26        .47129E-06   -.32729E-02
  20  norm          3.5770        2.7581        .80708E-07    .28030E-02
  21  Prefactor     .24772E-05    41.832        .48465E-06** at limit **
  22  Prefactor     .17576E-05    12.507       -.30938E-06** at limit **
  23  Prefactor     .18319E-08    63.318       -.24442E-06** at limit **
  24  norm          .60657E-06    35.335       -.12699E-05** at limit **
  25  Prefactor     .16653E-09    4.7715       -.37574E-06** at limit **
  26  Prefactor     39.985        11.896        .13144E-06   -.24810    
  27  norm          5.9240        1.2672        .33611E-08   -.24571E-01
  28  norm          1.8972        5.8151        .17227E-06    .20667E-02
  29  Prefactor     .80264E-06    16.942       -.60927E-06** at limit **
  30  Normalizat    1.3375        .20302        .18590E-05    .14524E-03
  31  Prefactor     .54092        .22080        .22253E-05    .76692E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.49688
  Prefactor  = 5.88322
  Prefactor  = 4.64628e-08
  Prefactor  = 3.33067e-10
  Prefactor  = 1.58697
  norm       = 0
  Prefactor  = 1.52695e-06
  norm       = 2.09572
  norm       = 1.66533e-10
  Prefactor  = 0
  norm       = 1.92929
  norm       = 2.72907
  Prefactor  = 1.35469e-06
  norm       = 7.29803
  Prefactor  = 1.11022e-10
  norm       = 0.50858
  norm       = 2.17995
  Prefactor  = 5.46047e-05
  Prefactor  = 50.825
  norm       = 3.57702
  Prefactor  = 2.47719e-06
  Prefactor  = 1.75759e-06
  Prefactor  = 1.83187e-09
  norm       = 6.0657e-07
  Prefactor  = 1.66533e-10
  Prefactor  = 39.9849
  norm       = 5.92395
  norm       = 1.89717
  Prefactor  = 8.02636e-07
  Normalizat = 1.33748
  Prefactor  = 0.540917
 **********
 **   18 **HESSE 
 **********

 FCN=   5235.838     FROM HESSE     STATUS=OK           684 CALLS     3675 TOTAL
                     EDM=   .39E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4969        1.1737        .47464E-03   -1.5666    
   2  Prefactor     5.8832        4.5255        .41261E-03   -1.5659    
   3  Prefactor     .46463E-07    10.919        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .33307E-09    6.4213        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5870        9.5883        .90029E-03   -1.5683    
   6  norm           .0000        5.5183        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .15269E-05    22.550        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.0957        .64448        .70150E-03   -1.5679    
   9  norm          .16653E-09    5.8924        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        3.1629        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9293        .77460        .74790E-03   -1.5680    
  12  norm          2.7291        2.1964        .61625E-03   -1.5675    
  13  Prefactor     .13547E-05    12.438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.2980        9.3065        .37108E-03   -1.5654    
  15  Prefactor     .11102E-09    7.9250        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .50858        1.8821        .78550E-03   -1.5694    
  17  norm          2.1800        1.6262        .69700E-03   -1.5678    
  18  Prefactor     .54605E-04    146.35        .97812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     50.825        193.26        .14878E-03   -1.5565    
  20  norm          3.5770        2.7575        .53241E-03   -1.5670    
  21  Prefactor     .24772E-05    43.649        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .17576E-05    13.424        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .18319E-08    63.182        .15536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .60657E-06    37.157        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .16653E-09    4.7666        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     39.985        35.551        .15730E-03   -1.5581    
  27  norm          5.9240        10.830        .41185E-03   -1.5659    
  28  norm          1.8972        5.9042        .77291E-03   -1.5680    
  29  Prefactor     .80264E-06    17.404        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3375        .18392        .48799E-01   -.82454    
  31  Prefactor     .54092        .20087        .81164E-01   -1.1013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87285e-06
Minuit parameter uncertainties:
  1  1.17369
  2  4.52554
  3  0.00142489
  4  9.09368e-05
  5  7.80164
  6  5.35314e-06
  7  0.011736
  8  0.644479
  9  6.70663e-05
  10  2.76599e-06
  11  0.774602
  12  2.19645
  13  0.00820979
  14  9.3065
  15  6.46371e-05
  16  1.88207
  17  1.6262
  18  0.178795
  19  193.279
  20  2.75753
  21  0.0207968
  22  0.00971473
  23  0.000679272
  24  0.00949492
  25  5.65712e-05
  26  35.5513
  27  10.8302
  28  5.90417
  29  0.00747511
  30  0.184011
  31  0.201131
Done.

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

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  2.180e+00  1.626e+00  0.000e+00  1.000e+06 ( 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 -5.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:  5.409e-01  2.011e-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:  1.337e+00  1.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.53
Ra Dec: 159.429 57.192
Photon Index (Fixed Index): 1.76 +/- 0.00
Photon Flux (Fixed Index): 2.40e-08 +/- 1.79e-08
Energy Flux (Fixed Index): 2.78e-05 +/- 2.07e-05

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) = 5235.15878175
delta logL = 0.678823086178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5234.82467729
delta logL = 1.01292754097

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12500       1.0000          .0000       .10000E+07
     2 'alpha     '    .14654       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3467       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55068       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=   5234.825     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      255 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12434        .21947       -.17626E-07** at limit **
   2  alpha         .14455        .49906       -.26454E-04    .12387E-04
   3  Normalizat    1.3465        .17594        .30365E-08   -.50796E-04
   4  Prefactor     .55083        .19580        .13384E-07    .50279E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.124336
  alpha      = 0.144546
  Normalizat = 1.34648
  Prefactor  = 0.550835
 **********
 **   18 **HESSE 
 **********

 FCN=   5234.825     FROM HESSE     STATUS=OK            33 CALLS      288 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12434        1.6139        .22475E-04   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .14455        4.6246        .31864E-01   -1.2291    
   3  Normalizat    1.3465        .19492        .21521E-03   -.82189    
   4  Prefactor     .55083        .21643        .35717E-03   -1.0970    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90138e-10
Minuit parameter uncertainties:
  1  0.895912
  2  2.32224
  3  0.19503
  4  0.216757
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94701': 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) = 5234.82467557
delta logL = 1.01292926631

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  1.243e-01  8.959e-01  0.000e+00  1.000e+06 ( 1.000e-12)
417        alpha:  1.445e-01  2.322e+00  0.000e+00  5.000e+00 ( 1.000e+00)
418         beta:  7.199e-02  0.000e+00 -5.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:  5.508e-01  2.168e-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:  1.346e+00  1.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.54
Ra Dec: 159.429 57.192
Photon Index (Free Index): 0.14 +/- 2.32
Photon Flux (Free Index): 3.85e-09 +/- 5.25e-09
Energy Flux (Free Index): 1.36e-04 +/- 2.05e-04

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/94701/cmap_HighResolution_684633601_684892801_4FGL_J1037.7+5711_daily_bin1718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.40e-08', energy_flux2='1.36e-04', photon_flux_error='1.79e-08', dlogl='1.01e+00', energy_flux='2.78e-05', photon_flux2='3.85e-09', job_status='DONE', time_completed='2022-09-16 15:39:19.241832', photon_index_error2='2.32', photon_index2='0.14', ts='5.53', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', energy_flux_error2='2.05e-04', EG='1.34', time_epoch_completed='1663367959.24', return_code='0', job_id='94701', GAL2='0.55', EG2='1.35', return_code2='0', energy_flux_error='2.07e-05', photon_flux_error2='5.25e-09', ts2='7.54', photon_index='1.76' WHERE bin_id='1718' AND source_name='4FGL J1037.7+5711' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:39:19 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 94701: <4FGL_J1037.7+5711_daily_bin1718> in cluster <slac> Done

Job <4FGL_J1037.7+5711_daily_bin1718> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 15:25:21 2022
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:26:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 15:26:18 2022
Terminated at Fri Sep 16 15:39:20 2022
Results reported at Fri Sep 16 15:39:20 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7+5711_daily_bin1718 159.429 57.192 684633601 684892801 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 :                                   768.25 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             339.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            839 sec.

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

