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


Performing analysis on: 4FGL_J1751.5+0938_daily_bin1674
RA = 267.878, Dec = 9.6456
tmin = 673228801, tmax = 673488001
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='671117', job_status='RUN', time_executed='2022-05-06 03:02:05.868278', time_epoch_executed='1651831325.87' WHERE source_name='4FGL J1751.5+0938' and cadence='daily' and bin_id='1674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/671117

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/671117/ft1_4FGL_J1751.5+0938_daily_bin1674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/671117/ft2_4FGL_J1751.5+0938_daily_bin1674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/671117/ft1_4FGL_J1751.5+0938_daily_bin1674.fits outfile=/scratch/kocevski/671117/ft1_filteredMKT_4FGL_J1751.5+0938_daily_bin1674.fits ra=267.878 dec=9.6456 rad=12.0 tmin=673228801.0 tmax=673488001.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 2.76
user 2.54
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/671117/ft2_4FGL_J1751.5+0938_daily_bin1674.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/671117/ft2_4FGL_J1751.5+0938_daily_bin1674.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/671117/ft1_filteredMKT_4FGL_J1751.5+0938_daily_bin1674.fits evtable="EVENTS" outfile="/scratch/kocevski/671117/ft1_filtered_4FGL_J1751.5+0938_daily_bin1674.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1778

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/671117/ft1_filtered_4FGL_J1751.5+0938_daily_bin1674.fits" evtable="EVENTS" scfile=/scratch/kocevski/671117/ft2_4FGL_J1751.5+0938_daily_bin1674.fits sctable="SC_DATA" outfile=/scratch/kocevski/671117/ltcube_673228801_673488001_4FGL_J1751.5+0938_daily_bin1674.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/671117/ft2_4FGL_J1751.5+0938_daily_bin1674.fits
.....................!
real 13.11
user 12.74
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/671117/ft1_filtered_4FGL_J1751.5+0938_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/671117/ft2_4FGL_J1751.5+0938_daily_bin1674.fits sctable="SC_DATA" expcube=/scratch/kocevski/671117/ltcube_673228801_673488001_4FGL_J1751.5+0938_daily_bin1674.fits outfile=/scratch/kocevski/671117/expmap_673228801_673488001_4FGL_J1751.5+0938_daily_bin1674.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/671117/ltcube_673228801_673488001_4FGL_J1751.5+0938_daily_bin1674.fits
.....................!
real 190.87
user 184.99
sys 5.54

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
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Extended source G24.7+0.6 in ROI with RadialDisk spatial model.
Extended source W 41 in ROI with RadialGaussian spatial model.
Extended source FGES J1836.5-0651 in ROI with RadialDisk spatial model.
Extended source FGES J1838.9-0704 in ROI with RadialDisk spatial model.
Extended source Kes 73 in ROI with RadialDisk spatial model.
Extended source HESS J1841-055 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HESSJ1841-055.fits is the correct path to the extended template.
Extended source Kes 79 in ROI with RadialDisk spatial model.
Extended source W 44 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W44.fits is the correct path to the extended template.
Extended source HESS J1857+026 in ROI with RadialDisk spatial model.
Extended source G42.8+0.6 in ROI with RadialDisk spatial model.
Added 272 point sources and 11 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1751.5+0938 @ 267.878 9.6456

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/671117/ft1_filtered_4FGL_J1751.5+0938_daily_bin1674.fits scfile=/scratch/kocevski/671117/ft2_4FGL_J1751.5+0938_daily_bin1674.fits outfile=/scratch/kocevski/671117/cmap_673228801_673488001_4FGL_J1751.5+0938_daily_bin1674.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=267.878 yref=9.6456 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/671117/ft1_filtered_4FGL_J1751.5+0938_daily_bin1674.fits scfile=/scratch/kocevski/671117/ft2_4FGL_J1751.5+0938_daily_bin1674.fits outfile=/scratch/kocevski/671117/cmap_HighResolution_673228801_673488001_4FGL_J1751.5+0938_daily_bin1674.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=267.878 yref=9.6456 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.59
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/671117/ft1_filtered_4FGL_J1751.5+0938_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/671117/ft2_4FGL_J1751.5+0938_daily_bin1674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/671117/Model_4FGL_J1751.5+0938_daily_bin1674.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 FGES J1836.5-0651
adding source FGES J1838.9-0704
adding source FHES J1723.5-0501
adding source G24.7+0.6
adding source G42.8+0.6
adding source GAL_V02
adding source HESS J1841-055
adding source HESS J1857+026
adding source Kes 73
adding source Kes 79
adding source W 41
adding source W 44
Working on...
/scratch/kocevski/671117/ft1_filtered_4FGL_J1751.5+0938_daily_bin1674.fits.....................!
real 330.09
user 328.13
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/671117/ft1_filtered_4FGL_J1751.5+0938_daily_bin1674.fits', '/scratch/kocevski/671117/ft2_4FGL_J1751.5+0938_daily_bin1674.fits', expMap='/scratch/kocevski/671117/expmap_673228801_673488001_4FGL_J1751.5+0938_daily_bin1674.fits', expCube='/scratch/kocevski/671117/ltcube_673228801_673488001_4FGL_J1751.5+0938_daily_bin1674.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/671117/Model_4FGL_J1751.5+0938_daily_bin1674.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1751.5+0938'

4FGL J1751.5+0938
   Spectrum: LogParabola
309         norm:  1.159e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
310        alpha:  2.145e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
311         beta:  9.910e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
312           Eb:  7.780e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/671117/ft1_filtered_4FGL_J1751.5+0938_daily_bin1674.fits
Spacecraft file(s): /scratch/kocevski/671117/ft2_4FGL_J1751.5+0938_daily_bin1674.fits
Exposure map: /scratch/kocevski/671117/expmap_673228801_673488001_4FGL_J1751.5+0938_daily_bin1674.fits
Exposure cube: /scratch/kocevski/671117/ltcube_673228801_673488001_4FGL_J1751.5+0938_daily_bin1674.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/671117/Model_4FGL_J1751.5+0938_daily_bin1674.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) = 18389.9438708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0203       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.943       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    108.52       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24918E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10315E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10194E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .43376       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6744       1.0000         .10000E-03   10000.    
    14 'norm      '    6.9308       1.0000         .10000E-03   10000.    
    15 'norm      '    9.0308       1.0000         .10000E-03   10000.    
    16 'norm      '    6.6007       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13115E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.9575       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5156       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96041       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1011E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18389.71     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2430 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.754        .97821E-06** at limit **
   2  Prefactor     3.0214        8.7575        .48635E-05    .67927E-03
   3  norm          .10000E-03    .96010       -.41788E-07** at limit **
   4  Prefactor     15.952        14.463        .65579E-06   -.73073E-04
   5  norm          .10000E-03    3.5992       -.46047E-07** at limit **
   6  Prefactor     108.58        95.423       -.92020E-05   -.19374E-03
   7  Prefactor     .10004E-03    1.2651        .11188E-05** at limit **
   8  norm          .10000E-03    7.2130        .15941E-05** at limit **
   9  norm          .10000E-03    1.2915        .18130E-06** at limit **
  10  norm          .10000E-03    6.6073        .58965E-06** at limit **
  11  norm          .10000E-03    16.722       -.14282E-05** at limit **
  12  norm          .43342        .68589        .16851E-06    .55251E-03
  13  Prefactor     4.6706        38.840        .10574E-05    .13224E-04
  14  norm          6.9301        5.7620       -.64246E-07   -.26325E-04
  15  norm          9.0294        10.872       -.20921E-07    .10638E-04
  16  norm          6.6002        4.4316       -.77202E-08    .34699E-04
  17  Prefactor     .10007E-03    4.9372       -.39165E-05** at limit **
  18  Prefactor     .10000E-03    9.5769       -.15786E-05** at limit **
  19  Prefactor     3.9503        13.933       -.48741E-06    .27242E-04
  20  Prefactor     .10000E-03    4.0209        .10632E-07** at limit **
  21  Normalizat    1.5155        .27738        .23608E-05    .57115E-04
  22  Prefactor     .96046        .50699E-01   -.41948E-06    .67097E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.02141
  norm       = 0.0001
  Prefactor  = 15.952
  norm       = 0.0001
  Prefactor  = 108.581
  Prefactor  = 0.000100045
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.433425
  Prefactor  = 4.67065
  norm       = 6.93012
  norm       = 9.02939
  norm       = 6.60016
  Prefactor  = 0.000100072
  Prefactor  = 0.0001
  Prefactor  = 3.95026
  Prefactor  = 0.0001
  Normalizat = 1.51555
  Prefactor  = 0.960458
 **********
 **   18 **HESSE 
 **********

 FCN=   18389.71     FROM HESSE     STATUS=OK           344 CALLS     2774 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    60.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.0214        9.2092        .11676E-02   -1.5360    
   3  norm          .10000E-03    .97261        .12974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.952        14.254        .10031E-03   -1.4909    
   5  norm          .10000E-03    3.6037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     108.58        96.638        .19304E-03   -1.3620    
   7  Prefactor     .10004E-03    8.0581        .25487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.3424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.2185        .30014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    6.6432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    16.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .43342        .67925        .13222E-03   -1.5576    
  13  Prefactor     4.6706        38.728        .18614E-03   -1.5276    
  14  norm          6.9301        5.7657        .76195E-03   -1.5181    
  15  norm          9.0294        10.874        .13337E-03   -1.5107    
  16  norm          6.6002        4.4307        .15620E-03   -1.5194    
  17  Prefactor     .10007E-03    12.721        .42526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.5902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.9503        13.989        .20276E-03   -1.5310    
  20  Prefactor     .10000E-03    4.0251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5155        .29103        .30052E-02   -.77342    
  22  Prefactor     .96046        .54443E-01    .13679E-03   -.94059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28992e-08
Minuit parameter uncertainties:
  1  0.00011359
  2  9.21354
  3  2.85494e-06
  4  14.2569
  5  7.67512e-06
  6  96.7782
  7  0.00119959
  8  0.000145754
  9  1.57392e-06
  10  0.000122414
  11  9.35431e-05
  12  0.679265
  13  26.9222
  14  5.7662
  15  10.8763
  16  4.43097
  17  0.00191015
  18  7.93409e-05
  19  14.0008
  20  5.57211e-07
  21  0.291351
  22  0.0544461DDone.

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

Extracting fit parameters...

4FGL J1751.5+0938
   Spectrum: LogParabola
309         norm:  4.334e-01  6.793e-01  1.000e-04  1.000e+04 ( 1.000e-11)
310        alpha:  2.145e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
311         beta:  9.910e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
312           Eb:  7.780e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
987    Prefactor:  9.605e-01  5.445e-02  0.000e+00  1.000e+01 ( 1.000e+00)
988        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
989        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
970   Normalization:  1.516e+00  2.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.53
Ra Dec: 267.878 9.646
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.30e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/671117/likelihoodResults_673228801_673488001_4FGL_J1751.5+0938_daily_bin1674.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) = 18387.7729474
delta logL = 1.93255020022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18387.7534836
delta logL = 1.95201400157

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .41348E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3243       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97889       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1011E+06   .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=   18387.75     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      394 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .41348E-01    .26070E-01    .13781E-03    .55180E-01
   2  alpha         5.0000        .50057        .50000    ** at limit **
   3  Normalizat    1.3245        .29426        .63506E-03   -.85212E-05
   4  Prefactor     .97886        .52974E-01    .13556E-03   -.25830E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0413479
  alpha      = 5
  Normalizat = 1.32448
  Prefactor  = 0.978857
 **********
 **   18 **HESSE 
 **********

 FCN=   18387.75     FROM HESSE     STATUS=OK            31 CALLS      425 TOTAL
                     EDM=   .63E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .41348E-01    .25250E-01    .27562E-04   -1.5667    
   2  alpha         5.0000        .47131        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3245        .29476        .25402E-04   -.82838    
   4  Prefactor     .97886        .53010E-01    .54225E-05   -.93438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.27723e-13
Minuit parameter uncertainties:
  1  0.0252499
  2  4.42945e-08
  3  0.295139
  4  0.0530126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/671117': 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) = 18387.7534832
delta logL = 1.95201440212

Extracting fit parameters...

4FGL J1751.5+0938
   Spectrum: LogParabola
309         norm:  4.135e-02  2.525e-02  1.000e-04  1.000e+04 ( 1.000e-11)
310        alpha:  5.000e+00  4.429e-08  0.000e+00  5.000e+00 ( 1.000e+00)
311         beta:  9.910e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
312           Eb:  7.780e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
987    Prefactor:  9.789e-01  5.301e-02  0.000e+00  1.000e+01 ( 1.000e+00)
988        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
989        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
970   Normalization:  1.324e+00  2.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.89
Ra Dec: 267.878 9.646
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 2.14e-07 +/- 1.30e-07
Energy Flux (Free Index): 2.92e-05 +/- 1.78e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/671117/cmap_HighResolution_673228801_673488001_4FGL_J1751.5+0938_daily_bin1674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.30e-05', comment='SUCCESS', energy_flux2='2.92e-05', dlogl='1.95e+00', photon_flux2='2.14e-07', job_status='DONE', time_completed='2022-05-06 03:39:07.946405', photon_index_error2='0.00', photon_index2='5.00', ts='0.53', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='1.78e-05', EG='1.52', time_epoch_completed='1651833547.95', return_code='0', job_id='671117', GAL2='0.98', EG2='1.32', return_code2='0', photon_flux_error2='1.30e-07', ts2='4.89', photon_index='2.14' WHERE bin_id='1674' AND source_name='4FGL J1751.5+0938' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May  6 03:39:07 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 671099: <4FGL_J1751.5+0938_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1751.5+0938_daily_bin1674> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri May  6 00:08:14 2022
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:58:05 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:58:05 2022
Terminated at Fri May  6 03:36:01 2022
Results reported at Fri May  6 03:36:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1751.5+0938_daily_bin1674 267.878 9.6456 673228801 673488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1751.5+0938 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2249.10 sec.
    Max Memory :                                 1262 MB
    Average Memory :                             376.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2275 sec.
    Turnaround time :                            12467 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0200>
Subject: Job 671117: <4FGL_J1751.5+0938_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1751.5+0938_daily_bin1674> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri May  6 00:08:14 2022
Job was executed on host(s) <bullet0200>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:58:11 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:58:11 2022
Terminated at Fri May  6 03:39:08 2022
Results reported at Fri May  6 03:39:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1751.5+0938_daily_bin1674 267.878 9.6456 673228801 673488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1751.5+0938 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2218.91 sec.
    Max Memory :                                 1271 MB
    Average Memory :                             381.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2937 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   2457 sec.
    Turnaround time :                            12654 sec.

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

