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


Performing analysis on: 4FGL_J1051.6+3253_daily_bin1753
RA = 162.911, Dec = 32.8853
tmin = 693705601, tmax = 693964801
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='452560', job_status='RUN', time_executed='2022-12-29 00:47:32.816380', time_epoch_executed='1672303652.82' WHERE source_name='4FGL J1051.6+3253' and cadence='daily' and bin_id='1753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452560

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452560/ft1_4FGL_J1051.6+3253_daily_bin1753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452560/ft2_4FGL_J1051.6+3253_daily_bin1753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452560/ft1_4FGL_J1051.6+3253_daily_bin1753.fits outfile=/scratch/kocevski/452560/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin1753.fits ra=162.911 dec=32.8853 rad=12.0 tmin=693705601.0 tmax=693964801.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 4.68
user 4.37
sys 0.25

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

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

Number of photons that the gtmktime cut: 567

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/452560/ft1_filtered_4FGL_J1051.6+3253_daily_bin1753.fits" evtable="EVENTS" scfile=/scratch/kocevski/452560/ft2_4FGL_J1051.6+3253_daily_bin1753.fits sctable="SC_DATA" outfile=/scratch/kocevski/452560/ltcube_693705601_693964801_4FGL_J1051.6+3253_daily_bin1753.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/452560/ft2_4FGL_J1051.6+3253_daily_bin1753.fits
.....................!
real 16.17
user 15.62
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452560/ft1_filtered_4FGL_J1051.6+3253_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/452560/ft2_4FGL_J1051.6+3253_daily_bin1753.fits sctable="SC_DATA" expcube=/scratch/kocevski/452560/ltcube_693705601_693964801_4FGL_J1051.6+3253_daily_bin1753.fits outfile=/scratch/kocevski/452560/expmap_693705601_693964801_4FGL_J1051.6+3253_daily_bin1753.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/452560/ltcube_693705601_693964801_4FGL_J1051.6+3253_daily_bin1753.fits
.....................!
real 193.92
user 186.79
sys 4.87

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/452560/ft1_filtered_4FGL_J1051.6+3253_daily_bin1753.fits scfile=/scratch/kocevski/452560/ft2_4FGL_J1051.6+3253_daily_bin1753.fits outfile=/scratch/kocevski/452560/cmap_693705601_693964801_4FGL_J1051.6+3253_daily_bin1753.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452560/ft1_filtered_4FGL_J1051.6+3253_daily_bin1753.fits scfile=/scratch/kocevski/452560/ft2_4FGL_J1051.6+3253_daily_bin1753.fits outfile=/scratch/kocevski/452560/cmap_HighResolution_693705601_693964801_4FGL_J1051.6+3253_daily_bin1753.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24816E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.8324       1.0000          .0000       .10000E+07
     3 'norm      '    2.7733       1.0000          .0000       .10000E+07
     4 'Prefactor '    .55444       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.5208       1.0000          .0000       .10000E+07
     6 'norm      '    .32567E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .29934       1.0000          .0000       .10000E+07
     8 'Prefactor '    30.798       1.0000          .0000       .10000E+07
     9 'Prefactor '    .53351E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.3889       1.0000          .0000       .10000E+07
    11 'Prefactor '    .57204E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.7111       1.0000          .0000       .10000E+07
    13 'Prefactor '    .57076E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    10.193       1.0000          .0000       .10000E+07
    15 'Prefactor '    .19461E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .29550E-02   1.0000          .0000       .10000E+07
    17 'norm      '    2.2562       1.0000          .0000       .10000E+07
    18 'Prefactor '    4.7325       1.0000          .0000       .10000E+07
    19 'Prefactor '    8.5353       1.0000          .0000       .10000E+07
    20 'Prefactor '    .29904E-04   1.0000          .0000       .10000E+07
    21 'norm      '    5.4476       1.0000          .0000       .10000E+07
    22 'Prefactor '    .59819E-06   1.0000          .0000       .10000E+07
    23 'Prefactor '    .11506E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    .71723       1.0000          .0000       .10000E+07
    25 'norm      '    1.6615       1.0000          .0000       .10000E+07
    26 'Prefactor '    .89769E-01   1.0000          .0000       .10000E+07
    27 'Prefactor '    4.6015       1.0000          .0000       .10000E+07
    28 'Normalizat'    .99226       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .93476       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=   6064.990     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     2637 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.9102       -.55536E-08** at limit **
   2  Prefactor     1.8320        1.8679        .56103E-08    .58009E-03
   3  norm          2.7722        6.5911        .17033E-07    .13238E-02
   4  Prefactor     .56190        2.8247        .19655E-06    .22477E-02
   5  Prefactor     3.5371        4.2404        .50458E-07    .19129E-02
   6  norm          .14988E-08    2.2081       -.85444E-07** at limit **
   7  Prefactor     .94291E-05    52.963        .53794E-07** at limit **
   8  Prefactor     31.196        13.064       -.57291E-07    .13104    
   9  Prefactor      .0000        1.5880       -.15574E-08** at limit **
  10  Prefactor     1.3900        6.5775       -.57785E-07   -.56210E-03
  11  Prefactor     .54085E-01    7.2672       -.12137E-07** at limit **
  12  Prefactor     1.9232        8.2120        .74542E-07    .17982E-02
  13  Prefactor     .25702E-07    5.6295        .17497E-06** at limit **
  14  Prefactor     9.9507        5.9158        .28276E-07    .21258E-01
  15  Prefactor     .65281E-07    46.841        .89619E-06** at limit **
  16  Prefactor     .26590E-07    3.1108       -.81741E-07** at limit **
  17  norm          2.2556        .40237       -.92020E-08   -.10800E-01
  18  Prefactor     4.7338        2.8371       -.32743E-07   -.12408E-02
  19  Prefactor     8.6111        4.7720       -.16764E-07   -.12401E-01
  20  Prefactor     .73219E-07    4.8241        .14960E-07** at limit **
  21  norm          5.4211        2.4732       -.51765E-08    .31206E-02
  22  Prefactor      .0000        .47334       -.11432E-07** at limit **
  23  Prefactor     .77549E-07    11.372       -.16055E-07** at limit **
  24  Prefactor     .83573        3.1310       -.35550E-07   -.15522E-01
  25  norm          1.6623        2.0186        .57137E-07    .23527E-02
  26  Prefactor     .20835E-05    5.5049        .26513E-06** at limit **
  27  Prefactor     4.5912        4.3198        .41082E-07    .18686E-02
  28  Normalizat    .99160        .19855        .94707E-06    .10553E-03
  29  Prefactor     .93530        .23059       -.36086E-06    .71979E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 1.83201
  norm       = 2.77219
  Prefactor  = 0.561903
  Prefactor  = 3.53705
  norm       = 1.4988e-09
  Prefactor  = 9.42907e-06
  Prefactor  = 31.1964
  Prefactor  = 0
  Prefactor  = 1.39002
  Prefactor  = 0.0540853
  Prefactor  = 1.92322
  Prefactor  = 2.57017e-08
  Prefactor  = 9.95075
  Prefactor  = 6.52811e-08
  Prefactor  = 2.65898e-08
  norm       = 2.25559
  Prefactor  = 4.73381
  Prefactor  = 8.61111
  Prefactor  = 7.32192e-08
  norm       = 5.42112
  Prefactor  = 0
  Prefactor  = 7.75491e-08
  Prefactor  = 0.835735
  norm       = 1.66234
  Prefactor  = 2.0835e-06
  Prefactor  = 4.59121
  Normalizat = 0.991602
  Prefactor  = 0.935298
 **********
 **   18 **HESSE 
 **********

 FCN=   6064.990     FROM HESSE     STATUS=OK           625 CALLS     3262 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.9081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.8320        1.8799        .77061E-03   -1.5681    
   3  norm          2.7722        6.6130        .61085E-03   -1.5675    
   4  Prefactor     .56190        3.0610        .73412E-03   -1.5693    
   5  Prefactor     3.5371        4.3729        .53852E-03   -1.5670    
   6  norm          .14988E-08    5.0913        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .94291E-05    76.085        .10222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     31.196        27.989        .18022E-03   -1.5596    
   9  Prefactor      .0000        1.5797        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.3900        6.7796        .92198E-03   -1.5684    
  11  Prefactor     .54085E-01    1.4010        .28367E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.9232        30.244        .80329E-03   -1.5680    
  13  Prefactor     .25702E-07    5.7608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.9507        14.971        .31360E-03   -1.5645    
  15  Prefactor     .65281E-07    47.828        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .26590E-07    4.9065        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.2556        .41869        .45322E-03   -1.5678    
  18  Prefactor     4.7338        2.8323        .46229E-03   -1.5664    
  19  Prefactor     8.6111        17.463        .34288E-03   -1.5649    
  20  Prefactor     .73219E-07    5.2160        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.4211        12.997        .43028E-03   -1.5661    
  22  Prefactor      .0000        .47378        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .77549E-07    11.553        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .83573        109.19        .59321E-03   -1.5690    
  25  norm          1.6623        2.0378        .81809E-03   -1.5682    
  26  Prefactor     .20835E-05    11.473        .11981E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     4.5912        4.3255        .46899E-03   -1.5665    
  28  Normalizat    .99160        .17594        .46070E-01   -.93312    
  29  Prefactor     .93530        .19871        .45447E-01   -.94918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35196e-06
Minuit parameter uncertainties:
  1  7.95447e-07
  2  1.87988
  3  6.61305
  4  2.62295
  5  4.37291
  6  0.000173257
  7  0.0535697
  8  27.9887
  9  5.72788e-07
  10  6.13966
  11  0.55053
  12  15.2534
  13  0.000769776
  14  14.971
  15  0.00353375
  16  0.000722495
  17  0.418687
  18  2.83229
  19  17.4627
  20  0.00123616
  21  12.9966
  22  5.39423e-07
  23  0.00189296
  24  19.106
  25  2.03778
  26  0.00977842
  27  4.3255
  28  0.176045
  29  0.198865
Done.

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

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  2.570e-08  7.698e-04  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:  9.353e-01  1.989e-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:  9.916e-01  1.760e-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: 3.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/452560/likelihoodResults_693705601_693964801_4FGL_J1051.6+3253_daily_bin1753.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) = 6065.07250779
delta logL = -0.0827856405576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6064.98972239
delta logL = -2.41002453549e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17493E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .58097       1.0000          .0000       10.000    
     3 'Normalizat'    .99155       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93539       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.

 FCN=   6064.990     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      228 TOTAL
                     EDM=   .28E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    .33749E-01    .42118E-03** at limit **
   2  Index         1.8082        8.3895        .40794        .16721E-10
   3  Normalizat    .99160        .25877E-03    .46061E-01   -.26669E-03
   4  Prefactor     .93530        .31129E-03    .45454E-01   -.22875E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 1.8082
  Normalizat = 0.991601
  Prefactor  = 0.935297
 **********
 **   18 **HESSE 
 **********

 FCN=   6064.990     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      257 TOTAL
                     EDM=   .83E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    .99866E-01    .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8082        7.0256        .50000       -.69237    
   3  Normalizat    .99160        .44477E-03    .23149E-03   -.93312    
   4  Prefactor     .93530        .53506E-03    .28440E-03   -.94918    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.32182e-14
Minuit parameter uncertainties:
  1  3.57609e-06
  2  11047.9
  3  0.000444774
  4  0.00053506
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452560': 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): 102
logL (Free Index) = 6064.98972214
delta logL = 2.19097273657e-09

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  5.551e-11  3.576e-06  0.000e+00  1.000e+06 ( 1.000e-14)
294        Index:  1.808e+00  1.105e+04  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:  9.353e-01  5.351e-04  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:  9.916e-01  4.448e-04  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/452560/cmap_HighResolution_693705601_693964801_4FGL_J1051.6+3253_daily_bin1753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.39e-03', job_status='DONE', photon_flux_upper_limit='3.17e-08', time_completed='2022-12-29 01:00:07.461932', job_id='452560', GAL2='0.94', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1672304407.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.19e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='1753' AND source_name='4FGL J1051.6+3253' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 29 01:00:07 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 452560: <4FGL_J1051.6+3253_daily_bin1753> in cluster <slac> Done

Job <4FGL_J1051.6+3253_daily_bin1753> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Dec 29 00:45:14 2022
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 29 00:46:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 29 00:46:18 2022
Terminated at Thu Dec 29 01:00:07 2022
Results reported at Thu Dec 29 01:00:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+3253_daily_bin1753 162.911 32.8853 693705601 693964801 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 :                                   749.28 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             302.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            893 sec.

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

