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


Performing analysis on: 4FGL_J1218.5-0119_daily_bin979
RA = 184.639, Dec = -1.327
tmin = 493084801, tmax = 493344001
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='482592', job_status='RUN', time_executed='2021-09-05 07:33:31.103674', time_epoch_executed='1630852411.1' WHERE source_name='4FGL J1218.5-0119' and cadence='daily' and bin_id='979'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/482592

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/482592/ft1_4FGL_J1218.5-0119_daily_bin979.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/482592/ft2_4FGL_J1218.5-0119_daily_bin979.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/482592/ft1_4FGL_J1218.5-0119_daily_bin979.fits outfile=/scratch/kocevski/482592/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin979.fits ra=184.639 dec=-1.327 rad=12.0 tmin=493084801.0 tmax=493344001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.60
user 3.39
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/482592/ft2_4FGL_J1218.5-0119_daily_bin979.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/482592/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin979.fits evtable="EVENTS" outfile="/scratch/kocevski/482592/ft1_filtered_4FGL_J1218.5-0119_daily_bin979.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.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/482592/ft1_filtered_4FGL_J1218.5-0119_daily_bin979.fits" evtable="EVENTS" scfile=/scratch/kocevski/482592/ft2_4FGL_J1218.5-0119_daily_bin979.fits sctable="SC_DATA" outfile=/scratch/kocevski/482592/ltcube_493084801_493344001_4FGL_J1218.5-0119_daily_bin979.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/482592/ft2_4FGL_J1218.5-0119_daily_bin979.fits
.....................!
real 12.49
user 11.88
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/482592/ft1_filtered_4FGL_J1218.5-0119_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/482592/ft2_4FGL_J1218.5-0119_daily_bin979.fits sctable="SC_DATA" expcube=/scratch/kocevski/482592/ltcube_493084801_493344001_4FGL_J1218.5-0119_daily_bin979.fits outfile=/scratch/kocevski/482592/expmap_493084801_493344001_4FGL_J1218.5-0119_daily_bin979.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/482592/ltcube_493084801_493344001_4FGL_J1218.5-0119_daily_bin979.fits
.....................!
real 191.42
user 186.49
sys 4.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 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/482592/ft1_filtered_4FGL_J1218.5-0119_daily_bin979.fits scfile=/scratch/kocevski/482592/ft2_4FGL_J1218.5-0119_daily_bin979.fits outfile=/scratch/kocevski/482592/cmap_493084801_493344001_4FGL_J1218.5-0119_daily_bin979.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.61
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/482592/ft1_filtered_4FGL_J1218.5-0119_daily_bin979.fits scfile=/scratch/kocevski/482592/ft2_4FGL_J1218.5-0119_daily_bin979.fits outfile=/scratch/kocevski/482592/cmap_HighResolution_493084801_493344001_4FGL_J1218.5-0119_daily_bin979.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.58
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/482592/ft1_filtered_4FGL_J1218.5-0119_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/482592/ft2_4FGL_J1218.5-0119_daily_bin979.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/482592/Model_4FGL_J1218.5-0119_daily_bin979.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/482592/ft1_filtered_4FGL_J1218.5-0119_daily_bin979.fits.....................!
real 45.39
user 43.43
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29279       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.6852       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4271       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.861       1.0000         .10000E-03   10000.    
     8 'Prefactor '    53.914       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6751       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.686       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10996E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9712       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1019       1.0000         .10000E-03   10000.    
    17 'norm      '    10.434       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10597E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    45.317       1.0000         .10000E-03   10000.    
    21 'norm      '    1.1637       1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.314       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.3446       1.0000         .10000E-03   10000.    
    24 'norm      '    3.9236       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11481E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    87.580       1.0000         .10000E-03   10000.    
    28 'norm      '    29.184       1.0000         .10000E-03   10000.    
    29 'norm      '    .48077       1.0000         .10000E-03   10000.    
    30 'Prefactor '    41.903       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .96072       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .97745       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=   4845.606     FROM MIGRAD    STATUS=CONVERGED    887 CALLS     4456 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29494        2.3289        .32894E-06    .17513E-04
   2  Prefactor     .10000E-03    28.450       -.63496E-06** at limit **
   3  norm          7.6716        8.6796        .20591E-06    .12914E-04
   4  Prefactor     1.4399        5.1041       -.67450E-07   -.42493E-04
   5  Prefactor     .10000E-03    53.357        .15507E-05** at limit **
   6  Prefactor     .10000E-03    14.930        .27273E-07** at limit **
   7  Prefactor     34.787        73.432        .43970E-05    .13409E-04
   8  Prefactor     53.837        49.724        .60779E-07    .81997E-06
   9  Prefactor     4.6778        9.4303        .20476E-06    .51538E-04
  10  Prefactor     33.665        21.707        .62175E-07    .12349E-04
  11  Prefactor     .10000E-03    18.626       -.29951E-07** at limit **
  12  Prefactor     .10000E-03    179.71       -.60102E-05** at limit **
  13  Prefactor     1.9682        56.923        .74395E-05    .20564E-04
  14  Prefactor     .10000E-03    70.490       -.44462E-05** at limit **
  15  Prefactor     .10000E-03    4.4689        .46756E-07** at limit **
  16  norm          2.1014        2.5450       -.13732E-08    .17949E-04
  17  norm          10.437        4.8358        .50684E-08    .65144E-04
  18  Prefactor     .10000E-03    12.519       -.29846E-07** at limit **
  19  norm          .10000E-03    94.462        .57239E-05** at limit **
  20  Prefactor     45.285        98.160        .27249E-05    .42150E-05
  21  norm          1.1636        .67199       -.14552E-07   -.68040E-04
  22  Prefactor     21.314        12.161        .26044E-07    .75388E-04
  23  Prefactor     8.3416        18.056        .16357E-06    .24885E-05
  24  norm          3.9233        1.9134        .57188E-08    .19915E-04
  25  Prefactor     .11001E-03    7.9700       -.96736E-06** at limit **
  26  Prefactor     .10000E-03    27.414        .51431E-06** at limit **
  27  Prefactor     87.587        57.452       -.41668E-07    .19383E-04
  28  norm          29.193        28.990        .23951E-06    .43757E-04
  29  norm          .48067        .26198        .38747E-08    .19748E-03
  30  Prefactor     41.899        71.512        .33628E-06    .33014E-05
  31  Normalizat    .96127        .25229        .28406E-06    .98771E-04
  32  Prefactor     .97710        .17854       -.59005E-06    .97426E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.294943
  Prefactor  = 0.0001
  norm       = 7.67165
  Prefactor  = 1.43987
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.7865
  Prefactor  = 53.8369
  Prefactor  = 4.67778
  Prefactor  = 33.6648
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.96817
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.10141
  norm       = 10.4367
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 45.2848
  norm       = 1.16357
  Prefactor  = 21.3143
  Prefactor  = 8.34158
  norm       = 3.92332
  Prefactor  = 0.000110005
  Prefactor  = 0.0001
  Prefactor  = 87.5874
  norm       = 29.1928
  norm       = 0.480671
  Prefactor  = 41.8995
  Normalizat = 0.961274
  Prefactor  = 0.977101
 **********
 **   18 **HESSE 
 **********

 FCN=   4845.606     FROM HESSE     STATUS=OK           669 CALLS     5125 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29494        2.3050        .20581E-03   -1.5599    
   2  Prefactor     .10000E-03    28.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.6716        8.5340        .14465E-03   -1.5154    
   4  Prefactor     1.4399        4.9775        .25383E-03   -1.5468    
   5  Prefactor     .10000E-03    54.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     34.787        73.806        .67872E-04   -1.4528    
   8  Prefactor     53.837        49.628        .54626E-04   -1.4239    
   9  Prefactor     4.6778        9.4309        .18612E-03   -1.5275    
  10  Prefactor     33.665        21.789        .69042E-04   -1.4547    
  11  Prefactor     .10000E-03    18.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    183.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9682        57.388        .14766E-02   -1.5427    
  14  Prefactor     .10000E-03    71.653        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.4744        .14368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1014        2.5305        .11730E-03   -1.5418    
  17  norm          10.437        4.8454        .93602E-04   -1.5062    
  18  Prefactor     .10000E-03    12.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    94.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     45.285        98.153        .59559E-04   -1.4361    
  21  norm          1.1636        .65876        .39018E-04   -1.5492    
  22  Prefactor     21.314        12.157        .86759E-04   -1.4784    
  23  Prefactor     8.3416        18.066        .13878E-03   -1.5130    
  24  norm          3.9233        1.9121        .63990E-04   -1.5312    
  25  Prefactor     .11001E-03    9.3057        .56666E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    27.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     87.587        57.610        .42931E-04   -1.3833    
  28  norm          29.193        28.992        .74163E-04   -1.4627    
  29  norm          .48067        .26156        .24258E-04   -1.5569    
  30  Prefactor     41.899        71.510        .61927E-04   -1.4412    
  31  Normalizat    .96127        .29078        .31081E-03   -.94339    
  32  Prefactor     .97710        .20449        .23752E-03   -.93497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7946e-10
Minuit parameter uncertainties:
  1  1.64886
  2  9.02697e-06
  3  8.5354
  4  4.97896
  5  2.69707e-05
  6  1.904e-06
  7  74.0004
  8  49.6665
  9  9.43389
  10  21.794
  11  3.16347e-06
  12  0.000430376
  13  21.2776
  14  5.42966e-05
  15  1.32499e-06
  16  2.53067
  17  4.84556
  18  2.57549e-06
  19  3.3872e-05
  20  98.5065
  21  0.658767
  22  12.1585
  23  18.0774
  24  1.91216
  25  0.0193014
  26  7.78755e-06
  27  57.647
  28  29.0062
  29  0.261557
  30  71.657
  31  0.291258
  32  0.204647
Done.

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

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  2.101e+00  2.531e+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

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  9.771e-01  2.046e-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:  9.613e-01  2.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.28
Ra Dec: 184.639 -1.327
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.41e-08 +/- 2.90e-08
Energy Flux (Fixed Index): 1.48e-05 +/- 1.79e-05

TS (Fixed Index): 1.28
Ra Dec: 184.639 -1.327
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/482592/likelihoodResults_493084801_493344001_4FGL_J1218.5-0119_daily_bin979.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): 0
logL (Free Index) = 4844.16209054
delta logL = 1.44421502694

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4843.82074459
delta logL = 1.78556096768

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4843.821     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      215 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .46446        .61759        .10786E-01   -.42331E-03
   2  alpha         .42331        .56871        .41230       -.39881E-05
   3  Normalizat    .96674        .22642        .70034E-01    .13029E-04
   4  Prefactor     .98220        .17537        .46044E-01    .50112E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.464459
  alpha      = 0.423308
  Normalizat = 0.966737
  Prefactor  = 0.982201
 **********
 **   18 **HESSE 
 **********

 FCN=   4843.821     FROM HESSE     STATUS=OK            35 CALLS      250 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .46446        1.0020        .44863E-03   -1.5572    
   2  alpha         .42331        .74009        .20837E-01   -.98032    
   3  Normalizat    .96674        .25782        .30983E-03   -.94153    
   4  Prefactor     .98220        .19998        .23694E-03   -.93325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06575e-10
Minuit parameter uncertainties:
  1  1.00206
  2  0.780324
  3  0.258157
  4  0.200126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/482592': 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) = 4843.8207445
delta logL = 1.78556106213

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  4.645e-01  1.002e+00  1.000e-04  1.000e+04 ( 1.000e-12)
336        alpha:  4.233e-01  7.803e-01  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.822e-01  2.001e-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:  9.667e-01  2.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.85
Ra Dec: 184.639 -1.327
Photon Index (Free Index): 0.42 +/- 0.78
Photon Flux (Free Index): 5.50e-09 +/- 5.94e-09
Energy Flux (Free Index): 1.19e-04 +/- 1.55e-04

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/482592/cmap_HighResolution_493084801_493344001_4FGL_J1218.5-0119_daily_bin979.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.33e-05', comment='SUCCESS', photon_flux='2.41e-08', energy_flux2='1.19e-04', photon_flux_error='2.90e-08', dlogl='1.79e+00', energy_flux='1.48e-05', photon_flux2='5.50e-09', job_status='DONE', time_completed='2021-09-05 07:47:32.816483', photon_index_error2='0.78', photon_index2='0.42', ts='1.28', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='1.55e-04', EG='0.96', time_epoch_completed='1630853252.82', return_code='0', job_id='482592', GAL2='0.98', EG2='0.97', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='5.94e-09', ts2='4.85', photon_index='2.02' WHERE bin_id='979' AND source_name='4FGL J1218.5-0119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 07:47:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 482592: <4FGL_J1218.5-0119_daily_bin979> in cluster <slac> Done

Job <4FGL_J1218.5-0119_daily_bin979> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 07:31:07 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 07:31: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:31:08 2021
Terminated at Sun Sep  5 07:47:33 2021
Results reported at Sun Sep  5 07:47:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.5-0119_daily_bin979 184.639 -1.327 493084801 493344001 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 :                                   838.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            986 sec.

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

