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


Performing analysis on: 4FGL_J1051.6+3253_daily_bin1776
RA = 162.911, Dec = 32.8853
tmin = 699667201, tmax = 699926401
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='830218', job_status='RUN', time_executed='2023-03-08 00:27:15.771216', time_epoch_executed='1678264035.77' WHERE source_name='4FGL J1051.6+3253' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/830218

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/830218/ft1_4FGL_J1051.6+3253_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/830218/ft2_4FGL_J1051.6+3253_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/830218/ft1_4FGL_J1051.6+3253_daily_bin1776.fits outfile=/scratch/kocevski/830218/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin1776.fits ra=162.911 dec=32.8853 rad=12.0 tmin=699667201.0 tmax=699926401.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.92
user 3.67
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/830218/ft2_4FGL_J1051.6+3253_daily_bin1776.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/830218/ft2_4FGL_J1051.6+3253_daily_bin1776.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/830218/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin1776.fits evtable="EVENTS" outfile="/scratch/kocevski/830218/ft1_filtered_4FGL_J1051.6+3253_daily_bin1776.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 590

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/830218/ft1_filtered_4FGL_J1051.6+3253_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/830218/ft2_4FGL_J1051.6+3253_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/830218/ltcube_699667201_699926401_4FGL_J1051.6+3253_daily_bin1776.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/830218/ft2_4FGL_J1051.6+3253_daily_bin1776.fits
.....................!
real 12.46
user 12.11
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/830218/ft1_filtered_4FGL_J1051.6+3253_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/830218/ft2_4FGL_J1051.6+3253_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/830218/ltcube_699667201_699926401_4FGL_J1051.6+3253_daily_bin1776.fits outfile=/scratch/kocevski/830218/expmap_699667201_699926401_4FGL_J1051.6+3253_daily_bin1776.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/830218/ltcube_699667201_699926401_4FGL_J1051.6+3253_daily_bin1776.fits
.....................!
real 190.84
user 185.67
sys 3.92

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

Setting source of interest to:
4FGL J1051.6+3253 @ 162.911 32.8853

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/830218/ft1_filtered_4FGL_J1051.6+3253_daily_bin1776.fits scfile=/scratch/kocevski/830218/ft2_4FGL_J1051.6+3253_daily_bin1776.fits outfile=/scratch/kocevski/830218/cmap_699667201_699926401_4FGL_J1051.6+3253_daily_bin1776.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=162.911 yref=32.8853 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/830218/ft1_filtered_4FGL_J1051.6+3253_daily_bin1776.fits scfile=/scratch/kocevski/830218/ft2_4FGL_J1051.6+3253_daily_bin1776.fits outfile=/scratch/kocevski/830218/cmap_HighResolution_699667201_699926401_4FGL_J1051.6+3253_daily_bin1776.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=162.911 yref=32.8853 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/830218/ft1_filtered_4FGL_J1051.6+3253_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/830218/ft2_4FGL_J1051.6+3253_daily_bin1776.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/830218/Model_4FGL_J1051.6+3253_daily_bin1776.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/830218/ft1_filtered_4FGL_J1051.6+3253_daily_bin1776.fits.....................!
real 55.22
user 53.73
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/830218/ft1_filtered_4FGL_J1051.6+3253_daily_bin1776.fits', '/scratch/kocevski/830218/ft2_4FGL_J1051.6+3253_daily_bin1776.fits', expMap='/scratch/kocevski/830218/expmap_699667201_699926401_4FGL_J1051.6+3253_daily_bin1776.fits', expCube='/scratch/kocevski/830218/ltcube_699667201_699926401_4FGL_J1051.6+3253_daily_bin1776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/830218/Model_4FGL_J1051.6+3253_daily_bin1776.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1051.6+3253'

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  1.091e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
294        Index:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
295        Scale:  2.968e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/830218/ft1_filtered_4FGL_J1051.6+3253_daily_bin1776.fits
Spacecraft file(s): /scratch/kocevski/830218/ft2_4FGL_J1051.6+3253_daily_bin1776.fits
Exposure map: /scratch/kocevski/830218/expmap_699667201_699926401_4FGL_J1051.6+3253_daily_bin1776.fits
Exposure cube: /scratch/kocevski/830218/ltcube_699667201_699926401_4FGL_J1051.6+3253_daily_bin1776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/830218/Model_4FGL_J1051.6+3253_daily_bin1776.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) = 6292.83409079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3350       1.0000          .0000       .10000E+07
     2 'Prefactor '    4.6992       1.0000          .0000       .10000E+07
     3 'norm      '    12.277       1.0000          .0000       .10000E+07
     4 'Prefactor '    .85099E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    2.9283       1.0000          .0000       .10000E+07
     6 'norm      '    6.4925       1.0000          .0000       .10000E+07
     7 'Prefactor '    31.814       1.0000          .0000       .10000E+07
     8 'Prefactor '    5.3263       1.0000          .0000       .10000E+07
     9 'Prefactor '    .50663       1.0000          .0000       .10000E+07
    10 'Prefactor '    .94446E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .11029E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    11.464       1.0000          .0000       .10000E+07
    13 'Prefactor '    .14988E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .30331E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .59541E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .32988E-02   1.0000          .0000       .10000E+07
    17 'norm      '    1.6465       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.9767       1.0000          .0000       .10000E+07
    19 'Prefactor '    .60537       1.0000          .0000       .10000E+07
    20 'Prefactor '    .18830E-02   1.0000          .0000       .10000E+07
    21 'norm      '    12.882       1.0000          .0000       .10000E+07
    22 'Prefactor '    2.1979       1.0000          .0000       .10000E+07
    23 'Prefactor '    27.139       1.0000          .0000       .10000E+07
    24 'Prefactor '    .72080E-05   1.0000          .0000       .10000E+07
    25 'norm      '    1.1392       1.0000          .0000       .10000E+07
    26 'Prefactor '    16.254       1.0000          .0000       .10000E+07
    27 'Prefactor '    4.1200       1.0000          .0000       .10000E+07
    28 'Normalizat'    1.3568       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .53790       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6292.752     FROM MIGRAD    STATUS=CONVERGED    215 CALLS     2744 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4358        10.200       -.40189E-07    .62848E-03
   2  Prefactor     4.7008        2.4896        .12878E-07    .54859E-03
   3  norm          12.299        9.9269       -.25465E-07   -.33580E-03
   4  Prefactor      .0000        1.5109       -.42883E-07** at limit **
   5  Prefactor     2.9333        4.4634        .58184E-07    .13436E-02
   6  norm          6.5731        7.1928       -.48651E-07    .12289E-02
   7  Prefactor     34.070        43.837        .39401E-07    .23329E-01
   8  Prefactor     5.2945        9.0447        .28559E-07   -.39997E-01
   9  Prefactor     .50738        1.7484       -.56406E-07   -.55450E-03
  10  Prefactor      .0000        3.1562       -.33981E-07** at limit **
  11  Prefactor      .0000        1.6510        .63753E-07** at limit **
  12  Prefactor     11.345        10.920        .51687E-07    .69082E-03
  13  Prefactor      .0000        18.450       -.25212E-07** at limit **
  14  Prefactor     .55511E-10    6.6579       -.89745E-07** at limit **
  15  Prefactor     .47795E-07    50.697        .34191E-06** at limit **
  16  Prefactor     .12212E-08    13.686       -.99678E-07** at limit **
  17  norm          1.6484        .34384       -.12455E-08   -.16259E-02
  18  Prefactor     2.9840        2.4388       -.28963E-07   -.12767E-02
  19  Prefactor     .36161        5.5967        .37777E-07    .85697E-02
  20  Prefactor     .17764E-08    11.061       -.23578E-06** at limit **
  21  norm          13.121        2.4206       -.27644E-08    .48000E-01
  22  Prefactor     2.0516        3.1204       -.36619E-07   -.22544E-03
  23  Prefactor     31.448        55.868        .17786E-06   -.73748E-02
  24  Prefactor     .27756E-09    19.178        .98238E-07** at limit **
  25  norm          1.0746        2.5380        .79435E-07    .10163E-02
  26  Prefactor     16.428        14.630       -.76587E-07    .16580E-02
  27  Prefactor     4.2134        5.9125        .34306E-07   -.20052E-04
  28  Normalizat    1.3554        .20468        .54994E-06   -.54230E-04
  29  Prefactor     .53742        .22041       -.25496E-05   -.42365E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.43584
  Prefactor  = 4.7008
  norm       = 12.2985
  Prefactor  = 0
  Prefactor  = 2.93332
  norm       = 6.57306
  Prefactor  = 34.0704
  Prefactor  = 5.29451
  Prefactor  = 0.507384
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 11.3454
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 4.77951e-08
  Prefactor  = 1.22125e-09
  norm       = 1.64838
  Prefactor  = 2.98401
  Prefactor  = 0.361613
  Prefactor  = 1.77636e-09
  norm       = 13.1206
  Prefactor  = 2.05157
  Prefactor  = 31.4475
  Prefactor  = 2.77556e-10
  norm       = 1.07457
  Prefactor  = 16.4285
  Prefactor  = 4.21339
  Normalizat = 1.35536
  Prefactor  = 0.537419
 **********
 **   18 **HESSE 
 **********

 FCN=   6292.752     FROM HESSE     STATUS=OK           627 CALLS     3371 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4358        10.219        .39856E-03   -1.5657    
   2  Prefactor     4.7008        2.4900        .46397E-03   -1.5665    
   3  norm          12.299        9.9402        .28564E-03   -1.5638    
   4  Prefactor      .0000        1.5075        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.9333        4.4828        .59336E-03   -1.5674    
   6  norm          6.5731        7.2303        .39364E-03   -1.5657    
   7  Prefactor     34.070        46.701        .17732E-03   -1.5591    
   8  Prefactor     5.2945        34.097        .43524E-03   -1.5662    
   9  Prefactor     .50738        1.7861        .78045E-03   -1.5694    
  10  Prefactor      .0000        3.1555        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        1.6397        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.345        10.948        .29563E-03   -1.5641    
  13  Prefactor      .0000        18.098        .17392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-10    6.6492        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .47795E-07    51.068        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .12212E-08    13.768        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6484        .35636        .46216E-03   -1.5682    
  18  Prefactor     2.9840        2.4516        .58822E-03   -1.5673    
  19  Prefactor     .36161        18.190        .86118E-02   -1.5696    
  20  Prefactor     .17764E-08    11.108        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          13.121        18.094        .27883E-03   -1.5636    
  22  Prefactor     2.0516        3.1660        .69379E-03   -1.5679    
  23  Prefactor     31.448        56.909        .19199E-03   -1.5596    
  24  Prefactor     .27756E-09    19.148        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.0746        2.6551        .10895E-02   -1.5687    
  26  Prefactor     16.428        14.712        .24816E-03   -1.5627    
  27  Prefactor     4.2134        5.9443        .49639E-03   -1.5667    
  28  Normalizat    1.3554        .18123        .47718E-01   -.81929    
  29  Prefactor     .53742        .19580        .83124E-01   -1.1029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9954e-07
Minuit parameter uncertainties:
  1  10.2187
  2  2.49003
  3  9.94024
  4  2.52475e-06
  5  4.48283
  6  7.23027
  7  46.7018
  8  26.8723
  9  1.78614
  10  2.65146e-06
  11  6.17733e-06
  12  10.948
  13  2.98023e-06
  14  4.70288e-05
  15  0.00312498
  16  0.000259154
  17  0.356356
  18  2.45156
  19  5.12944
  20  0.000282623
  21  18.0943
  22  3.16605
  23  56.9102
  24  0.000151645
  25  2.65511
  26  14.712
  27  5.94433
  28  0.181311
  29  0.196044
Done.

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

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  0.000e+00  2.980e-06  0.000e+00  1.000e+06 ( 1.000e-14)
294        Index:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
295        Scale:  2.968e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  5.374e-01  1.960e-01  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
606   Normalization:  1.355e+00  1.813e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 162.911 32.885
Photon Flux Upper Limit: 4.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/830218/likelihoodResults_699667201_699926401_4FGL_J1051.6+3253_daily_bin1776.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) = 6292.77873546
delta logL = -0.0264870911042

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6292.39391517
delta logL = 0.358333199505

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .76036E-02   1.0000          .0000       .10000E+07
     2 'Index     '    4.9461       1.0000          .0000       10.000    
     3 'Normalizat'    1.3050       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57307       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6292.752     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      292 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        9.8045        .42118E-03** at limit **
   2  Index         1.0027        .60077       -.84609E-04     .0000    
   3  Normalizat    1.3554        1.0959        .11060E-04   -.54126E-04
   4  Prefactor     .53742        .89239       -.12031E-04   -.66853E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.00275
  Normalizat = 1.35536
  Prefactor  = 0.537418
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6292.752     FROM HESSE     STATUS=FAILED         9 CALLS      301 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        9.8045        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9777        1.8942       -.84609E-04   -8.4984    
   3  Normalizat    1.3554        1.0959        .11060E-04   -.81929    
   4  Prefactor     .53742        .89239       -.12031E-04   -1.1029    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.46634e-11
Minuit parameter uncertainties:
  1  2.1356e-05
  2  0.604848
  3  1.1157
  4  0.917489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/830218': 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): 101
logL (Free Index) = 6292.75224837
delta logL = -6.36646291241e-12

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  0.000e+00  2.136e-05  0.000e+00  1.000e+06 ( 1.000e-14)
294        Index:  1.003e+00  6.048e-01  0.000e+00  1.000e+01 (-1.000e+00)
295        Scale:  2.968e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  5.374e-01  9.175e-01  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
606   Normalization:  1.355e+00  1.116e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 162.911 32.885

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/830218/cmap_HighResolution_699667201_699926401_4FGL_J1051.6+3253_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.69e-03', job_status='DONE', photon_flux_upper_limit='4.90e-08', time_completed='2023-03-08 00:40:01.371825', job_id='830218', GAL2='0.54', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1678264801.37', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='-6.37e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='1776' AND source_name='4FGL J1051.6+3253' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 00:40:01 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 830218: <4FGL_J1051.6+3253_daily_bin1776> in cluster <slac> Done

Job <4FGL_J1051.6+3253_daily_bin1776> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Mar  8 00:25:43 2023
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 00:25:52 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 00:25:52 2023
Terminated at Wed Mar  8 00:40:02 2023
Results reported at Wed Mar  8 00:40:02 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+3253_daily_bin1776 162.911 32.8853 699667201 699926401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1051.6+3253 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   764.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            859 sec.

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

