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


Performing analysis on: 4FGL_J1218.0-0028_daily_bin301
RA = 184.514, Dec = -0.4832
tmin = 317347201, tmax = 317606401
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='465087', job_status='RUN', time_executed='2021-09-05 06:41:12.030867', time_epoch_executed='1630849272.03' WHERE source_name='4FGL J1218.0-0028' and cadence='daily' and bin_id='301'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/465087

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/465087/ft1_4FGL_J1218.0-0028_daily_bin301.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/465087/ft2_4FGL_J1218.0-0028_daily_bin301.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/465087/ft1_4FGL_J1218.0-0028_daily_bin301.fits outfile=/scratch/kocevski/465087/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin301.fits ra=184.514 dec=-0.4832 rad=12.0 tmin=317347201.0 tmax=317606401.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.84
user 3.53
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/465087/ft1_filtered_4FGL_J1218.0-0028_daily_bin301.fits" evtable="EVENTS" scfile=/scratch/kocevski/465087/ft2_4FGL_J1218.0-0028_daily_bin301.fits sctable="SC_DATA" outfile=/scratch/kocevski/465087/ltcube_317347201_317606401_4FGL_J1218.0-0028_daily_bin301.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/465087/ft2_4FGL_J1218.0-0028_daily_bin301.fits
.....................!
real 12.46
user 11.59
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/465087/ft1_filtered_4FGL_J1218.0-0028_daily_bin301.fits evtable="EVENTS" scfile=/scratch/kocevski/465087/ft2_4FGL_J1218.0-0028_daily_bin301.fits sctable="SC_DATA" expcube=/scratch/kocevski/465087/ltcube_317347201_317606401_4FGL_J1218.0-0028_daily_bin301.fits outfile=/scratch/kocevski/465087/expmap_317347201_317606401_4FGL_J1218.0-0028_daily_bin301.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/465087/ltcube_317347201_317606401_4FGL_J1218.0-0028_daily_bin301.fits
.....................!
real 192.97
user 185.56
sys 5.55

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/465087/ft1_filtered_4FGL_J1218.0-0028_daily_bin301.fits scfile=/scratch/kocevski/465087/ft2_4FGL_J1218.0-0028_daily_bin301.fits outfile=/scratch/kocevski/465087/cmap_317347201_317606401_4FGL_J1218.0-0028_daily_bin301.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/465087/ft1_filtered_4FGL_J1218.0-0028_daily_bin301.fits scfile=/scratch/kocevski/465087/ft2_4FGL_J1218.0-0028_daily_bin301.fits outfile=/scratch/kocevski/465087/cmap_HighResolution_317347201_317606401_4FGL_J1218.0-0028_daily_bin301.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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/465087/ft1_filtered_4FGL_J1218.0-0028_daily_bin301.fits evtable="EVENTS" scfile=/scratch/kocevski/465087/ft2_4FGL_J1218.0-0028_daily_bin301.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/465087/Model_4FGL_J1218.0-0028_daily_bin301.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/465087/ft1_filtered_4FGL_J1218.0-0028_daily_bin301.fits.....................!
real 63.52
user 61.57
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/465087/ft1_filtered_4FGL_J1218.0-0028_daily_bin301.fits', '/scratch/kocevski/465087/ft2_4FGL_J1218.0-0028_daily_bin301.fits', expMap='/scratch/kocevski/465087/expmap_317347201_317606401_4FGL_J1218.0-0028_daily_bin301.fits', expCube='/scratch/kocevski/465087/ltcube_317347201_317606401_4FGL_J1218.0-0028_daily_bin301.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/465087/Model_4FGL_J1218.0-0028_daily_bin301.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/465087/ft1_filtered_4FGL_J1218.0-0028_daily_bin301.fits
Spacecraft file(s): /scratch/kocevski/465087/ft2_4FGL_J1218.0-0028_daily_bin301.fits
Exposure map: /scratch/kocevski/465087/expmap_317347201_317606401_4FGL_J1218.0-0028_daily_bin301.fits
Exposure cube: /scratch/kocevski/465087/ltcube_317347201_317606401_4FGL_J1218.0-0028_daily_bin301.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/465087/Model_4FGL_J1218.0-0028_daily_bin301.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) = 7150.27243812

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5301       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12866E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.6989       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22309E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1969       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12400E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.266       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10398E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.4114       1.0000         .10000E-03   10000.    
    17 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10649E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.6271       1.0000         .10000E-03   10000.    
    21 'norm      '    2.0139       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.3480       1.0000         .10000E-03   10000.    
    24 'Prefactor '    25.335       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.2129       1.0000         .10000E-03   10000.    
    28 'norm      '    .90207       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.9383       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .73892       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.

 FCN=   7150.185     FROM MIGRAD    STATUS=CONVERGED    823 CALLS     3415 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5299        2.1858       -.15770E-06   -.67375E-03
   2  Prefactor     .10000E-03    53.192        .51430E-05** at limit **
   3  norm          1.6991        6.5095       -.15326E-05   -.67959E-03
   4  Prefactor     .10000E-03    2.5429        .32457E-07** at limit **
   5  Prefactor     .10000E-03    5.0424       -.57601E-07** at limit **
   6  Prefactor     .10000E-03    1498.4       -.79495E-06** at limit **
   7  Prefactor     .10000E-03    7.2951       -.61267E-07** at limit **
   8  Prefactor     4.2010        48.253       -.11534E-04   -.16936E-04
   9  Prefactor     .10000E-03    9.7457       -.93392E-06** at limit **
  10  Prefactor     .10000E-03    8.9813        .78170E-07** at limit **
  11  Prefactor     .10000E-03    12.223        .23942E-06** at limit **
  12  Prefactor     .10000E-03    41.785       -.59858E-05** at limit **
  13  Prefactor     14.305        22.549        .11887E-04    .11807E-03
  14  Prefactor     .10000E-03    26.559       -.22097E-05** at limit **
  15  Prefactor     .10000E-03    9.3344       -.22139E-05** at limit **
  16  norm          2.4145        2.5387       -.16344E-06    .59921E-03
  17  norm          .10000E-03    4.6005       -.53285E-06** at limit **
  18  Prefactor     .10000E-03    9.9201        .59167E-06** at limit **
  19  norm          .10000E-03    15.101       -.62579E-06** at limit **
  20  Prefactor     9.7285        405.76        .14485E-03    .43660E-05
  21  norm          2.0143        .73901       -.62224E-07    .87989E-03
  22  Prefactor     .10000E-03    3.4377       -.18207E-06** at limit **
  23  norm          3.3482        2.0093       -.19778E-06   -.33631E-03
  24  Prefactor     25.340        13.402        .21705E-05    .11132E-03
  25  Prefactor     .10000E-03    16.514        .43139E-06** at limit **
  26  Prefactor     .10000E-03    31.531        .65630E-05** at limit **
  27  norm          5.2414        34.289       -.29126E-04   -.26605E-04
  28  norm          .90200        .30658        .53215E-07   -.31386E-03
  29  Normalizat    1.9382        .23624       -.49199E-06    .34521E-03
  30  Prefactor     .73890        .17124       -.38264E-06    .17118E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.52993
  Prefactor  = 0.0001
  norm       = 1.69912
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.20102
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3054
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 2.41452
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.72854
  norm       = 2.01426
  Prefactor  = 0.0001
  norm       = 3.34823
  Prefactor  = 25.34
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.24141
  norm       = 0.902004
  Normalizat = 1.93825
  Prefactor  = 0.738898
 **********
 **   18 **HESSE 
 **********

 FCN=   7150.185     FROM HESSE     STATUS=OK           582 CALLS     3997 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5299        2.1612        .14483E-03   -1.5461    
   2  Prefactor     .10000E-03    53.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.6991        6.5325        .32277E-03   -1.5447    
   4  Prefactor     .10000E-03    2.5696        .13142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.0428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1546.0        .36536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.3406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.2010        48.255        .19672E-03   -1.5298    
   9  Prefactor     .10000E-03    10.015        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.0160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    41.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.305        22.422        .10604E-03   -1.4951    
  14  Prefactor     .10000E-03    26.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    33.153        .45527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.4145        2.3600        .12372E-03   -1.5397    
  17  norm          .10000E-03    4.7731        .35271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.9197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    15.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.7285        398.39        .12916E-03   -1.5084    
  21  norm          2.0143        .73303        .40374E-04   -1.5424    
  22  Prefactor     .10000E-03    3.4452        .15310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.3482        2.0040        .87579E-04   -1.5342    
  24  Prefactor     25.340        13.368        .79585E-04   -1.4701    
  25  Prefactor     .10000E-03    16.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    31.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.2414        34.345        .17606E-03   -1.5250    
  28  norm          .90200        .30431        .26114E-04   -1.5518    
  29  Normalizat    1.9382        .27865        .27691E-03   -.66107    
  30  Prefactor     .73890        .20077        .30871E-03   -1.0202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98267e-09
Minuit parameter uncertainties:
  1  2.16134
  2  4.20969e-05
  3  6.53528
  4  2.12336e-05
  5  2.69621e-06
  6  0.000472248
  7  7.60141e-07
  8  28.5044
  9  3.61264e-05
  10  4.57081e-06
  11  1.54575e-05
  12  5.23957e-05
  13  22.4351
  14  0.000153146
  15  0.000492286
  16  2.36007
  17  0.000100518
  18  6.13618e-05
  19  2.6072e-05
  20  125.414
  21  0.733037
  22  3.15813e-06
  23  2.00404
  24  13.3696
  25  1.27669e-05
  26  2.72242e-07
  27  26.8562
  28  0.304309
  29  0.278882
  30  0.200966
Done.

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

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  4.923e-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:  7.389e-01  2.010e-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.938e+00  2.789e-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: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/465087/likelihoodResults_317347201_317606401_4FGL_J1218.0-0028_daily_bin301.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) = 7150.18509708
delta logL = -0.000142735901136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7150.15717518
delta logL = 0.0277791608141

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74383       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1772       1.0000          .0000       10.000    
     3 'Normalizat'    1.9233       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74380       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7150.157     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      331 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74384        22.099        .14534E-02   -.13209E-02
   2  Index         3.1770        3.7091        .44653E-02   -.37986E-05
   3  Normalizat    1.9232        .27445        .27766E-03    .15149E-05
   4  Prefactor     .74386        .19803        .30769E-03   -.62811E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.743836
  Index      = 3.17705
  Normalizat = 1.92324
  Prefactor  = 0.743863
 **********
 **   18 **HESSE 
 **********

 FCN=   7150.157     FROM HESSE     STATUS=OK            25 CALLS      356 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74384        6.9455        .58137E-04   -1.5535    
   2  Index         3.1770        2.3039        .17861E-03   -.37319    
   3  Normalizat    1.9232        .27487        .11106E-04   -.66489    
   4  Prefactor     .74386        .19825        .12308E-04   -1.0183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.08545e-09
Minuit parameter uncertainties:
  1  4.54628
  2  2.41015
  3  0.275093
  4  0.198444
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/465087': 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) = 7150.15717512
delta logL = 0.0277792221332

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  7.438e-01  4.546e+00  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  3.177e+00  2.410e+00  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:  7.439e-01  1.984e-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.923e+00  2.751e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/465087/cmap_HighResolution_317347201_317606401_4FGL_J1218.0-0028_daily_bin301.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.34e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-05 06:56:52.002871', job_id='465087', GAL2='0.74', fit_tolerance='1e-08', EG2='1.92', EG='1.94', time_epoch_completed='1630850212.0', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='2.78e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='301' AND source_name='4FGL J1218.0-0028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:56:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 465087: <4FGL_J1218.0-0028_daily_bin301> in cluster <slac> Done

Job <4FGL_J1218.0-0028_daily_bin301> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 06:40:25 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:40:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 06:40:26 2021
Terminated at Sun Sep  5 06:56:52 2021
Results reported at Sun Sep  5 06:56:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.0-0028_daily_bin301 184.514 -0.4832 317347201 317606401 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 :                                   928.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            987 sec.

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

