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


Performing analysis on: 4FGL_J1438.0+0219_daily_bin1765
RA = 219.504, Dec = 2.3272
tmin = 696816001, tmax = 697075201
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='636916', job_status='RUN', time_executed='2023-02-03 01:07:06.749190', time_epoch_executed='1675415226.75' WHERE source_name='4FGL J1438.0+0219' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/636916

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/636916/ft1_4FGL_J1438.0+0219_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/636916/ft2_4FGL_J1438.0+0219_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/636916/ft1_4FGL_J1438.0+0219_daily_bin1765.fits outfile=/scratch/kocevski/636916/ft1_filteredMKT_4FGL_J1438.0+0219_daily_bin1765.fits ra=219.504 dec=2.3272 rad=12.0 tmin=696816001.0 tmax=697075201.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.71
user 3.44
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/636916/ft2_4FGL_J1438.0+0219_daily_bin1765.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/636916/ft2_4FGL_J1438.0+0219_daily_bin1765.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/636916/ft1_filteredMKT_4FGL_J1438.0+0219_daily_bin1765.fits evtable="EVENTS" outfile="/scratch/kocevski/636916/ft1_filtered_4FGL_J1438.0+0219_daily_bin1765.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 714

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/636916/ft1_filtered_4FGL_J1438.0+0219_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/636916/ft2_4FGL_J1438.0+0219_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/636916/ltcube_696816001_697075201_4FGL_J1438.0+0219_daily_bin1765.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/636916/ft2_4FGL_J1438.0+0219_daily_bin1765.fits
.....................!
real 16.53
user 16.04
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/636916/ft1_filtered_4FGL_J1438.0+0219_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/636916/ft2_4FGL_J1438.0+0219_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/636916/ltcube_696816001_697075201_4FGL_J1438.0+0219_daily_bin1765.fits outfile=/scratch/kocevski/636916/expmap_696816001_697075201_4FGL_J1438.0+0219_daily_bin1765.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/636916/ltcube_696816001_697075201_4FGL_J1438.0+0219_daily_bin1765.fits
.....................!
real 195.86
user 189.08
sys 5.66

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

Setting source of interest to:
4FGL J1438.0+0219 @ 219.504 2.3272

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/636916/ft1_filtered_4FGL_J1438.0+0219_daily_bin1765.fits scfile=/scratch/kocevski/636916/ft2_4FGL_J1438.0+0219_daily_bin1765.fits outfile=/scratch/kocevski/636916/cmap_696816001_697075201_4FGL_J1438.0+0219_daily_bin1765.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=219.504 yref=2.3272 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.67
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/636916/ft1_filtered_4FGL_J1438.0+0219_daily_bin1765.fits scfile=/scratch/kocevski/636916/ft2_4FGL_J1438.0+0219_daily_bin1765.fits outfile=/scratch/kocevski/636916/cmap_HighResolution_696816001_697075201_4FGL_J1438.0+0219_daily_bin1765.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=219.504 yref=2.3272 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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/636916/ft1_filtered_4FGL_J1438.0+0219_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/636916/ft2_4FGL_J1438.0+0219_daily_bin1765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/636916/Model_4FGL_J1438.0+0219_daily_bin1765.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/636916/ft1_filtered_4FGL_J1438.0+0219_daily_bin1765.fits.....................!
real 62.42
user 60.88
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/636916/ft1_filtered_4FGL_J1438.0+0219_daily_bin1765.fits', '/scratch/kocevski/636916/ft2_4FGL_J1438.0+0219_daily_bin1765.fits', expMap='/scratch/kocevski/636916/expmap_696816001_697075201_4FGL_J1438.0+0219_daily_bin1765.fits', expCube='/scratch/kocevski/636916/ltcube_696816001_697075201_4FGL_J1438.0+0219_daily_bin1765.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/636916/Model_4FGL_J1438.0+0219_daily_bin1765.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1438.0+0219'

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  3.502e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
249        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  1.903e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/636916/ft1_filtered_4FGL_J1438.0+0219_daily_bin1765.fits
Spacecraft file(s): /scratch/kocevski/636916/ft2_4FGL_J1438.0+0219_daily_bin1765.fits
Exposure map: /scratch/kocevski/636916/expmap_696816001_697075201_4FGL_J1438.0+0219_daily_bin1765.fits
Exposure cube: /scratch/kocevski/636916/ltcube_696816001_697075201_4FGL_J1438.0+0219_daily_bin1765.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/636916/Model_4FGL_J1438.0+0219_daily_bin1765.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) = 7969.02109765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26673E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .17176E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    22.098       1.0000          .0000       .10000E+07
     4 'norm      '    9.2333       1.0000          .0000       .10000E+07
     5 'norm      '    20.554       1.0000          .0000       .10000E+07
     6 'norm      '    16.991       1.0000          .0000       .10000E+07
     7 'Prefactor '    8.1920       1.0000          .0000       .10000E+07
     8 'Prefactor '    17.823       1.0000          .0000       .10000E+07
     9 'norm      '    3.7987       1.0000          .0000       .10000E+07
    10 'Prefactor '    10.896       1.0000          .0000       .10000E+07
    11 'norm      '    .40880       1.0000          .0000       .10000E+07
    12 'norm      '    .83579       1.0000          .0000       .10000E+07
    13 'norm      '    .12687E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .29437E-04   1.0000          .0000       .10000E+07
    15 'norm      '    .17722E-05   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.3013       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .99354       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7969.017     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     1252 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    9.1305       -.40934E-06** at limit **
   2  Prefactor     .55511E-10    2.7489        .69208E-06** at limit **
   3  Prefactor     22.078        6.0411       -.18575E-05    .95642E-02
   4  norm          9.2354        8.0860        .91950E-06    .28028E-02
   5  norm          20.574        2.9544        .13095E-05    .13359    
   6  norm          16.861        21.471        .60436E-05    .18104E-01
   7  Prefactor     8.2951        7.2934       -.56013E-05    .10159    
   8  Prefactor     20.924        60.401       -.28802E-05   -.20798E-01
   9  norm          2.3859        77.020       -.17152E-04   -.13286E-01
  10  Prefactor     10.902        1.1107        .23881E-06   -.14248E-01
  11  norm          .40894        .20681       -.90235E-07   -.13289E-01
  12  norm          .83606        1.9678       -.48480E-06   -.17607E-02
  13  norm           .0000        3.2525        .42940E-06** at limit **
  14  norm           .0000        2.0876        .17642E-06** at limit **
  15  norm           .0000        1.7918       -.59133E-06** at limit **
  16  Normalizat    1.3004        .24734        .14582E-04   -.25943E-03
  17  Prefactor     .99372        .13887       -.38683E-05   -.39493E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 22.0775
  norm       = 9.23535
  norm       = 20.5742
  norm       = 16.8609
  Prefactor  = 8.29513
  Prefactor  = 20.9241
  norm       = 2.3859
  Prefactor  = 10.9016
  norm       = 0.40894
  norm       = 0.836057
  norm       = 0
  norm       = 0
  norm       = 0
  Normalizat = 1.30041
  Prefactor  = 0.993716
 **********
 **   18 **HESSE 
 **********

 FCN=   7969.017     FROM HESSE     STATUS=OK           261 CALLS     1513 TOTAL
                     EDM=   .95E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    9.1185        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55511E-10    2.7479        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.078        19.330        .21279E-03   -1.5614    
   4  norm          9.2354        8.0825        .32958E-03   -1.5647    
   5  norm          20.574        12.844        .22064E-03   -1.5617    
   6  norm          16.861        21.756        .24271E-03   -1.5626    
   7  Prefactor     8.2951        219.46        .35004E-03   -1.5650    
   8  Prefactor     20.924        69.509        .23697E-03   -1.5616    
   9  norm          2.3859        106.87        .51766E-03   -1.5677    
  10  Prefactor     10.902        14.793        .30327E-03   -1.5642    
  11  norm          .40894        .21171        .62451E-03   -1.5695    
  12  norm          .83606        1.9781        .50305E-03   -1.5690    
  13  norm           .0000        3.2518        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        2.0880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        1.7927        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.3004        .21367        .71517E-01   -.83554    
  17  Prefactor     .99372        .11753        .46186E-01   -.92939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.47398e-06
Minuit parameter uncertainties:
  1  5.79387e-05
  2  1.84643e-05
  3  19.3298
  4  8.0825
  5  12.8443
  6  21.7557
  7  85.3368
  8  69.5116
  9  31.9373
  10  14.7932
  11  0.211709
  12  1.97807
  13  7.6877e-06
  14  5.57747e-06
  15  7.35559e-06
  16  0.213818
  17  0.117563
Done.

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

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  8.295e+00  8.534e+01  0.000e+00  1.000e+06 ( 1.000e-14)
249        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  1.903e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  9.937e-01  1.176e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  1.300e+00  2.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 219.504 2.327
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/636916/likelihoodResults_696816001_697075201_4FGL_J1438.0+0219_daily_bin1765.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) = 7968.12661834
delta logL = 0.890071548823

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7968.04357803
delta logL = 0.973111859515

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7968.044     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      273 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47041        5.1777        .80739E-03    .20350E-01
   2  Index         4.6148        1.9802        .81365E-01    .30112E-03
   3  Normalizat    1.1785        .53058E-01    .74581E-01    .23514E-04
   4  Prefactor     1.0350        .30207E-01    .40871E-01    .88749E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.470414
  Index      = 4.61481
  Normalizat = 1.17849
  Prefactor  = 1.03502
 **********
 **   18 **HESSE 
 **********

 FCN=   7968.044     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      306 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47041        12.972        .45169E-05   -1.5694    
   2  Index         4.6148        3.5456        .40533E-02   -.77115E-01
   3  Normalizat    1.1785        .21102        .33007E-03   -.87270    
   4  Prefactor     1.0350        .11734        .19886E-03   -.91571    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.94671e-10
Minuit parameter uncertainties:
  1  4.94063
  2  3.94452
  3  0.211174
  4  0.117374
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/636916': 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) = 7968.04356963
delta logL = 0.973120261106

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  4.704e-01  4.941e+00  0.000e+00  1.000e+06 ( 1.000e-14)
249        Index:  4.615e+00  3.945e+00  0.000e+00  1.000e+01 (-1.000e+00)
250        Scale:  1.903e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  1.035e+00  1.174e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  1.178e+00  2.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.16
Ra Dec: 219.504 2.327
Photon Index (Free Index): 4.61 +/- 3.94
Photon Flux (Free Index): 1.05e-07 +/- 7.97e-08
Energy Flux (Free Index): 1.45e-05 +/- 1.22e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/636916/cmap_HighResolution_696816001_697075201_4FGL_J1438.0+0219_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.76e-03', comment='SUCCESS', energy_flux2='1.45e-05', dlogl='9.73e-01', photon_flux2='1.05e-07', job_status='DONE', time_completed='2023-02-03 01:16:33.913194', photon_index_error2='3.94', photon_index2='4.61', ts='0.01', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.22e-05', EG='1.30', time_epoch_completed='1675415793.91', return_code='0', job_id='636916', GAL2='1.04', EG2='1.18', return_code2='102', photon_flux_error2='7.97e-08', ts2='2.16', photon_index='2.23' WHERE bin_id='1765' AND source_name='4FGL J1438.0+0219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 01:16:33 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 636916: <4FGL_J1438.0+0219_daily_bin1765> in cluster <slac> Done

Job <4FGL_J1438.0+0219_daily_bin1765> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Feb  3 01:05:32 2023
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 01:06:48 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 01:06:48 2023
Terminated at Fri Feb  3 01:16:34 2023
Results reported at Fri Feb  3 01:16:34 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0+0219_daily_bin1765 219.504 2.3272 696816001 697075201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1438.0+0219 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   567.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   586 sec.
    Turnaround time :                            662 sec.

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

