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


Performing analysis on: 4FGL_J1318.2+6754_daily_bin1774
RA = 199.556, Dec = 67.9152
tmin = 699148801, tmax = 699408001
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='682685', job_status='RUN', time_executed='2023-03-02 00:46:54.236887', time_epoch_executed='1677746814.24' WHERE source_name='4FGL J1318.2+6754' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682685

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682685/ft1_4FGL_J1318.2+6754_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682685/ft2_4FGL_J1318.2+6754_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682685/ft1_4FGL_J1318.2+6754_daily_bin1774.fits outfile=/scratch/kocevski/682685/ft1_filteredMKT_4FGL_J1318.2+6754_daily_bin1774.fits ra=199.556 dec=67.9152 rad=12.0 tmin=699148801.0 tmax=699408001.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 2.81
user 2.59
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/682685/ft2_4FGL_J1318.2+6754_daily_bin1774.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/682685/ft2_4FGL_J1318.2+6754_daily_bin1774.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/682685/ft1_filteredMKT_4FGL_J1318.2+6754_daily_bin1774.fits evtable="EVENTS" outfile="/scratch/kocevski/682685/ft1_filtered_4FGL_J1318.2+6754_daily_bin1774.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.32
sys 0.16

Number of photons that the gtmktime cut: 605

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682685/ft1_filtered_4FGL_J1318.2+6754_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/682685/ft2_4FGL_J1318.2+6754_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/682685/ltcube_699148801_699408001_4FGL_J1318.2+6754_daily_bin1774.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/682685/ft2_4FGL_J1318.2+6754_daily_bin1774.fits
.....................!
real 12.72
user 12.33
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682685/ft1_filtered_4FGL_J1318.2+6754_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/682685/ft2_4FGL_J1318.2+6754_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/682685/ltcube_699148801_699408001_4FGL_J1318.2+6754_daily_bin1774.fits outfile=/scratch/kocevski/682685/expmap_699148801_699408001_4FGL_J1318.2+6754_daily_bin1774.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/682685/ltcube_699148801_699408001_4FGL_J1318.2+6754_daily_bin1774.fits
.....................!
real 191.04
user 185.53
sys 5.16

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

Setting source of interest to:
4FGL J1318.2+6754 @ 199.556 67.9152

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/682685/ft1_filtered_4FGL_J1318.2+6754_daily_bin1774.fits scfile=/scratch/kocevski/682685/ft2_4FGL_J1318.2+6754_daily_bin1774.fits outfile=/scratch/kocevski/682685/cmap_699148801_699408001_4FGL_J1318.2+6754_daily_bin1774.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=199.556 yref=67.9152 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682685/ft1_filtered_4FGL_J1318.2+6754_daily_bin1774.fits scfile=/scratch/kocevski/682685/ft2_4FGL_J1318.2+6754_daily_bin1774.fits outfile=/scratch/kocevski/682685/cmap_HighResolution_699148801_699408001_4FGL_J1318.2+6754_daily_bin1774.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=199.556 yref=67.9152 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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/682685/ft1_filtered_4FGL_J1318.2+6754_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/682685/ft2_4FGL_J1318.2+6754_daily_bin1774.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/682685/Model_4FGL_J1318.2+6754_daily_bin1774.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/682685/ft1_filtered_4FGL_J1318.2+6754_daily_bin1774.fits.....................!
real 64.64
user 63.20
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/682685/ft1_filtered_4FGL_J1318.2+6754_daily_bin1774.fits', '/scratch/kocevski/682685/ft2_4FGL_J1318.2+6754_daily_bin1774.fits', expMap='/scratch/kocevski/682685/expmap_699148801_699408001_4FGL_J1318.2+6754_daily_bin1774.fits', expCube='/scratch/kocevski/682685/ltcube_699148801_699408001_4FGL_J1318.2+6754_daily_bin1774.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/682685/Model_4FGL_J1318.2+6754_daily_bin1774.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1318.2+6754'

4FGL J1318.2+6754
   Spectrum: PowerLaw
391    Prefactor:  6.773e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
392        Index:  2.168e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  1.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/682685/ft1_filtered_4FGL_J1318.2+6754_daily_bin1774.fits
Spacecraft file(s): /scratch/kocevski/682685/ft2_4FGL_J1318.2+6754_daily_bin1774.fits
Exposure map: /scratch/kocevski/682685/expmap_699148801_699408001_4FGL_J1318.2+6754_daily_bin1774.fits
Exposure cube: /scratch/kocevski/682685/ltcube_699148801_699408001_4FGL_J1318.2+6754_daily_bin1774.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/682685/Model_4FGL_J1318.2+6754_daily_bin1774.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) = 6688.38148249

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .71230E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .12601E-07   1.0000          .0000       .10000E+07
     3 'norm      '    .48232E-01   1.0000          .0000       .10000E+07
     4 'norm      '    .51415E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .28098E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    16.618       1.0000          .0000       .10000E+07
     7 'Prefactor '    10.253       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21768E-02   1.0000          .0000       .10000E+07
     9 'norm      '    .25229E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    4.4055       1.0000          .0000       .10000E+07
    11 'norm      '    1.4994       1.0000          .0000       .10000E+07
    12 'Prefactor '    34.674       1.0000          .0000       .10000E+07
    13 'Prefactor '    .20824E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .25329E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .12098E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .69006E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .16932E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    28.833       1.0000          .0000       .10000E+07
    19 'Prefactor '    .11180E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .10696E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    .12312       1.0000          .0000       .10000E+07
    22 'Prefactor '    .93246E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    12.746       1.0000          .0000       .10000E+07
    24 'Prefactor '    .41950E-02   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.0868       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86596       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6688.354     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     2263 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22593E-07    13.762       -.16831E-06** at limit **
   2  Prefactor     .57077E-06    4.2997        .69857E-08** at limit **
   3  norm          .16653E-09    54.098       -.24124E-06** at limit **
   4  norm          .16098E-08    5.3710       -.35973E-07** at limit **
   5  Prefactor      .0000        7.0812       -.55711E-07** at limit **
   6  Prefactor     16.617        3.8442       -.20928E-07    .19397E-02
   7  Prefactor     9.2147        15.782        .27567E-06   -.76506E-02
   8  Prefactor     .15183E-05    156.23        .12993E-05** at limit **
   9  norm          .27756E-09    2.8491       -.92413E-08** at limit **
  10  Prefactor     4.4067        6.3165       -.25022E-07    .50387E-04
  11  norm          1.4985        1.8333        .48603E-07    .92740E-03
  12  Prefactor     35.180        7.5722       -.66057E-07    .38346E-01
  13  Prefactor     .22204E-09    4.1624        .12515E-06** at limit **
  14  Prefactor     .15604E-06    13.282       -.81677E-08** at limit **
  15  Prefactor     .20711E-06    21.754        .75519E-07** at limit **
  16  Prefactor     .40246E-07    58.911       -.13169E-07** at limit **
  17  Prefactor     .12595E-06    7.0933       -.18131E-06** at limit **
  18  Prefactor     28.863        1.5750        .52473E-08   -.55003E-02
  19  Prefactor     .11102E-09    5.0766       -.16882E-06** at limit **
  20  Prefactor     .61395E-07    21.541       -.12317E-06** at limit **
  21  Prefactor     .10469E-06    2.2449        .75625E-08** at limit **
  22  Prefactor     .56344E-07    9.6485        .22543E-06** at limit **
  23  Prefactor     12.763        1.4208        .67551E-08    .54858E-03
  24  Prefactor     .65836E-07    21.653       -.17183E-06** at limit **
  25  Normalizat    1.0866        .17540        .26928E-06   -.34008E-04
  26  Prefactor     .86650        .18578       -.10103E-05   -.29436E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.2593e-08
  Prefactor  = 5.70766e-07
  norm       = 1.66533e-10
  norm       = 1.60982e-09
  Prefactor  = 0
  Prefactor  = 16.6172
  Prefactor  = 9.21466
  Prefactor  = 1.51829e-06
  norm       = 2.77556e-10
  Prefactor  = 4.40671
  norm       = 1.49855
  Prefactor  = 35.1801
  Prefactor  = 2.22045e-10
  Prefactor  = 1.56042e-07
  Prefactor  = 2.07112e-07
  Prefactor  = 4.02456e-08
  Prefactor  = 1.25955e-07
  Prefactor  = 28.8626
  Prefactor  = 1.11022e-10
  Prefactor  = 6.13953e-08
  Prefactor  = 1.04694e-07
  Prefactor  = 5.63438e-08
  Prefactor  = 12.7633
  Prefactor  = 6.58362e-08
  Normalizat = 1.08663
  Prefactor  = 0.866498
 **********
 **   18 **HESSE 
 **********

 FCN=   6688.354     FROM HESSE     STATUS=OK           500 CALLS     2763 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22593E-07    14.026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .57077E-06    9.9616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .16653E-09    53.026        .15612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .16098E-08    5.3847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        7.2467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.617        24.906        .24542E-03   -1.5626    
   7  Prefactor     9.2147        80.801        .31268E-03   -1.5647    
   8  Prefactor     .15183E-05    170.74        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .27756E-09    2.8289        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.4067        6.3373        .47957E-03   -1.5666    
  11  norm          1.4985        1.8509        .87426E-03   -1.5683    
  12  Prefactor     35.180        55.715        .16984E-03   -1.5589    
  13  Prefactor     .22204E-09    4.1647        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .15604E-06    32.125        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .20711E-06    33.612        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .40246E-07    58.080        .14851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .12595E-06    8.2874        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     28.863        18.488        .18626E-03   -1.5601    
  19  Prefactor     .11102E-09    5.0786        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .61395E-07    23.118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10469E-06    70.018        .13346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .56344E-07    10.248        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.763        22.155        .28032E-03   -1.5637    
  24  Prefactor     .65836E-07    27.079        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0866        .15331        .38563E-01   -.90182    
  26  Prefactor     .86650        .16045        .44570E-01   -.97322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48257e-07
Minuit parameter uncertainties:
  1  0.00112643
  2  0.00476897
  3  0.000176316
  4  0.000186144
  5  8.32957e-06
  6  24.9059
  7  54.574
  8  0.0322017
  9  5.35398e-05
  10  6.33728
  11  1.85089
  12  55.7154
  13  6.30392e-05
  14  0.00447767
  15  0.00527687
  16  0.00305804
  17  0.00204344
  18  18.488
  19  4.72173e-05
  20  0.00238313
  21  0.00541468
  22  0.00151975
  23  22.1552
  24  0.0026705
  25  0.153375
  26  0.160539
Done.

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

Extracting fit parameters...

4FGL J1318.2+6754
   Spectrum: PowerLaw
391    Prefactor:  1.560e-07  4.478e-03  0.000e+00  1.000e+06 ( 1.000e-14)
392        Index:  2.168e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  1.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
734    Prefactor:  8.665e-01  1.605e-01  0.000e+00  1.000e+01 ( 1.000e+00)
735        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
736        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
733   Normalization:  1.087e+00  1.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 199.556 67.915
Photon Flux Upper Limit: 4.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/682685/likelihoodResults_699148801_699408001_4FGL_J1318.2+6754_daily_bin1774.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6688.36873242
delta logL = -0.0149350482661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6688.3537975
delta logL = -1.19759533845e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6688.354     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      199 TOTAL
                     EDM=   .29E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        28.925       -.18127E-06** at limit **
   2  Index         2.2800        5.6146        .13888E-04     .0000    
   3  Normalizat    1.0866        .17523        .11621E-05   -.16211E-04
   4  Prefactor     .86650        .18572       -.34813E-05   -.19943E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.28
  Normalizat = 1.08663
  Prefactor  = 0.866498
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6688.354     FROM HESSE     STATUS=FAILED        11 CALLS      210 TOTAL
                     EDM=   .29E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        28.756        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .57802        1.8767        .13888E-04   -.57520    
   3  Normalizat    1.0866        1.1654        .11621E-05   -.90182    
   4  Prefactor     .86650        1.2129       -.34813E-05   -.97322    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.92762e-13
Minuit parameter uncertainties:
  1  1.44687e-05
  2  1.51189
  3  1.19481
  4  1.25402
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682685': 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) = 6688.35379737
delta logL = 2.42744135903e-09

Extracting fit parameters...

4FGL J1318.2+6754
   Spectrum: PowerLaw
391    Prefactor:  0.000e+00  1.447e-05  0.000e+00  1.000e+06 ( 1.000e-14)
392        Index:  2.280e+00  1.512e+00  0.000e+00  1.000e+01 (-1.000e+00)
393        Scale:  1.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
734    Prefactor:  8.665e-01  1.254e+00  0.000e+00  1.000e+01 ( 1.000e+00)
735        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
736        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
733   Normalization:  1.087e+00  1.195e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 199.556 67.915

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/682685/cmap_HighResolution_699148801_699408001_4FGL_J1318.2+6754_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.43e-03', job_status='DONE', photon_flux_upper_limit='4.51e-08', time_completed='2023-03-02 01:00:24.918320', job_id='682685', GAL2='0.87', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1677747624.92', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.43e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1774' AND source_name='4FGL J1318.2+6754' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 01:00:24 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 682685: <4FGL_J1318.2+6754_daily_bin1774> in cluster <slac> Done

Job <4FGL_J1318.2+6754_daily_bin1774> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Mar  2 00:45:20 2023
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:45:21 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 00:45:21 2023
Terminated at Thu Mar  2 01:00:25 2023
Results reported at Thu Mar  2 01:00:25 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1318.2+6754_daily_bin1774 199.556 67.9152 699148801 699408001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1318.2+6754 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   812.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            905 sec.

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

