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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1749
RA = 162.913, Dec = 21.1651
tmin = 692668801, tmax = 692928001
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='947920', job_status='RUN', time_executed='2022-12-17 00:34:13.575219', time_epoch_executed='1671266053.58' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/947920

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/947920/ft1_4FGL_J1051.6+2109_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/947920/ft2_4FGL_J1051.6+2109_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/947920/ft1_4FGL_J1051.6+2109_daily_bin1749.fits outfile=/scratch/kocevski/947920/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1749.fits ra=162.913 dec=21.1651 rad=12.0 tmin=692668801.0 tmax=692928001.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.68
user 3.46
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/947920/ft2_4FGL_J1051.6+2109_daily_bin1749.fits

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

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

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

Number of photons that the gtmktime cut: 608

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/947920/ft1_filtered_4FGL_J1051.6+2109_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/947920/ft2_4FGL_J1051.6+2109_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/947920/ltcube_692668801_692928001_4FGL_J1051.6+2109_daily_bin1749.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/947920/ft2_4FGL_J1051.6+2109_daily_bin1749.fits
.....................!
real 11.85
user 11.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/947920/ft1_filtered_4FGL_J1051.6+2109_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/947920/ft2_4FGL_J1051.6+2109_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/947920/ltcube_692668801_692928001_4FGL_J1051.6+2109_daily_bin1749.fits outfile=/scratch/kocevski/947920/expmap_692668801_692928001_4FGL_J1051.6+2109_daily_bin1749.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/947920/ltcube_692668801_692928001_4FGL_J1051.6+2109_daily_bin1749.fits
.....................!
real 190.48
user 186.18
sys 3.93

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

Setting source of interest to:
4FGL J1051.6+2109 @ 162.913 21.1651

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/947920/ft1_filtered_4FGL_J1051.6+2109_daily_bin1749.fits scfile=/scratch/kocevski/947920/ft2_4FGL_J1051.6+2109_daily_bin1749.fits outfile=/scratch/kocevski/947920/cmap_692668801_692928001_4FGL_J1051.6+2109_daily_bin1749.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.913 yref=21.1651 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/947920/ft1_filtered_4FGL_J1051.6+2109_daily_bin1749.fits scfile=/scratch/kocevski/947920/ft2_4FGL_J1051.6+2109_daily_bin1749.fits outfile=/scratch/kocevski/947920/cmap_HighResolution_692668801_692928001_4FGL_J1051.6+2109_daily_bin1749.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.913 yref=21.1651 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/947920/ft1_filtered_4FGL_J1051.6+2109_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/947920/ft2_4FGL_J1051.6+2109_daily_bin1749.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/947920/Model_4FGL_J1051.6+2109_daily_bin1749.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/947920/ft1_filtered_4FGL_J1051.6+2109_daily_bin1749.fits.....................!
real 61.54
user 60.19
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/947920/ft1_filtered_4FGL_J1051.6+2109_daily_bin1749.fits', '/scratch/kocevski/947920/ft2_4FGL_J1051.6+2109_daily_bin1749.fits', expMap='/scratch/kocevski/947920/expmap_692668801_692928001_4FGL_J1051.6+2109_daily_bin1749.fits', expCube='/scratch/kocevski/947920/ltcube_692668801_692928001_4FGL_J1051.6+2109_daily_bin1749.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/947920/Model_4FGL_J1051.6+2109_daily_bin1749.xml', optimizer='MINUIT')

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

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.594e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
245        Index:  2.771e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
246        Scale:  5.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/947920/ft1_filtered_4FGL_J1051.6+2109_daily_bin1749.fits
Spacecraft file(s): /scratch/kocevski/947920/ft2_4FGL_J1051.6+2109_daily_bin1749.fits
Exposure map: /scratch/kocevski/947920/expmap_692668801_692928001_4FGL_J1051.6+2109_daily_bin1749.fits
Exposure cube: /scratch/kocevski/947920/ltcube_692668801_692928001_4FGL_J1051.6+2109_daily_bin1749.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/947920/Model_4FGL_J1051.6+2109_daily_bin1749.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) = 6768.85380462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0199       1.0000          .0000       .10000E+07
     2 'Prefactor '    .38851E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .52723E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    9.6438       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.7166       1.0000          .0000       .10000E+07
     6 'Prefactor '    18.351       1.0000          .0000       .10000E+07
     7 'Prefactor '    11.375       1.0000          .0000       .10000E+07
     8 'Prefactor '    .16400E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .43099E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.9246       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.9325       1.0000          .0000       .10000E+07
    12 'norm      '    1.2527       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10947       1.0000          .0000       .10000E+07
    14 'Prefactor '    3.1701       1.0000          .0000       .10000E+07
    15 'norm      '    14.232       1.0000          .0000       .10000E+07
    16 'Prefactor '    .36569E-05   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2131       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .93753       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6768.825     FROM MIGRAD    STATUS=CONVERGED    105 CALLS     1051 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9901        4.7460       -.28745E-06    .21501E-04
   2  Prefactor     .90594E-07    9.0057       -.41774E-06** at limit **
   3  Prefactor     .84099E-07    7.5819        .22929E-06** at limit **
   4  Prefactor     9.6840        6.5105       -.61458E-07   -.27792E-02
   5  Prefactor     1.7154        2.0698       -.78973E-07   -.35166E-02
   6  Prefactor     18.383        4.5301       -.79702E-06   -.32316E-01
   7  Prefactor     11.360        5.3756        .86193E-06    .43921E-01
   8  Prefactor     .99920E-09    13.686        .79910E-06** at limit **
   9  Prefactor     .83267E-08    3.1794       -.62912E-06** at limit **
  10  Prefactor     2.9479        5.4123       -.38140E-06   -.21935E-02
  11  Prefactor     1.9199        2.5780        .75298E-06    .12339E-01
  12  norm          1.2551        1.7152        .16983E-06    .71352E-02
  13  Prefactor     .10285        6.2365        .83227E-06** at limit **
  14  Prefactor     3.1977        7.9250        .18796E-06   -.94603E-03
  15  norm          14.084        9.3362       -.18872E-05    .44190E-01
  16  Prefactor     .11713E-07    3.6793        .53530E-06** at limit **
  17  Normalizat    1.2127        .19954        .16610E-05   -.69489E-04
  18  Prefactor     .93792        .20295        .26208E-05   -.74759E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.99011
  Prefactor  = 9.05942e-08
  Prefactor  = 8.40994e-08
  Prefactor  = 9.68401
  Prefactor  = 1.71535
  Prefactor  = 18.3832
  Prefactor  = 11.3604
  Prefactor  = 9.99201e-10
  Prefactor  = 8.32667e-09
  Prefactor  = 2.94788
  Prefactor  = 1.91993
  norm       = 1.2551
  Prefactor  = 0.102849
  Prefactor  = 3.19773
  norm       = 14.0836
  Prefactor  = 1.17129e-08
  Normalizat = 1.21274
  Prefactor  = 0.937919
 **********
 **   18 **HESSE 
 **********

 FCN=   6768.825     FROM HESSE     STATUS=OK           290 CALLS     1341 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9901        4.7651        .50273E-03   -1.5668    
   2  Prefactor     .90594E-07    16.575        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .84099E-07    16.298        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.6840        6.5609        .32245E-03   -1.5646    
   5  Prefactor     1.7154        2.0988        .80169E-03   -1.5682    
   6  Prefactor     18.383        9.9571        .23352E-03   -1.5622    
   7  Prefactor     11.360        11.338        .29679E-03   -1.5641    
   8  Prefactor     .99920E-09    13.770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .83267E-08    3.4066        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.9479        5.4641        .59377E-03   -1.5674    
  11  Prefactor     1.9199        33.425        .74679E-03   -1.5680    
  12  norm          1.2551        1.7627        .99823E-03   -1.5686    
  13  Prefactor     .10285        1.6548        .31919E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.1977        8.0148        .56896E-03   -1.5672    
  15  norm          14.084        12.656        .26524E-03   -1.5633    
  16  Prefactor     .11713E-07    3.9366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2127        .17654        .53891E-01   -.86210    
  18  Prefactor     .93792        .17531        .45482E-01   -.94828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35121e-07
Minuit parameter uncertainties:
  1  4.76508
  2  0.00245057
  3  0.00234131
  4  6.56089
  5  2.09876
  6  9.95707
  7  11.3383
  8  0.000235956
  9  0.000336686
  10  5.46414
  11  16.0218
  12  1.76269
  13  0.82509
  14  8.01485
  15  12.6555
  16  0.000429043
  17  0.176625
  18  0.175416
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.136e+01  1.134e+01  0.000e+00  1.000e+06 ( 1.000e-12)
245        Index:  2.771e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
246        Scale:  5.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  9.379e-01  1.754e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.213e+00  1.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.69
Ra Dec: 162.913 21.165
Photon Index (Fixed Index): 2.77 +/- 0.00
Photon Flux (Fixed Index): 5.76e-08 +/- 5.74e-08
Energy Flux (Fixed Index): 1.31e-05 +/- 1.31e-05

TS (Fixed Index): 1.69
Ra Dec: 162.913 21.165
Photon Flux Upper Limit: 1.57e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.24e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/947920/likelihoodResults_692668801_692928001_4FGL_J1051.6+2109_daily_bin1749.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) = 6768.63200844
delta logL = 0.193255892658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6768.58686053
delta logL = 0.238403795956

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.650       1.0000          .0000       .10000E+07
     2 'Index     '    2.3388       1.0000          .0000       10.000    
     3 'Normalizat'    1.2272       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92410       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6768.587     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      239 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.654        11.817        .10457E-04   -.46750E-04
   2  Index         2.3390        .56662        .85348E-02    .93469E-05
   3  Normalizat    1.2273        .19545        .23705E-03    .13289E-03
   4  Prefactor     .92402        .20217        .27970E-03   -.55970E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.6539
  Index      = 2.33901
  Normalizat = 1.22728
  Prefactor  = 0.924025
 **********
 **   18 **HESSE 
 **********

 FCN=   6768.587     FROM HESSE     STATUS=OK            23 CALLS      262 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.654        11.790        .41827E-06   -1.5631    
   2  Index         2.3390        .56524        .34139E-03   -.56120    
   3  Normalizat    1.2273        .19563        .47410E-04   -.85764    
   4  Prefactor     .92402        .20230        .11188E-04   -.95307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3026e-10
Minuit parameter uncertainties:
  1  11.7895
  2  0.566934
  3  0.195746
  4  0.202464
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/947920': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6768.58686025
delta logL = 0.238404082339

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.465e+01  1.179e+01  0.000e+00  1.000e+06 ( 1.000e-12)
245        Index:  2.339e+00  5.669e-01  0.000e+00  1.000e+01 (-1.000e+00)
246        Scale:  5.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  9.240e-01  2.025e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.227e+00  1.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.16
Ra Dec: 162.913 21.165
Photon Index (Free Index): 2.34 +/- 0.57
Photon Flux (Free Index): 4.87e-08 +/- 4.50e-08
Energy Flux (Free Index): 1.74e-05 +/- 1.54e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/947920/cmap_HighResolution_692668801_692928001_4FGL_J1051.6+2109_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', photon_flux='5.76e-08', energy_flux2='1.74e-05', photon_flux_error='5.74e-08', dlogl='2.38e-01', energy_flux='1.31e-05', photon_flux2='4.87e-08', job_status='DONE', time_completed='2022-12-17 00:43:24.055434', photon_index_error2='0.57', photon_index2='2.34', ts='1.69', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.57e-07', energy_flux_error2='1.54e-05', EG='1.21', time_epoch_completed='1671266604.06', return_code='0', job_id='947920', GAL2='0.92', EG2='1.23', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='4.50e-08', ts2='2.16', photon_index='2.77' WHERE bin_id='1749' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 00:43:24 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 947920: <4FGL_J1051.6+2109_daily_bin1749> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin1749> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Dec 17 00:30:27 2022
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 00:30:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 00:30:27 2022
Terminated at Sat Dec 17 00:43:24 2022
Results reported at Sat Dec 17 00:43:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1749 162.913 21.1651 692668801 692928001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1051.6+2109 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   553.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             282.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            777 sec.

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

