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 97 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.
Done.


Performing analysis on: 4FGL_J1751.6+2921_daily_bin1674
RA = 267.904, Dec = 29.3582
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='671103', job_status='RUN', time_executed='2022-05-06 02:59:52.585248', time_epoch_executed='1651831192.59' WHERE source_name='4FGL J1751.6+2921' and cadence='daily' and bin_id='1674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/671103

Creating custom pfile directory:
/scratch/kocevski/671103/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/671103/ft1_4FGL_J1751.6+2921_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/671103/ft2_4FGL_J1751.6+2921_daily_bin1674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/671103/ft1_4FGL_J1751.6+2921_daily_bin1674.fits outfile=/scratch/kocevski/671103/ft1_filteredMKT_4FGL_J1751.6+2921_daily_bin1674.fits ra=267.904 dec=29.3582 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.74
user 2.52
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/671103/ft2_4FGL_J1751.6+2921_daily_bin1674.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/671103/ft2_4FGL_J1751.6+2921_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/671103/ft1_filteredMKT_4FGL_J1751.6+2921_daily_bin1674.fits evtable="EVENTS" outfile="/scratch/kocevski/671103/ft1_filtered_4FGL_J1751.6+2921_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.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 1412

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/671103/ft1_filtered_4FGL_J1751.6+2921_daily_bin1674.fits" evtable="EVENTS" scfile=/scratch/kocevski/671103/ft2_4FGL_J1751.6+2921_daily_bin1674.fits sctable="SC_DATA" outfile=/scratch/kocevski/671103/ltcube_673228801_673488001_4FGL_J1751.6+2921_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/671103/ft2_4FGL_J1751.6+2921_daily_bin1674.fits
.....................!
real 13.26
user 12.86
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/671103/ft1_filtered_4FGL_J1751.6+2921_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/671103/ft2_4FGL_J1751.6+2921_daily_bin1674.fits sctable="SC_DATA" expcube=/scratch/kocevski/671103/ltcube_673228801_673488001_4FGL_J1751.6+2921_daily_bin1674.fits outfile=/scratch/kocevski/671103/expmap_673228801_673488001_4FGL_J1751.6+2921_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/671103/ltcube_673228801_673488001_4FGL_J1751.6+2921_daily_bin1674.fits
.....................!
real 191.77
user 186.16
sys 4.75

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

Setting source of interest to:
4FGL J1751.6+2921 @ 267.904 29.3582

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/671103/ft1_filtered_4FGL_J1751.6+2921_daily_bin1674.fits scfile=/scratch/kocevski/671103/ft2_4FGL_J1751.6+2921_daily_bin1674.fits outfile=/scratch/kocevski/671103/cmap_673228801_673488001_4FGL_J1751.6+2921_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.904 yref=29.3582 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/671103/ft1_filtered_4FGL_J1751.6+2921_daily_bin1674.fits scfile=/scratch/kocevski/671103/ft2_4FGL_J1751.6+2921_daily_bin1674.fits outfile=/scratch/kocevski/671103/cmap_HighResolution_673228801_673488001_4FGL_J1751.6+2921_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.904 yref=29.3582 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/671103/ft1_filtered_4FGL_J1751.6+2921_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/671103/ft2_4FGL_J1751.6+2921_daily_bin1674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/671103/Model_4FGL_J1751.6+2921_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 GAL_V02
Working on...
/scratch/kocevski/671103/ft1_filtered_4FGL_J1751.6+2921_daily_bin1674.fits.....................!
real 115.81
user 114.27
sys 1.18

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

Using source of interest name: '4FGL J1751.6+2921'

4FGL J1751.6+2921
   Spectrum: PowerLaw
339    Prefactor:  9.593e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  2.618e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  7.773e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.032       1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.066       1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.898       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1420       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.602       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .53235       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.9485       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1106       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.461       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97929       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96824       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14960.67     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2343 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.8968       -.57310E-06** at limit **
   2  Prefactor     28.032        30.960       -.42761E-07   -.77969E-05
   3  norm          .10000E-03    1.9770       -.63076E-07** at limit **
   4  norm          .10000E-03    14.452        .17859E-05** at limit **
   5  Prefactor     16.062        44.609       -.58627E-06   -.35169E-04
   6  Prefactor     38.893        56.430       -.21748E-05   -.65897E-04
   7  Prefactor     6.1377        11.287        .39306E-05   -.42283E-03
   8  Prefactor     .10000E-03    89.777       -.19156E-05** at limit **
   9  Prefactor     .10000E-03    22.499       -.17326E-05** at limit **
  10  Prefactor     42.584        42.987       -.24207E-05   -.23496E-03
  11  Prefactor     .10002E-03    2.2181       -.57491E-06** at limit **
  12  norm          .53227        1.6099        .96702E-06   -.83473E-03
  13  norm          .10001E-03    17.336       -.28548E-05** at limit **
  14  Prefactor     .10000E-03    2.1074       -.62190E-07** at limit **
  15  norm          6.9454        6.9037        .14865E-06   -.14725E-03
  16  Prefactor     1.1108        2.2388        .81333E-06   -.41760E-04
  17  Prefactor     .10000E-03    23.912        .23284E-05** at limit **
  18  norm          .10000E-03    7.9795        .97006E-06** at limit **
  19  Prefactor     13.461        6.8143        .93729E-07   -.15735E-03
  20  norm          .10000E-03    7.9598       -.20509E-06** at limit **
  21  Normalizat    .97928        .15641       -.49654E-06   -.12211E-03
  22  Prefactor     .96821        .65461E-01   -.20083E-06   -.17107E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 28.0319
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 16.0621
  Prefactor  = 38.8925
  Prefactor  = 6.13774
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.5838
  Prefactor  = 0.000100021
  norm       = 0.532275
  norm       = 0.000100006
  Prefactor  = 0.0001
  norm       = 6.94539
  Prefactor  = 1.11078
  Prefactor  = 0.000100003
  norm       = 0.000100001
  Prefactor  = 13.4607
  norm       = 0.0001
  Normalizat = 0.97928
  Prefactor  = 0.968209
 **********
 **   18 **HESSE 
 **********

 FCN=   14960.67     FROM HESSE     STATUS=OK           340 CALLS     2683 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.032        30.969        .75668E-04   -1.4649    
   3  norm          .10000E-03    1.9976        .16732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    14.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.062        44.683        .99922E-04   -1.4906    
   6  Prefactor     38.893        56.535        .64266E-04   -1.4460    
   7  Prefactor     6.1377        11.381        .80997E-03   -1.5212    
   8  Prefactor     .10000E-03    90.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     42.584        43.617        .61419E-04   -1.4402    
  11  Prefactor     .10002E-03    9.9123        .34644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .53227        1.6159        .25221E-03   -1.5562    
  13  norm          .10001E-03    18.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.1569        .17332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.9454        6.8860        .15219E-03   -1.5181    
  16  Prefactor     1.1108        2.0616        .25046E-02   -1.5497    
  17  Prefactor     .10000E-03    24.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.0884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.461        6.8094        .10917E-03   -1.4974    
  20  norm          .10000E-03    7.9641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .97928        .18193        .36245E-03   -.93728    
  22  Prefactor     .96821        .76604E-01    .15872E-03   -.93797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32256e-08
Minuit parameter uncertainties:
  1  8.95865e-05
  2  30.9868
  3  3.75322e-06
  4  0.000372972
  5  44.7762
  6  56.6129
  7  11.3847
  8  0.00020314
  9  0.000196679
  10  43.6498
  11  0.00091227
  12  1.61602
  13  0.000651015
  14  6.15725e-06
  15  6.88679
  16  2.06178
  17  0.00054389
  18  0.000146491
  19  6.80984
  20  3.15669e-05
  21  0.182046
  22  0.0766124
Done.

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

Extracting fit parameters...

4FGL J1751.6+2921
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  1.967e-04  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  2.618e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  7.773e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
696    Prefactor:  9.682e-01  7.661e-02  0.000e+00  1.000e+01 ( 1.000e+00)
697        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
698        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
695   Normalization:  9.793e-01  1.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 267.904 29.358
Photon Flux Upper Limit: 6.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/671103/likelihoodResults_673228801_673488001_4FGL_J1751.6+2921_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): 102
logL (Free Index) = 14960.6720538
delta logL = -0.000210486385186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14960.6718432
delta logL = 8.35570972413e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5866       1.0000          .0000       10.000    
     3 'Normalizat'    .97928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96821       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14960.67     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      212 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6610.7        .90712E-02** at limit **
   2  Index         2.5547        5.6912        .50000        .11916E-04
   3  Normalizat    .97928        .62979E-01    .81879E-01   -.52194E-04
   4  Prefactor     .96821        .27479E-01    .45869E-01   -.11141E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.55466
  Normalizat = 0.97928
  Prefactor  = 0.968209
 **********
 **   18 **HESSE 
 **********

 FCN=   14960.67     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5547        6.1157        .50000       -.51102    
   3  Normalizat    .97928        .16989        .36245E-03   -.93728    
   4  Prefactor     .96821        .74608E-01    .15873E-03   -.93797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13613e-10
Minuit parameter uncertainties:
  1  0.000219106
  2  6.1985
  3  0.169987
  4  0.0746163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/671103': 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) = 14960.6718431
delta logL = 1.75788954948e-07

Extracting fit parameters...

4FGL J1751.6+2921
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  2.191e-04  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  2.555e+00  6.199e+00  0.000e+00  1.000e+01 (-1.000e+00)
341        Scale:  7.773e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
696    Prefactor:  9.682e-01  7.462e-02  0.000e+00  1.000e+01 ( 1.000e+00)
697        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
698        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
695   Normalization:  9.793e-01  1.700e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 267.904 29.358

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/671103/cmap_HighResolution_673228801_673488001_4FGL_J1751.6+2921_daily_bin1674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.96e-03', job_status='DONE', photon_flux_upper_limit='6.34e-08', time_completed='2022-05-06 03:20:44.221946', job_id='671103', GAL2='0.97', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1651832444.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.76e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1674' AND source_name='4FGL J1751.6+2921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May  6 03:20:44 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 671120: <4FGL_J1751.6+2921_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1751.6+2921_daily_bin1674> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri May  6 00:08:15 2022
Job was executed on host(s) <bullet0244>, 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:20:14 2022
Results reported at Fri May  6 03:20:14 2022

Your job looked like:

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

Successfully completed.

Resource usage summary:

    CPU time :                                   1268.00 sec.
    Max Memory :                                 619 MB
    Average Memory :                             333.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1322 sec.
    Turnaround time :                            11519 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 671103: <4FGL_J1751.6+2921_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1751.6+2921_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) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:58:06 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:06 2022
Terminated at Fri May  6 03:20:44 2022
Results reported at Fri May  6 03:20:44 2022

Your job looked like:

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

Successfully completed.

Resource usage summary:

    CPU time :                                   1250.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1358 sec.
    Turnaround time :                            11550 sec.

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

