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


Performing analysis on: 4FGL_J1218.5-0119_daily_bin949
RA = 184.639, Dec = -1.327
tmin = 485308801, tmax = 485568001
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='482515', job_status='RUN', time_executed='2021-09-05 07:32:59.873234', time_epoch_executed='1630852379.87' WHERE source_name='4FGL J1218.5-0119' and cadence='daily' and bin_id='949'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/482515

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/482515/ft1_4FGL_J1218.5-0119_daily_bin949.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/482515/ft2_4FGL_J1218.5-0119_daily_bin949.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/482515/ft1_4FGL_J1218.5-0119_daily_bin949.fits outfile=/scratch/kocevski/482515/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin949.fits ra=184.639 dec=-1.327 rad=12.0 tmin=485308801.0 tmax=485568001.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 5.59
user 5.34
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/482515/ft2_4FGL_J1218.5-0119_daily_bin949.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/482515/ft2_4FGL_J1218.5-0119_daily_bin949.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/482515/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin949.fits evtable="EVENTS" outfile="/scratch/kocevski/482515/ft1_filtered_4FGL_J1218.5-0119_daily_bin949.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/482515/ft1_filtered_4FGL_J1218.5-0119_daily_bin949.fits" evtable="EVENTS" scfile=/scratch/kocevski/482515/ft2_4FGL_J1218.5-0119_daily_bin949.fits sctable="SC_DATA" outfile=/scratch/kocevski/482515/ltcube_485308801_485568001_4FGL_J1218.5-0119_daily_bin949.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/482515/ft2_4FGL_J1218.5-0119_daily_bin949.fits
.....................!
real 13.51
user 11.40
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/482515/ft1_filtered_4FGL_J1218.5-0119_daily_bin949.fits evtable="EVENTS" scfile=/scratch/kocevski/482515/ft2_4FGL_J1218.5-0119_daily_bin949.fits sctable="SC_DATA" expcube=/scratch/kocevski/482515/ltcube_485308801_485568001_4FGL_J1218.5-0119_daily_bin949.fits outfile=/scratch/kocevski/482515/expmap_485308801_485568001_4FGL_J1218.5-0119_daily_bin949.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/482515/ltcube_485308801_485568001_4FGL_J1218.5-0119_daily_bin949.fits
.....................!
real 191.96
user 186.89
sys 4.66

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 193 point sources and 0 extended sources

Setting source of interest to:
4FGL J1218.5-0119 @ 184.639 -1.327

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/482515/ft1_filtered_4FGL_J1218.5-0119_daily_bin949.fits scfile=/scratch/kocevski/482515/ft2_4FGL_J1218.5-0119_daily_bin949.fits outfile=/scratch/kocevski/482515/cmap_485308801_485568001_4FGL_J1218.5-0119_daily_bin949.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=184.639 yref=-1.327 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/482515/ft1_filtered_4FGL_J1218.5-0119_daily_bin949.fits scfile=/scratch/kocevski/482515/ft2_4FGL_J1218.5-0119_daily_bin949.fits outfile=/scratch/kocevski/482515/cmap_HighResolution_485308801_485568001_4FGL_J1218.5-0119_daily_bin949.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=184.639 yref=-1.327 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.72
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/482515/ft1_filtered_4FGL_J1218.5-0119_daily_bin949.fits evtable="EVENTS" scfile=/scratch/kocevski/482515/ft2_4FGL_J1218.5-0119_daily_bin949.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/482515/Model_4FGL_J1218.5-0119_daily_bin949.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/482515/ft1_filtered_4FGL_J1218.5-0119_daily_bin949.fits.....................!
real 51.24
user 48.38
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/482515/ft1_filtered_4FGL_J1218.5-0119_daily_bin949.fits', '/scratch/kocevski/482515/ft2_4FGL_J1218.5-0119_daily_bin949.fits', expMap='/scratch/kocevski/482515/expmap_485308801_485568001_4FGL_J1218.5-0119_daily_bin949.fits', expCube='/scratch/kocevski/482515/ltcube_485308801_485568001_4FGL_J1218.5-0119_daily_bin949.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/482515/Model_4FGL_J1218.5-0119_daily_bin949.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1218.5-0119'

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  1.397e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
336        alpha:  2.022e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
337         beta:  9.844e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  1.224e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/482515/ft1_filtered_4FGL_J1218.5-0119_daily_bin949.fits
Spacecraft file(s): /scratch/kocevski/482515/ft2_4FGL_J1218.5-0119_daily_bin949.fits
Exposure map: /scratch/kocevski/482515/expmap_485308801_485568001_4FGL_J1218.5-0119_daily_bin949.fits
Exposure cube: /scratch/kocevski/482515/ltcube_485308801_485568001_4FGL_J1218.5-0119_daily_bin949.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/482515/Model_4FGL_J1218.5-0119_daily_bin949.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) = 5567.0931941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .99273       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10470E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .30521E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    49.535       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.9936       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.535       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11115E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.8294       1.0000         .10000E-03   10000.    
    17 'norm      '    .10190E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.695       1.0000         .10000E-03   10000.    
    19 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    116.38       1.0000         .10000E-03   10000.    
    21 'norm      '    .46153       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.139       1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.182       1.0000         .10000E-03   10000.    
    24 'norm      '    1.1669       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.5733       1.0000         .10000E-03   10000.    
    27 'Prefactor '    29.527       1.0000         .10000E-03   10000.    
    28 'norm      '    23.069       1.0000         .10000E-03   10000.    
    29 'norm      '    .91387       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0846       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .90944       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5567.028     FROM MIGRAD    STATUS=CONVERGED    872 CALLS     4484 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99193        2.6798       -.17047E-06   -.47804E-03
   2  Prefactor     .10001E-03    204.40        .22101E-04** at limit **
   3  norm          .10000E-03    1.7870       -.44005E-07** at limit **
   4  Prefactor     .10000E-03    2.0109       -.31810E-06** at limit **
   5  Prefactor     .10000E-03    7.1582       -.10667E-06** at limit **
   6  Prefactor     .10001E-03    206.55       -.38534E-05** at limit **
   7  Prefactor     49.791        138.15       -.63501E-06   -.54152E-05
   8  Prefactor     .10000E-03    23.779       -.21437E-06** at limit **
   9  Prefactor     .10000E-03    5.3850       -.35702E-06** at limit **
  10  Prefactor     .10000E-03    7.1992       -.22403E-06** at limit **
  11  Prefactor     9.9825        32.524       -.32262E-06   -.35114E-04
  12  Prefactor     .10000E-03    32.619       -.84040E-06** at limit **
  13  Prefactor     16.526        17.687       -.32909E-06   -.65938E-04
  14  Prefactor     .10000E-03    59.667       -.10754E-05** at limit **
  15  Prefactor     .10000E-03    3.3601       -.11320E-06** at limit **
  16  norm          3.8295        2.1827       -.22238E-07   -.31407E-04
  17  norm          .10000E-03    2.3926       -.93666E-06** at limit **
  18  Prefactor     12.824        43.555        .38616E-06    .20838E-04
  19  norm          .10000E-03    16.557       -.10988E-06** at limit **
  20  Prefactor     116.27        129.40       -.37598E-06    .27228E-04
  21  norm          .46214        .45170        .10098E-06    .14286E-02
  22  Prefactor     11.139        7.1928       -.30500E-07    .11009E-04
  23  Prefactor     19.176        14.610       -.31709E-06   -.23895E-04
  24  norm          1.1673        1.1088       -.64875E-07    .18518E-05
  25  Prefactor     .10000E-03    9.5602       -.27239E-06** at limit **
  26  Prefactor     3.5906        75.814       -.22924E-05   -.52527E-05
  27  Prefactor     29.522        33.256       -.12570E-06    .12661E-05
  28  norm          23.080        23.078        .61521E-07    .14556E-04
  29  norm          .91393        .24721       -.15988E-07   -.59203E-04
  30  Prefactor     .10000E-03    21.958       -.13640E-06** at limit **
  31  Normalizat    1.0842        .25872        .58039E-05   -.51327E-04
  32  Prefactor     .90958        .18362       -.31799E-05    .16522E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.991927
  Prefactor  = 0.000100011
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 49.7913
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.98246
  Prefactor  = 0.000100002
  Prefactor  = 16.5259
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.82947
  norm       = 0.000100001
  Prefactor  = 12.8236
  norm       = 0.0001
  Prefactor  = 116.27
  norm       = 0.462142
  Prefactor  = 11.1393
  Prefactor  = 19.1765
  norm       = 1.16726
  Prefactor  = 0.0001
  Prefactor  = 3.59063
  Prefactor  = 29.5218
  norm       = 23.0799
  norm       = 0.913927
  Prefactor  = 0.0001
  Normalizat = 1.08418
  Prefactor  = 0.909581
 **********
 **   18 **HESSE 
 **********

 FCN=   5567.028     FROM HESSE     STATUS=OK           665 CALLS     5149 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99193        2.6377        .19353E-03   -1.5509    
   2  Prefactor     .10001E-03    202.33        .73403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.7951        .97405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.1688        .20060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.1689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    217.87        .39619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     49.791        138.00        .28489E-03   -1.4296    
   8  Prefactor     .10000E-03    23.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.4210        .16930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.2449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.9825        32.475        .12675E-03   -1.5076    
  12  Prefactor     .10000E-03    32.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.526        17.681        .98496E-04   -1.4895    
  14  Prefactor     .10000E-03    60.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.3676        .13357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.8295        2.1811        .80700E-04   -1.5317    
  17  norm          .10000E-03    4.8120        .22025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.824        43.459        .11242E-03   -1.4992    
  19  norm          .10000E-03    16.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     116.27        129.06        .18648E-03   -1.3547    
  21  norm          .46214        .42776        .46605E-03   -1.5572    
  22  Prefactor     11.139        7.1908        .12004E-03   -1.5040    
  23  Prefactor     19.176        14.610        .91450E-04   -1.4832    
  24  norm          1.1673        1.1079        .73787E-04   -1.5492    
  25  Prefactor     .10000E-03    9.8615        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.5906        75.666        .21379E-03   -1.5329    
  27  Prefactor     29.522        33.314        .73732E-04   -1.4621    
  28  norm          23.080        23.043        .83397E-04   -1.4747    
  29  norm          .91393        .24770        .18242E-04   -1.5517    
  30  Prefactor     .10000E-03    21.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0842        .25898        .28141E-03   -.90261    
  32  Prefactor     .90958        .18432        .22809E-03   -.95807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06061e-09
Minuit parameter uncertainties:
  1  2.63799
  2  0.00304278
  3  7.68637e-07
  4  0.000187446
  5  7.90813e-06
  6  0.00265075
  7  138.896
  8  6.25313e-05
  9  5.21375e-05
  10  9.69688e-06
  11  32.5321
  12  0.000559748
  13  17.6867
  14  0.000560854
  15  4.34038e-06
  16  2.18111
  17  0.000137477
  18  43.5668
  19  8.11357e-06
  20  129.377
  21  0.427764
  22  7.19136
  23  14.6129
  24  1.10788
  25  4.34458e-05
  26  33.0133
  27  33.3347
  28  23.052
  29  0.247697
  30  1.23134e-05
  31  0.259281
  32  0.184447
Done.

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

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  3.829e+00  2.181e+00  1.000e-04  1.000e+04 ( 1.000e-12)
336        alpha:  2.022e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
337         beta:  9.844e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  1.224e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  9.096e-01  1.844e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.084e+00  2.593e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.41
Ra Dec: 184.639 -1.327
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 4.39e-08 +/- 2.50e-08
Energy Flux (Fixed Index): 2.71e-05 +/- 1.54e-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) = 5565.7995878
delta logL = 1.22889002682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5565.79930814
delta logL = 1.22916969346

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9286       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2994       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1013       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90496       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5565.799     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      208 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9286        2.3012        .50883E-02    .26938E-03
   2  alpha         1.2993        .37074        .29790       -.22716E-04
   3  Normalizat    1.1014        .20630        .63203E-01    .99160E-05
   4  Prefactor     .90493        .15532        .45068E-01    .79349E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.92862
  alpha      = 1.29932
  Normalizat = 1.10135
  Prefactor  = 0.904932
 **********
 **   18 **HESSE 
 **********

 FCN=   5565.799     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9286        2.5825        .84474E-04   -1.5312    
   2  alpha         1.2993        .44248        .12357E-01   -.50096    
   3  Normalizat    1.1014        .24273        .27956E-03   -.89708    
   4  Prefactor     .90493        .18299        .22861E-03   -.95969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89384e-10
Minuit parameter uncertainties:
  1  2.58261
  2  0.445537
  3  0.242975
  4  0.183117
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/482515': 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) = 5565.79930812
delta logL = 1.22916971123

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  3.929e+00  2.583e+00  1.000e-04  1.000e+04 ( 1.000e-12)
336        alpha:  1.299e+00  4.455e-01  0.000e+00  5.000e+00 ( 1.000e+00)
337         beta:  9.844e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  1.224e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  9.049e-01  1.831e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.101e+00  2.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.87
Ra Dec: 184.639 -1.327
Photon Index (Free Index): 1.30 +/- 0.45
Photon Flux (Free Index): 2.27e-08 +/- 1.67e-08
Energy Flux (Free Index): 7.43e-05 +/- 6.92e-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/482515/cmap_HighResolution_485308801_485568001_4FGL_J1218.5-0119_daily_bin949.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.39e-08', energy_flux2='7.43e-05', photon_flux_error='2.50e-08', dlogl='1.23e+00', energy_flux='2.71e-05', photon_flux2='2.27e-08', job_status='DONE', time_completed='2021-09-05 07:46:19.236583', photon_index_error2='0.45', photon_index2='1.30', ts='10.41', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='6.92e-05', EG='1.08', time_epoch_completed='1630853179.24', return_code='0', job_id='482515', GAL2='0.90', EG2='1.10', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='1.67e-08', ts2='12.87', photon_index='2.02' WHERE bin_id='949' AND source_name='4FGL J1218.5-0119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 07:46:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 482515: <4FGL_J1218.5-0119_daily_bin949> in cluster <slac> Done

Job <4FGL_J1218.5-0119_daily_bin949> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 07:31:03 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 07:31:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 07:31:05 2021
Terminated at Sun Sep  5 07:46:20 2021
Results reported at Sun Sep  5 07:46:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.5-0119_daily_bin949 184.639 -1.327 485308801 485568001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1218.5-0119 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   790.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            917 sec.

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

