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


Performing analysis on: 4FGL_J1318.7-1234_daily_bin1772
RA = 199.694, Dec = -12.581
tmin = 698630401, tmax = 698889601
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='633302', job_status='RUN', time_executed='2023-02-24 01:42:55.950903', time_epoch_executed='1677231775.95' WHERE source_name='4FGL J1318.7-1234' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/633302

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/633302/ft1_4FGL_J1318.7-1234_daily_bin1772.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/633302/ft2_4FGL_J1318.7-1234_daily_bin1772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/633302/ft1_4FGL_J1318.7-1234_daily_bin1772.fits outfile=/scratch/kocevski/633302/ft1_filteredMKT_4FGL_J1318.7-1234_daily_bin1772.fits ra=199.694 dec=-12.581 rad=12.0 tmin=698630401.0 tmax=698889601.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.03
user 2.82
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/633302/ft2_4FGL_J1318.7-1234_daily_bin1772.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/633302/ft2_4FGL_J1318.7-1234_daily_bin1772.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/633302/ft1_filteredMKT_4FGL_J1318.7-1234_daily_bin1772.fits evtable="EVENTS" outfile="/scratch/kocevski/633302/ft1_filtered_4FGL_J1318.7-1234_daily_bin1772.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.33
sys 0.16

Number of photons that the gtmktime cut: 609

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/633302/ft1_filtered_4FGL_J1318.7-1234_daily_bin1772.fits" evtable="EVENTS" scfile=/scratch/kocevski/633302/ft2_4FGL_J1318.7-1234_daily_bin1772.fits sctable="SC_DATA" outfile=/scratch/kocevski/633302/ltcube_698630401_698889601_4FGL_J1318.7-1234_daily_bin1772.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/633302/ft2_4FGL_J1318.7-1234_daily_bin1772.fits
.....................!
real 12.96
user 12.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/633302/ft1_filtered_4FGL_J1318.7-1234_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/633302/ft2_4FGL_J1318.7-1234_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/633302/ltcube_698630401_698889601_4FGL_J1318.7-1234_daily_bin1772.fits outfile=/scratch/kocevski/633302/expmap_698630401_698889601_4FGL_J1318.7-1234_daily_bin1772.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/633302/ltcube_698630401_698889601_4FGL_J1318.7-1234_daily_bin1772.fits
.....................!
real 190.12
user 185.21
sys 4.51

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 J1318.7-1234 @ 199.694 -12.581

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/633302/ft1_filtered_4FGL_J1318.7-1234_daily_bin1772.fits scfile=/scratch/kocevski/633302/ft2_4FGL_J1318.7-1234_daily_bin1772.fits outfile=/scratch/kocevski/633302/cmap_698630401_698889601_4FGL_J1318.7-1234_daily_bin1772.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.694 yref=-12.581 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/633302/ft1_filtered_4FGL_J1318.7-1234_daily_bin1772.fits scfile=/scratch/kocevski/633302/ft2_4FGL_J1318.7-1234_daily_bin1772.fits outfile=/scratch/kocevski/633302/cmap_HighResolution_698630401_698889601_4FGL_J1318.7-1234_daily_bin1772.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.694 yref=-12.581 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/633302/ft1_filtered_4FGL_J1318.7-1234_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/633302/ft2_4FGL_J1318.7-1234_daily_bin1772.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/633302/Model_4FGL_J1318.7-1234_daily_bin1772.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/633302/ft1_filtered_4FGL_J1318.7-1234_daily_bin1772.fits.....................!
real 55.19
user 53.87
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/633302/ft1_filtered_4FGL_J1318.7-1234_daily_bin1772.fits', '/scratch/kocevski/633302/ft2_4FGL_J1318.7-1234_daily_bin1772.fits', expMap='/scratch/kocevski/633302/expmap_698630401_698889601_4FGL_J1318.7-1234_daily_bin1772.fits', expCube='/scratch/kocevski/633302/ltcube_698630401_698889601_4FGL_J1318.7-1234_daily_bin1772.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/633302/Model_4FGL_J1318.7-1234_daily_bin1772.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1318.7-1234'

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  1.941e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
322        Index:  2.126e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
323        Scale:  1.734e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/633302/ft1_filtered_4FGL_J1318.7-1234_daily_bin1772.fits
Spacecraft file(s): /scratch/kocevski/633302/ft2_4FGL_J1318.7-1234_daily_bin1772.fits
Exposure map: /scratch/kocevski/633302/expmap_698630401_698889601_4FGL_J1318.7-1234_daily_bin1772.fits
Exposure cube: /scratch/kocevski/633302/ltcube_698630401_698889601_4FGL_J1318.7-1234_daily_bin1772.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/633302/Model_4FGL_J1318.7-1234_daily_bin1772.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) = 6727.93871534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5576       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12233E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    87.825       1.0000          .0000       .10000E+07
     4 'Prefactor '    .19111E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .49390E-01   1.0000          .0000       .10000E+07
     6 'norm      '    .59955E-04   1.0000          .0000       .10000E+07
     7 'norm      '    2.8489       1.0000          .0000       .10000E+07
     8 'Prefactor '    .11614E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .56569       1.0000          .0000       .10000E+07
    10 'norm      '    5.1735       1.0000          .0000       .10000E+07
    11 'norm      '    50.457       1.0000          .0000       .10000E+07
    12 'norm      '    10.018       1.0000          .0000       .10000E+07
    13 'Prefactor '    .52325E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .49962E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .56752E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .80452E-01   1.0000          .0000       .10000E+07
    17 'norm      '    2.6610       1.0000          .0000       .10000E+07
    18 'norm      '    20.099       1.0000          .0000       .10000E+07
    19 'norm      '    .50054       1.0000          .0000       .10000E+07
    20 'Prefactor '    .36695E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .20315E-03   1.0000          .0000       .10000E+07
    22 'norm      '    .31051E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    5.4038       1.0000          .0000       .10000E+07
    24 'norm      '    .15653E-03   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.5194       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .97730       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6727.891     FROM MIGRAD    STATUS=CONVERGED    195 CALLS     2289 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5571        3.7340        .28634E-06    .10574E-04
   2  Prefactor     .39361E-05    15.640        .34627E-06** at limit **
   3  Prefactor     86.466        80.126        .26786E-06    .27312E-01
   4  Prefactor     .13694E-04    47.235        .15680E-05** at limit **
   5  norm          .51217E-01    .33472        .12080E-06** at limit **
   6  norm           .0000        4.0763       -.12511E-06** at limit **
   7  norm          2.8458        5.3451        .28553E-06   -.65802E-04
   8  Prefactor      .0000        2.8411        .57918E-07** at limit **
   9  Prefactor     .18954E-03    54.065        .69903E-06** at limit **
  10  norm          5.1726        3.1516        .57708E-07   -.12022E-03
  11  norm          50.525        5.5039        .19375E-07    .36186E-01
  12  norm          10.013        1.2674       -.40925E-08   -.25944E-01
  13  Prefactor      .0000        3.7338       -.14426E-06** at limit **
  14  Prefactor     .34273E-05    15.584        .57958E-06** at limit **
  15  Prefactor     .11102E-09    14.268       -.44872E-07** at limit **
  16  Prefactor     .20478E-05    1.2462       -.48768E-07** at limit **
  17  norm          2.6605        1.6441       -.53477E-07    .42625E-03
  18  norm          20.112        6.2228       -.30840E-07    .54851E-02
  19  norm          .48973        14.362       -.21408E-06   -.60428E-02
  20  Prefactor     .44409E-09    5.9495       -.15779E-06** at limit **
  21  Prefactor      .0000        3.0793       -.86582E-07** at limit **
  22  norm          .55511E-10    7.8955       -.14720E-06** at limit **
  23  Prefactor     5.4185        5.9532       -.82685E-07    .42845E-03
  24  norm          .49960E-09    6.1862       -.13542E-06** at limit **
  25  Normalizat    1.5195        .31089       -.98297E-05    .67024E-05
  26  Prefactor     .97741        .15985        .46895E-05    .15663E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.55713
  Prefactor  = 3.93607e-06
  Prefactor  = 86.4663
  Prefactor  = 1.36944e-05
  norm       = 0.0512172
  norm       = 0
  norm       = 2.84583
  Prefactor  = 0
  Prefactor  = 0.000189541
  norm       = 5.17259
  norm       = 50.5251
  norm       = 10.0134
  Prefactor  = 0
  Prefactor  = 3.42731e-06
  Prefactor  = 1.11022e-10
  Prefactor  = 2.04775e-06
  norm       = 2.66051
  norm       = 20.1125
  norm       = 0.489727
  Prefactor  = 4.44089e-10
  Prefactor  = 0
  norm       = 5.55112e-11
  Prefactor  = 5.41847
  norm       = 4.996e-10
  Normalizat = 1.51953
  Prefactor  = 0.977408
 **********
 **   18 **HESSE 
 **********

 FCN=   6727.891     FROM HESSE     STATUS=OK           512 CALLS     2801 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5571        3.7332        .39178E-02   -1.5196    
   2  Prefactor     .39361E-05    20.150        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     86.466        75.843        .10671E-03   -1.5522    
   4  Prefactor     .13694E-04    54.084        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .51217E-01    .17695        .15565E-02   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        4.0734        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.8458        5.3711        .60212E-03   -1.5674    
   8  Prefactor      .0000        2.8397        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .18954E-03    152.02        .72359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.1726        3.1505        .44174E-03   -1.5662    
  11  norm          50.525        22.624        .14079E-03   -1.5566    
  12  norm          10.013        11.916        .31634E-03   -1.5645    
  13  Prefactor      .0000        3.7359        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .34273E-05    19.641        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11102E-09    14.175        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .20478E-05    18.629        .14487E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.6605        1.6443        .62457E-03   -1.5675    
  18  norm          20.112        9.4823        .22312E-03   -1.5618    
  19  norm          .48973        14.841        .78656E-02   -1.5694    
  20  Prefactor     .44409E-09    5.9525        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        3.0776        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .55511E-10    7.8263        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.4185        6.0790        .43205E-03   -1.5661    
  24  norm          .49960E-09    6.2046        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.5195        .26955        .78571E-01   -.77231    
  26  Prefactor     .97741        .13694        .45983E-01   -.93486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10689e-06
Minuit parameter uncertainties:
  1  3.73332
  2  0.0178117
  3  75.844
  4  0.0544299
  5  0.176952
  6  2.1231e-06
  7  5.37109
  8  9.40457e-07
  9  0.339508
  10  3.15055
  11  22.6242
  12  11.9165
  13  2.57216e-06
  14  0.0164094
  15  8.67218e-05
  16  0.0123528
  17  1.64431
  18  9.4823
  19  5.39188
  20  0.000103424
  21  3.05108e-07
  22  4.86053e-05
  23  6.07901
  24  0.000109131
  25  0.269807
  26  0.136985
Done.

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

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  0.000e+00  2.572e-06  0.000e+00  1.000e+06 ( 1.000e-13)
322        Index:  2.126e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
323        Scale:  1.734e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  9.774e-01  1.370e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.520e+00  2.698e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 199.694 -12.581
Photon Flux Upper Limit: 7.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/633302/likelihoodResults_698630401_698889601_4FGL_J1318.7-1234_daily_bin1772.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) = 6727.90015363
delta logL = -0.00872230729328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6727.89143189
delta logL = -5.72695171286e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6727.891     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      222 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.3113        .42118E-03** at limit **
   2  Index         .67469        .60731       -.46321E-04     .0000    
   3  Normalizat    1.5195        1.0477       -.36723E-04   -.31052E-04
   4  Prefactor     .97741        1.3180        .26426E-04   -.11207E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.674687
  Normalizat = 1.51953
  Prefactor  = 0.977408
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6727.891     FROM HESSE     STATUS=FAILED         9 CALLS      231 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.3113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .60227E-03    .80278       -.46321E-04   -1.0453    
   3  Normalizat    1.5195        1.0477       -.36723E-04   -.77231    
   4  Prefactor     .97741        1.3180        .26426E-04   -.93486    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.28376e-11
Minuit parameter uncertainties:
  1  1.0577e-05
  2  0.613406
  3  1.0633
  4  1.36559
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/633302': 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) = 6727.89143132
delta logL = -7.27595761418e-12

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  0.000e+00  1.058e-05  0.000e+00  1.000e+06 ( 1.000e-13)
322        Index:  6.747e-01  6.134e-01  0.000e+00  1.000e+01 (-1.000e+00)
323        Scale:  1.734e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  9.774e-01  1.366e+00  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.520e+00  1.063e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 199.694 -12.581

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/633302/cmap_HighResolution_698630401_698889601_4FGL_J1318.7-1234_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.52e-03', job_status='DONE', photon_flux_upper_limit='7.29e-08', time_completed='2023-02-24 01:53:49.255782', job_id='633302', GAL2='0.98', fit_tolerance='1e-08', EG2='1.52', EG='1.52', time_epoch_completed='1677232429.26', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='-7.28e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1772' AND source_name='4FGL J1318.7-1234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 01:53:49 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 633302: <4FGL_J1318.7-1234_daily_bin1772> in cluster <slac> Done

Job <4FGL_J1318.7-1234_daily_bin1772> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Feb 24 01:40:16 2023
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 01:40:17 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 01:40:17 2023
Terminated at Fri Feb 24 01:53:53 2023
Results reported at Fri Feb 24 01:53:53 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1318.7-1234_daily_bin1772 199.694 -12.581 698630401 698889601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1318.7-1234 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   654.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            817 sec.

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

