/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 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1318.7-1234_daily_bin833
RA = 199.694, Dec = -12.581
tmin = 455241601, tmax = 455500801
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='464431', job_status='RUN', time_executed='2021-09-07 11:23:56.445360', time_epoch_executed='1631039036.45' WHERE source_name='4FGL J1318.7-1234' and cadence='daily' and bin_id='833'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/464431

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/464431/ft1_4FGL_J1318.7-1234_daily_bin833.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/464431/ft2_4FGL_J1318.7-1234_daily_bin833.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/464431/ft1_4FGL_J1318.7-1234_daily_bin833.fits outfile=/scratch/kocevski/464431/ft1_filteredMKT_4FGL_J1318.7-1234_daily_bin833.fits ra=199.694 dec=-12.581 rad=12.0 tmin=455241601.0 tmax=455500801.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.47
user 3.22
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/464431/ft1_filtered_4FGL_J1318.7-1234_daily_bin833.fits" evtable="EVENTS" scfile=/scratch/kocevski/464431/ft2_4FGL_J1318.7-1234_daily_bin833.fits sctable="SC_DATA" outfile=/scratch/kocevski/464431/ltcube_455241601_455500801_4FGL_J1318.7-1234_daily_bin833.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/464431/ft2_4FGL_J1318.7-1234_daily_bin833.fits
.....................!
real 17.30
user 16.81
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/464431/ft1_filtered_4FGL_J1318.7-1234_daily_bin833.fits evtable="EVENTS" scfile=/scratch/kocevski/464431/ft2_4FGL_J1318.7-1234_daily_bin833.fits sctable="SC_DATA" expcube=/scratch/kocevski/464431/ltcube_455241601_455500801_4FGL_J1318.7-1234_daily_bin833.fits outfile=/scratch/kocevski/464431/expmap_455241601_455500801_4FGL_J1318.7-1234_daily_bin833.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/464431/ltcube_455241601_455500801_4FGL_J1318.7-1234_daily_bin833.fits
.....................!
real 195.34
user 189.46
sys 5.09

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/464431/ft1_filtered_4FGL_J1318.7-1234_daily_bin833.fits scfile=/scratch/kocevski/464431/ft2_4FGL_J1318.7-1234_daily_bin833.fits outfile=/scratch/kocevski/464431/cmap_455241601_455500801_4FGL_J1318.7-1234_daily_bin833.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.57
user 0.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/464431/ft1_filtered_4FGL_J1318.7-1234_daily_bin833.fits evtable="EVENTS" scfile=/scratch/kocevski/464431/ft2_4FGL_J1318.7-1234_daily_bin833.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/464431/Model_4FGL_J1318.7-1234_daily_bin833.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/464431/ft1_filtered_4FGL_J1318.7-1234_daily_bin833.fits.....................!
real 60.93
user 58.56
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/464431/ft1_filtered_4FGL_J1318.7-1234_daily_bin833.fits', '/scratch/kocevski/464431/ft2_4FGL_J1318.7-1234_daily_bin833.fits', expMap='/scratch/kocevski/464431/expmap_455241601_455500801_4FGL_J1318.7-1234_daily_bin833.fits', expCube='/scratch/kocevski/464431/ltcube_455241601_455500801_4FGL_J1318.7-1234_daily_bin833.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/464431/Model_4FGL_J1318.7-1234_daily_bin833.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/464431/ft1_filtered_4FGL_J1318.7-1234_daily_bin833.fits
Spacecraft file(s): /scratch/kocevski/464431/ft2_4FGL_J1318.7-1234_daily_bin833.fits
Exposure map: /scratch/kocevski/464431/expmap_455241601_455500801_4FGL_J1318.7-1234_daily_bin833.fits
Exposure cube: /scratch/kocevski/464431/ltcube_455241601_455500801_4FGL_J1318.7-1234_daily_bin833.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/464431/Model_4FGL_J1318.7-1234_daily_bin833.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) = 7156.26209765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1209       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.6013       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.2718       1.0000         .10000E-03   10000.    
    11 'norm      '    4.8936       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    40.651       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.6576       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .24812E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.4111       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .92679       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.

 FCN=   7156.093     FROM MIGRAD    STATUS=CONVERGED    656 CALLS     2800 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1209        1.1933        .11088E-02   -.38017E-03
   2  Prefactor     .10000E-03    2.9890        .90712E-02** at limit **
   3  Prefactor     .10007E-03    92.267        .90712E-02** at limit **
   4  Prefactor     .10069E-03    67.721        .90712E-02** at limit **
   5  norm          2.6014        .41996        .46951E-02    .56081E-03
   6  norm          .10000E-03    3.7957        .90712E-02** at limit **
   7  norm          .10000E-03    3.1151        .51162E-01** at limit **
   8  Prefactor     .10000E-03    2.6152        .90712E-02** at limit **
   9  Prefactor     .10000E-03    26.400        .90712E-02** at limit **
  10  norm          3.2718        2.1884        .55968E-02   -.11098E-03
  11  norm          4.8948        8.0634        .45457E-02    .17985E-03
  12  norm          .10000E-03    4.9312        .90712E-02** at limit **
  13  Prefactor     .10000E-03    5.5201        .90712E-02** at limit **
  14  Prefactor     .10000E-03    9.2387        .90712E-02** at limit **
  15  Prefactor     .10000E-03    11.596        .90712E-02** at limit **
  16  Prefactor     40.648        23.675        .15718E-02    .17054E-03
  17  norm          .10000E-03    .66467        .90712E-02** at limit **
  18  norm          .10000E-03    1.7327        .90712E-02** at limit **
  19  norm          7.6579        8.2372        .36229E-02    .16942E-03
  20  Prefactor     .10000E-03    8.0163        .90712E-02** at limit **
  21  Prefactor     .10000E-03    4.9260        .90712E-02** at limit **
  22  norm          .10000E-03    3.8633        .51730E-01** at limit **
  23  Prefactor     .10000E-03    3.6431        .90712E-02** at limit **
  24  Prefactor     .10014E-03    58.050        .90712E-02** at limit **
  25  norm          .10000E-03    3.2238        .90712E-02** at limit **
  26  Normalizat    1.4109        .23863        .75371E-01    .84281E-04
  27  Prefactor     .92684        .12469        .45346E-01    .97480E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.12085
  Prefactor  = 0.0001
  Prefactor  = 0.00010007
  Prefactor  = 0.000100694
  norm       = 2.60142
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.27179
  norm       = 4.89478
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 40.648
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.65792
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100145
  norm       = 0.0001
  Normalizat = 1.4109
  Prefactor  = 0.926839
 **********
 **   18 **HESSE 
 **********

 FCN=   7156.093     FROM HESSE     STATUS=OK           476 CALLS     3276 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1209        1.1933        .44353E-04   -1.5496    
   2  Prefactor     .10000E-03    2.9933        .14283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10007E-03    92.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10069E-03    67.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.6014        .42281        .20769E-04   -1.5385    
   6  norm          .10000E-03    3.8229        .16093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.1067        .28895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.6319        .13345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    26.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.2718        2.1913        .99434E-04   -1.5346    
  11  norm          4.8948        8.0589        .18183E-03   -1.5265    
  12  norm          .10000E-03    4.9390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.5372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.2444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     40.648        23.704        .62870E-04   -1.4432    
  17  norm          .10000E-03    .68190        .13453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.7355        .10847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.6579        8.2116        .14492E-03   -1.5154    
  20  Prefactor     .10000E-03    8.0460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.9453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    14.412        .31979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.6849        .15757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10014E-03    58.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    3.2374        .14832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.4109        .27916        .33354E-03   -.80314    
  27  Prefactor     .92684        .14409        .21404E-03   -.95209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4209e-08
Minuit parameter uncertainties:
  1  1.1933
  2  3.03842e-06
  3  0.00509399
  4  0.0137392
  5  0.42281
  6  4.61321e-07
  7  0.000179543
  8  1.55046e-05
  9  3.85704e-05
  10  2.19137
  11  8.06066
  12  8.20856e-06
  13  4.60911e-05
  14  4.43146e-05
  15  0.000348508
  16  23.7096
  17  1.77798e-06
  18  9.17756e-06
  19  8.21276
  20  0.000154849
  21  4.14256e-05
  22  0.000413318
  23  9.17131e-06
  24  0.00581429
  25  1.59065e-05
  26  0.279462
  27  0.144152
Done.

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

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  1.000e-04  4.609e-05  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:  9.268e-01  1.442e-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.411e+00  2.795e-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: 8.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/464431/likelihoodResults_455241601_455500801_4FGL_J1318.7-1234_daily_bin833.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) = 7156.09428719
delta logL = -0.00086008508606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7156.09342713
delta logL = -2.25290932576e-08

Fit tolerance = 1e-08

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

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

 FCN=   7156.093     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2889        .90712E-02** at limit **
   2  Index         2.1226        8.9237        .50000        .24264E-05
   3  Normalizat    1.4109        .61324E-02    .75371E-01    .13109E-04
   4  Prefactor     .92684        .32899E-02    .45346E-01    .11159E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12265
  Normalizat = 1.4109
  Prefactor  = 0.926839
 **********
 **   18 **HESSE 
 **********

 FCN=   7156.093     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      237 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1226        8.4810        .50000       -.61318    
   3  Normalizat    1.4109        .17903E-01    .33354E-03   -.80314    
   4  Prefactor     .92684        .96135E-02    .21404E-03   -.95209    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.36547e-08
Minuit parameter uncertainties:
  1  1.44533e-05
  2  199.124
  3  0.0179029
  4  0.00961356
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/464431': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7156.0934271
delta logL = 2.04363459488e-09

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  1.000e-04  1.445e-05  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  2.123e+00  1.991e+02  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.268e-01  9.614e-03  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.411e+00  1.790e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/464431/cmap_HighResolution_455241601_455500801_4FGL_J1318.7-1234_daily_bin833.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.42e-03', job_status='DONE', photon_flux_upper_limit='8.47e-08', time_completed='2021-09-07 11:37:00.554317', job_id='464431', GAL2='0.93', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1631039820.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.04e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='833' AND source_name='4FGL J1318.7-1234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 11:37:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 464431: <4FGL_J1318.7-1234_daily_bin833> in cluster <slac> Done

Job <4FGL_J1318.7-1234_daily_bin833> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Sep  7 11:20:33 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 11:21:23 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:21:23 2021
Terminated at Tue Sep  7 11:37:01 2021
Results reported at Tue Sep  7 11:37:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1318.7-1234_daily_bin833 199.694 -12.581 455241601 455500801 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 :                                   778.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            988 sec.

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

