/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 1 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 = 7436
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1218.5-0119_daily_bin235
RA = 184.639, Dec = -1.327
tmin = 300240001, tmax = 300499201
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='477969', job_status='RUN', time_executed='2021-09-05 07:16:09.157493', time_epoch_executed='1630851369.16' WHERE source_name='4FGL J1218.5-0119' and cadence='daily' and bin_id='235'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/477969

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/477969/ft1_4FGL_J1218.5-0119_daily_bin235.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/477969/ft2_4FGL_J1218.5-0119_daily_bin235.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/477969/ft1_4FGL_J1218.5-0119_daily_bin235.fits outfile=/scratch/kocevski/477969/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin235.fits ra=184.639 dec=-1.327 rad=12.0 tmin=300240001.0 tmax=300499201.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.61
user 3.18
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/477969/ft2_4FGL_J1218.5-0119_daily_bin235.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/477969/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin235.fits evtable="EVENTS" outfile="/scratch/kocevski/477969/ft1_filtered_4FGL_J1218.5-0119_daily_bin235.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.73
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/477969/ft1_filtered_4FGL_J1218.5-0119_daily_bin235.fits" evtable="EVENTS" scfile=/scratch/kocevski/477969/ft2_4FGL_J1218.5-0119_daily_bin235.fits sctable="SC_DATA" outfile=/scratch/kocevski/477969/ltcube_300240001_300499201_4FGL_J1218.5-0119_daily_bin235.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/477969/ft2_4FGL_J1218.5-0119_daily_bin235.fits
.....................!
real 12.33
user 11.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/477969/ft1_filtered_4FGL_J1218.5-0119_daily_bin235.fits evtable="EVENTS" scfile=/scratch/kocevski/477969/ft2_4FGL_J1218.5-0119_daily_bin235.fits sctable="SC_DATA" expcube=/scratch/kocevski/477969/ltcube_300240001_300499201_4FGL_J1218.5-0119_daily_bin235.fits outfile=/scratch/kocevski/477969/expmap_300240001_300499201_4FGL_J1218.5-0119_daily_bin235.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/477969/ltcube_300240001_300499201_4FGL_J1218.5-0119_daily_bin235.fits
.....................!
real 192.26
user 185.54
sys 4.68

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/477969/ft1_filtered_4FGL_J1218.5-0119_daily_bin235.fits scfile=/scratch/kocevski/477969/ft2_4FGL_J1218.5-0119_daily_bin235.fits outfile=/scratch/kocevski/477969/cmap_300240001_300499201_4FGL_J1218.5-0119_daily_bin235.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 1.07
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/477969/ft1_filtered_4FGL_J1218.5-0119_daily_bin235.fits scfile=/scratch/kocevski/477969/ft2_4FGL_J1218.5-0119_daily_bin235.fits outfile=/scratch/kocevski/477969/cmap_HighResolution_300240001_300499201_4FGL_J1218.5-0119_daily_bin235.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.78
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/477969/ft1_filtered_4FGL_J1218.5-0119_daily_bin235.fits evtable="EVENTS" scfile=/scratch/kocevski/477969/ft2_4FGL_J1218.5-0119_daily_bin235.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/477969/Model_4FGL_J1218.5-0119_daily_bin235.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/477969/ft1_filtered_4FGL_J1218.5-0119_daily_bin235.fits.....................!
real 60.45
user 50.96
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11387E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.719       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8523       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1991       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.1809       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.254       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.7158       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.130       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.8467       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .36626       1.0000         .10000E-03   10000.    
    30 'Prefactor '    36.027       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.5555       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .77770       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=   6007.136     FROM MIGRAD    STATUS=CONVERGED    811 CALLS     4261 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7220       -.82503E-07** at limit **
   2  Prefactor     .10000E-03    54.003        .58581E-05** at limit **
   3  norm          10.719        7.2359       -.14181E-06    .17561E-04
   4  Prefactor     2.8527        3.3656       -.30173E-06   -.26225E-03
   5  Prefactor     .10000E-03    7.3556       -.74588E-05** at limit **
   6  Prefactor     .10000E-03    19.577       -.32061E-05** at limit **
   7  Prefactor     .10000E-03    41.927        .15418E-04** at limit **
   8  Prefactor     .10000E-03    12.509       -.24321E-05** at limit **
   9  Prefactor     .10000E-03    4.9083        .12448E-07** at limit **
  10  Prefactor     .10000E-03    11.845       -.31348E-05** at limit **
  11  Prefactor     .10000E-03    11.583       -.22639E-05** at limit **
  12  Prefactor     .10000E-03    22.625       -.15499E-04** at limit **
  13  Prefactor     .10000E-03    15.737        .79477E-05** at limit **
  14  Prefactor     .10000E-03    11.095        .89482E-06** at limit **
  15  Prefactor     3.1994        4.7995       -.81971E-06   -.10691E-03
  16  norm          .10000E-03    .56892        .52487E-08** at limit **
  17  norm          1.1821        3.8095       -.19097E-05   -.11983E-02
  18  Prefactor     17.254        25.600       -.27393E-06    .51288E-05
  19  norm          .10000E-03    16.926        .70162E-05** at limit **
  20  Prefactor     .10000E-03    50.369        .15581E-04** at limit **
  21  norm          2.7159        .79402        .40653E-07    .67296E-03
  22  Prefactor     14.129        12.642       -.33939E-06   -.22728E-05
  23  Prefactor     .10000E-03    7.4923        .80660E-05** at limit **
  24  norm          2.8469        1.6930       -.94163E-07   -.29618E-04
  25  Prefactor     .10000E-03    4.3497        .41944E-07** at limit **
  26  Prefactor     .10000E-03    11.093        .92152E-06** at limit **
  27  Prefactor     .10000E-03    64.863       -.34537E-04** at limit **
  28  norm          .10000E-03    13.315        .79971E-06** at limit **
  29  norm          .36614        .21188        .29496E-06    .30599E-02
  30  Prefactor     35.981        80.740       -.67782E-04    .68711E-05
  31  Normalizat    1.5554        .22456        .34314E-05    .15839E-04
  32  Prefactor     .77772        .16110       -.47207E-06    .21368E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.7186
  Prefactor  = 2.85271
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.19945
  norm       = 0.0001
  norm       = 1.1821
  Prefactor  = 17.2541
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.71589
  Prefactor  = 14.1288
  Prefactor  = 0.0001
  norm       = 2.84688
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.366141
  Prefactor  = 35.9814
  Normalizat = 1.5554
  Prefactor  = 0.777718
 **********
 **   18 **HESSE 
 **********

 FCN=   6007.136     FROM HESSE     STATUS=OK           647 CALLS     4908 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8290        .24952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    54.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.719        7.2277        .12237E-03   -1.5053    
   4  Prefactor     2.8527        3.3515        .14431E-03   -1.5370    
   5  Prefactor     .10000E-03    7.3615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    41.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.9380        .16767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.1994        4.7860        .20240E-03   -1.5350    
  16  norm          .10000E-03    .56963        .57063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.1821        3.7791        .23633E-03   -1.5491    
  18  Prefactor     17.254        25.596        .96422E-04   -1.4877    
  19  norm          .10000E-03    16.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    50.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.7159        .78199        .32272E-04   -1.5378    
  22  Prefactor     14.129        12.636        .10656E-03   -1.4956    
  23  Prefactor     .10000E-03    7.4963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.8469        1.6911        .74049E-04   -1.5370    
  25  Prefactor     .10000E-03    4.3771        .15782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    11.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    65.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    13.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .36614        .21171        .25806E-04   -1.5587    
  30  Prefactor     35.981        80.677        .66768E-04   -1.4508    
  31  Normalizat    1.5554        .25969        .26340E-03   -.76233    
  32  Prefactor     .77772        .18598        .26753E-03   -1.0055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06678e-09
Minuit parameter uncertainties:
  1  1.94165e-05
  2  0.000218295
  3  7.22828
  4  3.35173
  5  1.85632e-06
  6  3.47842e-05
  7  3.55683e-05
  8  3.51206e-06
  9  1.19572e-05
  10  3.25059e-05
  11  3.60023e-06
  12  1.33832e-05
  13  4.04443e-05
  14  1.43608e-05
  15  4.78653
  16  3.42293e-07
  17  3.77987
  18  25.612
  19  2.26831e-05
  20  1.18854e-06
  21  0.781995
  22  12.6388
  23  1.46073e-05
  24  1.69113
  25  1.05439e-05
  26  1.70912e-06
  27  0.000116215
  28  4.91351e-05
  29  0.211706
  30  80.923
  31  0.259913
  32  0.186127
Done.

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

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  1.000e-04  3.423e-07  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:  7.777e-01  1.861e-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.555e+00  2.599e-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: 3.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.29e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/477969/likelihoodResults_300240001_300499201_4FGL_J1218.5-0119_daily_bin235.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) = 6007.13616523
delta logL = -2.0377947294e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6007.13616203
delta logL = 1.16760566016e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9922       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5553       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77781       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=   6007.136     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      207 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.978        .90712E-02** at limit **
   2  alpha         1.5775        3.7786        .42279       -.29471E-07
   3  Normalizat    1.5554        .27454E-01    .59563E-01    .35365E-04
   4  Prefactor     .77771        .20673E-01    .43428E-01    .53382E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.57753
  Normalizat = 1.5554
  Prefactor  = 0.777715
 **********
 **   18 **HESSE 
 **********

 FCN=   6007.136     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .93433        .61413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5775        2.9536        .16912       -.37792    
   3  Normalizat    1.5554        .24400        .26340E-03   -.76233    
   4  Prefactor     .77771        .18372        .26753E-03   -1.0056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04297e-11
Minuit parameter uncertainties:
  1  6.00935e-06
  2  103.226
  3  0.244181
  4  0.183869
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/477969': 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) = 6007.13615127
delta logL = 1.19256437756e-05

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  1.000e-04  6.009e-06  1.000e-04  1.000e+04 ( 1.000e-12)
336        alpha:  1.578e+00  1.032e+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:  7.777e-01  1.839e-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.555e+00  2.442e-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/477969/cmap_HighResolution_300240001_300499201_4FGL_J1218.5-0119_daily_bin235.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.29e-05', job_status='DONE', photon_flux_upper_limit='3.72e-08', time_completed='2021-09-05 07:32:08.348433', job_id='477969', GAL2='0.78', fit_tolerance='1e-08', EG2='1.56', EG='1.56', time_epoch_completed='1630852328.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.19e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='235' AND source_name='4FGL J1218.5-0119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 07:32:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 477969: <4FGL_J1218.5-0119_daily_bin235> in cluster <slac> Done

Job <4FGL_J1218.5-0119_daily_bin235> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sun Sep  5 07:15:55 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 07:15:57 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:15:57 2021
Terminated at Sun Sep  5 07:32:09 2021
Results reported at Sun Sep  5 07:32:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.5-0119_daily_bin235 184.639 -1.327 300240001 300499201 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 :                                   939.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            974 sec.

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

