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


Performing analysis on: 4FGL_J1218.5-0119_daily_bin379
RA = 184.639, Dec = -1.327
tmin = 337564801, tmax = 337824001
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='478154', job_status='RUN', time_executed='2021-09-05 07:16:32.518705', time_epoch_executed='1630851392.52' WHERE source_name='4FGL J1218.5-0119' and cadence='daily' and bin_id='379'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478154

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478154/ft1_4FGL_J1218.5-0119_daily_bin379.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478154/ft2_4FGL_J1218.5-0119_daily_bin379.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478154/ft1_4FGL_J1218.5-0119_daily_bin379.fits outfile=/scratch/kocevski/478154/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin379.fits ra=184.639 dec=-1.327 rad=12.0 tmin=337564801.0 tmax=337824001.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 6.75
user 5.94
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/478154/ft2_4FGL_J1218.5-0119_daily_bin379.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/478154/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin379.fits evtable="EVENTS" outfile="/scratch/kocevski/478154/ft1_filtered_4FGL_J1218.5-0119_daily_bin379.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.80
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/478154/ft1_filtered_4FGL_J1218.5-0119_daily_bin379.fits" evtable="EVENTS" scfile=/scratch/kocevski/478154/ft2_4FGL_J1218.5-0119_daily_bin379.fits sctable="SC_DATA" outfile=/scratch/kocevski/478154/ltcube_337564801_337824001_4FGL_J1218.5-0119_daily_bin379.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/478154/ft2_4FGL_J1218.5-0119_daily_bin379.fits
.....................!
real 11.37
user 10.86
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478154/ft1_filtered_4FGL_J1218.5-0119_daily_bin379.fits evtable="EVENTS" scfile=/scratch/kocevski/478154/ft2_4FGL_J1218.5-0119_daily_bin379.fits sctable="SC_DATA" expcube=/scratch/kocevski/478154/ltcube_337564801_337824001_4FGL_J1218.5-0119_daily_bin379.fits outfile=/scratch/kocevski/478154/expmap_337564801_337824001_4FGL_J1218.5-0119_daily_bin379.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/478154/ltcube_337564801_337824001_4FGL_J1218.5-0119_daily_bin379.fits
.....................!
real 195.45
user 189.16
sys 4.71

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/478154/ft1_filtered_4FGL_J1218.5-0119_daily_bin379.fits scfile=/scratch/kocevski/478154/ft2_4FGL_J1218.5-0119_daily_bin379.fits outfile=/scratch/kocevski/478154/cmap_337564801_337824001_4FGL_J1218.5-0119_daily_bin379.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=184.639 yref=-1.327 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.84
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478154/ft1_filtered_4FGL_J1218.5-0119_daily_bin379.fits scfile=/scratch/kocevski/478154/ft2_4FGL_J1218.5-0119_daily_bin379.fits outfile=/scratch/kocevski/478154/cmap_HighResolution_337564801_337824001_4FGL_J1218.5-0119_daily_bin379.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.79
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/478154/ft1_filtered_4FGL_J1218.5-0119_daily_bin379.fits evtable="EVENTS" scfile=/scratch/kocevski/478154/ft2_4FGL_J1218.5-0119_daily_bin379.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/478154/Model_4FGL_J1218.5-0119_daily_bin379.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/478154/ft1_filtered_4FGL_J1218.5-0119_daily_bin379.fits.....................!
real 51.96
user 49.30
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2843       1.0000         .10000E-03   10000.    
     2 'Prefactor '    56.487       1.0000         .10000E-03   10000.    
     3 'norm      '    .47502E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .72988       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8285       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.970       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2671       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0407       1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.817       1.0000         .10000E-03   10000.    
    11 'Prefactor '    59.438       1.0000         .10000E-03   10000.    
    12 'Prefactor '    82.380       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.902       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.952       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.5478       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .24356       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.2866       1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.143       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.2284       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.2193       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1378       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .97824       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=   5514.558     FROM MIGRAD    STATUS=CONVERGED    845 CALLS     4381 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2840        3.6028        .22772E-06   -.15164E-03
   2  Prefactor     56.489        43.446        .85110E-06    .91545E-04
   3  norm          .10000E-03    6.2318       -.14811E-05** at limit **
   4  Prefactor     .74000        6.6555        .37600E-05   -.73524E-04
   5  Prefactor     7.8189        23.321       -.15213E-05   -.23311E-04
   6  Prefactor     16.960        20.091        .35005E-06    .34304E-04
   7  Prefactor     .10000E-03    28.718       -.44652E-06** at limit **
   8  Prefactor     6.2527        49.639       -.30992E-05   -.26483E-04
   9  Prefactor     6.0415        8.7731        .18907E-06   -.34950E-04
  10  Prefactor     34.816        23.912        .86857E-07    .90004E-04
  11  Prefactor     59.455        43.875        .13422E-05    .12852E-03
  12  Prefactor     82.377        50.079       -.19426E-06   -.47430E-04
  13  Prefactor     .10000E-03    10.181       -.23309E-07** at limit **
  14  Prefactor     18.900        20.358        .96092E-07   -.48657E-06
  15  Prefactor     17.953        11.754       -.27108E-07   -.35236E-04
  16  norm          .10000E-03    .79216       -.28791E-07** at limit **
  17  norm          1.5486        3.4204        .28846E-06   -.27930E-03
  18  Prefactor     .10000E-03    13.565        .12297E-05** at limit **
  19  norm          .10000E-03    22.489        .61828E-06** at limit **
  20  Prefactor     .10000E-03    44.664        .15144E-06** at limit **
  21  norm          .24356        .56280        .18250E-06   -.73572E-03
  22  Prefactor     .10000E-03    4.3028        .15830E-07** at limit **
  23  Prefactor     .10000E-03    43.494        .33729E-06** at limit **
  24  norm          7.2864        2.4661       -.68778E-08   -.24855E-03
  25  Prefactor     11.142        9.3403        .64819E-06   -.37126E-03
  26  Prefactor     2.2639        156.29        .80085E-05    .25727E-04
  27  Prefactor     .10000E-03    16.120       -.73133E-06** at limit **
  28  norm          .10000E-03    12.992       -.49044E-06** at limit **
  29  norm          1.2193        .32262        .10262E-07   -.77794E-04
  30  Prefactor     .10000E-03    28.982       -.57970E-06** at limit **
  31  Normalizat    1.1375        .26532       -.10779E-05   -.18057E-04
  32  Prefactor     .97851        .18317       -.27422E-06   -.31158E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.28402
  Prefactor  = 56.4894
  norm       = 0.000100001
  Prefactor  = 0.739997
  Prefactor  = 7.81891
  Prefactor  = 16.96
  Prefactor  = 0.0001
  Prefactor  = 6.25266
  Prefactor  = 6.04154
  Prefactor  = 34.8157
  Prefactor  = 59.4553
  Prefactor  = 82.377
  Prefactor  = 0.0001
  Prefactor  = 18.8998
  Prefactor  = 17.9526
  norm       = 0.0001
  norm       = 1.54863
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.243559
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.28642
  Prefactor  = 11.1416
  Prefactor  = 2.26386
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.21927
  Prefactor  = 0.0001
  Normalizat = 1.13751
  Prefactor  = 0.978505
 **********
 **   18 **HESSE 
 **********

 FCN=   5514.558     FROM HESSE     STATUS=OK           667 CALLS     5048 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2840        3.5895        .16889E-03   -1.5406    
   2  Prefactor     56.489        43.714        .53375E-04   -1.4203    
   3  norm          .10000E-03    13.333        .53637E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .74000        7.8666        .34093E-03   -1.5536    
   5  Prefactor     7.8189        23.153        .14331E-03   -1.5149    
   6  Prefactor     16.960        20.102        .97226E-04   -1.4884    
   7  Prefactor     .10000E-03    28.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.2527        49.820        .16035E-03   -1.5208    
   9  Prefactor     6.0415        8.7601        .16336E-03   -1.5216    
  10  Prefactor     34.816        24.019        .67915E-04   -1.4527    
  11  Prefactor     59.455        44.494        .52040E-04   -1.4164    
  12  Prefactor     82.377        50.355        .44254E-04   -1.3890    
  13  Prefactor     .10000E-03    10.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.900        20.345        .92123E-04   -1.4838    
  15  Prefactor     17.953        11.711        .94529E-04   -1.4860    
  16  norm          .10000E-03    .79376        .64518E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.5486        3.2964        .18068E-03   -1.5459    
  18  Prefactor     .10000E-03    13.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    22.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    44.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .24356        .52592        .72567E-04   -1.5609    
  22  Prefactor     .10000E-03    4.3153        .15042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    44.960        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.2864        2.4592        .63199E-04   -1.5168    
  25  Prefactor     11.142        9.3501        .60007E-03   -1.5040    
  26  Prefactor     2.2639        159.62        .27541E-03   -1.5407    
  27  Prefactor     .10000E-03    16.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    13.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.2193        .32283        .20823E-04   -1.5487    
  30  Prefactor     .10000E-03    29.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.1375        .31162        .31341E-03   -.88556    
  32  Prefactor     .97851        .21550        .25195E-03   -.93449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47975e-10
Minuit parameter uncertainties:
  1  3.58984
  2  43.7385
  3  0.000176234
  4  4.82594
  5  23.1799
  6  20.1103
  7  6.28263e-05
  8  35.3393
  9  8.76197
  10  24.0254
  11  44.5189
  12  50.3816
  13  1.64682e-06
  14  20.3522
  15  11.7121
  16  4.75587e-07
  17  3.29677
  18  0.000137627
  19  8.11927e-05
  20  3.16617e-05
  21  0.52593
  22  3.85434e-07
  23  0.000172092
  24  2.45927
  25  9.35128
  26  38.1247
  27  8.4107e-05
  28  5.79295e-05
  29  0.322832
  30  9.11028e-05
  31  0.312129
  32  0.215685
Done.

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

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  1.000e-04  4.756e-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:  9.785e-01  2.157e-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.138e+00  3.121e-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: 4.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.08e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/478154/likelihoodResults_337564801_337824001_4FGL_J1218.5-0119_daily_bin379.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) = 5514.55795662
delta logL = -5.47200670553e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5514.55795112
delta logL = 3.49546098732e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5514.558     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      233 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1222        .64771E-03** at limit **
   2  alpha         1.7381        3.7387        .16886       -.46858E-07
   3  Normalizat    1.1375        .27784        .31341E-03    .40445E-04
   4  Prefactor     .97851        .21024        .25195E-03    .55366E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.73806
  Normalizat = 1.13751
  Prefactor  = 0.978505
 **********
 **   18 **HESSE 
 **********

 FCN=   5514.558     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .84E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .83370        .12954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7381        3.3459        .67546E-02   -.30970    
   3  Normalizat    1.1375        .27811        .12537E-04   -.88556    
   4  Prefactor     .97851        .21044        .10078E-04   -.93449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.38198e-12
Minuit parameter uncertainties:
  1  1.01928e-06
  2  112.375
  3  0.278472
  4  0.210614
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478154': 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) = 5514.55794813
delta logL = 3.01605632558e-06

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  1.000e-04  1.019e-06  1.000e-04  1.000e+04 ( 1.000e-12)
336        alpha:  1.738e+00  1.124e+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:  9.785e-01  2.106e-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.138e+00  2.785e-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/478154/cmap_HighResolution_337564801_337824001_4FGL_J1218.5-0119_daily_bin379.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.08e-05', job_status='DONE', photon_flux_upper_limit='4.99e-08', time_completed='2021-09-05 07:31:36.001177', job_id='478154', GAL2='0.98', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630852296.0', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='3.02e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='379' AND source_name='4FGL J1218.5-0119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 07:31:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 478154: <4FGL_J1218.5-0119_daily_bin379> in cluster <slac> Done

Job <4FGL_J1218.5-0119_daily_bin379> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sun Sep  5 07:16:07 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 07:16:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 07:16:08 2021
Terminated at Sun Sep  5 07:31:37 2021
Results reported at Sun Sep  5 07:31:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.5-0119_daily_bin379 184.639 -1.327 337564801 337824001 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 :                                   882.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            930 sec.

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

