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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin1710
RA = 215.792, Dec = 37.6452
tmin = 682560001, tmax = 682819201
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='146754', job_status='RUN', time_executed='2022-09-16 18:22:16.644520', time_epoch_executed='1663377736.64' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='1710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/146754

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/146754/ft1_4FGL_J1423.1+3738_daily_bin1710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/146754/ft2_4FGL_J1423.1+3738_daily_bin1710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/146754/ft1_4FGL_J1423.1+3738_daily_bin1710.fits outfile=/scratch/kocevski/146754/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin1710.fits ra=215.792 dec=37.6452 rad=12.0 tmin=682560001.0 tmax=682819201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.68
user 3.44
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/146754/ft2_4FGL_J1423.1+3738_daily_bin1710.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/146754/ft2_4FGL_J1423.1+3738_daily_bin1710.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/146754/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin1710.fits evtable="EVENTS" outfile="/scratch/kocevski/146754/ft1_filtered_4FGL_J1423.1+3738_daily_bin1710.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.34
sys 0.17

Number of photons that the gtmktime cut: 524

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/146754/ft1_filtered_4FGL_J1423.1+3738_daily_bin1710.fits" evtable="EVENTS" scfile=/scratch/kocevski/146754/ft2_4FGL_J1423.1+3738_daily_bin1710.fits sctable="SC_DATA" outfile=/scratch/kocevski/146754/ltcube_682560001_682819201_4FGL_J1423.1+3738_daily_bin1710.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/146754/ft2_4FGL_J1423.1+3738_daily_bin1710.fits
.....................!
real 15.22
user 14.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/146754/ft1_filtered_4FGL_J1423.1+3738_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/146754/ft2_4FGL_J1423.1+3738_daily_bin1710.fits sctable="SC_DATA" expcube=/scratch/kocevski/146754/ltcube_682560001_682819201_4FGL_J1423.1+3738_daily_bin1710.fits outfile=/scratch/kocevski/146754/expmap_682560001_682819201_4FGL_J1423.1+3738_daily_bin1710.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/146754/ltcube_682560001_682819201_4FGL_J1423.1+3738_daily_bin1710.fits
.....................!
real 194.47
user 188.37
sys 4.63

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

Setting source of interest to:
4FGL J1423.1+3738 @ 215.792 37.6452

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/146754/ft1_filtered_4FGL_J1423.1+3738_daily_bin1710.fits scfile=/scratch/kocevski/146754/ft2_4FGL_J1423.1+3738_daily_bin1710.fits outfile=/scratch/kocevski/146754/cmap_682560001_682819201_4FGL_J1423.1+3738_daily_bin1710.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.792 yref=37.6452 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/146754/ft1_filtered_4FGL_J1423.1+3738_daily_bin1710.fits scfile=/scratch/kocevski/146754/ft2_4FGL_J1423.1+3738_daily_bin1710.fits outfile=/scratch/kocevski/146754/cmap_HighResolution_682560001_682819201_4FGL_J1423.1+3738_daily_bin1710.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.792 yref=37.6452 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/146754/ft1_filtered_4FGL_J1423.1+3738_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/146754/ft2_4FGL_J1423.1+3738_daily_bin1710.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/146754/Model_4FGL_J1423.1+3738_daily_bin1710.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/146754/ft1_filtered_4FGL_J1423.1+3738_daily_bin1710.fits.....................!
real 46.82
user 45.39
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/146754/ft1_filtered_4FGL_J1423.1+3738_daily_bin1710.fits', '/scratch/kocevski/146754/ft2_4FGL_J1423.1+3738_daily_bin1710.fits', expMap='/scratch/kocevski/146754/expmap_682560001_682819201_4FGL_J1423.1+3738_daily_bin1710.fits', expCube='/scratch/kocevski/146754/ltcube_682560001_682819201_4FGL_J1423.1+3738_daily_bin1710.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/146754/Model_4FGL_J1423.1+3738_daily_bin1710.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1423.1+3738'

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  3.465e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
296        alpha:  1.928e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  1.446e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.404e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/146754/ft1_filtered_4FGL_J1423.1+3738_daily_bin1710.fits
Spacecraft file(s): /scratch/kocevski/146754/ft2_4FGL_J1423.1+3738_daily_bin1710.fits
Exposure map: /scratch/kocevski/146754/expmap_682560001_682819201_4FGL_J1423.1+3738_daily_bin1710.fits
Exposure cube: /scratch/kocevski/146754/ltcube_682560001_682819201_4FGL_J1423.1+3738_daily_bin1710.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/146754/Model_4FGL_J1423.1+3738_daily_bin1710.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) = 5857.81279421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.545       1.0000          .0000       .10000E+07
     2 'norm      '    .83297       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.9312       1.0000          .0000       .10000E+07
     4 'norm      '    6.8065       1.0000          .0000       .10000E+07
     5 'Prefactor '    9.2072       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.1354       1.0000          .0000       .10000E+07
     7 'norm      '    3.2137       1.0000          .0000       .10000E+07
     8 'Prefactor '    .15428E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    12.215       1.0000          .0000       .10000E+07
    10 'Prefactor '    28.739       1.0000          .0000       .10000E+07
    11 'norm      '    .39052E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .17427E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    67.626       1.0000          .0000       .10000E+07
    14 'norm      '    .93798E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    20.439       1.0000          .0000       .10000E+07
    16 'Prefactor '    .62669E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .19062       1.0000          .0000       .10000E+07
    18 'Prefactor '    5.6962       1.0000          .0000       .10000E+07
    19 'Prefactor '    .25773E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    16.845       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0242       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81226       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5857.742     FROM MIGRAD    STATUS=CONVERGED    210 CALLS     1863 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     64.027        73.651        .26844E-06    .98970E-03
   2  norm          .83609        1.0674       -.54056E-08   -.51452E-03
   3  Prefactor     7.9452        4.6714        .20578E-08   -.43571E-03
   4  norm          6.8383        13.418       -.81580E-08   -.34490E-02
   5  Prefactor     9.3143        5.6316        .19229E-07    .22861E-03
   6  Prefactor     4.5750        9.5483       -.30545E-06   -.85837E-02
   7  norm          3.2300        3.4360        .89817E-09   -.11379E-03
   8  Prefactor     .44964E-08    7.5338       -.44017E-07** at limit **
   9  Prefactor     12.301        15.870        .18958E-07   -.26845E-02
  10  Prefactor     28.641        6.6858       -.97862E-08   -.11238E-02
  11  norm          .16653E-08    5.9334        .26801E-07** at limit **
  12  norm          .54401E-08    20.160       -.31907E-07** at limit **
  13  Prefactor     69.656        46.482       -.70233E-07    .16041E-03
  14  norm          .55511E-09    4.0865        .56918E-07** at limit **
  15  Prefactor     20.392        6.5688       -.93794E-07   -.10308    
  16  Prefactor     .58453E-07    14.887        .68328E-07** at limit **
  17  norm          .20226        3.4153       -.19936E-06** at limit **
  18  Prefactor     5.6953        11.963        .13282E-06   -.62048E-02
  19  Prefactor     .37748E-08    44.651       -.16308E-06** at limit **
  20  Prefactor     17.231        23.157       -.40293E-06    .28412E-01
  21  Normalizat    1.0207        .21518        .12837E-05    .24855E-04
  22  Prefactor     .81277        .22307       -.97935E-06    .97886E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 64.0273
  norm       = 0.836085
  Prefactor  = 7.94519
  norm       = 6.83828
  Prefactor  = 9.31428
  Prefactor  = 4.57502
  norm       = 3.23004
  Prefactor  = 4.4964e-09
  Prefactor  = 12.3009
  Prefactor  = 28.6408
  norm       = 1.66533e-09
  norm       = 5.44009e-09
  Prefactor  = 69.6559
  norm       = 5.55112e-10
  Prefactor  = 20.3919
  Prefactor  = 5.84532e-08
  norm       = 0.202264
  Prefactor  = 5.69534
  Prefactor  = 3.77476e-09
  Prefactor  = 17.2313
  Normalizat = 1.02073
  Prefactor  = 0.812769
 **********
 **   18 **HESSE 
 **********

 FCN=   5857.742     FROM HESSE     STATUS=OK           400 CALLS     2263 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     64.027        73.231        .13070E-03   -1.5548    
   2  norm          .83609        1.0742        .50509E-03   -1.5690    
   3  Prefactor     7.9452        4.6684        .35580E-03   -1.5652    
   4  norm          6.8383        13.442        .38434E-03   -1.5656    
   5  Prefactor     9.3143        5.7262        .33005E-03   -1.5647    
   6  Prefactor     4.5750        30.519        .49544E-03   -1.5665    
   7  norm          3.2300        3.4454        .56488E-03   -1.5672    
   8  Prefactor     .44964E-08    7.5708        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.301        15.851        .28637E-03   -1.5638    
  10  Prefactor     28.641        6.6914        .18657E-03   -1.5601    
  11  norm          .16653E-08    5.9431        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .54401E-08    19.812        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     69.656        46.484        .12161E-03   -1.5541    
  14  norm          .55511E-09    4.1104        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.392        16.647        .22126E-03   -1.5618    
  16  Prefactor     .58453E-07    15.019        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .20226        .91069        .39171E-02   -1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.6953        12.512        .42063E-03   -1.5660    
  19  Prefactor     .37748E-08    44.785        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.231        26.226        .24376E-03   -1.5625    
  21  Normalizat    1.0207        .18778        .42793E-01   -.92339    
  22  Prefactor     .81277        .19177        .65524E-01   -.99259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97365e-07
Minuit parameter uncertainties:
  1  73.2317
  2  1.07415
  3  4.66837
  4  13.442
  5  5.72623
  6  23.633
  7  3.44541
  8  0.000369197
  9  15.8512
  10  6.69136
  11  0.000198536
  12  0.000658093
  13  46.4845
  14  9.395e-05
  15  16.6467
  16  0.00187414
  17  0.858369
  18  12.5121
  19  0.000820256
  20  26.2258
  21  0.187902
  22  0.191925
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.665e-09  1.985e-04  0.000e+00  1.000e+06 ( 1.000e-13)
296        alpha:  1.928e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  1.446e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.404e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  8.128e-01  1.919e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.021e+00  1.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 215.792 37.645
Photon Flux Upper Limit: 3.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.59e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/146754/likelihoodResults_682560001_682819201_4FGL_J1423.1+3738_daily_bin1710.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) = 5857.74253344
delta logL = -0.00011854476088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5857.742415
delta logL = -9.77779563982e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .56066E-08   1.0000          .0000       .10000E+07
     2 'alpha     '    .57999       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0206       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81286       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5857.742     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      228 TOTAL
                     EDM=   .22E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        5.4979       -.36301E-06** at limit **
   2  alpha         2.2158        3.6077        .31441E-04     .0000    
   3  Normalizat    1.0207        .19917       -.20710E-06   -.29474E-04
   4  Prefactor     .81277        .22319       -.68881E-07   -.38915E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 2.21584
  Normalizat = 1.02073
  Prefactor  = 0.812769
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5857.742     FROM HESSE     STATUS=FAILED         9 CALLS      237 TOTAL
                     EDM=   .22E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        5.4948        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.0395        1.3942        .31441E-04   -.11391    
   3  Normalizat    1.0207        1.2629       -.20710E-06   -.92339    
   4  Prefactor     .81277        1.1611       -.68881E-07   -.99259    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.23739e-12
Minuit parameter uncertainties:
  1  1.07915e-05
  2  1.48032
  3  1.30317
  4  1.19918
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/146754': 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): 101
logL (Free Index) = 5857.7424149
delta logL = 1.39152689371e-10

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  0.000e+00  1.079e-05  0.000e+00  1.000e+06 ( 1.000e-13)
296        alpha:  2.216e+00  1.480e+00  0.000e+00  5.000e+00 ( 1.000e+00)
297         beta:  1.446e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.404e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  8.128e-01  1.199e+00  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.021e+00  1.303e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 215.792 37.645

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/146754/cmap_HighResolution_682560001_682819201_4FGL_J1423.1+3738_daily_bin1710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.59e-05', job_status='DONE', photon_flux_upper_limit='3.33e-08', time_completed='2022-09-16 18:31:53.704646', job_id='146754', GAL2='0.81', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1663378313.7', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.39e-10', ts2='0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1710' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 18:31:53 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 146754: <4FGL_J1423.1+3738_daily_bin1710> in cluster <slac> Done

Job <4FGL_J1423.1+3738_daily_bin1710> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 18:20:23 2022
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 18:20:39 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:20:39 2022
Terminated at Fri Sep 16 18:31:54 2022
Results reported at Fri Sep 16 18:31:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin1710 215.792 37.6452 682560001 682819201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1423.1+3738 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   578.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   675 sec.
    Turnaround time :                            691 sec.

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

