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


Performing analysis on: 4FGL_J1218.0-0028_daily_bin1303
RA = 184.514, Dec = -0.4832
tmin = 577065601, tmax = 577324801
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='473278', job_status='RUN', time_executed='2021-09-05 07:04:45.729519', time_epoch_executed='1630850685.73' WHERE source_name='4FGL J1218.0-0028' and cadence='daily' and bin_id='1303'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473278

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473278/ft1_4FGL_J1218.0-0028_daily_bin1303.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473278/ft2_4FGL_J1218.0-0028_daily_bin1303.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473278/ft1_4FGL_J1218.0-0028_daily_bin1303.fits outfile=/scratch/kocevski/473278/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin1303.fits ra=184.514 dec=-0.4832 rad=12.0 tmin=577065601.0 tmax=577324801.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.04
user 2.88
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/473278/ft2_4FGL_J1218.0-0028_daily_bin1303.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/473278/ft2_4FGL_J1218.0-0028_daily_bin1303.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/473278/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin1303.fits evtable="EVENTS" outfile="/scratch/kocevski/473278/ft1_filtered_4FGL_J1218.0-0028_daily_bin1303.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 5.87
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/473278/ft1_filtered_4FGL_J1218.0-0028_daily_bin1303.fits" evtable="EVENTS" scfile=/scratch/kocevski/473278/ft2_4FGL_J1218.0-0028_daily_bin1303.fits sctable="SC_DATA" outfile=/scratch/kocevski/473278/ltcube_577065601_577324801_4FGL_J1218.0-0028_daily_bin1303.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/473278/ft2_4FGL_J1218.0-0028_daily_bin1303.fits
.....................!
real 16.48
user 12.59
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473278/ft1_filtered_4FGL_J1218.0-0028_daily_bin1303.fits evtable="EVENTS" scfile=/scratch/kocevski/473278/ft2_4FGL_J1218.0-0028_daily_bin1303.fits sctable="SC_DATA" expcube=/scratch/kocevski/473278/ltcube_577065601_577324801_4FGL_J1218.0-0028_daily_bin1303.fits outfile=/scratch/kocevski/473278/expmap_577065601_577324801_4FGL_J1218.0-0028_daily_bin1303.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/473278/ltcube_577065601_577324801_4FGL_J1218.0-0028_daily_bin1303.fits
.....................!
real 203.31
user 188.68
sys 4.81

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

Setting source of interest to:
4FGL J1218.0-0028 @ 184.514 -0.4832

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/473278/ft1_filtered_4FGL_J1218.0-0028_daily_bin1303.fits scfile=/scratch/kocevski/473278/ft2_4FGL_J1218.0-0028_daily_bin1303.fits outfile=/scratch/kocevski/473278/cmap_577065601_577324801_4FGL_J1218.0-0028_daily_bin1303.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.514 yref=-0.4832 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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473278/ft1_filtered_4FGL_J1218.0-0028_daily_bin1303.fits scfile=/scratch/kocevski/473278/ft2_4FGL_J1218.0-0028_daily_bin1303.fits outfile=/scratch/kocevski/473278/cmap_HighResolution_577065601_577324801_4FGL_J1218.0-0028_daily_bin1303.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.514 yref=-0.4832 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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/473278/ft1_filtered_4FGL_J1218.0-0028_daily_bin1303.fits evtable="EVENTS" scfile=/scratch/kocevski/473278/ft2_4FGL_J1218.0-0028_daily_bin1303.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/473278/Model_4FGL_J1218.0-0028_daily_bin1303.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/473278/ft1_filtered_4FGL_J1218.0-0028_daily_bin1303.fits......................!
real 22.15
user 20.87
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/473278/ft1_filtered_4FGL_J1218.0-0028_daily_bin1303.fits', '/scratch/kocevski/473278/ft2_4FGL_J1218.0-0028_daily_bin1303.fits', expMap='/scratch/kocevski/473278/expmap_577065601_577324801_4FGL_J1218.0-0028_daily_bin1303.fits', expCube='/scratch/kocevski/473278/ltcube_577065601_577324801_4FGL_J1218.0-0028_daily_bin1303.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/473278/Model_4FGL_J1218.0-0028_daily_bin1303.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1218.0-0028'

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  2.373e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.321e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.446e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/473278/ft1_filtered_4FGL_J1218.0-0028_daily_bin1303.fits
Spacecraft file(s): /scratch/kocevski/473278/ft2_4FGL_J1218.0-0028_daily_bin1303.fits
Exposure map: /scratch/kocevski/473278/expmap_577065601_577324801_4FGL_J1218.0-0028_daily_bin1303.fits
Exposure cube: /scratch/kocevski/473278/ltcube_577065601_577324801_4FGL_J1218.0-0028_daily_bin1303.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/473278/Model_4FGL_J1218.0-0028_daily_bin1303.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) = 1123.67170856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4959       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10404E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    366.76       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.166       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10435E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.4402       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11644E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    52.498       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10392E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.871       1.0000         .10000E-03   10000.    
    19 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13368E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.1000       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    37.588       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .20615E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .14406E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4688       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   1123.620     FROM MIGRAD    STATUS=FAILED      1363 CALLS     5229 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4962        4.6263        .79215E-04    .41927E-04
   2  Prefactor     .10000E-03    377.70        .18142E-02** at limit **
   3  norm          .10000E-03    16.435        .13389E-02** at limit **
   4  Prefactor     .10000E-03    11.800        .11342E-02** at limit **
   5  Prefactor     .10000E-03    64.585        .18142E-02** at limit **
   6  Prefactor     366.63        564.82        .10640E-03    .32588E-05
   7  Prefactor     22.158        32.476        .85076E-04   -.27628E-04
   8  Prefactor     .10000E-03    157.67        .18142E-02** at limit **
   9  Prefactor     7.4443        28.826        .14703E-03   -.15909E-04
  10  Prefactor     .10000E-03    148.63        .18142E-02** at limit **
  11  Prefactor     .10000E-03    172.50        .18142E-02** at limit **
  12  Prefactor     .10000E-03    46.497        .18142E-02** at limit **
  13  Prefactor     .10000E-03    51.293        .18142E-02** at limit **
  14  Prefactor     52.509        93.688        .55355E-04   -.26114E-04
  15  Prefactor     .10000E-03    200.34        .18142E-02** at limit **
  16  norm          .10000E-03    12.637        .11681E-02** at limit **
  17  norm          .10000E-03    17.611        .27280E-03** at limit **
  18  Prefactor     32.861        177.67        .69890E-04   -.10167E-04
  19  norm          .10000E-03    166.76        .18142E-02** at limit **
  20  Prefactor     .10000E-03    265.18        .18142E-02** at limit **
  21  norm          .10000E-03    1.0348        .66042E-04** at limit **
  22  Prefactor     .10000E-03    39.420        .18142E-02** at limit **
  23  norm          2.0999        4.8891        .94010E-04   -.65333E-04
  24  Prefactor     .10000E-03    24.556        .16371E-02** at limit **
  25  Prefactor     37.538        111.56        .65372E-04   -.46085E-05
  26  Prefactor     .10000E-03    728.05        .18142E-02** at limit **
  27  norm          .10000E-03    90.800        .18142E-02** at limit **
  28  norm          .10000E-03    3.2193        .59257E-03** at limit **
  29  Normalizat    .15204E-01    7.9697        .13345E-01    .69093E-04
  30  Prefactor     1.4683        2.2267        .19603E-03   -.33728E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1123.620     FROM SIMPLEX   STATUS=UNCHANGED   1956 CALLS     7185 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4962        4.6263        .12607E-05    .41927E-04
   2  Prefactor     .10000E-03    377.70        .40186E-02** at limit **
   3  norm          .10000E-03    16.435        .64516E-03** at limit **
   4  Prefactor     .10000E-03    11.800        .33415E-03** at limit **
   5  Prefactor     .10000E-03    64.585        .16944E-03** at limit **
   6  Prefactor     366.63        564.82        .93009E-06    .32588E-05
   7  Prefactor     22.158        32.476        .11588E-05   -.27628E-04
   8  Prefactor     .10000E-03    157.67        .57376E-03** at limit **
   9  Prefactor     7.4443        28.826        .11906E-05   -.15909E-04
  10  Prefactor     .10000E-03    148.63        .25836E-03** at limit **
  11  Prefactor     .10000E-03    172.50        .12413E-02** at limit **
  12  Prefactor     .10000E-03    46.497        .18462E-03** at limit **
  13  Prefactor     .10000E-03    51.293        .23734E-03** at limit **
  14  Prefactor     52.509        93.688        .11201E-05   -.26114E-04
  15  Prefactor     .10000E-03    200.34        .38972E-03** at limit **
  16  norm          .10000E-03    12.637        .72727E-04** at limit **
  17  norm          .10000E-03    17.611        .24073E-04** at limit **
  18  Prefactor     32.861        177.67        .11431E-05   -.10167E-04
  19  norm          .10000E-03    166.76        .56709E-03** at limit **
  20  Prefactor     .10000E-03    265.18        .74913E-03** at limit **
  21  norm          .10000E-03    1.0348        .21102E-04** at limit **
  22  Prefactor     .10000E-03    39.420        .60393E-03** at limit **
  23  norm          2.0999        4.8891        .12087E-05   -.65333E-04
  24  Prefactor     .10000E-03    24.556        .58445E-03** at limit **
  25  Prefactor     37.538        111.56        .11374E-05   -.46085E-05
  26  Prefactor     .10000E-03    728.05        .39162E-03** at limit **
  27  norm          .10000E-03    90.800        .45099E-03** at limit **
  28  norm          .10000E-03    3.2193        .82162E-04** at limit **
  29  Normalizat    .15204E-01    7.9697        .11963E-05    .69093E-04
  30  Prefactor     1.4683        2.2267        .61476E-06   -.33728E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1123.620     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     7749 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4962        4.6184        .79215E-04    .26551E-05
   2  Prefactor     .10000E-03    384.32        .36285E-03** at limit **
   3  norm          .10000E-03    16.720        .26778E-03** at limit **
   4  Prefactor     .10000E-03    12.005        .22685E-03** at limit **
   5  Prefactor     .10000E-03    65.703        .36285E-03** at limit **
   6  Prefactor     366.63        283.28        .42561E-05    .53423E-05
   7  Prefactor     22.158        26.670        .34030E-05   -.21715E-04
   8  Prefactor     .10000E-03    160.39        .36285E-03** at limit **
   9  Prefactor     7.4443        25.064        .58814E-05   -.12661E-04
  10  Prefactor     .10000E-03    151.16        .36285E-03** at limit **
  11  Prefactor     .10000E-03    175.47        .36285E-03** at limit **
  12  Prefactor     .10000E-03    47.299        .36285E-03** at limit **
  13  Prefactor     .10000E-03    52.180        .36285E-03** at limit **
  14  Prefactor     52.509        73.657        .11071E-04   -.22592E-04
  15  Prefactor     .10000E-03    203.89        .36285E-03** at limit **
  16  norm          .10000E-03    12.858        .23362E-03** at limit **
  17  norm          .10000E-03    17.916        .54560E-04** at limit **
  18  Prefactor     32.861        82.738        .27956E-05   -.75232E-05
  19  norm          .10000E-03    169.65        .36285E-03** at limit **
  20  Prefactor     .10000E-03    269.73        .36285E-03** at limit **
  21  norm          .10000E-03    1.0527        .13208E-04** at limit **
  22  Prefactor     .10000E-03    40.103        .36285E-03** at limit **
  23  norm          2.0999        4.4346        .37604E-05   -.55477E-04
  24  Prefactor     .10000E-03    24.981        .32743E-03** at limit **
  25  Prefactor     37.538        110.98        .26149E-05   -.39129E-05
  26  Prefactor     .10000E-03    740.35        .36285E-03** at limit **
  27  norm          .10000E-03    92.370        .36285E-03** at limit **
  28  norm          .10000E-03    3.2751        .11851E-03** at limit **
  29  Normalizat    .15203E-01    9.6575        .26690E-02   -.18071E-05
  30  Prefactor     1.4683        .50272        .39205E-04   -.22720E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.49616
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 366.629
  Prefactor  = 22.1578
  Prefactor  = 0.0001
  Prefactor  = 7.44431
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.5087
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 32.8612
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.09986
  Prefactor  = 0.0001
  Prefactor  = 37.5376
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.0152029
  Prefactor  = 1.46831
 **********
 **   18 **HESSE 
 **********

 FCN=   1123.620     FROM HESSE     STATUS=OK           558 CALLS     8307 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4962        4.6180        .31686E-05   -1.5334    
   2  Prefactor     .10000E-03    384.33        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    16.720        .53555E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.005        .45370E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    65.703        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     366.63        280.63        .85122E-06   -1.1855    
   7  Prefactor     22.158        26.641        .68061E-06   -1.4766    
   8  Prefactor     .10000E-03    160.39        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.4443        25.023        .11763E-05   -1.5162    
  10  Prefactor     .10000E-03    151.16        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    175.47        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    47.299        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    52.180        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     52.509        73.478        .22142E-05   -1.4257    
  15  Prefactor     .10000E-03    203.90        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    12.858        .46725E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    17.916        .10912E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     32.861        81.227        .55912E-06   -1.4561    
  19  norm          .10000E-03    169.65        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    269.74        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.0527        .26417E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    40.103        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.0999        4.4320        .75208E-06   -1.5418    
  24  Prefactor     .10000E-03    24.981        .65485E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     37.538        110.55        .52298E-06   -1.4482    
  26  Prefactor     .10000E-03    740.35        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    92.370        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    3.2751        .23703E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .15203E-01    9.1677        .10676E-03   -1.5251    
  30  Prefactor     1.4683        .45689        .78410E-05   -.78431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66647e-11
Minuit parameter uncertainties:
  1  4.61847
  2  9.89077e-06
  3  3.39329e-07
  4  2.28751e-07
  5  1.19975e-05
  6  281.679
  7  26.6552
  8  3.59407e-05
  9  25.0586
  10  7.15711e-05
  11  1.58807e-05
  12  1.70163e-05
  13  1.75994e-05
  14  73.6049
  15  0.000178761
  16  9.81397e-06
  17  3.50706e-05
  18  81.5018
  19  9.14334e-05
  20  0.000184346
  21  1.28367e-06
  22  1.17874e-05
  23  4.43272
  24  4.44738e-06
  25  111.166
  26  0.00151114
  27  2.17877e-05
  28  7.30626e-08
  29  0.536321
  30  0.458167
Done.

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

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  1.788e-04  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.321e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.446e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  1.468e+00  4.582e-01  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
607   Normalization:  1.520e-02  5.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 184.514 -0.483
Photon Flux Upper Limit: 4.99e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.83e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/473278/likelihoodResults_577065601_577324801_4FGL_J1218.0-0028_daily_bin1303.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) = 1123.61956973
delta logL = -2.32400916502e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1123.61954651
delta logL = -2.37328094954e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2906       1.0000          .0000       10.000    
     3 'Normalizat'    .15235E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4683       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1123.620     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      257 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9968.2        .90712E-02** at limit **
   2  Index         2.2699        8.7808        .50000        .72876E-06
   3  Normalizat    .15199E-01    .11631        .22547        .14477E-04
   4  Prefactor     1.4683        .12123        .44353E-01    .24026E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.26989
  Normalizat = 0.0151989
  Prefactor  = 1.46832
 **********
 **   18 **HESSE 
 **********

 FCN=   1123.620     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      292 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9412.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2699        6.1208        .50000       -.57761    
   3  Normalizat    .15199E-01    .89603        .13342E-01   -1.5252    
   4  Prefactor     1.4683        .17904        .19603E-03   -.78431    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.81037e-09
Minuit parameter uncertainties:
  1  0.00940221
  2  57.244
  3  0.138671
  4  0.179121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473278': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1123.61954648
delta logL = 1.05681010609e-08

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  9.402e-03  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.270e+00  5.724e+01  0.000e+00  1.000e+01 (-1.000e+00)
327        Scale:  1.446e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  1.468e+00  1.791e-01  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
607   Normalization:  1.520e-02  1.387e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 184.514 -0.483

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/473278/cmap_HighResolution_577065601_577324801_4FGL_J1218.0-0028_daily_bin1303.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.83e-02', job_status='DONE', photon_flux_upper_limit='4.99e-07', time_completed='2021-09-05 07:13:16.168110', job_id='473278', GAL2='1.47', fit_tolerance='1e-08', EG2='0.02', EG='0.02', time_epoch_completed='1630851196.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.47', dlogl='1.06e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1303' AND source_name='4FGL J1218.0-0028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 07:13:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 473278: <4FGL_J1218.0-0028_daily_bin1303> in cluster <slac> Done

Job <4FGL_J1218.0-0028_daily_bin1303> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 07:01:29 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 07:01:31 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:01:31 2021
Terminated at Sun Sep  5 07:13:16 2021
Results reported at Sun Sep  5 07:13:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.0-0028_daily_bin1303 184.514 -0.4832 577065601 577324801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1218.0-0028 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   477.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             219.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            707 sec.

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

