/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 157 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 = 7398
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1318.7-1234_daily_bin573
RA = 199.694, Dec = -12.581
tmin = 387849601, tmax = 388108801
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='462937', job_status='RUN', time_executed='2021-09-07 11:18:03.797616', time_epoch_executed='1631038683.8' WHERE source_name='4FGL J1318.7-1234' and cadence='daily' and bin_id='573'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/462937

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/462937/ft1_4FGL_J1318.7-1234_daily_bin573.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/462937/ft2_4FGL_J1318.7-1234_daily_bin573.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/462937/ft1_4FGL_J1318.7-1234_daily_bin573.fits outfile=/scratch/kocevski/462937/ft1_filteredMKT_4FGL_J1318.7-1234_daily_bin573.fits ra=199.694 dec=-12.581 rad=12.0 tmin=387849601.0 tmax=388108801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.54
user 4.27
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/462937/ft2_4FGL_J1318.7-1234_daily_bin573.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/462937/ft1_filteredMKT_4FGL_J1318.7-1234_daily_bin573.fits evtable="EVENTS" outfile="/scratch/kocevski/462937/ft1_filtered_4FGL_J1318.7-1234_daily_bin573.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.67
user 0.34
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/462937/ft1_filtered_4FGL_J1318.7-1234_daily_bin573.fits" evtable="EVENTS" scfile=/scratch/kocevski/462937/ft2_4FGL_J1318.7-1234_daily_bin573.fits sctable="SC_DATA" outfile=/scratch/kocevski/462937/ltcube_387849601_388108801_4FGL_J1318.7-1234_daily_bin573.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/462937/ft2_4FGL_J1318.7-1234_daily_bin573.fits
.....................!
real 16.45
user 16.06
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/462937/ft1_filtered_4FGL_J1318.7-1234_daily_bin573.fits evtable="EVENTS" scfile=/scratch/kocevski/462937/ft2_4FGL_J1318.7-1234_daily_bin573.fits sctable="SC_DATA" expcube=/scratch/kocevski/462937/ltcube_387849601_388108801_4FGL_J1318.7-1234_daily_bin573.fits outfile=/scratch/kocevski/462937/expmap_387849601_388108801_4FGL_J1318.7-1234_daily_bin573.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/462937/ltcube_387849601_388108801_4FGL_J1318.7-1234_daily_bin573.fits
.....................!
real 193.13
user 187.24
sys 5.44

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/462937/ft1_filtered_4FGL_J1318.7-1234_daily_bin573.fits scfile=/scratch/kocevski/462937/ft2_4FGL_J1318.7-1234_daily_bin573.fits outfile=/scratch/kocevski/462937/cmap_387849601_388108801_4FGL_J1318.7-1234_daily_bin573.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.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/462937/ft1_filtered_4FGL_J1318.7-1234_daily_bin573.fits scfile=/scratch/kocevski/462937/ft2_4FGL_J1318.7-1234_daily_bin573.fits outfile=/scratch/kocevski/462937/cmap_HighResolution_387849601_388108801_4FGL_J1318.7-1234_daily_bin573.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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/462937/ft1_filtered_4FGL_J1318.7-1234_daily_bin573.fits evtable="EVENTS" scfile=/scratch/kocevski/462937/ft2_4FGL_J1318.7-1234_daily_bin573.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/462937/Model_4FGL_J1318.7-1234_daily_bin573.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/462937/ft1_filtered_4FGL_J1318.7-1234_daily_bin573.fits.....................!
real 51.72
user 50.30
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0263       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.4009       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12034E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .45979       1.0000         .10000E-03   10000.    
     6 'norm      '    4.1757       1.0000         .10000E-03   10000.    
     7 'norm      '    8.7099       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.1209       1.0000         .10000E-03   10000.    
    12 'norm      '    10.396       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    53.062       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.030       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8481       1.0000         .10000E-03   10000.    
    18 'norm      '    4.7999       1.0000         .10000E-03   10000.    
    19 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16573E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.3203       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.0379       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2117       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0290       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=   5682.227     FROM MIGRAD    STATUS=CONVERGED    669 CALLS     3329 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0262        2.6444        .27149E-07    .21046E-04
   2  Prefactor     5.4007        14.742       -.14972E-05   -.86737E-05
   3  Prefactor     .10000E-03    21.636        .54132E-07** at limit **
   4  Prefactor     .10000E-03    134.45       -.14639E-04** at limit **
   5  norm          .45982        .24134       -.12416E-07   -.79524E-04
   6  norm          4.1754        5.7867       -.37563E-07   -.43361E-03
   7  norm          8.7099        7.3464        .31823E-06    .75898E-04
   8  Prefactor     .10000E-03    3.4858       -.50506E-07** at limit **
   9  Prefactor     .10000E-03    44.204       -.21787E-06** at limit **
  10  norm          .10000E-03    1.4782       -.67323E-07** at limit **
  11  norm          3.1227        9.6763        .18152E-05   -.76533E-05
  12  norm          10.396        11.602       -.32257E-06   -.34082E-05
  13  Prefactor     .10000E-03    3.0199        .70330E-08** at limit **
  14  Prefactor     53.059        35.119       -.29135E-06   -.22521E-05
  15  Prefactor     .10000E-03    8.0403       -.10533E-06** at limit **
  16  Prefactor     16.028        28.371        .19403E-08    .64032E-05
  17  norm          1.8485        1.9835       -.66239E-07   -.78433E-04
  18  norm          4.7990        5.9836       -.50386E-07   -.88357E-03
  19  norm          .10000E-03    5.4798       -.16683E-06** at limit **
  20  Prefactor     .10073E-03    13.472       -.13444E-05** at limit **
  21  Prefactor     .10000E-03    6.8150       -.15054E-06** at limit **
  22  norm          .10000E-03    6.1936        .27906E-07** at limit **
  23  Prefactor     3.3201        4.9447        .27781E-06   -.10110E-02
  24  Prefactor     .10000E-03    160.42        .33014E-04** at limit **
  25  norm          5.0381        6.5354       -.58127E-07   -.29986E-03
  26  Normalizat    1.2117        .27952        .11926E-06    .49512E-04
  27  Prefactor     1.0290        .14619        .44686E-06    .62719E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.02619
  Prefactor  = 5.40071
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.45982
  norm       = 4.17541
  norm       = 8.70989
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.1227
  norm       = 10.3961
  Prefactor  = 0.0001
  Prefactor  = 53.0594
  Prefactor  = 0.0001
  Prefactor  = 16.0281
  norm       = 1.84849
  norm       = 4.79899
  norm       = 0.0001
  Prefactor  = 0.000100733
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.32009
  Prefactor  = 0.0001
  norm       = 5.03805
  Normalizat = 1.21167
  Prefactor  = 1.02899
 **********
 **   18 **HESSE 
 **********

 FCN=   5682.227     FROM HESSE     STATUS=OK           498 CALLS     3827 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0262        2.6425        .96334E-04   -1.5307    
   2  Prefactor     5.4007        14.774        .17292E-03   -1.5243    
   3  Prefactor     .10000E-03    21.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    135.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .45982        .24023        .25569E-04   -1.5572    
   6  norm          4.1754        6.0361        .98615E-03   -1.5299    
   7  norm          8.7099        7.3492        .13582E-03   -1.5118    
   8  Prefactor     .10000E-03    3.4907        .13735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    44.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.4907        .89477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.1227        9.6660        .22951E-03   -1.5355    
  12  norm          10.396        11.602        .12427E-03   -1.5063    
  13  Prefactor     .10000E-03    3.0220        .12793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     53.059        35.207        .55061E-04   -1.4250    
  15  Prefactor     .10000E-03    8.0951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.028        31.994        .10004E-03   -1.4907    
  17  norm          1.8485        1.9804        .10257E-03   -1.5436    
  18  norm          4.7990        7.4656        .81515E-03   -1.5270    
  19  norm          .10000E-03    5.5026        .17207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10073E-03    15.782        .80615E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.8419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.2807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.3201        6.4734        .11108E-02   -1.5344    
  24  Prefactor     .10000E-03    159.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.0381        6.5112        .89575E-03   -1.5259    
  26  Normalizat    1.2117        .32903        .34340E-03   -.86243    
  27  Prefactor     1.0290        .17305        .20335E-03   -.91769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38814e-09
Minuit parameter uncertainties:
  1  2.64258
  2  14.7838
  3  2.02517e-06
  4  0.000242597
  5  0.240227
  6  6.037
  7  7.34999
  8  4.27797e-06
  9  3.47729e-05
  10  1.66326e-06
  11  9.67086
  12  11.6046
  13  7.01337e-07
  14  35.2206
  15  5.90167e-06
  16  32.0286
  17  1.98043
  18  7.46705
  19  3.42573e-06
  20  0.00680578
  21  2.70249e-06
  22  7.22819e-06
  23  6.4748
  24  3.08184e-05
  25  6.51212
  26  0.329599
  27  0.173145
Done.

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

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  1.000e-04  7.013e-07  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:  1.029e+00  1.731e-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.212e+00  3.296e-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: 6.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/462937/likelihoodResults_387849601_388108801_4FGL_J1318.7-1234_daily_bin573.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) = 5682.22856642
delta logL = -0.00154460007252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5682.22702173
delta logL = 9.74177964963e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1080       1.0000          .0000       10.000    
     3 'Normalizat'    1.2118       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0289       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5682.227     FROM MIGRAD    STATUS=FAILED        87 CALLS      238 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10193E-03    55.419        .12962E-02** at limit **
   2  Index         2.0303        5.8663        .50000        .40742E-04
   3  Normalizat    1.2117        .28540E-01    .34340E-03    .84420E-05
   4  Prefactor     1.0290        .15823E-01    .20335E-03    .15151E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5682.227     FROM SIMPLEX   STATUS=PROGRESS     125 CALLS      363 TOTAL
                     EDM=   .68E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10180E-03    55.419        .26215E-03** at limit **
   2  Index         2.0292        5.8663        .37181E-03    .40742E-04
   3  Normalizat    1.2117        .28540E-01    .46917E-05    .84420E-05
   4  Prefactor     1.0290        .15823E-01    .27402E-05    .15151E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5682.227     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      415 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    69.059        .25923E-02** at limit **
   2  Index         1.6050        8.1415        .50000        .89199E-07
   3  Normalizat    1.2117        .29647E-01    .13736E-04   -.75978E-04
   4  Prefactor     1.0290        .16437E-01    .81339E-05   -.12579E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.60503
  Normalizat = 1.21167
  Prefactor  = 1.02899
 **********
 **   18 **HESSE 
 **********

 FCN=   5682.227     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      444 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    302.21        .51847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6050        5.7795        .50000       -.74639    
   3  Normalizat    1.2117        .67703E-01    .27472E-05   -.86243    
   4  Prefactor     1.0290        .37540E-01    .16268E-05   -.91769    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.99549e-10
Minuit parameter uncertainties:
  1  8.49899e-05
  2  1040.4
  3  0.0677079
  4  0.0375409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/462937': 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) = 5682.22701864
delta logL = 3.18194634019e-06

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  1.000e-04  8.499e-05  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  1.605e+00  1.040e+03  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:  1.029e+00  3.754e-02  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.212e+00  6.771e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/462937/cmap_HighResolution_387849601_388108801_4FGL_J1318.7-1234_daily_bin573.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', job_status='DONE', photon_flux_upper_limit='6.32e-08', time_completed='2021-09-07 11:30:30.161433', job_id='462937', GAL2='1.03', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1631039430.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='573' AND source_name='4FGL J1318.7-1234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 11:30:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 462937: <4FGL_J1318.7-1234_daily_bin573> in cluster <slac> Done

Job <4FGL_J1318.7-1234_daily_bin573> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 11:15:17 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 11:15:18 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:15:18 2021
Terminated at Tue Sep  7 11:30:30 2021
Results reported at Tue Sep  7 11:30:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1318.7-1234_daily_bin573 199.694 -12.581 387849601 388108801 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 :                                   746.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            913 sec.

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

