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 200 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_J1421.1+3859_daily_bin1708
RA = 215.292, Dec = 38.9966
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='144998', job_status='RUN', time_executed='2022-09-16 18:19:41.254330', time_epoch_executed='1663377581.25' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='1708'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/144998

Creating custom pfile directory:
/scratch/kocevski/144998/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/144998/ft1_4FGL_J1421.1+3859_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/144998/ft2_4FGL_J1421.1+3859_daily_bin1708.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/144998/ft1_4FGL_J1421.1+3859_daily_bin1708.fits outfile=/scratch/kocevski/144998/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin1708.fits ra=215.292 dec=38.9966 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 3.98
user 3.73
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/144998/ft2_4FGL_J1421.1+3859_daily_bin1708.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/144998/ft2_4FGL_J1421.1+3859_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/144998/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin1708.fits evtable="EVENTS" outfile="/scratch/kocevski/144998/ft1_filtered_4FGL_J1421.1+3859_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.55
user 0.36
sys 0.16

Number of photons that the gtmktime cut: 499

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/144998/ft1_filtered_4FGL_J1421.1+3859_daily_bin1708.fits" evtable="EVENTS" scfile=/scratch/kocevski/144998/ft2_4FGL_J1421.1+3859_daily_bin1708.fits sctable="SC_DATA" outfile=/scratch/kocevski/144998/ltcube_682041601_682300801_4FGL_J1421.1+3859_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/144998/ft2_4FGL_J1421.1+3859_daily_bin1708.fits
.....................!
real 14.83
user 14.41
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/144998/ft1_filtered_4FGL_J1421.1+3859_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/144998/ft2_4FGL_J1421.1+3859_daily_bin1708.fits sctable="SC_DATA" expcube=/scratch/kocevski/144998/ltcube_682041601_682300801_4FGL_J1421.1+3859_daily_bin1708.fits outfile=/scratch/kocevski/144998/expmap_682041601_682300801_4FGL_J1421.1+3859_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/144998/ltcube_682041601_682300801_4FGL_J1421.1+3859_daily_bin1708.fits
.....................!
real 192.22
user 185.54
sys 5.58

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

Setting source of interest to:
4FGL J1421.1+3859 @ 215.292 38.9966

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/144998/ft1_filtered_4FGL_J1421.1+3859_daily_bin1708.fits scfile=/scratch/kocevski/144998/ft2_4FGL_J1421.1+3859_daily_bin1708.fits outfile=/scratch/kocevski/144998/cmap_682041601_682300801_4FGL_J1421.1+3859_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=215.292 yref=38.9966 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/144998/ft1_filtered_4FGL_J1421.1+3859_daily_bin1708.fits scfile=/scratch/kocevski/144998/ft2_4FGL_J1421.1+3859_daily_bin1708.fits outfile=/scratch/kocevski/144998/cmap_HighResolution_682041601_682300801_4FGL_J1421.1+3859_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=215.292 yref=38.9966 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.57
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/144998/ft1_filtered_4FGL_J1421.1+3859_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/144998/ft2_4FGL_J1421.1+3859_daily_bin1708.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/144998/Model_4FGL_J1421.1+3859_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/144998/ft1_filtered_4FGL_J1421.1+3859_daily_bin1708.fits.....................!
real 47.29
user 45.85
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/144998/ft1_filtered_4FGL_J1421.1+3859_daily_bin1708.fits', '/scratch/kocevski/144998/ft2_4FGL_J1421.1+3859_daily_bin1708.fits', expMap='/scratch/kocevski/144998/expmap_682041601_682300801_4FGL_J1421.1+3859_daily_bin1708.fits', expCube='/scratch/kocevski/144998/ltcube_682041601_682300801_4FGL_J1421.1+3859_daily_bin1708.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/144998/Model_4FGL_J1421.1+3859_daily_bin1708.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1421.1+3859'

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.965e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
292        Index:  2.670e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  9.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/144998/ft1_filtered_4FGL_J1421.1+3859_daily_bin1708.fits
Spacecraft file(s): /scratch/kocevski/144998/ft2_4FGL_J1421.1+3859_daily_bin1708.fits
Exposure map: /scratch/kocevski/144998/expmap_682041601_682300801_4FGL_J1421.1+3859_daily_bin1708.fits
Exposure cube: /scratch/kocevski/144998/ltcube_682041601_682300801_4FGL_J1421.1+3859_daily_bin1708.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/144998/Model_4FGL_J1421.1+3859_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) = 5632.57206245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48685E-01   1.0000          .0000       .10000E+07
     2 'norm      '    .23995E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    7.5211       1.0000          .0000       .10000E+07
     4 'norm      '    .61372E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .62932E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.1415       1.0000          .0000       .10000E+07
     7 'Prefactor '    4.1882       1.0000          .0000       .10000E+07
     8 'norm      '    .31332E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .36259E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    31.825       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.5294       1.0000          .0000       .10000E+07
    12 'norm      '    .12596E-02   1.0000          .0000       .10000E+07
    13 'norm      '    15.506       1.0000          .0000       .10000E+07
    14 'Prefactor '    .16820E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    82.062       1.0000          .0000       .10000E+07
    16 'norm      '    .87980E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    .49533E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .16530E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .33057E-02   1.0000          .0000       .10000E+07
    20 'norm      '    .40690E-07   1.0000          .0000       .10000E+07
    21 'norm      '    7.0163       1.0000          .0000       .10000E+07
    22 'Prefactor '    .10053E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    .84504E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    .51221E-03   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.3098       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .68344       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5632.538     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     2252 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17181E-06    1.0755       -.27242E-05** at limit **
   2  norm           .0000        1.8478       -.12235E-06** at limit **
   3  Prefactor     7.5190        5.1297        .42758E-06    .36213E-02
   4  norm          .34972E-08    4.6409        .45860E-06** at limit **
   5  Prefactor     .56621E-08    4.7942        .10616E-05** at limit **
   6  Prefactor     2.1377        3.1477       -.67376E-06   -.23077E-02
   7  Prefactor     4.3662        2.1089        .40435E-06   -.72675E-02
   8  norm           .0000        .94775        .31606E-06** at limit **
   9  Prefactor     .11247E-05    32.958        .13233E-04** at limit **
  10  Prefactor     32.507        8.9048        .10716E-06   -.10791    
  11  Prefactor     3.4960        4.2652       -.28241E-07   -.33665E-03
  12  norm           .0000        6.5369        .10737E-05** at limit **
  13  norm          15.481        8.8739       -.70415E-06    .56429E-02
  14  Prefactor     .37248E-07    .92697        .99967E-06** at limit **
  15  Prefactor     83.981        45.560        .44273E-05   -.14859E-02
  16  norm          .55511E-10    3.0232       -.51192E-06** at limit **
  17  Prefactor     .22204E-09    5.5771       -.50751E-05** at limit **
  18  Prefactor     .16653E-09    7.3847       -.17013E-05** at limit **
  19  Prefactor     .11169E-06    13.994        .14307E-04** at limit **
  20  norm          .55511E-10    .68473        .32511E-06** at limit **
  21  norm          7.0602        4.9816       -.50149E-06    .63814E-03
  22  Prefactor     .55511E-10    4.5242        .16966E-06** at limit **
  23  Prefactor     .45519E-08    25.351       -.74401E-05** at limit **
  24  Prefactor     .15821E-07    6.1213       -.58354E-05** at limit **
  25  Normalizat    1.3075        .20883        .15472E-04    .24501E-03
  26  Prefactor     .68406        .22647       -.34952E-04    .21903E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.71807e-07
  norm       = 0
  Prefactor  = 7.51897
  norm       = 3.4972e-09
  Prefactor  = 5.66214e-09
  Prefactor  = 2.13771
  Prefactor  = 4.36625
  norm       = 0
  Prefactor  = 1.12471e-06
  Prefactor  = 32.5072
  Prefactor  = 3.49598
  norm       = 0
  norm       = 15.4811
  Prefactor  = 3.7248e-08
  Prefactor  = 83.9809
  norm       = 5.55112e-11
  Prefactor  = 2.22045e-10
  Prefactor  = 1.66533e-10
  Prefactor  = 1.11688e-07
  norm       = 5.55112e-11
  norm       = 7.06024
  Prefactor  = 5.55112e-11
  Prefactor  = 4.55191e-09
  Prefactor  = 1.58207e-08
  Normalizat = 1.30755
  Prefactor  = 0.684064
 **********
 **   18 **HESSE 
 **********

 FCN=   5632.538     FROM HESSE     STATUS=OK           516 CALLS     2768 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17181E-06    143.35        .15593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .80552        .22978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.5190        5.1319        .36545E-03   -1.5653    
   4  norm          .34972E-08    9.4101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .56621E-08    9.3647        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.1377        3.2142        .70402E-03   -1.5679    
   7  Prefactor     4.3662        25.626        .49221E-03   -1.5666    
   8  norm           .0000        .94861        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11247E-05    36.990        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     32.507        23.757        .17729E-03   -1.5594    
  11  Prefactor     3.4960        4.2845        .53783E-03   -1.5671    
  12  norm           .0000        6.5345        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          15.481        8.9524        .25409E-03   -1.5629    
  14  Prefactor     .37248E-07    10.986        .14074E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     83.981        45.595        .11040E-03   -1.5525    
  16  norm          .55511E-10    3.0264        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .22204E-09    11.734        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .16653E-09    7.3707        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11169E-06    14.352        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .55511E-10    .68303        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.0602        4.9879        .37849E-03   -1.5655    
  22  Prefactor     .55511E-10    4.5145        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .45519E-08    25.416        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .15821E-07    11.668        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3075        .18434        .48628E-01   -.83341    
  26  Prefactor     .68406        .19390        .71208E-01   -1.0415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5729e-07
Minuit parameter uncertainties:
  1  0.00992632
  2  8.43362e-07
  3  5.13188
  4  0.000363802
  5  0.000460216
  6  3.2142
  7  21.1558
  8  7.05978e-06
  9  0.0129001
  10  23.7568
  11  4.28448
  12  8.05708e-06
  13  8.95236
  14  0.00127907
  15  45.5949
  16  1.94282e-05
  17  0.000107192
  18  6.97747e-05
  19  0.00253241
  20  1.41128e-05
  21  4.98794
  22  3.31896e-05
  23  0.000681868
  24  0.000858905
  25  0.18443
  26  0.19409
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  3.251e+01  2.376e+01  0.000e+00  1.000e+06 ( 1.000e-13)
292        Index:  2.670e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  9.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  6.841e-01  1.941e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  1.308e+00  1.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.90
Ra Dec: 215.292 38.997
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 7.43e-08 +/- 5.43e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.34e-05

TS (Fixed Index): 2.90
Ra Dec: 215.292 38.997
Photon Flux Upper Limit: 1.81e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.42e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/144998/likelihoodResults_682041601_682300801_4FGL_J1421.1+3859_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): 0
logL (Free Index) = 5631.59713102
delta logL = 0.940608458191

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5631.57449299
delta logL = 0.963246480249

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5631.574     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      257 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6225        68.009        .36299E-03    .28984E-02
   2  Index         3.8440        2.7678        .94239E-01    .15231E-03
   3  Normalizat    1.2273        .71207E-01    .49871E-01    .41044E-05
   4  Prefactor     .74867        .74824E-01    .68376E-01    .19433E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.62251
  Index      = 3.84404
  Normalizat = 1.22726
  Prefactor  = 0.748673
 **********
 **   18 **HESSE 
 **********

 FCN=   5631.574     FROM HESSE     STATUS=OK            33 CALLS      290 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6225        122.77        .10214E-04   -1.5653    
   2  Index         3.8440        3.8514        .37394E-02   -.23330    
   3  Normalizat    1.2273        .23127        .22048E-03   -.85764    
   4  Prefactor     .74867        .25238        .30255E-03   -1.0165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96364e-07
Minuit parameter uncertainties:
  1  61.184
  2  4.44439
  3  0.231468
  4  0.252769
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/144998': 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) = 5631.57449288
delta logL = 0.963246589702

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  7.623e+00  6.118e+01  0.000e+00  1.000e+06 ( 1.000e-13)
292        Index:  3.844e+00  4.444e+00  0.000e+00  1.000e+01 (-1.000e+00)
293        Scale:  9.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  7.487e-01  2.528e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  1.227e+00  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.11
Ra Dec: 215.292 38.997
Photon Index (Free Index): 3.84 +/- 4.44
Photon Flux (Free Index): 1.40e-07 +/- 8.83e-08
Energy Flux (Free Index): 2.16e-05 +/- 1.63e-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/144998/cmap_HighResolution_682041601_682300801_4FGL_J1421.1+3859_daily_bin1708.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-02', comment='SUCCESS', photon_flux='7.43e-08', energy_flux2='2.16e-05', photon_flux_error='5.43e-08', dlogl='9.63e-01', energy_flux='1.83e-05', photon_flux2='1.40e-07', job_status='DONE', time_completed='2022-09-16 18:29:57.208392', photon_index_error2='4.44', photon_index2='3.84', ts='2.90', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='1.81e-07', energy_flux_error2='1.63e-05', EG='1.31', time_epoch_completed='1663378197.21', return_code='0', job_id='144998', GAL2='0.75', EG2='1.23', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='8.83e-08', ts2='5.11', photon_index='2.67' WHERE bin_id='1708' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 18:29:57 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 144998: <4FGL_J1421.1+3859_daily_bin1708> in cluster <slac> Done

Job <4FGL_J1421.1+3859_daily_bin1708> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 18:15:23 2022
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 18:16:10 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 18:16:10 2022
Terminated at Fri Sep 16 18:29:57 2022
Results reported at Fri Sep 16 18:29:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin1708 215.292 38.9966 682041601 682300801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1421.1+3859 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   616.48 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            874 sec.

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

