/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 180 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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 = 7390
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1318.7-1234_daily_bin199
RA = 199.694, Dec = -12.581
tmin = 290908801, tmax = 291168001
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='460273', job_status='RUN', time_executed='2021-09-07 11:09:42.304913', time_epoch_executed='1631038182.3' WHERE source_name='4FGL J1318.7-1234' and cadence='daily' and bin_id='199'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460273

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460273/ft1_4FGL_J1318.7-1234_daily_bin199.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460273/ft2_4FGL_J1318.7-1234_daily_bin199.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460273/ft1_4FGL_J1318.7-1234_daily_bin199.fits outfile=/scratch/kocevski/460273/ft1_filteredMKT_4FGL_J1318.7-1234_daily_bin199.fits ra=199.694 dec=-12.581 rad=12.0 tmin=290908801.0 tmax=291168001.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.45
user 3.24
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/460273/ft2_4FGL_J1318.7-1234_daily_bin199.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/460273/ft1_filteredMKT_4FGL_J1318.7-1234_daily_bin199.fits evtable="EVENTS" outfile="/scratch/kocevski/460273/ft1_filtered_4FGL_J1318.7-1234_daily_bin199.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460273/ft1_filtered_4FGL_J1318.7-1234_daily_bin199.fits" evtable="EVENTS" scfile=/scratch/kocevski/460273/ft2_4FGL_J1318.7-1234_daily_bin199.fits sctable="SC_DATA" outfile=/scratch/kocevski/460273/ltcube_290908801_291168001_4FGL_J1318.7-1234_daily_bin199.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/460273/ft2_4FGL_J1318.7-1234_daily_bin199.fits
.....................!
real 15.15
user 14.78
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460273/ft1_filtered_4FGL_J1318.7-1234_daily_bin199.fits evtable="EVENTS" scfile=/scratch/kocevski/460273/ft2_4FGL_J1318.7-1234_daily_bin199.fits sctable="SC_DATA" expcube=/scratch/kocevski/460273/ltcube_290908801_291168001_4FGL_J1318.7-1234_daily_bin199.fits outfile=/scratch/kocevski/460273/expmap_290908801_291168001_4FGL_J1318.7-1234_daily_bin199.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/460273/ltcube_290908801_291168001_4FGL_J1318.7-1234_daily_bin199.fits
.....................!
real 192.92
user 187.03
sys 5.32

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/460273/ft1_filtered_4FGL_J1318.7-1234_daily_bin199.fits scfile=/scratch/kocevski/460273/ft2_4FGL_J1318.7-1234_daily_bin199.fits outfile=/scratch/kocevski/460273/cmap_290908801_291168001_4FGL_J1318.7-1234_daily_bin199.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460273/ft1_filtered_4FGL_J1318.7-1234_daily_bin199.fits scfile=/scratch/kocevski/460273/ft2_4FGL_J1318.7-1234_daily_bin199.fits outfile=/scratch/kocevski/460273/cmap_HighResolution_290908801_291168001_4FGL_J1318.7-1234_daily_bin199.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/460273/ft1_filtered_4FGL_J1318.7-1234_daily_bin199.fits evtable="EVENTS" scfile=/scratch/kocevski/460273/ft2_4FGL_J1318.7-1234_daily_bin199.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/460273/Model_4FGL_J1318.7-1234_daily_bin199.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/460273/ft1_filtered_4FGL_J1318.7-1234_daily_bin199.fits....................!
real 52.81
user 51.23
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/460273/ft1_filtered_4FGL_J1318.7-1234_daily_bin199.fits', '/scratch/kocevski/460273/ft2_4FGL_J1318.7-1234_daily_bin199.fits', expMap='/scratch/kocevski/460273/expmap_290908801_291168001_4FGL_J1318.7-1234_daily_bin199.fits', expCube='/scratch/kocevski/460273/ltcube_290908801_291168001_4FGL_J1318.7-1234_daily_bin199.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/460273/Model_4FGL_J1318.7-1234_daily_bin199.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  1.000e-04  1.000e+04 ( 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/460273/ft1_filtered_4FGL_J1318.7-1234_daily_bin199.fits
Spacecraft file(s): /scratch/kocevski/460273/ft2_4FGL_J1318.7-1234_daily_bin199.fits
Exposure map: /scratch/kocevski/460273/expmap_290908801_291168001_4FGL_J1318.7-1234_daily_bin199.fits
Exposure cube: /scratch/kocevski/460273/ltcube_290908801_291168001_4FGL_J1318.7-1234_daily_bin199.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/460273/Model_4FGL_J1318.7-1234_daily_bin199.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) = 6147.67608111

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4306       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.081       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.701       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.3334       1.0000         .10000E-03   10000.    
     6 'norm      '    11.647       1.0000         .10000E-03   10000.    
     7 'norm      '    6.4692       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.5967       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.155       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7793       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.0313       1.0000         .10000E-03   10000.    
    18 'norm      '    12.904       1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .50408       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.2390       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3583       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .82009       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6147.616     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     2813 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4306        3.3538       -.82594E-08    .78313E-05
   2  Prefactor     15.080        13.376        .40081E-07   -.77474E-04
   3  Prefactor     16.691        28.140       -.76938E-05   -.15227E-04
   4  Prefactor     .10000E-03    56.135       -.34230E-06** at limit **
   5  norm          1.3332        .33262        .47472E-07   -.61467E-03
   6  norm          11.646        11.740       -.14704E-06   -.33479E-06
   7  norm          6.4682        6.7763       -.73749E-07   -.10859E-05
   8  Prefactor     .10000E-03    4.5809       -.32336E-07** at limit **
   9  Prefactor     .10000E-03    34.937        .42543E-05** at limit **
  10  norm          2.5966        2.4152       -.79830E-08    .48148E-05
  11  norm          .10000E-03    5.7912       -.62247E-07** at limit **
  12  norm          .10000E-03    10.926       -.48830E-06** at limit **
  13  Prefactor     26.152        12.997       -.15374E-07    .91820E-06
  14  Prefactor     3.7775        37.793       -.11373E-05   -.47770E-05
  15  Prefactor     .10000E-03    4.9006        .67020E-07** at limit **
  16  Prefactor     .10000E-03    18.141        .26825E-06** at limit **
  17  norm          7.0310        2.2816       -.72618E-08   -.31012E-05
  18  norm          12.898        5.2856       -.95939E-07   -.40081E-04
  19  norm          .10000E-03    10.891        .42824E-06** at limit **
  20  Prefactor     .52931        8.8781       -.57177E-06    .98522E-04
  21  Prefactor     .10000E-03    6.9185        .48709E-07** at limit **
  22  norm          3.2380        2.2585        .18229E-06   -.96546E-03
  23  Prefactor     .10000E-03    2.3374        .31702E-09** at limit **
  24  Prefactor     .10000E-03    32.477       -.42440E-05** at limit **
  25  norm          .10000E-03    4.1288        .60687E-08** at limit **
  26  Normalizat    1.3584        .27429        .10951E-06    .40045E-04
  27  Prefactor     .82001        .14091        .22052E-06    .54372E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.43058
  Prefactor  = 15.0799
  Prefactor  = 16.6913
  Prefactor  = 0.0001
  norm       = 1.33324
  norm       = 11.6465
  norm       = 6.46821
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.59663
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 26.1521
  Prefactor  = 3.77746
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.03102
  norm       = 12.8975
  norm       = 0.0001
  Prefactor  = 0.529313
  Prefactor  = 0.0001
  norm       = 3.23801
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.35845
  Prefactor  = 0.820015
 **********
 **   18 **HESSE 
 **********

 FCN=   6147.616     FROM HESSE     STATUS=OK           492 CALLS     3305 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4306        3.3542        .87861E-04   -1.5127    
   2  Prefactor     15.080        13.478        .51568E-03   -1.4931    
   3  Prefactor     16.691        28.167        .98003E-04   -1.4891    
   4  Prefactor     .10000E-03    56.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.3332        .33494        .21187E-04   -1.5477    
   6  norm          11.646        11.765        .11738E-03   -1.5025    
   7  norm          6.4682        6.7739        .15779E-03   -1.5199    
   8  Prefactor     .10000E-03    4.5988        .16375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    34.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.5966        2.4148        .11390E-03   -1.5386    
  11  norm          .10000E-03    5.8277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    11.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.152        13.014        .78331E-04   -1.4685    
  14  Prefactor     3.7775        38.081        .20766E-03   -1.5319    
  15  Prefactor     .10000E-03    4.9233        .16947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.0310        2.2987        .63707E-04   -1.5178    
  18  norm          12.898        5.2636        .10907E-03   -1.4990    
  19  norm          .10000E-03    11.137        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .52931        75.001        .43978E-02   -1.5562    
  21  Prefactor     .10000E-03    6.9473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.2380        6.9515        .11253E-02   -1.5348    
  23  Prefactor     .10000E-03    2.3479        .11703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    32.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.1476        .15556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3584        .32839        .33450E-03   -.81838    
  27  Prefactor     .82001        .17146        .22346E-03   -.98995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12623e-09
Minuit parameter uncertainties:
  1  3.35423
  2  13.481
  3  28.1891
  4  2.68075e-06
  5  0.334938
  6  11.7672
  7  6.77466
  8  3.82821e-08
  9  2.44391e-05
  10  2.4149
  11  8.96824e-07
  12  2.6703e-06
  13  13.0151
  14  24.0069
  15  4.89685e-07
  16  1.02129e-05
  17  2.29877
  18  5.26376
  19  3.92262e-06
  20  12.6163
  21  3.53324e-06
  22  6.95327
  23  6.25214e-07
  24  2.8434e-05
  25  1.36763e-06
  26  0.328897
  27  0.17157
Done.

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

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  2.615e+01  1.302e+01  1.000e-04  1.000e+04 ( 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:  8.200e-01  1.716e-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.358e+00  3.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.70
Ra Dec: 199.694 -12.581
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 1.00e-07 +/- 4.98e-08
Energy Flux (Fixed Index): 5.20e-05 +/- 2.59e-05

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) = 6147.60520427
delta logL = 0.011053462159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6147.59852091
delta logL = 0.0177368254999

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.923       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0500       1.0000          .0000       10.000    
     3 'Normalizat'    1.3674       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81725       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6147.599     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      237 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.924        16.926        .75815E-04   -.39342E-03
   2  Index         2.0499        .41177        .50833E-02   -.20126E-03
   3  Normalizat    1.3674        .30656        .33362E-03    .56329E-04
   4  Prefactor     .81724        .16289        .22381E-03    .17738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.924
  Index      = 2.04994
  Normalizat = 1.36738
  Prefactor  = 0.817244
 **********
 **   18 **HESSE 
 **********

 FCN=   6147.599     FROM HESSE     STATUS=OK            25 CALLS      262 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.924        16.529        .15163E-04   -1.4651    
   2  Index         2.0499        .40186        .20333E-03   -.63107    
   3  Normalizat    1.3674        .30663        .13345E-04   -.81577    
   4  Prefactor     .81724        .16300        .89523E-05   -.99096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84322e-10
Minuit parameter uncertainties:
  1  16.5314
  2  0.402532
  3  0.307044
  4  0.163094
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460273': 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): 0
logL (Free Index) = 6147.5985209
delta logL = 0.017736833699

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  2.792e+01  1.653e+01  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  2.050e+00  4.025e-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:  8.172e-01  1.631e-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.367e+00  3.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.70
Ra Dec: 199.694 -12.581
Photon Index (Free Index): 2.05 +/- 0.40
Photon Flux (Free Index): 9.22e-08 +/- 6.24e-08
Energy Flux (Free Index): 5.66e-05 +/- 3.91e-05

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/460273/cmap_HighResolution_290908801_291168001_4FGL_J1318.7-1234_daily_bin199.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.00e-07', energy_flux2='5.66e-05', photon_flux_error='4.98e-08', dlogl='1.77e-02', energy_flux='5.20e-05', photon_flux2='9.22e-08', job_status='DONE', time_completed='2021-09-07 11:20:22.676466', photon_index_error2='0.40', photon_index2='2.05', ts='12.70', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='3.91e-05', EG='1.36', time_epoch_completed='1631038822.68', return_code='0', job_id='460273', GAL2='0.82', EG2='1.37', return_code2='0', energy_flux_error='2.59e-05', photon_flux_error2='6.24e-08', ts2='12.70', photon_index='2.13' WHERE bin_id='199' AND source_name='4FGL J1318.7-1234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 11:20:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 460273: <4FGL_J1318.7-1234_daily_bin199> in cluster <slac> Done

Job <4FGL_J1318.7-1234_daily_bin199> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 11:05:32 2021
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 11:06:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 11:06:33 2021
Terminated at Tue Sep  7 11:20:23 2021
Results reported at Tue Sep  7 11:20:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1318.7-1234_daily_bin199 199.694 -12.581 290908801 291168001 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 :                                   639.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             247.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            891 sec.

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

