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


Performing analysis on: 4FGL_J1051.6+3253_daily_bin1759
RA = 162.911, Dec = 32.8853
tmin = 695260801, tmax = 695520001
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='555618', job_status='RUN', time_executed='2023-01-16 01:02:20.189217', time_epoch_executed='1673859740.19' WHERE source_name='4FGL J1051.6+3253' and cadence='daily' and bin_id='1759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555618

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555618/ft1_4FGL_J1051.6+3253_daily_bin1759.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555618/ft2_4FGL_J1051.6+3253_daily_bin1759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555618/ft1_4FGL_J1051.6+3253_daily_bin1759.fits outfile=/scratch/kocevski/555618/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin1759.fits ra=162.911 dec=32.8853 rad=12.0 tmin=695260801.0 tmax=695520001.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.80
user 2.51
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/555618/ft2_4FGL_J1051.6+3253_daily_bin1759.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/555618/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin1759.fits evtable="EVENTS" outfile="/scratch/kocevski/555618/ft1_filtered_4FGL_J1051.6+3253_daily_bin1759.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.52
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 336

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/555618/ft1_filtered_4FGL_J1051.6+3253_daily_bin1759.fits" evtable="EVENTS" scfile=/scratch/kocevski/555618/ft2_4FGL_J1051.6+3253_daily_bin1759.fits sctable="SC_DATA" outfile=/scratch/kocevski/555618/ltcube_695260801_695520001_4FGL_J1051.6+3253_daily_bin1759.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/555618/ft2_4FGL_J1051.6+3253_daily_bin1759.fits
.....................!
real 15.93
user 15.54
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555618/ft1_filtered_4FGL_J1051.6+3253_daily_bin1759.fits evtable="EVENTS" scfile=/scratch/kocevski/555618/ft2_4FGL_J1051.6+3253_daily_bin1759.fits sctable="SC_DATA" expcube=/scratch/kocevski/555618/ltcube_695260801_695520001_4FGL_J1051.6+3253_daily_bin1759.fits outfile=/scratch/kocevski/555618/expmap_695260801_695520001_4FGL_J1051.6+3253_daily_bin1759.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/555618/ltcube_695260801_695520001_4FGL_J1051.6+3253_daily_bin1759.fits
.....................!
real 194.15
user 188.37
sys 5.34

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/555618/ft1_filtered_4FGL_J1051.6+3253_daily_bin1759.fits scfile=/scratch/kocevski/555618/ft2_4FGL_J1051.6+3253_daily_bin1759.fits outfile=/scratch/kocevski/555618/cmap_695260801_695520001_4FGL_J1051.6+3253_daily_bin1759.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/555618/ft1_filtered_4FGL_J1051.6+3253_daily_bin1759.fits scfile=/scratch/kocevski/555618/ft2_4FGL_J1051.6+3253_daily_bin1759.fits outfile=/scratch/kocevski/555618/cmap_HighResolution_695260801_695520001_4FGL_J1051.6+3253_daily_bin1759.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.58
user 0.41
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/555618/ft1_filtered_4FGL_J1051.6+3253_daily_bin1759.fits', '/scratch/kocevski/555618/ft2_4FGL_J1051.6+3253_daily_bin1759.fits', expMap='/scratch/kocevski/555618/expmap_695260801_695520001_4FGL_J1051.6+3253_daily_bin1759.fits', expCube='/scratch/kocevski/555618/ltcube_695260801_695520001_4FGL_J1051.6+3253_daily_bin1759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/555618/Model_4FGL_J1051.6+3253_daily_bin1759.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/555618/ft1_filtered_4FGL_J1051.6+3253_daily_bin1759.fits
Spacecraft file(s): /scratch/kocevski/555618/ft2_4FGL_J1051.6+3253_daily_bin1759.fits
Exposure map: /scratch/kocevski/555618/expmap_695260801_695520001_4FGL_J1051.6+3253_daily_bin1759.fits
Exposure cube: /scratch/kocevski/555618/ltcube_695260801_695520001_4FGL_J1051.6+3253_daily_bin1759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/555618/Model_4FGL_J1051.6+3253_daily_bin1759.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) = 3755.46572834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.926       1.0000          .0000       .10000E+07
     2 'Prefactor '    .40927E-04   1.0000          .0000       .10000E+07
     3 'norm      '    .86402E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .81811E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .10211E-03   1.0000          .0000       .10000E+07
     6 'norm      '    .10973E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    82.342       1.0000          .0000       .10000E+07
     8 'Prefactor '    44.998       1.0000          .0000       .10000E+07
     9 'Prefactor '    .85857E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .22024E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    12 'Prefactor '    10.338       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10996E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .48122E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    59.058       1.0000          .0000       .10000E+07
    16 'Prefactor '    .68129E-03   1.0000          .0000       .10000E+07
    17 'norm      '    3.4675       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.1390       1.0000          .0000       .10000E+07
    19 'Prefactor '    .94957E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .87752E-02   1.0000          .0000       .10000E+07
    21 'norm      '    .37170E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .38108E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    .25780       1.0000          .0000       .10000E+07
    24 'Prefactor '    .11520E-01   1.0000          .0000       .10000E+07
    25 'norm      '    3.5197       1.0000          .0000       .10000E+07
    26 'Prefactor '    70.168       1.0000          .0000       .10000E+07
    27 'Prefactor '    5.9652       1.0000          .0000       .10000E+07
    28 'Normalizat'    1.0708       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2992       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=   3755.451     FROM MIGRAD    STATUS=CONVERGED    275 CALLS     2747 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.046        4.6748       -.45507E-08    .60138E-01
   2  Prefactor      .0000        3.6355        .12248E-07** at limit **
   3  norm           .0000        10.687       -.14567E-08** at limit **
   4  Prefactor      .0000        7.0361       -.67051E-07** at limit **
   5  Prefactor      .0000        5.1701       -.43570E-07** at limit **
   6  norm          .20550E-06    44.856        .15099E-06** at limit **
   7  Prefactor     80.558        38.466       -.28943E-06   -.12235E-01
   8  Prefactor     46.730        64.237        .28438E-06   -.13360E-02
   9  Prefactor      .0000        6.5698        .17262E-07** at limit **
  10  Prefactor      .0000        5.6556        .21655E-07** at limit **
  11  Prefactor      .0000        1.8216        .99298E-08** at limit **
  12  Prefactor     10.340        15.092       -.20667E-07    .40199E-03
  13  Prefactor     .27583E-06    20.145        .54931E-07** at limit **
  14  Prefactor      .0000        5.8165       -.29034E-07** at limit **
  15  Prefactor     68.866        157.55       -.14240E-06   -.12293E-02
  16  Prefactor      .0000        4.7914        .13681E-07** at limit **
  17  norm          3.4671        .67189       -.24431E-08   -.30603E-02
  18  Prefactor     1.2335        3.8111       -.91452E-08   -.14819E-03
  19  Prefactor     .47035E-06    260.62       -.23974E-05** at limit **
  20  Prefactor     .10975E-06    22.860        .38957E-07** at limit **
  21  norm          .49960E-09    30.020        .81212E-07** at limit **
  22  Prefactor      .0000        5.5778        .16780E-07** at limit **
  23  Prefactor     .44409E-09    98.673        .36280E-07** at limit **
  24  Prefactor     .57954E-07    31.334       -.49520E-07** at limit **
  25  norm          3.5618        4.6978       -.77695E-08   -.18160E-03
  26  Prefactor     70.304        3.3268        .14426E-08   -.38452E-01
  27  Prefactor     6.0156        11.191        .35665E-07    .30419E-02
  28  Normalizat    1.0664        .35473        .27376E-05    .45597E-05
  29  Prefactor     1.2993        .38544       -.23992E-05   -.41584E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0459
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 2.05502e-07
  Prefactor  = 80.5578
  Prefactor  = 46.7297
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 10.3397
  Prefactor  = 2.75835e-07
  Prefactor  = 0
  Prefactor  = 68.8661
  Prefactor  = 0
  norm       = 3.46714
  Prefactor  = 1.23346
  Prefactor  = 4.70346e-07
  Prefactor  = 1.09746e-07
  norm       = 4.996e-10
  Prefactor  = 0
  Prefactor  = 4.44089e-10
  Prefactor  = 5.79536e-08
  norm       = 3.56183
  Prefactor  = 70.3043
  Prefactor  = 6.01561
  Normalizat = 1.06636
  Prefactor  = 1.29928
 **********
 **   18 **HESSE 
 **********

 FCN=   3755.451     FROM HESSE     STATUS=OK           607 CALLS     3354 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.046        28.450        .30285E-03   -1.5641    
   2  Prefactor      .0000        3.6502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        10.711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        7.0681        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        5.1857        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .20550E-06    45.939        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     80.558        78.399        .11021E-03   -1.5528    
   8  Prefactor     46.730        64.380        .14909E-03   -1.5571    
   9  Prefactor      .0000        6.5509        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        5.6568        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        1.8228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.340        15.120        .31139E-03   -1.5644    
  13  Prefactor     .27583E-06    42.092        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        5.8227        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     68.866        156.20        .13013E-03   -1.5542    
  16  Prefactor      .0000        4.7964        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4671        .67302        .47913E-03   -1.5671    
  18  Prefactor     1.2335        3.7659        .10897E-02   -1.5730    
  19  Prefactor     .47035E-06    332.22        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10975E-06    42.759        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .49960E-09    30.223        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        5.5454        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .44409E-09    98.566        .10826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .57954E-07    31.671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.5618        4.7453        .53861E-03   -1.5670    
  26  Prefactor     70.304        31.208        .11939E-03   -1.5540    
  27  Prefactor     6.0156        11.549        .41089E-03   -1.5659    
  28  Normalizat    1.0664        .29547        .68759E-01   -.90839    
  29  Prefactor     1.2993        .31849        .72208E-01   -.83329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14794e-07
Minuit parameter uncertainties:
  1  28.4506
  2  1.67055e-06
  3  3.31995e-05
  4  1.4474e-05
  5  1.39131e-05
  6  0.00614556
  7  78.4002
  8  64.3808
  9  1.77463e-06
  10  8.23276e-07
  11  4.14571e-07
  12  15.1198
  13  0.00681496
  14  1.26461e-05
  15  156.211
  16  5.63727e-06
  17  0.673024
  18  3.76586
  19  0.0250014
  20  0.0043327
  21  0.000250959
  22  9.40749e-06
  23  0.000431197
  24  0.00270983
  25  4.74529
  26  31.2078
  27  11.5487
  28  0.295929
  29  0.31897
Done.

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

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  2.758e-07  6.815e-03  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:  1.299e+00  3.190e-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.066e+00  2.959e-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: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/555618/likelihoodResults_695260801_695520001_4FGL_J1051.6+3253_daily_bin1759.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) = 3755.46201333
delta logL = -0.0115064121183

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3755.45051251
delta logL = -5.59410091228e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13057E-03   1.0000          .0000       .10000E+07
     2 'Index     '    .94925       1.0000          .0000       10.000    
     3 'Normalizat'    1.0671       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2987       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=   3755.451     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      201 TOTAL
                     EDM=   .14E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        48.102        .25505E-06** at limit **
   2  Index         1.7256        5.4613        .50518E-05     .0000    
   3  Normalizat    1.0664        .33279       -.15030E-04   -.53708E-05
   4  Prefactor     1.2993        .38249        .12636E-04   -.81496E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.72563
  Normalizat = 1.06636
  Prefactor  = 1.29928
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   3755.451     FROM HESSE     STATUS=FAILED        11 CALLS      212 TOTAL
                     EDM=   .14E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        48.555        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .29764        1.7630        .50518E-05   -.71402    
   3  Normalizat    1.0664        1.1831       -.15030E-04   -.90839    
   4  Prefactor     1.2993        1.0778        .12636E-04   -.83329    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.39216e-13
Minuit parameter uncertainties:
  1  9.62552e-06
  2  1.7242
  3  1.21446
  4  1.09718
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555618': 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) = 3755.45050692
delta logL = 3.27463567373e-09

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  0.000e+00  9.626e-06  0.000e+00  1.000e+06 ( 1.000e-14)
294        Index:  1.726e+00  1.724e+00  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:  1.299e+00  1.097e+00  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.066e+00  1.214e+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/555618/cmap_HighResolution_695260801_695520001_4FGL_J1051.6+3253_daily_bin1759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.65e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2023-01-16 01:11:55.905247', job_id='555618', GAL2='1.30', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1673860315.91', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='3.27e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='1759' AND source_name='4FGL J1051.6+3253' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 16 01:11:55 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 555618: <4FGL_J1051.6+3253_daily_bin1759> in cluster <slac> Done

Job <4FGL_J1051.6+3253_daily_bin1759> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Mon Jan 16 01:00:20 2023
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 16 01:01:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 16 01:01:20 2023
Terminated at Mon Jan 16 01:11:56 2023
Results reported at Mon Jan 16 01:11:56 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+3253_daily_bin1759 162.911 32.8853 695260801 695520001 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 :                                   578.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   636 sec.
    Turnaround time :                            696 sec.

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

