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


Performing analysis on: 4FGL_J1318.7-1234_daily_bin451
RA = 199.694, Dec = -12.581
tmin = 356227201, tmax = 356486401
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='461701', job_status='RUN', time_executed='2021-09-07 11:16:21.644982', time_epoch_executed='1631038581.65' WHERE source_name='4FGL J1318.7-1234' and cadence='daily' and bin_id='451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461701

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461701/ft1_4FGL_J1318.7-1234_daily_bin451.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...
fmerge4.1 : Error, missing column list names, file /scratch/kocevski/461701/ft2_filtered_0009.fits
fmerge4.1 : Fatal error!
FCCMPL: not found in table: RA_SUN
FCCMPL: not found in table: DEC_SUN

Merged file saved to:
/scratch/kocevski/461701/ft2_4FGL_J1318.7-1234_daily_bin451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461701/ft1_4FGL_J1318.7-1234_daily_bin451.fits outfile=/scratch/kocevski/461701/ft1_filteredMKT_4FGL_J1318.7-1234_daily_bin451.fits ra=199.694 dec=-12.581 rad=12.0 tmin=356227201.0 tmax=356486401.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.14
user 2.91
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/461701/ft1_filtered_4FGL_J1318.7-1234_daily_bin451.fits" evtable="EVENTS" scfile=/scratch/kocevski/461701/ft2_4FGL_J1318.7-1234_daily_bin451.fits sctable="SC_DATA" outfile=/scratch/kocevski/461701/ltcube_356227201_356486401_4FGL_J1318.7-1234_daily_bin451.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/461701/ft2_4FGL_J1318.7-1234_daily_bin451.fits
.....................!
real 3.87
user 3.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461701/ft1_filtered_4FGL_J1318.7-1234_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/461701/ft2_4FGL_J1318.7-1234_daily_bin451.fits sctable="SC_DATA" expcube=/scratch/kocevski/461701/ltcube_356227201_356486401_4FGL_J1318.7-1234_daily_bin451.fits outfile=/scratch/kocevski/461701/expmap_356227201_356486401_4FGL_J1318.7-1234_daily_bin451.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/461701/ltcube_356227201_356486401_4FGL_J1318.7-1234_daily_bin451.fits
.....................!
real 191.73
user 186.02
sys 5.29

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/461701/ft1_filtered_4FGL_J1318.7-1234_daily_bin451.fits scfile=/scratch/kocevski/461701/ft2_4FGL_J1318.7-1234_daily_bin451.fits outfile=/scratch/kocevski/461701/cmap_356227201_356486401_4FGL_J1318.7-1234_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461701/ft1_filtered_4FGL_J1318.7-1234_daily_bin451.fits scfile=/scratch/kocevski/461701/ft2_4FGL_J1318.7-1234_daily_bin451.fits outfile=/scratch/kocevski/461701/cmap_HighResolution_356227201_356486401_4FGL_J1318.7-1234_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.57
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0766       1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.180       1.0000         .10000E-03   10000.    
     3 'Prefactor '    52.930       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.4624       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.006       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.462       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.496       1.0000         .10000E-03   10000.    
    17 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.8138       1.0000         .10000E-03   10000.    
    19 'norm      '    .11394E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10526E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    43.832       1.0000         .10000E-03   10000.    
    22 'norm      '    10.720       1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.163       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11498E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.4329       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .88981       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=   1632.294     FROM MIGRAD    STATUS=CONVERGED    635 CALLS     3265 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0769        9.6906        .41048E-06    .78628E-05
   2  Prefactor     38.174        42.600        .33677E-06    .17113E-06
   3  Prefactor     52.925        76.809        .85402E-06   -.18399E-06
   4  Prefactor     .10000E-03    147.23       -.21580E-04** at limit **
   5  norm          1.4625        .69126        .29907E-09   -.25645E-04
   6  norm          .10000E-03    8.4401       -.74905E-07** at limit **
   7  norm          9.9941        15.287        .17483E-05    .34422E-04
   8  Prefactor     13.464        15.554       -.22127E-06    .20588E-04
   9  Prefactor     .10000E-03    96.661        .76310E-05** at limit **
  10  norm          .10000E-03    5.3308       -.62086E-07** at limit **
  11  norm          .10000E-03    21.397       -.11613E-05** at limit **
  12  norm          .10000E-03    12.860        .85234E-06** at limit **
  13  Prefactor     .10000E-03    12.131       -.16124E-05** at limit **
  14  Prefactor     .10000E-03    22.409        .44995E-06** at limit **
  15  Prefactor     .10000E-03    8.1690        .61390E-07** at limit **
  16  Prefactor     20.434        49.476       -.41787E-06   -.13853E-04
  17  norm          .10000E-03    2.2879        .11338E-08** at limit **
  18  norm          2.8233        18.699        .59670E-05   -.14377E-04
  19  norm          .10000E-03    19.553        .15317E-05** at limit **
  20  Prefactor     .10000E-03    103.65       -.23669E-05** at limit **
  21  Prefactor     43.855        32.202        .23389E-06    .17465E-04
  22  norm          10.723        15.088       -.32816E-06   -.38960E-04
  23  Prefactor     17.161        14.284        .79047E-07   -.41741E-04
  24  Prefactor     .10000E-03    255.37        .25156E-04** at limit **
  25  norm          .10000E-03    11.503        .70258E-06** at limit **
  26  Normalizat    1.4336        .55425        .15790E-05   -.24176E-04
  27  Prefactor     .88941        .30266       -.28725E-05   -.62196E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.07689
  Prefactor  = 38.1737
  Prefactor  = 52.9252
  Prefactor  = 0.0001
  norm       = 1.46247
  norm       = 0.0001
  norm       = 9.99407
  Prefactor  = 13.4639
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.434
  norm       = 0.0001
  norm       = 2.82327
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.8552
  norm       = 10.7227
  Prefactor  = 17.1607
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.43356
  Prefactor  = 0.889408
 **********
 **   18 **HESSE 
 **********

 FCN=   1632.294     FROM HESSE     STATUS=OK           484 CALLS     3749 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0769        9.6849        .60724E-03   -1.5105    
   2  Prefactor     38.174        42.689        .64865E-04   -1.4471    
   3  Prefactor     52.925        76.937        .55129E-04   -1.4252    
   4  Prefactor     .10000E-03    147.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4625        .69636        .21860E-04   -1.5466    
   6  norm          .10000E-03    8.4442        .11465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.9941        15.335        .12668E-03   -1.5076    
   8  Prefactor     13.464        15.580        .10917E-03   -1.4974    
   9  Prefactor     .10000E-03    96.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.3651        .91086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    21.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    12.863        .14154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.164        .13750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.1726        .11279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     20.434        49.930        .88471E-04   -1.4804    
  17  norm          .10000E-03    2.3110        .59633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.8233        19.104        .11313E-02   -1.5372    
  19  norm          .10000E-03    19.630        .17432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    104.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     43.855        32.138        .60555E-04   -1.4383    
  22  norm          10.723        15.193        .12237E-03   -1.5053    
  23  Prefactor     17.161        14.328        .96677E-04   -1.4879    
  24  Prefactor     .10000E-03    256.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    11.515        .13379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.4336        .66061        .34358E-03   -.79663    
  27  Prefactor     .88941        .35875        .23028E-03   -.96512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0098e-10
Minuit parameter uncertainties:
  1  9.68662
  2  42.7228
  3  77.0823
  4  0.000204095
  5  0.696367
  6  9.82775e-07
  7  15.3412
  8  15.5843
  9  1.67673e-05
  10  8.94316e-07
  11  1.88382e-06
  12  6.56506e-07
  13  1.00731e-05
  14  1.85231e-07
  15  4.97205e-06
  16  50.0318
  17  6.97728e-07
  18  14.6948
  19  0.000121857
  20  8.19408e-05
  21  32.1502
  22  15.1983
  23  14.3312
  24  0.000111905
  25  6.4258e-06
  26  0.664615
  27  0.359703
Done.

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

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  1.000e-04  1.007e-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:  8.894e-01  3.597e-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.434e+00  6.646e-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: 1.94e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.47e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/461701/likelihoodResults_356227201_356486401_4FGL_J1318.7-1234_daily_bin451.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) = 1632.29390807
delta logL = -0.000385315066751

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1632.29352271
delta logL = 4.22614903073e-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.1089       1.0000          .0000       10.000    
     3 'Normalizat'    1.4335       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88942       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=   1632.294     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10161E-03    194.47        .13916E-02** at limit **
   2  Index         2.0389        7.1036        .50000        .97545E-05
   3  Normalizat    1.4336        .53691E-01    .34358E-03   -.61959E-05
   4  Prefactor     .88941        .29362E-01    .23028E-03   -.97504E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101606
  Index      = 2.03889
  Normalizat = 1.43356
  Prefactor  = 0.889407
 **********
 **   18 **HESSE 
 **********

 FCN=   1632.294     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10161E-03    780.45        .27833E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0389        5.1965        .50000       -.63381    
   3  Normalizat    1.4336        .11519        .13743E-04   -.79663    
   4  Prefactor     .88941        .62983E-01    .92112E-05   -.96512    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.97932e-08
Minuit parameter uncertainties:
  1  0.0717715
  2  1222.22
  3  0.115215
  4  0.0629879
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461701': 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) = 1632.29352259
delta logL = 1.68550059243e-07

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  1.016e-04  7.177e-02  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  2.039e+00  1.222e+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:  8.894e-01  6.299e-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.434e+00  1.152e-01  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/461701/cmap_HighResolution_356227201_356486401_4FGL_J1318.7-1234_daily_bin451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.47e-02', job_status='DONE', photon_flux_upper_limit='1.94e-07', time_completed='2021-09-07 11:23:32.819118', job_id='461701', GAL2='0.89', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1631039012.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='451' AND source_name='4FGL J1318.7-1234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 11:23:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 461701: <4FGL_J1318.7-1234_daily_bin451> in cluster <slac> Done

Job <4FGL_J1318.7-1234_daily_bin451> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Sep  7 11:10:32 2021
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 11:12: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:12:18 2021
Terminated at Tue Sep  7 11:23:33 2021
Results reported at Tue Sep  7 11:23:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1318.7-1234_daily_bin451 199.694 -12.581 356227201 356486401 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 :                                   432.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             243.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            781 sec.

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

