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


Performing analysis on: 4FGL_J1421.1+3859_daily_bin1778
RA = 215.292, Dec = 38.9966
tmin = 700185601, tmax = 700444801
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='965829', job_status='RUN', time_executed='2023-03-14 01:10:50.135070', time_epoch_executed='1678781450.14' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='1778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/965829

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/965829/ft1_4FGL_J1421.1+3859_daily_bin1778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/965829/ft2_4FGL_J1421.1+3859_daily_bin1778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/965829/ft1_4FGL_J1421.1+3859_daily_bin1778.fits outfile=/scratch/kocevski/965829/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin1778.fits ra=215.292 dec=38.9966 rad=12.0 tmin=700185601.0 tmax=700444801.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.91
user 3.68
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/965829/ft2_4FGL_J1421.1+3859_daily_bin1778.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/965829/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin1778.fits evtable="EVENTS" outfile="/scratch/kocevski/965829/ft1_filtered_4FGL_J1421.1+3859_daily_bin1778.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.15

Number of photons that the gtmktime cut: 595

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/965829/ft1_filtered_4FGL_J1421.1+3859_daily_bin1778.fits" evtable="EVENTS" scfile=/scratch/kocevski/965829/ft2_4FGL_J1421.1+3859_daily_bin1778.fits sctable="SC_DATA" outfile=/scratch/kocevski/965829/ltcube_700185601_700444801_4FGL_J1421.1+3859_daily_bin1778.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/965829/ft2_4FGL_J1421.1+3859_daily_bin1778.fits
.....................!
real 11.72
user 11.39
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/965829/ft1_filtered_4FGL_J1421.1+3859_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/965829/ft2_4FGL_J1421.1+3859_daily_bin1778.fits sctable="SC_DATA" expcube=/scratch/kocevski/965829/ltcube_700185601_700444801_4FGL_J1421.1+3859_daily_bin1778.fits outfile=/scratch/kocevski/965829/expmap_700185601_700444801_4FGL_J1421.1+3859_daily_bin1778.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/965829/ltcube_700185601_700444801_4FGL_J1421.1+3859_daily_bin1778.fits
.....................!
real 190.25
user 185.18
sys 4.73

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/965829/ft1_filtered_4FGL_J1421.1+3859_daily_bin1778.fits scfile=/scratch/kocevski/965829/ft2_4FGL_J1421.1+3859_daily_bin1778.fits outfile=/scratch/kocevski/965829/cmap_700185601_700444801_4FGL_J1421.1+3859_daily_bin1778.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/965829/ft1_filtered_4FGL_J1421.1+3859_daily_bin1778.fits scfile=/scratch/kocevski/965829/ft2_4FGL_J1421.1+3859_daily_bin1778.fits outfile=/scratch/kocevski/965829/cmap_HighResolution_700185601_700444801_4FGL_J1421.1+3859_daily_bin1778.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.51
user 0.36
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/965829/ft1_filtered_4FGL_J1421.1+3859_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/965829/ft2_4FGL_J1421.1+3859_daily_bin1778.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/965829/Model_4FGL_J1421.1+3859_daily_bin1778.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/965829/ft1_filtered_4FGL_J1421.1+3859_daily_bin1778.fits.....................!
real 51.90
user 50.68
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/965829/ft1_filtered_4FGL_J1421.1+3859_daily_bin1778.fits', '/scratch/kocevski/965829/ft2_4FGL_J1421.1+3859_daily_bin1778.fits', expMap='/scratch/kocevski/965829/expmap_700185601_700444801_4FGL_J1421.1+3859_daily_bin1778.fits', expCube='/scratch/kocevski/965829/ltcube_700185601_700444801_4FGL_J1421.1+3859_daily_bin1778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/965829/Model_4FGL_J1421.1+3859_daily_bin1778.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/965829/ft1_filtered_4FGL_J1421.1+3859_daily_bin1778.fits
Spacecraft file(s): /scratch/kocevski/965829/ft2_4FGL_J1421.1+3859_daily_bin1778.fits
Exposure map: /scratch/kocevski/965829/expmap_700185601_700444801_4FGL_J1421.1+3859_daily_bin1778.fits
Exposure cube: /scratch/kocevski/965829/ltcube_700185601_700444801_4FGL_J1421.1+3859_daily_bin1778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/965829/Model_4FGL_J1421.1+3859_daily_bin1778.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) = 6639.43096085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.835       1.0000          .0000       .10000E+07
     2 'norm      '    .93023       1.0000          .0000       .10000E+07
     3 'Prefactor '    .45566E-01   1.0000          .0000       .10000E+07
     4 'norm      '    .18610E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .25934E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    3.9665       1.0000          .0000       .10000E+07
     7 'Prefactor '    15.058       1.0000          .0000       .10000E+07
     8 'norm      '    .15661E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .46384E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .40674E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    13.157       1.0000          .0000       .10000E+07
    12 'norm      '    .31993E-03   1.0000          .0000       .10000E+07
    13 'norm      '    1.3651       1.0000          .0000       .10000E+07
    14 'Prefactor '    .37934E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    306.60       1.0000          .0000       .10000E+07
    16 'norm      '    .24647E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    29.983       1.0000          .0000       .10000E+07
    18 'Prefactor '    9.0556       1.0000          .0000       .10000E+07
    19 'Prefactor '    4.0490       1.0000          .0000       .10000E+07
    20 'norm      '    .79353E-06   1.0000          .0000       .10000E+07
    21 'norm      '    .63038E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .55157E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .23708       1.0000          .0000       .10000E+07
    24 'Prefactor '    .83220E-03   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.2369       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .77545       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=   6636.310     FROM MIGRAD    STATUS=CONVERGED    215 CALLS     1479 TOTAL
                     EDM=   .50E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.057        83.453       -.17083E-06    .34822E-03
   2  norm          .92877        1.0837       -.27196E-07    .76431E-04
   3  Prefactor      .0000        74.706       -.48479E-07** at limit **
   4  norm           .0000        4.4900       -.19391E-07** at limit **
   5  Prefactor     .55511E-10    18.644        .69134E-07** at limit **
   6  Prefactor     3.9558        4.2455        .66616E-08    .33195E-03
   7  Prefactor     15.260        2.0703       -.60153E-09   -.11143E-01
   8  norm           .0000        1.7863        .43026E-07** at limit **
   9  Prefactor      .0000        16.274       -.16017E-06** at limit **
  10  Prefactor      .0000        12.329       -.36030E-07** at limit **
  11  Prefactor     13.108        5.0319       -.80690E-08   -.13190E-03
  12  norm           .0000        4.0107       -.74923E-07** at limit **
  13  norm          1.3612        4.1830       -.47539E-07   -.16274E-04
  14  Prefactor      .0000        41.276       -.98416E-07** at limit **
  15  Prefactor     312.17        63.091        .25552E-07    .49962E-03
  16  norm           .0000        6.6794        .49701E-07** at limit **
  17  Prefactor     29.487        2.7206       -.15661E-07   -.20623E-02
  18  Prefactor     9.0782        8.2310       -.11412E-06    .10309E-04
  19  Prefactor     4.0336        8.8461        .68016E-07   -.10484E-03
  20  norm           .0000        1.8169       -.71246E-08** at limit **
  21  norm           .0000        1.1610       -.50184E-07** at limit **
  22  Prefactor      .0000        3.6830        .14375E-07** at limit **
  23  Prefactor     .11102E-09    72.068        .10990E-06** at limit **
  24  Prefactor      .0000        8.0412       -.71188E-07** at limit **
  25  Normalizat    1.2383        .21108        .34054E-05    .99048E-06
  26  Prefactor     .77452        .23161       -.15170E-05    .23756E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.0569
  norm       = 0.928767
  Prefactor  = 0
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 3.95582
  Prefactor  = 15.2598
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 13.1084
  norm       = 0
  norm       = 1.36118
  Prefactor  = 0
  Prefactor  = 312.171
  norm       = 0
  Prefactor  = 29.4873
  Prefactor  = 9.07815
  Prefactor  = 4.03363
  norm       = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Normalizat = 1.23833
  Prefactor  = 0.774524
 **********
 **   18 **HESSE 
 **********

 FCN=   6636.310     FROM HESSE     STATUS=OK           520 CALLS     1999 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.057        84.163        .13891E-03   -1.5575    
   2  norm          .92877        1.0877        .43692E-03   -1.5689    
   3  Prefactor      .0000        1.8672        .89142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        4.4899        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55511E-10    18.668        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.9558        4.3558        .50621E-03   -1.5668    
   7  Prefactor     15.260        22.248        .25785E-03   -1.5630    
   8  norm           .0000        1.7776        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        16.250        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        12.314        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.108        5.0348        .27589E-03   -1.5636    
  12  norm           .0000        4.0070        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3612        4.2465        .93365E-03   -1.5685    
  14  Prefactor      .0000        13.846        .10470E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     312.17        63.220        .57119E-04   -1.5355    
  16  norm           .0000        6.6750        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.487        19.206        .18265E-03   -1.5599    
  18  Prefactor     9.0782        8.5969        .33282E-03   -1.5648    
  19  Prefactor     4.0336        8.8919        .50086E-03   -1.5668    
  20  norm           .0000        1.7844        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        1.1602        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        3.6753        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .11102E-09    71.861        .11150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor      .0000        8.0451        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2383        .17828        .52371E-01   -.85426    
  26  Prefactor     .77452        .19379        .72013E-01   -1.0067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.79736e-08
Minuit parameter uncertainties:
  1  84.1649
  2  1.08767
  3  1.0933e-05
  4  1.34896e-06
  5  6.50233e-05
  6  4.35576
  7  22.2479
  8  6.41531e-08
  9  3.04781e-05
  10  1.79729e-05
  11  5.03483
  12  2.3897e-07
  13  4.24649
  14  1.21414e-05
  15  63.2203
  16  2.26387e-06
  17  19.2062
  18  8.59689
  19  8.89191
  20  5.92339e-07
  21  7.61672e-07
  22  1.18472e-06
  23  0.000181344
  24  3.38937e-07
  25  0.178367
  26  0.193959
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  0.000e+00  1.797e-05  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:  7.745e-01  1.940e-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.238e+00  1.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 215.292 38.997
Photon Flux Upper Limit: 7.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/965829/likelihoodResults_700185601_700444801_4FGL_J1421.1+3859_daily_bin1778.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6636.31048128
delta logL = -0.000294683070933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6636.31018704
delta logL = -4.44808392785e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22243E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.0926       1.0000          .0000       10.000    
     3 'Normalizat'    1.2383       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77446       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=   6636.310     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      248 TOTAL
                     EDM=   .40E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-09    11.820        .90182E-06** at limit **
   2  Index         2.7305        6.3614       -.51795E-04    .74968E-10
   3  Normalizat    1.2383        .20321       -.22371E-05    .16115E-03
   4  Prefactor     .77452        .22802        .69352E-05    .11658E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-10
  Index      = 2.73053
  Normalizat = 1.23833
  Prefactor  = 0.774524
 **********
 **   18 **HESSE 
 **********

 FCN=   6636.310     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      285 TOTAL
                     EDM=   .67E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-09    .25209        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7305        8.1534        .37874       -.47113    
   3  Normalizat    1.2383        .62324E-03    .52371E-01   -.85426    
   4  Prefactor     .77452        .69896E-03    .72013E-01   -1.0067    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.73317e-13
Minuit parameter uncertainties:
  1  2.36976e-05
  2  13508.9
  3  0.000623244
  4  0.00069896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/965829': 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): 102
logL (Free Index) = 6636.3101866
delta logL = -3.54702933691e-11

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  5.551e-10  2.370e-05  0.000e+00  1.000e+06 ( 1.000e-13)
292        Index:  2.731e+00  1.351e+04  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.745e-01  6.990e-04  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.238e+00  6.232e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 215.292 38.997

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/965829/cmap_HighResolution_700185601_700444801_4FGL_J1421.1+3859_daily_bin1778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.65e-03', job_status='DONE', photon_flux_upper_limit='7.19e-08', time_completed='2023-03-14 01:20:45.936623', job_id='965829', GAL2='0.77', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1678782045.94', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='-3.55e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1778' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 14 01:20:45 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0146>
Subject: Job 965829: <4FGL_J1421.1+3859_daily_bin1778> in cluster <slac> Done

Job <4FGL_J1421.1+3859_daily_bin1778> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Mar 14 01:10:18 2023
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 01:10:19 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 01:10:19 2023
Terminated at Tue Mar 14 01:20:46 2023
Results reported at Tue Mar 14 01:20:46 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin1778 215.292 38.9966 700185601 700444801 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 :                                   598.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            628 sec.

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

