/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 35 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_J1218.5-0119_daily_bin451
RA = 184.639, Dec = -1.327
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='478263', job_status='RUN', time_executed='2021-09-05 07:17:16.941624', time_epoch_executed='1630851436.94' WHERE source_name='4FGL J1218.5-0119' and cadence='daily' and bin_id='451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478263

Creating custom pfile directory:
/scratch/kocevski/478263/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/478263/ft1_4FGL_J1218.5-0119_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/478263/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/478263/ft2_4FGL_J1218.5-0119_daily_bin451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478263/ft1_4FGL_J1218.5-0119_daily_bin451.fits outfile=/scratch/kocevski/478263/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin451.fits ra=184.639 dec=-1.327 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.60
user 2.94
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/478263/ft2_4FGL_J1218.5-0119_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/478263/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin451.fits evtable="EVENTS" outfile="/scratch/kocevski/478263/ft1_filtered_4FGL_J1218.5-0119_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.80
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/478263/ft1_filtered_4FGL_J1218.5-0119_daily_bin451.fits" evtable="EVENTS" scfile=/scratch/kocevski/478263/ft2_4FGL_J1218.5-0119_daily_bin451.fits sctable="SC_DATA" outfile=/scratch/kocevski/478263/ltcube_356227201_356486401_4FGL_J1218.5-0119_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/478263/ft2_4FGL_J1218.5-0119_daily_bin451.fits
.....................!
real 3.41
user 2.80
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478263/ft1_filtered_4FGL_J1218.5-0119_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/478263/ft2_4FGL_J1218.5-0119_daily_bin451.fits sctable="SC_DATA" expcube=/scratch/kocevski/478263/ltcube_356227201_356486401_4FGL_J1218.5-0119_daily_bin451.fits outfile=/scratch/kocevski/478263/expmap_356227201_356486401_4FGL_J1218.5-0119_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/478263/ltcube_356227201_356486401_4FGL_J1218.5-0119_daily_bin451.fits
.....................!
real 190.19
user 185.39
sys 3.93

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/478263/ft1_filtered_4FGL_J1218.5-0119_daily_bin451.fits scfile=/scratch/kocevski/478263/ft2_4FGL_J1218.5-0119_daily_bin451.fits outfile=/scratch/kocevski/478263/cmap_356227201_356486401_4FGL_J1218.5-0119_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=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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478263/ft1_filtered_4FGL_J1218.5-0119_daily_bin451.fits scfile=/scratch/kocevski/478263/ft2_4FGL_J1218.5-0119_daily_bin451.fits outfile=/scratch/kocevski/478263/cmap_HighResolution_356227201_356486401_4FGL_J1218.5-0119_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=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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/478263/ft1_filtered_4FGL_J1218.5-0119_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/478263/ft2_4FGL_J1218.5-0119_daily_bin451.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/478263/Model_4FGL_J1218.5-0119_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/478263/ft1_filtered_4FGL_J1218.5-0119_daily_bin451.fits.....................!
real 23.60
user 20.98
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/478263/ft1_filtered_4FGL_J1218.5-0119_daily_bin451.fits', '/scratch/kocevski/478263/ft2_4FGL_J1218.5-0119_daily_bin451.fits', expMap='/scratch/kocevski/478263/expmap_356227201_356486401_4FGL_J1218.5-0119_daily_bin451.fits', expCube='/scratch/kocevski/478263/ltcube_356227201_356486401_4FGL_J1218.5-0119_daily_bin451.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/478263/Model_4FGL_J1218.5-0119_daily_bin451.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/478263/ft1_filtered_4FGL_J1218.5-0119_daily_bin451.fits
Spacecraft file(s): /scratch/kocevski/478263/ft2_4FGL_J1218.5-0119_daily_bin451.fits
Exposure map: /scratch/kocevski/478263/expmap_356227201_356486401_4FGL_J1218.5-0119_daily_bin451.fits
Exposure cube: /scratch/kocevski/478263/ltcube_356227201_356486401_4FGL_J1218.5-0119_daily_bin451.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/478263/Model_4FGL_J1218.5-0119_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) = 1368.7066075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.346       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.9650       1.0000         .10000E-03   10000.    
     3 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17450E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    65.236       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    51.196       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.0104       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10978E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.927       1.0000         .10000E-03   10000.    
    24 'norm      '    1.7823       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    49.561       1.0000         .10000E-03   10000.    
    28 'norm      '    13.395       1.0000         .10000E-03   10000.    
    29 'norm      '    1.4995       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .75488       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2178       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=   1368.585     FROM MIGRAD    STATUS=CONVERGED    827 CALLS     4351 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.345        13.439       -.22580E-05   -.58753E-04
   2  Prefactor     10.011        170.27        .96864E-04    .13387E-04
   3  norm          .10000E-03    10.469        .35994E-06** at limit **
   4  Prefactor     .10002E-03    29.675       -.18297E-04** at limit **
   5  Prefactor     65.206        68.825       -.19833E-04    .21608E-03
   6  Prefactor     .10000E-03    24.344        .20152E-04** at limit **
   7  Prefactor     .10000E-03    96.924       -.29423E-05** at limit **
   8  Prefactor     .10000E-03    58.757       -.31907E-05** at limit **
   9  Prefactor     .10000E-03    17.654        .10063E-05** at limit **
  10  Prefactor     51.187        53.910       -.40564E-05    .70140E-04
  11  Prefactor     .10000E-03    88.828       -.18884E-04** at limit **
  12  Prefactor     .10000E-03    37.456       -.38190E-07** at limit **
  13  Prefactor     .10000E-03    162.29        .82240E-04** at limit **
  14  Prefactor     .10000E-03    88.563       -.19434E-04** at limit **
  15  Prefactor     .10000E-03    21.531       -.90837E-05** at limit **
  16  norm          .10000E-03    2.5954        .14550E-06** at limit **
  17  norm          .10000E-03    5.7468       -.14896E-06** at limit **
  18  Prefactor     .10000E-03    109.31        .25122E-04** at limit **
  19  norm          .10000E-03    89.279       -.18248E-04** at limit **
  20  Prefactor     .10000E-03    167.21        .81880E-04** at limit **
  21  norm          3.0099        1.8214        .14338E-07    .52016E-03
  22  Prefactor     .10000E-03    86.153       -.19387E-04** at limit **
  23  Prefactor     14.931        33.880       -.15047E-05    .97907E-05
  24  norm          1.7824        3.2488       -.91437E-07   -.72544E-04
  25  Prefactor     .10000E-03    10.162        .79159E-06** at limit **
  26  Prefactor     .10000E-03    45.099        .25028E-04** at limit **
  27  Prefactor     49.547        74.434       -.12714E-04    .23497E-04
  28  norm          13.353        81.973       -.61975E-04    .12345E-04
  29  norm          1.4997        .69793        .23365E-06    .12806E-02
  30  Prefactor     .10000E-03    328.77       -.22729E-03** at limit **
  31  Normalizat    .75501        .53153       -.22159E-05    .11279E-03
  32  Prefactor     1.2176        .37633        .67774E-05    .31863E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.3448
  Prefactor  = 10.0109
  norm       = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 65.2058
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.1873
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.00991
  Prefactor  = 0.000100001
  Prefactor  = 14.9306
  norm       = 1.78244
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 49.5468
  norm       = 13.3529
  norm       = 1.4997
  Prefactor  = 0.0001
  Normalizat = 0.755006
  Prefactor  = 1.21765
 **********
 **   18 **HESSE 
 **********

 FCN=   1368.585     FROM HESSE     STATUS=OK           639 CALLS     4990 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.345        13.494        .88796E-04   -1.4806    
   2  Prefactor     10.011        169.71        .12694E-03   -1.5075    
   3  norm          .10000E-03    10.481        .11691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    30.156        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     65.206        68.303        .49688E-04   -1.4091    
   6  Prefactor     .10000E-03    24.348        .17837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    96.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    58.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.733        .15184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     51.187        53.952        .56050E-04   -1.4276    
  11  Prefactor     .10000E-03    88.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    37.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    163.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    88.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.566        .16770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.5967        .58207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.7651        .86542E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    109.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    89.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    167.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.0099        1.8318        .34841E-04   -1.5361    
  22  Prefactor     .10000E-03    88.423        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     14.931        33.965        .10367E-03   -1.4935    
  24  norm          1.7824        3.2158        .85279E-04   -1.5441    
  25  Prefactor     .10000E-03    10.169        .11518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    45.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     49.547        74.564        .56963E-04   -1.4299    
  28  norm          13.353        82.671        .10944E-03   -1.4977    
  29  norm          1.4997        .69969        .20113E-04   -1.5463    
  30  Prefactor     .10000E-03    329.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .75501        .60705        .38508E-03   -1.0176    
  32  Prefactor     1.2176        .43405        .23620E-03   -.85790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52082e-09
Minuit parameter uncertainties:
  1  13.4962
  2  82.714
  3  5.66531e-05
  4  0.00152978
  5  68.3853
  6  1.84765e-05
  7  1.77599e-05
  8  0.000103147
  9  5.31149e-05
  10  54.0035
  11  0.000160581
  12  1.79592e-05
  13  0.00104428
  14  0.000105763
  15  2.55429e-05
  16  3.00718e-06
  17  1.07172e-05
  18  0.000143921
  19  3.538e-05
  20  1.63397e-05
  21  1.83181
  22  0.000423321
  23  34.0086
  24  3.2161
  25  0.000156218
  26  6.32961e-05
  27  74.7047
  28  66.5864
  29  0.699693
  30  0.000581203
  31  0.612594
  32  0.435336
Done.

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

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  1.000e-04  3.007e-06  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:  1.218e+00  4.353e-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:  7.550e-01  6.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 184.639 -1.327
Photon Flux Upper Limit: 1.65e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/478263/likelihoodResults_356227201_356486401_4FGL_J1218.5-0119_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) = 1368.58655961
delta logL = -0.00114318294959

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1368.58541638
delta logL = 4.56511770608e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0149       1.0000          .0000       5.0000    
     3 'Normalizat'    .75498       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2176       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1368.585     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      237 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    250.45        .58407E-02** at limit **
   2  alpha         1.6601        2.6722        .16870        .75812E-08
   3  Normalizat    .75500        .13293        .38509E-03    .32866E-04
   4  Prefactor     1.2177        .10186        .23619E-03    .54891E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.66012
  Normalizat = 0.754996
  Prefactor  = 1.21765
 **********
 **   18 **HESSE 
 **********

 FCN=   1368.585     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8052        .60508E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6601        3.2100        .67481E-02   -.34262    
   3  Normalizat    .75500        .54169        .15403E-04   -1.0176    
   4  Prefactor     1.2177        .41682        .47239E-04   -.85790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40989e-11
Minuit parameter uncertainties:
  1  1.26428e-06
  2  208.982
  3  0.545609
  4  0.417955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478263': 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) = 1368.585415
delta logL = 1.42419708027e-06

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  1.000e-04  1.264e-06  1.000e-04  1.000e+04 ( 1.000e-12)
336        alpha:  1.660e+00  2.090e+02  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:  1.218e+00  4.180e-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:  7.550e-01  5.456e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 184.639 -1.327

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/478263/cmap_HighResolution_356227201_356486401_4FGL_J1218.5-0119_daily_bin451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-04', job_status='DONE', photon_flux_upper_limit='1.65e-07', time_completed='2021-09-05 07:25:16.111725', job_id='478263', GAL2='1.22', fit_tolerance='1e-08', EG2='0.75', EG='0.76', time_epoch_completed='1630851916.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='1.42e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='451' AND source_name='4FGL J1218.5-0119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 07:25:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 478263: <4FGL_J1218.5-0119_daily_bin451> in cluster <slac> Done

Job <4FGL_J1218.5-0119_daily_bin451> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sun Sep  5 07:16:14 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 07:16:16 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:16:16 2021
Terminated at Sun Sep  5 07:25:16 2021
Results reported at Sun Sep  5 07:25:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.5-0119_daily_bin451 184.639 -1.327 356227201 356486401 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 :                                   448.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   540 sec.
    Turnaround time :                            542 sec.

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

