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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin1757
RA = 214.029, Dec = 13.347
tmin = 694742401, tmax = 695001601
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='203711', job_status='RUN', time_executed='2023-01-10 01:24:10.443809', time_epoch_executed='1673342650.44' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='1757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/203711

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/203711/ft1_4FGL_J1416.1+1320_daily_bin1757.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/203711/ft2_4FGL_J1416.1+1320_daily_bin1757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/203711/ft1_4FGL_J1416.1+1320_daily_bin1757.fits outfile=/scratch/kocevski/203711/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin1757.fits ra=214.029 dec=13.347 rad=12.0 tmin=694742401.0 tmax=695001601.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.95
user 2.73
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/203711/ft2_4FGL_J1416.1+1320_daily_bin1757.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/203711/ft2_4FGL_J1416.1+1320_daily_bin1757.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/203711/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin1757.fits evtable="EVENTS" outfile="/scratch/kocevski/203711/ft1_filtered_4FGL_J1416.1+1320_daily_bin1757.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 932

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/203711/ft1_filtered_4FGL_J1416.1+1320_daily_bin1757.fits" evtable="EVENTS" scfile=/scratch/kocevski/203711/ft2_4FGL_J1416.1+1320_daily_bin1757.fits sctable="SC_DATA" outfile=/scratch/kocevski/203711/ltcube_694742401_695001601_4FGL_J1416.1+1320_daily_bin1757.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/203711/ft2_4FGL_J1416.1+1320_daily_bin1757.fits
.....................!
real 15.40
user 14.87
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/203711/ft1_filtered_4FGL_J1416.1+1320_daily_bin1757.fits evtable="EVENTS" scfile=/scratch/kocevski/203711/ft2_4FGL_J1416.1+1320_daily_bin1757.fits sctable="SC_DATA" expcube=/scratch/kocevski/203711/ltcube_694742401_695001601_4FGL_J1416.1+1320_daily_bin1757.fits outfile=/scratch/kocevski/203711/expmap_694742401_695001601_4FGL_J1416.1+1320_daily_bin1757.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/203711/ltcube_694742401_695001601_4FGL_J1416.1+1320_daily_bin1757.fits
.....................!
real 191.07
user 186.14
sys 4.48

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

Setting source of interest to:
4FGL J1416.1+1320 @ 214.029 13.347

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/203711/ft1_filtered_4FGL_J1416.1+1320_daily_bin1757.fits scfile=/scratch/kocevski/203711/ft2_4FGL_J1416.1+1320_daily_bin1757.fits outfile=/scratch/kocevski/203711/cmap_694742401_695001601_4FGL_J1416.1+1320_daily_bin1757.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=214.029 yref=13.347 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/203711/ft1_filtered_4FGL_J1416.1+1320_daily_bin1757.fits scfile=/scratch/kocevski/203711/ft2_4FGL_J1416.1+1320_daily_bin1757.fits outfile=/scratch/kocevski/203711/cmap_HighResolution_694742401_695001601_4FGL_J1416.1+1320_daily_bin1757.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=214.029 yref=13.347 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/203711/ft1_filtered_4FGL_J1416.1+1320_daily_bin1757.fits evtable="EVENTS" scfile=/scratch/kocevski/203711/ft2_4FGL_J1416.1+1320_daily_bin1757.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/203711/Model_4FGL_J1416.1+1320_daily_bin1757.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/203711/ft1_filtered_4FGL_J1416.1+1320_daily_bin1757.fits.....................!
real 69.83
user 68.28
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/203711/ft1_filtered_4FGL_J1416.1+1320_daily_bin1757.fits', '/scratch/kocevski/203711/ft2_4FGL_J1416.1+1320_daily_bin1757.fits', expMap='/scratch/kocevski/203711/expmap_694742401_695001601_4FGL_J1416.1+1320_daily_bin1757.fits', expCube='/scratch/kocevski/203711/ltcube_694742401_695001601_4FGL_J1416.1+1320_daily_bin1757.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/203711/Model_4FGL_J1416.1+1320_daily_bin1757.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1416.1+1320'

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  8.909e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
243        Index:  2.373e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  8.905e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/203711/ft1_filtered_4FGL_J1416.1+1320_daily_bin1757.fits
Spacecraft file(s): /scratch/kocevski/203711/ft2_4FGL_J1416.1+1320_daily_bin1757.fits
Exposure map: /scratch/kocevski/203711/expmap_694742401_695001601_4FGL_J1416.1+1320_daily_bin1757.fits
Exposure cube: /scratch/kocevski/203711/ltcube_694742401_695001601_4FGL_J1416.1+1320_daily_bin1757.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/203711/Model_4FGL_J1416.1+1320_daily_bin1757.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) = 10038.3992715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.872       1.0000          .0000       .10000E+07
     2 'Prefactor '    .72651       1.0000          .0000       .10000E+07
     3 'Prefactor '    .98934       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.8140       1.0000          .0000       .10000E+07
     5 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     6 'Prefactor '     .0000       1.0000          .0000       .10000E+07
     7 'Prefactor '    26.420       1.0000          .0000       .10000E+07
     8 'norm      '    31.572       1.0000          .0000       .10000E+07
     9 'Prefactor '    .14150E-06   1.0000          .0000       .10000E+07
    10 'norm      '    3.4885       1.0000          .0000       .10000E+07
    11 'norm      '    .33307E-08   1.0000          .0000       .10000E+07
    12 'Prefactor '    .72164E-08   1.0000          .0000       .10000E+07
    13 'norm      '    .55511E-09   1.0000          .0000       .10000E+07
    14 'Prefactor '    .53846E-08   1.0000          .0000       .10000E+07
    15 'Prefactor '    4.1618       1.0000          .0000       .10000E+07
    16 'Prefactor '    .12368E-06   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2699       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .98262       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10038.39     FROM MIGRAD    STATUS=CONVERGED    128 CALLS     1541 TOTAL
                     EDM=   .97E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.877        2.0437       -.94324E-08    .50995E-01
   2  Prefactor     .72675        3.4676        .10199E-06   -.74317E-04
   3  Prefactor     .98964        1.9163       -.79805E-07    .20666E-03
   4  Prefactor     2.8127        6.0537       -.13138E-06    .24216E-04
   5  Prefactor      .0000        3.5989        .14820E-06** at limit **
   6  Prefactor     .14988E-08    7.9559       -.18943E-06** at limit **
   7  Prefactor     26.419        1.3385       -.18201E-08    .20485E-01
   8  norm          31.571        1.4718        .13612E-08   -.31472E-01
   9  Prefactor     .16653E-09    4.9998        .17118E-06** at limit **
  10  norm          3.4885        1.6387        .71917E-08    .29720E-03
  11  norm           .0000        .76581       -.33645E-07** at limit **
  12  Prefactor     .77716E-09    48.517       -.52649E-06** at limit **
  13  norm          .23315E-08    7.0361       -.16005E-06** at limit **
  14  Prefactor     .49960E-09    5.1338       -.26064E-07** at limit **
  15  Prefactor     4.1620        8.8739       -.25877E-07   -.24905E-02
  16  Prefactor     .61062E-09    12.799       -.59103E-07** at limit **
  17  Normalizat    1.2700        .20551        .29073E-06    .22075E-04
  18  Prefactor     .98255        .15437       -.89062E-06    .30357E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.8775
  Prefactor  = 0.726745
  Prefactor  = 0.98964
  Prefactor  = 2.81274
  Prefactor  = 0
  Prefactor  = 1.4988e-09
  Prefactor  = 26.4194
  norm       = 31.5707
  Prefactor  = 1.66533e-10
  norm       = 3.4885
  norm       = 0
  Prefactor  = 7.77156e-10
  norm       = 2.33147e-09
  Prefactor  = 4.996e-10
  Prefactor  = 4.162
  Prefactor  = 6.10623e-10
  Normalizat = 1.26999
  Prefactor  = 0.982554
 **********
 **   18 **HESSE 
 **********

 FCN=   10038.39     FROM HESSE     STATUS=OK           280 CALLS     1821 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.877        39.821        .22440E-03   -1.5619    
   2  Prefactor     .72675        3.4620        .58582E-03   -1.5691    
   3  Prefactor     .98964        1.9265        .43388E-03   -1.5688    
   4  Prefactor     2.8127        6.0663        .60610E-03   -1.5674    
   5  Prefactor      .0000        3.5938        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .14988E-08    7.9611        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.419        20.284        .19459E-03   -1.5605    
   8  norm          31.571        23.833        .17800E-03   -1.5596    
   9  Prefactor     .16653E-09    4.9696        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.4885        1.6383        .54111E-03   -1.5671    
  11  norm           .0000        .76279        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .77716E-09    48.199        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .23315E-08    7.0407        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .49960E-09    5.1451        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.1620        8.8920        .49382E-03   -1.5667    
  16  Prefactor     .61062E-09    12.781        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2700        .16594        .59709E-01   -.84467    
  18  Prefactor     .98255        .12456        .46050E-01   -.93313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19657e-06
Minuit parameter uncertainties:
  1  39.8219
  2  3.17237
  3  1.9265
  4  6.06636
  5  1.78088e-05
  6  0.000217419
  7  20.2838
  8  23.8326
  9  5.39172e-05
  10  1.63834
  11  5.11839e-07
  12  0.000382999
  13  0.000256592
  14  0.000101867
  15  8.89202
  16  0.000175438
  17  0.166009
  18  0.124598
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  2.642e+01  2.028e+01  0.000e+00  1.000e+06 ( 1.000e-13)
243        Index:  2.373e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  8.905e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  9.826e-01  1.246e-01  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  1.270e+00  1.660e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.03
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 3.45e-08 +/- 2.65e-08
Energy Flux (Fixed Index): 1.17e-05 +/- 9.01e-06

TS (Fixed Index): 3.03
Ra Dec: 214.029 13.347
Photon Flux Upper Limit: 9.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/203711/likelihoodResults_694742401_695001601_4FGL_J1416.1+1320_daily_bin1757.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) = 10038.3861842
delta logL = 0.00209915149389

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10038.3855032
delta logL = 0.00278007802626

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10038.39     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      237 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.666        393.71        .19743E-03    .29985E-02
   2  Index         2.4247        3.3028        .23809        .82860E-04
   3  Normalizat    1.2676        .57695E-01    .59755E-01    .11666E-04
   4  Prefactor     .98364        .37874E-01    .46063E-01    .13617E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.6656
  Index      = 2.42468
  Normalizat = 1.26765
  Prefactor  = 0.983641
 **********
 **   18 **HESSE 
 **********

 FCN=   10038.39     FROM HESSE     STATUS=OK            31 CALLS      268 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.666        23.146        .78972E-05   -1.5607    
   2  Index         2.4247        .71474        .81885E-02   -.54108    
   3  Normalizat    1.2676        .20673        .26428E-03   -.84537    
   4  Prefactor     .98364        .15450        .22235E-03   -.93277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46547e-09
Minuit parameter uncertainties:
  1  23.1463
  2  0.718095
  3  0.206865
  4  0.154565
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/203711': 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) = 10038.3855031
delta logL = 0.00278025775333

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  2.567e+01  2.315e+01  0.000e+00  1.000e+06 ( 1.000e-13)
243        Index:  2.425e+00  7.181e-01  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  8.905e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  9.836e-01  1.546e-01  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  1.268e+00  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.04
Ra Dec: 214.029 13.347
Photon Index (Free Index): 2.42 +/- 0.72
Photon Flux (Free Index): 3.62e-08 +/- 3.46e-08
Energy Flux (Free Index): 1.15e-05 +/- 9.50e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/203711/cmap_HighResolution_694742401_695001601_4FGL_J1416.1+1320_daily_bin1757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.21e-03', comment='SUCCESS', photon_flux='3.45e-08', energy_flux2='1.15e-05', photon_flux_error='2.65e-08', dlogl='2.78e-03', energy_flux='1.17e-05', photon_flux2='3.62e-08', job_status='DONE', time_completed='2023-01-10 01:34:07.145759', photon_index_error2='0.72', photon_index2='2.42', ts='3.03', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='9.35e-08', energy_flux_error2='9.50e-06', EG='1.27', time_epoch_completed='1673343247.15', return_code='0', job_id='203711', GAL2='0.98', EG2='1.27', return_code2='0', energy_flux_error='9.01e-06', photon_flux_error2='3.46e-08', ts2='3.04', photon_index='2.37' WHERE bin_id='1757' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 10 01:34:07 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 203711: <4FGL_J1416.1+1320_daily_bin1757> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin1757> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Jan 10 01:20:17 2023
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 10 01:22:40 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 10 01:22:40 2023
Terminated at Tue Jan 10 01:34:08 2023
Results reported at Tue Jan 10 01:34:08 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin1757 214.029 13.347 694742401 695001601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1416.1+1320 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   598.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   687 sec.
    Turnaround time :                            831 sec.

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

