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


Performing analysis on: 4FGL_J1051.6+3253_daily_bin1708
RA = 162.911, Dec = 32.8853
tmin = 682041601, tmax = 682300801
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='97473', job_status='RUN', time_executed='2022-09-16 15:38:20.647945', time_epoch_executed='1663367900.65' WHERE source_name='4FGL J1051.6+3253' and cadence='daily' and bin_id='1708'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/97473

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/97473/ft1_4FGL_J1051.6+3253_daily_bin1708.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/97473/ft2_4FGL_J1051.6+3253_daily_bin1708.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/97473/ft1_4FGL_J1051.6+3253_daily_bin1708.fits outfile=/scratch/kocevski/97473/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin1708.fits ra=162.911 dec=32.8853 rad=12.0 tmin=682041601.0 tmax=682300801.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.03
user 3.79
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/97473/ft2_4FGL_J1051.6+3253_daily_bin1708.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/97473/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin1708.fits evtable="EVENTS" outfile="/scratch/kocevski/97473/ft1_filtered_4FGL_J1051.6+3253_daily_bin1708.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.34
sys 0.17

Number of photons that the gtmktime cut: 544

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/97473/ft1_filtered_4FGL_J1051.6+3253_daily_bin1708.fits" evtable="EVENTS" scfile=/scratch/kocevski/97473/ft2_4FGL_J1051.6+3253_daily_bin1708.fits sctable="SC_DATA" outfile=/scratch/kocevski/97473/ltcube_682041601_682300801_4FGL_J1051.6+3253_daily_bin1708.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/97473/ft2_4FGL_J1051.6+3253_daily_bin1708.fits
.....................!
real 15.73
user 15.30
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/97473/ft1_filtered_4FGL_J1051.6+3253_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/97473/ft2_4FGL_J1051.6+3253_daily_bin1708.fits sctable="SC_DATA" expcube=/scratch/kocevski/97473/ltcube_682041601_682300801_4FGL_J1051.6+3253_daily_bin1708.fits outfile=/scratch/kocevski/97473/expmap_682041601_682300801_4FGL_J1051.6+3253_daily_bin1708.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/97473/ltcube_682041601_682300801_4FGL_J1051.6+3253_daily_bin1708.fits
.....................!
real 192.77
user 187.25
sys 5.01

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/97473/ft1_filtered_4FGL_J1051.6+3253_daily_bin1708.fits scfile=/scratch/kocevski/97473/ft2_4FGL_J1051.6+3253_daily_bin1708.fits outfile=/scratch/kocevski/97473/cmap_682041601_682300801_4FGL_J1051.6+3253_daily_bin1708.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/97473/ft1_filtered_4FGL_J1051.6+3253_daily_bin1708.fits scfile=/scratch/kocevski/97473/ft2_4FGL_J1051.6+3253_daily_bin1708.fits outfile=/scratch/kocevski/97473/cmap_HighResolution_682041601_682300801_4FGL_J1051.6+3253_daily_bin1708.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.59
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66423E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .11105E-05   1.0000          .0000       .10000E+07
     3 'norm      '    17.034       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.3043       1.0000          .0000       .10000E+07
     5 'Prefactor '    4.3151       1.0000          .0000       .10000E+07
     6 'norm      '    18.544       1.0000          .0000       .10000E+07
     7 'Prefactor '    .38548       1.0000          .0000       .10000E+07
     8 'Prefactor '    42.025       1.0000          .0000       .10000E+07
     9 'Prefactor '    .19580E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    7.8976       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.4304       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.1843       1.0000          .0000       .10000E+07
    13 'Prefactor '    .79465E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .80480E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .16378E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    .20287E-02   1.0000          .0000       .10000E+07
    17 'norm      '    1.4751       1.0000          .0000       .10000E+07
    18 'Prefactor '    .14446E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .23739E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    9.3707       1.0000          .0000       .10000E+07
    21 'norm      '    .81131E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    1.8246       1.0000          .0000       .10000E+07
    23 'Prefactor '    .58319E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    .63126E-04   1.0000          .0000       .10000E+07
    25 'norm      '    1.5747       1.0000          .0000       .10000E+07
    26 'Prefactor '    19.892       1.0000          .0000       .10000E+07
    27 'Prefactor '    3.5082       1.0000          .0000       .10000E+07
    28 'Normalizat'    1.1573       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84364       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=   6031.627     FROM MIGRAD    STATUS=CONVERGED    180 CALLS     2805 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.3912        .34682E-07** at limit **
   2  Prefactor      .0000        1.0964       -.12957E-06** at limit **
   3  norm          17.032        9.1766       -.15914E-05   -.25278E-01
   4  Prefactor     2.3033        4.2721       -.13592E-06    .44735E-02
   5  Prefactor     4.3134        6.0683       -.35388E-06   -.66749E-02
   6  norm          18.533        3.7441       -.34887E-06    .47925E-01
   7  Prefactor     .71615E-06    28.571       -.83309E-05** at limit **
   8  Prefactor     41.947        1.6540        .55963E-07   -.31821E-02
   9  Prefactor     .16653E-09    2.5464       -.30863E-06** at limit **
  10  Prefactor     7.9009        2.0249       -.23943E-06   -.44570E-01
  11  Prefactor     1.4321        2.3831        .12656E-07    .55670E-02
  12  Prefactor     2.0834        13.392       -.32173E-05   -.24545E-02
  13  Prefactor     .12107E-06    4.3876       -.51767E-06** at limit **
  14  Prefactor     .13123E-06    4.1541        .15485E-06** at limit **
  15  Prefactor     .16653E-09    23.706       -.11253E-06** at limit **
  16  Prefactor     .46074E-08    2.8019        .43676E-06** at limit **
  17  norm          1.4750        .36215        .20552E-07    .11671E-01
  18  Prefactor      .0000        1.7006        .11090E-06** at limit **
  19  Prefactor     .73275E-08    2.9266       -.30377E-06** at limit **
  20  Prefactor     9.3681        1.1693        .77809E-08    .10686E-01
  21  norm          .14433E-07    13.252        .61620E-06** at limit **
  22  Prefactor     1.8127        3.4055       -.56821E-07    .48772E-03
  23  Prefactor     .37748E-08    20.346        .10317E-05** at limit **
  24  Prefactor     .15488E-07    88.014       -.15338E-05** at limit **
  25  norm          1.5766        3.0813       -.13628E-06   -.43722E-04
  26  Prefactor     19.864        14.393       -.25700E-05    .17965E-02
  27  Prefactor     3.5139        5.8101       -.22583E-06   -.70421E-03
  28  Normalizat    1.1576        .21227        .49051E-05    .86121E-04
  29  Prefactor     .84390        .23354        .71016E-06    .16910E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0
  norm       = 17.0315
  Prefactor  = 2.30329
  Prefactor  = 4.31336
  norm       = 18.5325
  Prefactor  = 7.16149e-07
  Prefactor  = 41.9474
  Prefactor  = 1.66533e-10
  Prefactor  = 7.90089
  Prefactor  = 1.43205
  Prefactor  = 2.08339
  Prefactor  = 1.2107e-07
  Prefactor  = 1.31228e-07
  Prefactor  = 1.66533e-10
  Prefactor  = 4.60743e-09
  norm       = 1.47499
  Prefactor  = 0
  Prefactor  = 7.32747e-09
  Prefactor  = 9.36805
  norm       = 1.44329e-08
  Prefactor  = 1.81271
  Prefactor  = 3.77476e-09
  Prefactor  = 1.54876e-08
  norm       = 1.57655
  Prefactor  = 19.8645
  Prefactor  = 3.51386
  Normalizat = 1.15758
  Prefactor  = 0.843902
 **********
 **   18 **HESSE 
 **********

 FCN=   6031.627     FROM HESSE     STATUS=OK           613 CALLS     3418 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.3973        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.0961        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          17.032        9.8582        .24240E-03   -1.5625    
   4  Prefactor     2.3033        4.4768        .67572E-03   -1.5678    
   5  Prefactor     4.3134        6.4827        .48471E-03   -1.5666    
   6  norm          18.533        10.818        .23231E-03   -1.5622    
   7  Prefactor     .71615E-06    77.822        .91189E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     41.947        40.625        .15427E-03   -1.5578    
   9  Prefactor     .16653E-09    2.5341        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.9009        6.9706        .35656E-03   -1.5652    
  11  Prefactor     1.4321        2.4656        .90293E-03   -1.5684    
  12  Prefactor     2.0834        14.124        .69620E-03   -1.5679    
  13  Prefactor     .12107E-06    7.8800        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .13123E-06    8.0195        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .16653E-09    23.735        .17288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .46074E-08    5.4952        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4750        .36589        .50403E-03   -1.5684    
  18  Prefactor      .0000        1.6991        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .73275E-08    5.4168        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.3681        11.629        .32714E-03   -1.5647    
  21  norm          .14433E-07    13.367        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.8127        3.5766        .77259E-03   -1.5681    
  23  Prefactor     .37748E-08    21.245        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .15488E-07    88.870        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.5766        3.2090        .84650E-03   -1.5683    
  26  Prefactor     19.864        18.262        .22428E-03   -1.5619    
  27  Prefactor     3.5139        5.9297        .53952E-03   -1.5670    
  28  Normalizat    1.1576        .18251        .53541E-01   -.87924    
  29  Prefactor     .84390        .19944        .70517E-01   -.98130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84384e-07
Minuit parameter uncertainties:
  1  1.5966e-05
  2  7.3121e-07
  3  9.85818
  4  4.47685
  5  6.48269
  6  10.8177
  7  0.0149313
  8  40.6249
  9  4.25241e-05
  10  6.97064
  11  2.46563
  12  10.8491
  13  0.00195346
  14  0.00205172
  15  0.00012806
  16  0.000319078
  17  0.365887
  18  1.07094e-05
  19  0.000398282
  20  11.6295
  21  0.000877836
  22  3.57665
  23  0.000565347
  24  0.00234505
  25  3.20899
  26  18.2623
  27  5.92967
  28  0.182609
  29  0.199614
Done.

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

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  1.211e-07  1.953e-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:  8.439e-01  1.996e-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.158e+00  1.826e-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.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/97473/likelihoodResults_682041601_682300801_4FGL_J1051.6+3253_daily_bin1708.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) = 6031.68748071
delta logL = -0.0606078661358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6031.6268732
delta logL = -3.56813870894e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30059E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .57092       1.0000          .0000       10.000    
     3 'Normalizat'    1.1575       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84388       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=   6031.627     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      208 TOTAL
                     EDM=   .68E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        8.7402       -.26751E-06** at limit **
   2  Index         1.9364        5.9332        .20761E-04     .0000    
   3  Normalizat    1.1576        .20246       -.25053E-05   -.97643E-04
   4  Prefactor     .84390        .23260       -.19678E-06   -.59644E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.93642
  Normalizat = 1.15758
  Prefactor  = 0.8439
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6031.627     FROM HESSE     STATUS=FAILED        11 CALLS      219 TOTAL
                     EDM=   .68E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        8.7468        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .39724        1.7889        .20761E-04   -.65949    
   3  Normalizat    1.1576        1.1230       -.25053E-05   -.87924    
   4  Prefactor     .84390        1.1912       -.19678E-06   -.98130    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.84026e-12
Minuit parameter uncertainties:
  1  2.66487e-05
  2  1.60652
  3  1.14769
  4  1.23102
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/97473': 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) = 6031.62687284
delta logL = 7.72433850216e-09

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  0.000e+00  2.665e-05  0.000e+00  1.000e+06 ( 1.000e-14)
294        Index:  1.936e+00  1.607e+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:  8.439e-01  1.231e+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.158e+00  1.148e+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/97473/cmap_HighResolution_682041601_682300801_4FGL_J1051.6+3253_daily_bin1708.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.12e-03', job_status='DONE', photon_flux_upper_limit='4.15e-08', time_completed='2022-09-16 15:50:43.705462', job_id='97473', GAL2='0.84', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1663368643.71', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='7.72e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='1708' AND source_name='4FGL J1051.6+3253' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:50:43 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 97473: <4FGL_J1051.6+3253_daily_bin1708> in cluster <slac> Done

Job <4FGL_J1051.6+3253_daily_bin1708> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 16 15:35:15 2022
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:36:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 15:36:01 2022
Terminated at Fri Sep 16 15:50:44 2022
Results reported at Fri Sep 16 15:50:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+3253_daily_bin1708 162.911 32.8853 682041601 682300801 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 :                                   745.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             283.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            929 sec.

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

