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


Performing analysis on: 4FGL_J1037.7+5711_daily_bin1772
RA = 159.429, Dec = 57.192
tmin = 698630401, tmax = 698889601
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='628408', job_status='RUN', time_executed='2023-02-24 01:23:49.872999', time_epoch_executed='1677230629.87' WHERE source_name='4FGL J1037.7+5711' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/628408

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/628408/ft1_4FGL_J1037.7+5711_daily_bin1772.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/628408/ft2_4FGL_J1037.7+5711_daily_bin1772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/628408/ft1_4FGL_J1037.7+5711_daily_bin1772.fits outfile=/scratch/kocevski/628408/ft1_filteredMKT_4FGL_J1037.7+5711_daily_bin1772.fits ra=159.429 dec=57.192 rad=12.0 tmin=698630401.0 tmax=698889601.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.06
user 2.84
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/628408/ft2_4FGL_J1037.7+5711_daily_bin1772.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/628408/ft1_filteredMKT_4FGL_J1037.7+5711_daily_bin1772.fits evtable="EVENTS" outfile="/scratch/kocevski/628408/ft1_filtered_4FGL_J1037.7+5711_daily_bin1772.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.49
user 0.34
sys 0.13

Number of photons that the gtmktime cut: 139

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/628408/ft1_filtered_4FGL_J1037.7+5711_daily_bin1772.fits" evtable="EVENTS" scfile=/scratch/kocevski/628408/ft2_4FGL_J1037.7+5711_daily_bin1772.fits sctable="SC_DATA" outfile=/scratch/kocevski/628408/ltcube_698630401_698889601_4FGL_J1037.7+5711_daily_bin1772.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/628408/ft2_4FGL_J1037.7+5711_daily_bin1772.fits
.....................!
real 12.57
user 12.25
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/628408/ft1_filtered_4FGL_J1037.7+5711_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/628408/ft2_4FGL_J1037.7+5711_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/628408/ltcube_698630401_698889601_4FGL_J1037.7+5711_daily_bin1772.fits outfile=/scratch/kocevski/628408/expmap_698630401_698889601_4FGL_J1037.7+5711_daily_bin1772.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/628408/ltcube_698630401_698889601_4FGL_J1037.7+5711_daily_bin1772.fits
.....................!
real 190.88
user 186.09
sys 4.47

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/628408/ft1_filtered_4FGL_J1037.7+5711_daily_bin1772.fits scfile=/scratch/kocevski/628408/ft2_4FGL_J1037.7+5711_daily_bin1772.fits outfile=/scratch/kocevski/628408/cmap_698630401_698889601_4FGL_J1037.7+5711_daily_bin1772.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/628408/ft1_filtered_4FGL_J1037.7+5711_daily_bin1772.fits scfile=/scratch/kocevski/628408/ft2_4FGL_J1037.7+5711_daily_bin1772.fits outfile=/scratch/kocevski/628408/cmap_HighResolution_698630401_698889601_4FGL_J1037.7+5711_daily_bin1772.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/628408/ft1_filtered_4FGL_J1037.7+5711_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/628408/ft2_4FGL_J1037.7+5711_daily_bin1772.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/628408/Model_4FGL_J1037.7+5711_daily_bin1772.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/628408/ft1_filtered_4FGL_J1037.7+5711_daily_bin1772.fits........................!
real 28.55
user 27.29
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/628408/ft1_filtered_4FGL_J1037.7+5711_daily_bin1772.fits', '/scratch/kocevski/628408/ft2_4FGL_J1037.7+5711_daily_bin1772.fits', expMap='/scratch/kocevski/628408/expmap_698630401_698889601_4FGL_J1037.7+5711_daily_bin1772.fits', expCube='/scratch/kocevski/628408/ltcube_698630401_698889601_4FGL_J1037.7+5711_daily_bin1772.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/628408/Model_4FGL_J1037.7+5711_daily_bin1772.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/628408/ft1_filtered_4FGL_J1037.7+5711_daily_bin1772.fits
Spacecraft file(s): /scratch/kocevski/628408/ft2_4FGL_J1037.7+5711_daily_bin1772.fits
Exposure map: /scratch/kocevski/628408/expmap_698630401_698889601_4FGL_J1037.7+5711_daily_bin1772.fits
Exposure cube: /scratch/kocevski/628408/ltcube_698630401_698889601_4FGL_J1037.7+5711_daily_bin1772.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/628408/Model_4FGL_J1037.7+5711_daily_bin1772.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) = 1400.3608811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .87326       1.0000          .0000       .10000E+07
     2 'Prefactor '    .16323E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .10843E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    5.5239       1.0000          .0000       .10000E+07
     5 'Prefactor '    .61457E-03   1.0000          .0000       .10000E+07
     6 'norm      '    .37314E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .16295E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .58842E-08   1.0000          .0000       .10000E+07
     9 'norm      '    .42052       1.0000          .0000       .10000E+07
    10 'Prefactor '    .61792E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .32900       1.0000          .0000       .10000E+07
    12 'norm      '    .30564       1.0000          .0000       .10000E+07
    13 'Prefactor '    .30357       1.0000          .0000       .10000E+07
    14 'norm      '    .15500E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .31315E-02   1.0000          .0000       .10000E+07
    16 'norm      '    7.0504       1.0000          .0000       .10000E+07
    17 'norm      '    .29073E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .26185E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .99994E+06   1.0000          .0000       .10000E+07
    20 'norm      '    49441.       1.0000          .0000       .10000E+07
    21 'Prefactor '    5.4479       1.0000          .0000       .10000E+07
    22 'Prefactor '    4.1470       1.0000          .0000       .10000E+07
    23 'Prefactor '    11.808       1.0000          .0000       .10000E+07
    24 'norm      '    .78985       1.0000          .0000       .10000E+07
    25 'Prefactor '    .79343E-02   1.0000          .0000       .10000E+07
    26 'Prefactor '    .11039E-02   1.0000          .0000       .10000E+07
    27 'norm      '    .48884E-03   1.0000          .0000       .10000E+07
    28 'norm      '    .88263E-08   1.0000          .0000       .10000E+07
    29 'Prefactor '    .15138E-04   1.0000          .0000       .10000E+07
    30 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    .30509       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=   1400.301     FROM MIGRAD    STATUS=CONVERGED    260 CALLS     3758 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .87463        .94857        .42729E-07   -.86106E-03
   2  Prefactor      .0000        6.7891        .11893E-07** at limit **
   3  Prefactor     .12768E-07    38.369       -.52368E-06** at limit **
   4  Prefactor     5.4449        8.4541       -.46702E-06    .50742E-03
   5  Prefactor      .0000        10.927       -.12273E-07** at limit **
   6  norm           .0000        8.9091        .65228E-07** at limit **
   7  Prefactor     .14115E-05    13.898       -.31286E-06** at limit **
   8  norm           .0000        .59700       -.16849E-07** at limit **
   9  norm          .74385E-08    157.06        .73879E-06** at limit **
  10  Prefactor     .15932E-07    24.543        .11839E-06** at limit **
  11  norm          .32909        .51070        .89218E-08   -.68797E-03
  12  norm          .37581E-07    117.14        .78139E-08** at limit **
  13  Prefactor     .18319E-07    116.72        .16203E-05** at limit **
  14  norm           .0000        13.535        .18607E-06** at limit **
  15  Prefactor     .12101E-07    38.805        .93913E-06** at limit **
  16  norm          7.0622        8.6952        .24784E-06   -.42642E-03
  17  norm          .27223E-06    25.173       -.38844E-07** at limit **
  18  Prefactor      .0000        47.316       -.26425E-07** at limit **
  19  Prefactor     .99994E+06    100.88        .43011E-06   -.11317    
  20  norm          49444.        68.151        .10137E-07   -2.0850    
  21  Prefactor     .61956E-02    2342.1       -.25659E-05** at limit **
  22  Prefactor     .34162E-06    1106.5       -.11981E-05** at limit **
  23  Prefactor     .27115E-01    5210.4       -.38159E-05** at limit **
  24  norm          .16764E-07    648.91       -.10421E-05** at limit **
  25  Prefactor     .24980E-08    23.096        .37015E-07** at limit **
  26  Prefactor     .56810E-06    22.611        .27953E-06** at limit **
  27  norm           .0000        6.5350       -.37535E-07** at limit **
  28  norm           .0000        1.6299       -.32437E-08** at limit **
  29  Prefactor      .0000        2.7975        .22828E-07** at limit **
  30  Normalizat    .10000E-01    .35432E-01    .12827E-04** at limit **
  31  Prefactor     .30525        .11189        .82258E-05   -.36524E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.874629
  Prefactor  = 0
  Prefactor  = 1.27676e-08
  Prefactor  = 5.44491
  Prefactor  = 0
  norm       = 0
  Prefactor  = 1.41154e-06
  norm       = 0
  norm       = 7.43849e-09
  Prefactor  = 1.59317e-08
  norm       = 0.329091
  norm       = 3.7581e-08
  Prefactor  = 1.83187e-08
  norm       = 0
  Prefactor  = 1.21014e-08
  norm       = 7.0622
  norm       = 2.72227e-07
  Prefactor  = 0
  Prefactor  = 999943
  norm       = 49444
  Prefactor  = 0.00619561
  Prefactor  = 3.41616e-07
  Prefactor  = 0.0271153
  norm       = 1.67644e-08
  Prefactor  = 2.498e-09
  Prefactor  = 5.68101e-07
  norm       = 0
  norm       = 0
  Prefactor  = 0
  Normalizat = 0.01
  Prefactor  = 0.305246
 **********
 **   18 **HESSE 
 **********

 FCN=   1400.301     FROM HESSE     STATUS=OK           662 CALLS     4420 TOTAL
                     EDM=   .54E-02    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .87463        .95089        .47627E-03   -1.5689    
   2  Prefactor      .0000        6.7871        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .12768E-07    41.745        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.4449        8.4864        .42725E-03   -1.5661    
   5  Prefactor      .0000        10.927        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        8.9094        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .14115E-05    28.786        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .59671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .74385E-08    158.17        .87147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .15932E-07    24.629        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .32909        .53346        .72181E-03   -1.5696    
  12  norm          .37581E-07    117.26        .10135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .18319E-07    116.78        .10164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        13.537        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .12101E-07    41.907        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.0622        8.6970        .37757E-03   -1.5655    
  17  norm          .27223E-06    27.437        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        47.306        .16659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .99994E+06    32880.        .12730E-03    1.5557    
  20  norm          49444.        6323.3        .53517E-05   -1.1223    
  21  Prefactor     .61956E-02    13865.        .43027E-03   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .34162E-06    1106.5        .49472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .27115E-01    6273.3        .29127E-03   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .16764E-07    648.95        .53694E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .24980E-08    23.108        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .56810E-06    29.408        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm           .0000        6.5349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm           .0000        1.6311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor      .0000        2.7972        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .10000E-01    .33745E-01    .98088E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .30525        .11538        .36864E-01   -1.2196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.00538449
Minuit parameter uncertainties:
  1  0.950895
  2  1.60192e-07
  3  0.00145944
  4  8.48638
  5  1.91488e-06
  6  2.85663e-06
  7  0.0127489
  8  2.41933e-07
  9  0.00216986
  10  0.00125361
  11  0.533459
  12  0.00419793
  13  0.00292509
  14  1.05301e-05
  15  0.00142531
  16  8.69701
  17  0.00546593
  18  3.63203e-06
  19  2744.4
  20  6324.17
  21  18.5798
  22  0.0388928
  23  26.112
  24  0.006599
  25  0.000481596
  26  0.00817475
  27  2.05938e-06
  28  9.74312e-08
  29  5.66294e-07
  30  1.357e-07
  31  0.115463
Done.

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

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  2.722e-07  5.466e-03  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:  3.052e-01  1.155e-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.000e-02  1.357e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 159.429 57.192
Photon Flux Upper Limit: 1.63e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/628408/likelihoodResults_698630401_698889601_4FGL_J1037.7+5711_daily_bin1772.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): 102
logL (Free Index) = 1400.30060082
delta logL = -6.82411678099e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1399.8335412
delta logL = 0.467052804918

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36051       1.0000          .0000       .10000E+07
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .29413       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.

 FCN=   1399.834     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      303 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .36062        1.3901        .69155E-03   -.15205E-02
   2  alpha         5.0000        4.9083        .46383    ** at limit **
   3  Normalizat    .10000E-01    .32174E-01    .95644E-01** at limit **
   4  Prefactor     .29414        .10662        .36701E-01   -.32307E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.360619
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 0.294135
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .36062        .50451        .31463E-04   -1.5696    
   2  alpha         5.0000        3.3446        .37477E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .33693E-01    .40903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .29414        .10510        .22702E-03   -1.2261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83585e-09
Minuit parameter uncertainties:
  1  0.504514
  2  0.000127474
  3  1.8346e-06
  4  0.105166
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/628408': 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) = 1399.83354083
delta logL = 0.467053168187

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  3.606e-01  5.045e-01  0.000e+00  1.000e+06 ( 1.000e-12)
417        alpha:  5.000e+00  1.275e-04  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:  2.941e-01  1.052e-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.000e-02  1.835e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 159.429 57.192

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/628408/cmap_HighResolution_698630401_698889601_4FGL_J1037.7+5711_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.88e-03', job_status='DONE', photon_flux_upper_limit='1.63e-06', time_completed='2023-02-24 01:32:19.264823', job_id='628408', GAL2='0.29', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1677231139.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.31', dlogl='4.67e-01', ts2='0.95', photon_index_error='0.00', photon_index='1.76' WHERE bin_id='1772' AND source_name='4FGL J1037.7+5711' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 01:32:19 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 628408: <4FGL_J1037.7+5711_daily_bin1772> in cluster <slac> Done

Job <4FGL_J1037.7+5711_daily_bin1772> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Feb 24 01:20:18 2023
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 01:20:18 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 01:20:18 2023
Terminated at Fri Feb 24 01:32:20 2023
Results reported at Fri Feb 24 01:32:20 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7+5711_daily_bin1772 159.429 57.192 698630401 698889601 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 :                                   511.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             263.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            722 sec.

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

