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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin1780
RA = 219.74, Dec = 37.1752
tmin = 700704001, tmax = 700963201
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='66556', job_status='RUN', time_executed='2023-03-20 01:07:50.115907', time_epoch_executed='1679299670.12' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66556

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66556/ft1_4FGL_J1438.9+3710_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66556/ft2_4FGL_J1438.9+3710_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66556/ft1_4FGL_J1438.9+3710_daily_bin1780.fits outfile=/scratch/kocevski/66556/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin1780.fits ra=219.74 dec=37.1752 rad=12.0 tmin=700704001.0 tmax=700963201.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 4.08
user 3.85
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/66556/ft2_4FGL_J1438.9+3710_daily_bin1780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/66556/ft2_4FGL_J1438.9+3710_daily_bin1780.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/66556/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin1780.fits evtable="EVENTS" outfile="/scratch/kocevski/66556/ft1_filtered_4FGL_J1438.9+3710_daily_bin1780.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.34
sys 0.16

Number of photons that the gtmktime cut: 716

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66556/ft1_filtered_4FGL_J1438.9+3710_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/66556/ft2_4FGL_J1438.9+3710_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/66556/ltcube_700704001_700963201_4FGL_J1438.9+3710_daily_bin1780.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/66556/ft2_4FGL_J1438.9+3710_daily_bin1780.fits
.....................!
real 12.08
user 11.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66556/ft1_filtered_4FGL_J1438.9+3710_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/66556/ft2_4FGL_J1438.9+3710_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/66556/ltcube_700704001_700963201_4FGL_J1438.9+3710_daily_bin1780.fits outfile=/scratch/kocevski/66556/expmap_700704001_700963201_4FGL_J1438.9+3710_daily_bin1780.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/66556/ltcube_700704001_700963201_4FGL_J1438.9+3710_daily_bin1780.fits
.....................!
real 190.67
user 185.33
sys 5.01

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

Setting source of interest to:
4FGL J1438.9+3710 @ 219.74 37.1752

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/66556/ft1_filtered_4FGL_J1438.9+3710_daily_bin1780.fits scfile=/scratch/kocevski/66556/ft2_4FGL_J1438.9+3710_daily_bin1780.fits outfile=/scratch/kocevski/66556/cmap_700704001_700963201_4FGL_J1438.9+3710_daily_bin1780.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.74 yref=37.1752 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66556/ft1_filtered_4FGL_J1438.9+3710_daily_bin1780.fits scfile=/scratch/kocevski/66556/ft2_4FGL_J1438.9+3710_daily_bin1780.fits outfile=/scratch/kocevski/66556/cmap_HighResolution_700704001_700963201_4FGL_J1438.9+3710_daily_bin1780.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.74 yref=37.1752 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/66556/ft1_filtered_4FGL_J1438.9+3710_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/66556/ft2_4FGL_J1438.9+3710_daily_bin1780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66556/Model_4FGL_J1438.9+3710_daily_bin1780.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/66556/ft1_filtered_4FGL_J1438.9+3710_daily_bin1780.fits.....................!
real 59.26
user 57.91
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/66556/ft1_filtered_4FGL_J1438.9+3710_daily_bin1780.fits', '/scratch/kocevski/66556/ft2_4FGL_J1438.9+3710_daily_bin1780.fits', expMap='/scratch/kocevski/66556/expmap_700704001_700963201_4FGL_J1438.9+3710_daily_bin1780.fits', expCube='/scratch/kocevski/66556/ltcube_700704001_700963201_4FGL_J1438.9+3710_daily_bin1780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/66556/Model_4FGL_J1438.9+3710_daily_bin1780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1438.9+3710'

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  4.709e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
283        alpha:  2.310e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
284         beta:  1.080e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  6.335e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/66556/ft1_filtered_4FGL_J1438.9+3710_daily_bin1780.fits
Spacecraft file(s): /scratch/kocevski/66556/ft2_4FGL_J1438.9+3710_daily_bin1780.fits
Exposure map: /scratch/kocevski/66556/expmap_700704001_700963201_4FGL_J1438.9+3710_daily_bin1780.fits
Exposure cube: /scratch/kocevski/66556/ltcube_700704001_700963201_4FGL_J1438.9+3710_daily_bin1780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/66556/Model_4FGL_J1438.9+3710_daily_bin1780.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) = 7909.35360629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69895       1.0000          .0000       .10000E+07
     2 'norm      '    6.8904       1.0000          .0000       .10000E+07
     3 'Prefactor '    9.0403       1.0000          .0000       .10000E+07
     4 'norm      '    .37870E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    21.728       1.0000          .0000       .10000E+07
     6 'Prefactor '    .50621E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    11.669       1.0000          .0000       .10000E+07
     8 'norm      '    .72716E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .10856E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    142.84       1.0000          .0000       .10000E+07
    11 'norm      '    9.1276       1.0000          .0000       .10000E+07
    12 'Prefactor '    13.417       1.0000          .0000       .10000E+07
    13 'Prefactor '    4.2010       1.0000          .0000       .10000E+07
    14 'Prefactor '    .79488E-05   1.0000          .0000       .10000E+07
    15 'norm      '    .73978       1.0000          .0000       .10000E+07
    16 'norm      '    1.3761       1.0000          .0000       .10000E+07
    17 'Prefactor '    .24533E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .25884E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    5.5385       1.0000          .0000       .10000E+07
    20 'Prefactor '    12.003       1.0000          .0000       .10000E+07
    21 'norm      '    1.3397       1.0000          .0000       .10000E+07
    22 'Prefactor '    .49752E-01   1.0000          .0000       .10000E+07
    23 'norm      '    6.8052       1.0000          .0000       .10000E+07
    24 'Normalizat'    1.2488       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .60474       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7909.257     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     2138 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64173        11.112       -.56863E-06   -.67555E-03
   2  norm          6.9171        5.0254        .10417E-06    .50310E-01
   3  Prefactor     9.1993        4.5923        .13228E-09    .20153E-01
   4  norm          .72720E-08    4.1119        .12925E-06** at limit **
   5  Prefactor     21.876        8.4753       -.11600E-06    .66712E-01
   6  Prefactor     .17486E-07    8.5860       -.63360E-07** at limit **
   7  Prefactor     11.646        4.7978       -.47362E-08    .31112E-02
   8  norm          .22760E-08    4.6437        .67273E-08** at limit **
   9  norm          .16653E-09    1.8092       -.60410E-07** at limit **
  10  Prefactor     144.23        44.508        .34372E-07   -.30628E-01
  11  norm          9.1301        6.8535        .14794E-07    .24668E-02
  12  Prefactor     13.413        1.8182       -.27939E-07    .96031E-03
  13  Prefactor     4.1965        4.4201       -.68270E-08   -.13680E-03
  14  Prefactor     .22204E-09    3.5535       -.24440E-07** at limit **
  15  norm          .74027        1.0548       -.12570E-07   -.27158E-02
  16  norm          1.3826        1.8809       -.22724E-07   -.31545E-02
  17  Prefactor     .27756E-09    3.1620       -.42103E-08** at limit **
  18  Prefactor     .18330E-06    22.487        .75413E-07** at limit **
  19  Prefactor     6.2990        13.763        .33950E-07    .78089E-01
  20  Prefactor     11.605        13.107        .21740E-07    .68292E-01
  21  norm          1.3414        .93097       -.75061E-08   -.37955E-02
  22  Prefactor     .39459E-01    3.4930        .32708E-07** at limit **
  23  norm          6.8145        8.0435        .88991E-07   -.12484E-02
  24  Normalizat    1.2479        .18801        .51440E-06   -.28640E-03
  25  Prefactor     .60461        .18292       -.10386E-05   -.18668E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.641734
  norm       = 6.91706
  Prefactor  = 9.19928
  norm       = 7.27196e-09
  Prefactor  = 21.876
  Prefactor  = 1.7486e-08
  Prefactor  = 11.6463
  norm       = 2.27596e-09
  norm       = 1.66533e-10
  Prefactor  = 144.234
  norm       = 9.1301
  Prefactor  = 13.4128
  Prefactor  = 4.19653
  Prefactor  = 2.22045e-10
  norm       = 0.740272
  norm       = 1.38259
  Prefactor  = 2.77556e-10
  Prefactor  = 1.83298e-07
  Prefactor  = 6.29898
  Prefactor  = 11.6055
  norm       = 1.34142
  Prefactor  = 0.0394592
  norm       = 6.81452
  Normalizat = 1.24789
  Prefactor  = 0.604607
 **********
 **   18 **HESSE 
 **********

 FCN=   7909.257     FROM HESSE     STATUS=OK           493 CALLS     2631 TOTAL
                     EDM=   .87E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .64173        15.610        .60794E-03   -1.5692    
   2  norm          6.9171        11.661        .38197E-03   -1.5655    
   3  Prefactor     9.1993        14.899        .33310E-03   -1.5647    
   4  norm          .72720E-08    4.1111        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.876        13.649        .21459E-03   -1.5614    
   6  Prefactor     .17486E-07    8.9824        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.646        4.8011        .29301E-03   -1.5640    
   8  norm          .22760E-08    4.6962        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .16653E-09    1.8063        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     144.23        44.566        .83678E-04   -1.5468    
  11  norm          9.1301        6.9037        .33150E-03   -1.5648    
  12  Prefactor     13.413        11.735        .27320E-03   -1.5635    
  13  Prefactor     4.1965        4.4483        .49144E-03   -1.5667    
  14  Prefactor     .22204E-09    3.5487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .74027        1.0702        .57536E-03   -1.5691    
  16  norm          1.3826        1.9319        .92818E-03   -1.5684    
  17  Prefactor     .27756E-09    3.1636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .18330E-06    22.841        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.2990        23.451        .42667E-03   -1.5658    
  20  Prefactor     11.605        15.216        .28889E-03   -1.5640    
  21  norm          1.3414        1.0502        .94676E-03   -1.5685    
  22  Prefactor     .39459E-01    4.5265        .10964E-01   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.8145        8.0501        .38438E-03   -1.5656    
  24  Normalizat    1.2479        .16191        .49334E-01   -.85136    
  25  Prefactor     .60461        .15562        .70885E-01   -1.0739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.74144e-07
Minuit parameter uncertainties:
  1  6.33004
  2  11.6612
  3  14.8989
  4  0.000345747
  5  13.6489
  6  0.000792815
  7  4.80115
  8  0.000207154
  9  3.193e-05
  10  44.5663
  11  6.9037
  12  11.735
  13  4.44827
  14  5.60813e-05
  15  1.07019
  16  1.93187
  17  5.79291e-05
  18  0.00409228
  19  23.4514
  20  15.216
  21  1.05018
  22  0.845253
  23  8.05008
  24  0.161973
  25  0.155728
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.665e-10  3.193e-05  0.000e+00  1.000e+06 ( 1.000e-12)
283        alpha:  2.310e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
284         beta:  1.080e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  6.335e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  6.046e-01  1.557e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.248e+00  1.620e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 219.740 37.175
Photon Flux Upper Limit: 3.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.34e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/66556/likelihoodResults_700704001_700963201_4FGL_J1438.9+3710_daily_bin1780.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) = 7909.25763227
delta logL = -0.000682881069224

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7909.25695061
delta logL = -1.21888115245e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21205E-07   1.0000          .0000       .10000E+07
     2 'alpha     '    1.2357       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2479       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60473       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7909.257     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      232 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.4246        .42118E-03** at limit **
   2  alpha         2.9277        1.2101        .15494E-03     .0000    
   3  Normalizat    1.2479        1.0918       -.61810E-05   -.52265E-05
   4  Prefactor     .60461        .95263        .24637E-05   -.75357E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 2.92771
  Normalizat = 1.24789
  Prefactor  = 0.604606
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7909.257     FROM HESSE     STATUS=FAILED         7 CALLS      239 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.4246        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6708        1.2101        .15494E-03    .17193    
   3  Normalizat    1.2479        1.0918       -.61810E-05   -.85136    
   4  Prefactor     .60461        .95263        .24637E-05   -1.0739    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.75335e-11
Minuit parameter uncertainties:
  1  1.27965e-06
  2  1.26503
  3  1.11286
  4  0.980011
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66556': 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) = 7909.25694939
delta logL = 5.72981662117e-11

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  0.000e+00  1.280e-06  0.000e+00  1.000e+06 ( 1.000e-12)
283        alpha:  2.928e+00  1.265e+00  0.000e+00  5.000e+00 ( 1.000e+00)
284         beta:  1.080e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  6.335e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  6.046e-01  9.800e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.248e+00  1.113e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 219.740 37.175

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/66556/cmap_HighResolution_700704001_700963201_4FGL_J1438.9+3710_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-05', job_status='DONE', photon_flux_upper_limit='3.92e-08', time_completed='2023-03-20 01:19:14.536761', job_id='66556', GAL2='0.60', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1679300354.54', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='5.73e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1780' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 01:19:14 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 66556: <4FGL_J1438.9+3710_daily_bin1780> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin1780> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Mar 20 01:05:16 2023
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 01:05:17 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 01:05:17 2023
Terminated at Mon Mar 20 01:19:15 2023
Results reported at Mon Mar 20 01:19:15 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin1780 219.74 37.1752 700704001 700963201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1438.9+3710 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   686.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            839 sec.

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

