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


Performing analysis on: 4FGL_J1417.9+4613_daily_bin1752
RA = 214.482, Dec = 46.2327
tmin = 693446401, tmax = 693705601
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='265004', job_status='RUN', time_executed='2022-12-26 01:03:30.210885', time_epoch_executed='1672045410.21' WHERE source_name='4FGL J1417.9+4613' and cadence='daily' and bin_id='1752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265004

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265004/ft1_4FGL_J1417.9+4613_daily_bin1752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265004/ft2_4FGL_J1417.9+4613_daily_bin1752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265004/ft1_4FGL_J1417.9+4613_daily_bin1752.fits outfile=/scratch/kocevski/265004/ft1_filteredMKT_4FGL_J1417.9+4613_daily_bin1752.fits ra=214.482 dec=46.2327 rad=12.0 tmin=693446401.0 tmax=693705601.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.53
user 3.26
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/265004/ft2_4FGL_J1417.9+4613_daily_bin1752.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/265004/ft2_4FGL_J1417.9+4613_daily_bin1752.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/265004/ft1_filteredMKT_4FGL_J1417.9+4613_daily_bin1752.fits evtable="EVENTS" outfile="/scratch/kocevski/265004/ft1_filtered_4FGL_J1417.9+4613_daily_bin1752.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.33
sys 0.17

Number of photons that the gtmktime cut: 422

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/265004/ft1_filtered_4FGL_J1417.9+4613_daily_bin1752.fits" evtable="EVENTS" scfile=/scratch/kocevski/265004/ft2_4FGL_J1417.9+4613_daily_bin1752.fits sctable="SC_DATA" outfile=/scratch/kocevski/265004/ltcube_693446401_693705601_4FGL_J1417.9+4613_daily_bin1752.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/265004/ft2_4FGL_J1417.9+4613_daily_bin1752.fits
.....................!
real 15.66
user 15.22
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265004/ft1_filtered_4FGL_J1417.9+4613_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/265004/ft2_4FGL_J1417.9+4613_daily_bin1752.fits sctable="SC_DATA" expcube=/scratch/kocevski/265004/ltcube_693446401_693705601_4FGL_J1417.9+4613_daily_bin1752.fits outfile=/scratch/kocevski/265004/expmap_693446401_693705601_4FGL_J1417.9+4613_daily_bin1752.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/265004/ltcube_693446401_693705601_4FGL_J1417.9+4613_daily_bin1752.fits
.....................!
real 192.45
user 185.95
sys 5.70

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

Setting source of interest to:
4FGL J1417.9+4613 @ 214.482 46.2327

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/265004/ft1_filtered_4FGL_J1417.9+4613_daily_bin1752.fits scfile=/scratch/kocevski/265004/ft2_4FGL_J1417.9+4613_daily_bin1752.fits outfile=/scratch/kocevski/265004/cmap_693446401_693705601_4FGL_J1417.9+4613_daily_bin1752.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.482 yref=46.2327 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265004/ft1_filtered_4FGL_J1417.9+4613_daily_bin1752.fits scfile=/scratch/kocevski/265004/ft2_4FGL_J1417.9+4613_daily_bin1752.fits outfile=/scratch/kocevski/265004/cmap_HighResolution_693446401_693705601_4FGL_J1417.9+4613_daily_bin1752.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.482 yref=46.2327 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/265004/ft1_filtered_4FGL_J1417.9+4613_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/265004/ft2_4FGL_J1417.9+4613_daily_bin1752.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/265004/Model_4FGL_J1417.9+4613_daily_bin1752.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/265004/ft1_filtered_4FGL_J1417.9+4613_daily_bin1752.fits.....................!
real 41.48
user 40.09
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/265004/ft1_filtered_4FGL_J1417.9+4613_daily_bin1752.fits', '/scratch/kocevski/265004/ft2_4FGL_J1417.9+4613_daily_bin1752.fits', expMap='/scratch/kocevski/265004/expmap_693446401_693705601_4FGL_J1417.9+4613_daily_bin1752.fits', expCube='/scratch/kocevski/265004/ltcube_693446401_693705601_4FGL_J1417.9+4613_daily_bin1752.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/265004/Model_4FGL_J1417.9+4613_daily_bin1752.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1417.9+4613'

4FGL J1417.9+4613
   Spectrum: PowerLaw
310    Prefactor:  2.996e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
311        Index:  2.971e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
312        Scale:  3.446e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/265004/ft1_filtered_4FGL_J1417.9+4613_daily_bin1752.fits
Spacecraft file(s): /scratch/kocevski/265004/ft2_4FGL_J1417.9+4613_daily_bin1752.fits
Exposure map: /scratch/kocevski/265004/expmap_693446401_693705601_4FGL_J1417.9+4613_daily_bin1752.fits
Exposure cube: /scratch/kocevski/265004/ltcube_693446401_693705601_4FGL_J1417.9+4613_daily_bin1752.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/265004/Model_4FGL_J1417.9+4613_daily_bin1752.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4645.81526246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12869E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .68027E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.6786       1.0000          .0000       .10000E+07
     4 'norm      '    1.5257       1.0000          .0000       .10000E+07
     5 'Prefactor '    .26406E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .77021       1.0000          .0000       .10000E+07
     7 'norm      '    2.5251       1.0000          .0000       .10000E+07
     8 'norm      '    .50349E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .45022E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    70.912       1.0000          .0000       .10000E+07
    11 'Prefactor '    .86042E-08   1.0000          .0000       .10000E+07
    12 'Prefactor '    7.1850       1.0000          .0000       .10000E+07
    13 'norm      '    2.2262       1.0000          .0000       .10000E+07
    14 'Prefactor '    .28767E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    3.9812       1.0000          .0000       .10000E+07
    16 'Prefactor '    64.667       1.0000          .0000       .10000E+07
    17 'norm      '    3.7865       1.0000          .0000       .10000E+07
    18 'Prefactor '    11.226       1.0000          .0000       .10000E+07
    19 'Prefactor '    .15271E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    27.779       1.0000          .0000       .10000E+07
    21 'norm      '    .19984E-08   1.0000          .0000       .10000E+07
    22 'Prefactor '    11.227       1.0000          .0000       .10000E+07
    23 'norm      '    5.9620       1.0000          .0000       .10000E+07
    24 'norm      '    3.0032       1.0000          .0000       .10000E+07
    25 'Prefactor '    .61722E-05   1.0000          .0000       .10000E+07
    26 'Prefactor '    .20339E-02   1.0000          .0000       .10000E+07
    27 'Prefactor '    8.6173       1.0000          .0000       .10000E+07
    28 'norm      '    2.0624       1.0000          .0000       .10000E+07
    29 'Prefactor '    .54437E-04   1.0000          .0000       .10000E+07
    30 'Prefactor '    .25256E-01   1.0000          .0000       .10000E+07
    31 'Prefactor '    .44227E-03   1.0000          .0000       .10000E+07
    32 'Normalizat'    .49101       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1860       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4642.441     FROM MIGRAD    STATUS=CONVERGED    178 CALLS     1913 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24869E-06    3.6540        .22914E-06** at limit **
   2  Prefactor     .11785E-06    10.641        .34932E-06** at limit **
   3  Prefactor     2.5942        1.7095        .34918E-07    .53953E-03
   4  norm          1.5237        2.1369        .31607E-06    .93424E-03
   5  Prefactor     .56066E-08    17.814        .59385E-06** at limit **
   6  norm          .76981        .74869        .11950E-06    .14377E-02
   7  norm          2.5182        4.2312       -.42220E-06   -.94590E-03
   8  norm          .28644E-06    9.2610        .15754E-06** at limit **
   9  Prefactor     .61290E-06    2.8205        .13059E-06** at limit **
  10  Prefactor     71.400        42.416        .26686E-06   -.35599E-01
  11  Prefactor     .33307E-09    2.6892       -.14223E-06** at limit **
  12  Prefactor     7.4431        8.4209       -.24731E-06   -.35037E-01
  13  norm          2.2305        3.7153       -.23145E-07    .59853E-03
  14  Prefactor     .55511E-10    29.503       -.64615E-06** at limit **
  15  Prefactor     3.9955        2.9120        .20335E-07    .41850E-03
  16  Prefactor     64.308        7.7445        .59048E-07   -.91953E-01
  17  norm          4.0007        5.6045       -.23786E-06   -.16261E-01
  18  Prefactor     10.828        8.8596        .13089E-06   -.30262E-01
  19  Prefactor      .0000        32.437       -.65791E-06** at limit **
  20  Prefactor     27.607        8.6637       -.19418E-07   -.38312E-01
  21  norm          .11846E-06    9.3240       -.10973E-06** at limit **
  22  Prefactor     11.221        3.8295        .10739E-06    .62934E-01
  23  norm          5.9092        9.6324       -.79998E-07   -.44947E-02
  24  norm          3.0075        1.7418       -.65265E-07   -.76873E-03
  25  Prefactor     .77716E-09    5.7944        .17535E-06** at limit **
  26  Prefactor     .54901E-07    10.178        .89304E-06** at limit **
  27  Prefactor     8.4749        7.3891        .17128E-07   -.39364E-02
  28  norm          2.0648        2.7441       -.73627E-07   -.47478E-03
  29  Prefactor     .49960E-09    4.5440       -.10285E-06** at limit **
  30  Prefactor      .0000        29.330       -.45884E-07** at limit **
  31  Prefactor     .29610E-06    8.0311        .28313E-06** at limit **
  32  Normalizat    .49172        .19758       -.59859E-05   -.15647E-04
  33  Prefactor     1.1858        .24601        .27901E-05   -.26837E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.4869e-07
  Prefactor  = 1.1785e-07
  Prefactor  = 2.5942
  norm       = 1.52374
  Prefactor  = 5.60663e-09
  norm       = 0.76981
  norm       = 2.51823
  norm       = 2.86438e-07
  Prefactor  = 6.12899e-07
  Prefactor  = 71.4005
  Prefactor  = 3.33067e-10
  Prefactor  = 7.44313
  norm       = 2.23052
  Prefactor  = 5.55112e-11
  Prefactor  = 3.99545
  Prefactor  = 64.3085
  norm       = 4.0007
  Prefactor  = 10.8281
  Prefactor  = 0
  Prefactor  = 27.6072
  norm       = 1.18461e-07
  Prefactor  = 11.2205
  norm       = 5.90923
  norm       = 3.00752
  Prefactor  = 7.77156e-10
  Prefactor  = 5.49005e-08
  Prefactor  = 8.47491
  norm       = 2.06484
  Prefactor  = 4.996e-10
  Prefactor  = 0
  Prefactor  = 2.96096e-07
  Normalizat = 0.491716
  Prefactor  = 1.18575
 **********
 **   18 **HESSE 
 **********

 FCN=   4642.441     FROM HESSE     STATUS=OK           771 CALLS     2684 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24869E-06    3.0959        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11785E-06    18.489        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5942        30.598        .62236E-03   -1.5676    
   4  norm          1.5237        2.1634        .86418E-03   -1.5683    
   5  Prefactor     .56066E-08    23.784        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .76981        .74285        .55182E-03   -1.5690    
   7  norm          2.5182        4.2622        .64257E-03   -1.5676    
   8  norm          .28644E-06    11.518        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .61290E-06    58.658        .15745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     71.400        45.026        .11876E-03   -1.5539    
  11  Prefactor     .33307E-09    2.6988        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.4431        14.124        .37398E-03   -1.5653    
  13  norm          2.2305        3.8069        .68883E-03   -1.5678    
  14  Prefactor     .55511E-10    29.194        .16516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.9955        3.1118        .50524E-03   -1.5668    
  16  Prefactor     64.308        25.728        .12436E-03   -1.5548    
  17  norm          4.0007        14.412        .51852E-03   -1.5668    
  18  Prefactor     10.828        25.898        .29876E-03   -1.5642    
  19  Prefactor      .0000        32.347        .17370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     27.607        36.699        .18977E-03   -1.5603    
  21  norm          .11846E-06    10.296        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.221        11.587        .29875E-03   -1.5641    
  23  norm          5.9092        9.7379        .41101E-03   -1.5659    
  24  norm          3.0075        1.7501        .58545E-03   -1.5673    
  25  Prefactor     .77716E-09    5.8189        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .54901E-07    14.905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.4749        7.4397        .34123E-03   -1.5650    
  28  norm          2.0648        2.7626        .71924E-03   -1.5679    
  29  Prefactor     .49960E-09    4.5797        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor      .0000        28.872        .16713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .29610E-06    21.394        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .49172        .17590        .61515E-01   -1.1280    
  33  Prefactor     1.1858        .20768        .50947E-01   -.86771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10545e-07
Minuit parameter uncertainties:
  1  0.00175498
  2  0.00295214
  3  17.8188
  4  2.16335
  5  0.00072944
  6  0.742851
  7  4.26225
  8  0.00363284
  9  0.0119918
  10  45.0262
  11  5.90655e-05
  12  14.124
  13  3.80695
  14  9.33004e-05
  15  3.11183
  16  25.7283
  17  14.4119
  18  25.8986
  19  4.37024e-05
  20  36.6995
  21  0.00220895
  22  11.5866
  23  9.73794
  24  1.75006
  25  0.000132816
  26  0.00180892
  27  7.43975
  28  2.76261
  29  9.36853e-05
  30  9.13134e-06
  31  0.00503376
  32  0.176098
  33  0.207822
Done.

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

Extracting fit parameters...

4FGL J1417.9+4613
   Spectrum: PowerLaw
310    Prefactor:  7.443e+00  1.412e+01  0.000e+00  1.000e+06 ( 1.000e-12)
311        Index:  2.971e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
312        Scale:  3.446e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  1.186e+00  2.078e-01  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  4.917e-01  1.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.35
Ra Dec: 214.482 46.233
Photon Flux Upper Limit: 8.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/265004/likelihoodResults_693446401_693705601_4FGL_J1417.9+4613_daily_bin1752.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) = 4642.10765852
delta logL = 0.333614620054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4642.03867929
delta logL = 0.402593848606

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4642.039     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      210 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.725        17.137        .28054E-03    .19843E-01
   2  Index         2.1089        .62580        .25198       -.10640E-03
   3  Normalizat    .49895        .16367        .61071E-01   -.11170E-03
   4  Prefactor     1.1734        .20448        .51139E-01   -.23355E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.7255
  Index      = 2.10886
  Normalizat = 0.498947
  Prefactor  = 1.17337
 **********
 **   18 **HESSE 
 **********

 FCN=   4642.039     FROM HESSE     STATUS=OK            29 CALLS      239 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.725        16.423        .11222E-04   -1.5637    
   2  Index         2.1089        .76438        .93733E-02   -.61656    
   3  Normalizat    .49895        .19426        .27022E-03   -1.1246    
   4  Prefactor     1.1734        .24271        .22608E-03   -.87155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.89069e-09
Minuit parameter uncertainties:
  1  16.4227
  2  0.768925
  3  0.194519
  4  0.242945
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265004': 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) = 4642.03867927
delta logL = 0.40259387394

Extracting fit parameters...

4FGL J1417.9+4613
   Spectrum: PowerLaw
310    Prefactor:  1.273e+01  1.642e+01  0.000e+00  1.000e+06 ( 1.000e-12)
311        Index:  2.109e+00  7.689e-01  0.000e+00  1.000e+01 (-1.000e+00)
312        Scale:  3.446e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  1.173e+00  2.429e-01  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  4.989e-01  1.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 214.482 46.233
Photon Index (Free Index): 2.11 +/- 0.77
Photon Flux (Free Index): 1.56e-08 +/- 2.17e-08
Energy Flux (Free Index): 8.39e-06 +/- 1.33e-05

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/265004/cmap_HighResolution_693446401_693705601_4FGL_J1417.9+4613_daily_bin1752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.99e-03', comment='SUCCESS', energy_flux2='8.39e-06', dlogl='4.03e-01', photon_flux2='1.56e-08', job_status='DONE', time_completed='2022-12-26 01:14:00.234571', photon_index_error2='0.77', photon_index2='2.11', ts='0.35', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='8.75e-08', energy_flux_error2='1.33e-05', EG='0.49', time_epoch_completed='1672046040.23', return_code='0', job_id='265004', GAL2='1.17', EG2='0.50', return_code2='0', photon_flux_error2='2.17e-08', ts2='1.15', photon_index='2.97' WHERE bin_id='1752' AND source_name='4FGL J1417.9+4613' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 26 01:14:00 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 265004: <4FGL_J1417.9+4613_daily_bin1752> in cluster <slac> Done

Job <4FGL_J1417.9+4613_daily_bin1752> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Mon Dec 26 01:00:26 2022
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 26 01:00:59 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 26 01:00:59 2022
Terminated at Mon Dec 26 01:14:00 2022
Results reported at Mon Dec 26 01:14:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1417.9+4613_daily_bin1752 214.482 46.2327 693446401 693705601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1417.9+4613 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   630.61 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            814 sec.

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

