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


Performing analysis on: 4FGL_J1218.5-0119_daily_bin477
RA = 184.639, Dec = -1.327
tmin = 362966401, tmax = 363225601
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='479602', job_status='RUN', time_executed='2021-09-05 07:24:18.521919', time_epoch_executed='1630851858.52' WHERE source_name='4FGL J1218.5-0119' and cadence='daily' and bin_id='477'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/479602

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/479602/ft1_4FGL_J1218.5-0119_daily_bin477.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/479602/ft2_4FGL_J1218.5-0119_daily_bin477.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/479602/ft1_4FGL_J1218.5-0119_daily_bin477.fits outfile=/scratch/kocevski/479602/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin477.fits ra=184.639 dec=-1.327 rad=12.0 tmin=362966401.0 tmax=363225601.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.04
user 5.75
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/479602/ft1_filtered_4FGL_J1218.5-0119_daily_bin477.fits" evtable="EVENTS" scfile=/scratch/kocevski/479602/ft2_4FGL_J1218.5-0119_daily_bin477.fits sctable="SC_DATA" outfile=/scratch/kocevski/479602/ltcube_362966401_363225601_4FGL_J1218.5-0119_daily_bin477.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/479602/ft2_4FGL_J1218.5-0119_daily_bin477.fits
.....................!
real 14.40
user 14.07
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/479602/ft1_filtered_4FGL_J1218.5-0119_daily_bin477.fits evtable="EVENTS" scfile=/scratch/kocevski/479602/ft2_4FGL_J1218.5-0119_daily_bin477.fits sctable="SC_DATA" expcube=/scratch/kocevski/479602/ltcube_362966401_363225601_4FGL_J1218.5-0119_daily_bin477.fits outfile=/scratch/kocevski/479602/expmap_362966401_363225601_4FGL_J1218.5-0119_daily_bin477.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/479602/ltcube_362966401_363225601_4FGL_J1218.5-0119_daily_bin477.fits
.....................!
real 190.11
user 185.51
sys 4.20

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/479602/ft1_filtered_4FGL_J1218.5-0119_daily_bin477.fits scfile=/scratch/kocevski/479602/ft2_4FGL_J1218.5-0119_daily_bin477.fits outfile=/scratch/kocevski/479602/cmap_362966401_363225601_4FGL_J1218.5-0119_daily_bin477.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/479602/ft1_filtered_4FGL_J1218.5-0119_daily_bin477.fits scfile=/scratch/kocevski/479602/ft2_4FGL_J1218.5-0119_daily_bin477.fits outfile=/scratch/kocevski/479602/cmap_HighResolution_362966401_363225601_4FGL_J1218.5-0119_daily_bin477.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/479602/ft1_filtered_4FGL_J1218.5-0119_daily_bin477.fits evtable="EVENTS" scfile=/scratch/kocevski/479602/ft2_4FGL_J1218.5-0119_daily_bin477.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/479602/Model_4FGL_J1218.5-0119_daily_bin477.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/479602/ft1_filtered_4FGL_J1218.5-0119_daily_bin477.fits.....................!
real 48.64
user 47.24
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.100       1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.315       1.0000         .10000E-03   10000.    
     3 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.114       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2365       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10754E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.283       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.8696       1.0000         .10000E-03   10000.    
    17 'norm      '    16.038       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.4561       1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.899       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.0258       1.0000         .10000E-03   10000.    
    24 'norm      '    7.0250       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.7239       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    14.882       1.0000         .10000E-03   10000.    
    29 'norm      '    .31736       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0506       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .88660       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=   5127.545     FROM MIGRAD    STATUS=CONVERGED    822 CALLS     4263 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.101        4.1876        .62270E-07   -.21581E-04
   2  Prefactor     38.313        33.723       -.12529E-05   -.26247E-04
   3  norm          .10000E-03    5.7594       -.16513E-06** at limit **
   4  Prefactor     14.101        5.9507        .98470E-06   -.26312E-03
   5  Prefactor     .10000E-03    6.2223       -.24981E-06** at limit **
   6  Prefactor     .10000E-03    10.364        .21154E-05** at limit **
   7  Prefactor     .10000E-03    73.471        .17169E-04** at limit **
   8  Prefactor     .10000E-03    84.380       -.18175E-04** at limit **
   9  Prefactor     3.2382        11.378       -.21732E-05   -.20200E-03
  10  Prefactor     .10000E-03    49.107        .14946E-04** at limit **
  11  Prefactor     .10000E-03    47.191        .75130E-05** at limit **
  12  Prefactor     26.288        46.503        .64865E-05    .10648E-04
  13  Prefactor     .10000E-03    8.1713        .20877E-05** at limit **
  14  Prefactor     .10000E-03    40.137       -.13787E-04** at limit **
  15  Prefactor     .10000E-03    8.4683       -.31038E-05** at limit **
  16  norm          2.8696        2.2299        .52770E-07    .13904E-03
  17  norm          16.038        6.2809       -.17628E-06    .40901E-03
  18  Prefactor     .10000E-03    16.156       -.63861E-05** at limit **
  19  norm          .10000E-03    37.615       -.20658E-04** at limit **
  20  Prefactor     .10000E-03    87.705       -.28991E-04** at limit **
  21  norm          1.4562        .86145        .46465E-07    .22658E-04
  22  Prefactor     22.902        15.252       -.18315E-08   -.30393E-04
  23  Prefactor     2.0321        35.895       -.16090E-05   -.10792E-03
  24  norm          7.0254        2.3746        .31784E-07    .31122E-04
  25  Prefactor     9.7251        10.300       -.37532E-06   -.12167E-03
  26  Prefactor     .10000E-03    19.801        .77487E-05** at limit **
  27  Prefactor     .10000E-03    56.353        .27531E-04** at limit **
  28  norm          14.887        29.301        .29817E-05   -.22938E-04
  29  norm          .31736        .19336       -.10894E-07   -.15667E-02
  30  Prefactor     .10000E-03    22.418        .31974E-05** at limit **
  31  Normalizat    1.0505        .25609       -.11145E-05   -.10240E-03
  32  Prefactor     .88645        .18054        .16855E-08   -.12812E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1009
  Prefactor  = 38.3126
  norm       = 0.0001
  Prefactor  = 14.1008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.23823
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 26.2884
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.86963
  norm       = 16.0376
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.45621
  Prefactor  = 22.902
  Prefactor  = 2.03213
  norm       = 7.02537
  Prefactor  = 9.72505
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.8871
  norm       = 0.317364
  Prefactor  = 0.0001
  Normalizat = 1.05048
  Prefactor  = 0.886451
 **********
 **   18 **HESSE 
 **********

 FCN=   5127.545     FROM HESSE     STATUS=OK           657 CALLS     4920 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.101        4.1924        .91065E-04   -1.5072    
   2  Prefactor     38.313        33.761        .64751E-04   -1.4469    
   3  norm          .10000E-03    5.7883        .16753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.101        5.9359        .10618E-03   -1.4957    
   5  Prefactor     .10000E-03    6.2239        .17445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    73.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    84.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.2382        11.329        .22515E-03   -1.5348    
  10  Prefactor     .10000E-03    50.182        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    47.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.288        46.439        .78140E-04   -1.4682    
  13  Prefactor     .10000E-03    8.1784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    40.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.5096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.8696        2.2302        .91329E-04   -1.5369    
  17  norm          16.038        6.2767        .98212E-04   -1.4907    
  18  Prefactor     .10000E-03    16.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    37.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    87.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.4562        .85001        .43868E-04   -1.5467    
  22  Prefactor     22.902        15.231        .83706E-04   -1.4750    
  23  Prefactor     2.0321        35.983        .29070E-03   -1.5423    
  24  norm          7.0254        2.3729        .61007E-04   -1.5178    
  25  Prefactor     9.7251        10.289        .12851E-03   -1.5084    
  26  Prefactor     .10000E-03    19.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    56.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          14.887        29.280        .10382E-03   -1.4936    
  29  norm          .31736        .19105        .23757E-04   -1.5595    
  30  Prefactor     .10000E-03    22.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0505        .29926        .31047E-03   -.91358    
  32  Prefactor     .88645        .21051        .24983E-03   -.96616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48339e-10
Minuit parameter uncertainties:
  1  4.19255
  2  33.7775
  3  3.77565e-05
  4  5.93612
  5  8.16621e-06
  6  5.5091e-06
  7  2.75565e-05
  8  0.000236233
  9  11.3364
  10  0.000407706
  11  6.56374e-05
  12  46.5025
  13  1.04984e-06
  14  4.18431e-05
  15  6.45657e-06
  16  2.23022
  17  6.27691
  18  6.42265e-06
  19  3.40024e-05
  20  2.61316e-05
  21  0.85002
  22  15.2334
  23  17.1139
  24  2.3729
  25  10.2908
  26  5.16851e-07
  27  5.84101e-05
  28  29.3083
  29  0.191049
  30  2.60338e-07
  31  0.299745
  32  0.210701
Done.

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

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  2.870e+00  2.230e+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:  8.865e-01  2.107e-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.050e+00  2.997e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.69
Ra Dec: 184.639 -1.327
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 3.29e-08 +/- 2.55e-08
Energy Flux (Fixed Index): 2.03e-05 +/- 1.58e-05

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) = 5126.93847983
delta logL = 0.607003752688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5126.93706691
delta logL = 0.608416669035

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7765       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3415       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0639       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88318       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=   5126.937     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      202 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7765        2.1990        .61056E-02   -.96661E-03
   2  alpha         1.3415        .48277        .37666        .34770E-04
   3  Normalizat    1.0639        .23763        .69792E-01    .80554E-05
   4  Prefactor     .88318        .17808        .44790E-01   -.31107E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.7765
  alpha      = 1.34155
  Normalizat = 1.06391
  Prefactor  = 0.883176
 **********
 **   18 **HESSE 
 **********

 FCN=   5126.937     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7765        2.4026        .91596E-04   -1.5375    
   2  alpha         1.3415        .57341        .15233E-01   -.48181    
   3  Normalizat    1.0639        .27611        .30880E-03   -.90919    
   4  Prefactor     .88318        .20733        .25027E-03   -.96731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97041e-10
Minuit parameter uncertainties:
  1  2.40269
  2  0.580016
  3  0.27648
  4  0.207516
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/479602': 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) = 5126.93706691
delta logL = 0.608416669087

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  2.776e+00  2.403e+00  1.000e-04  1.000e+04 ( 1.000e-12)
336        alpha:  1.342e+00  5.800e-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:  8.832e-01  2.075e-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.064e+00  2.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.91
Ra Dec: 184.639 -1.327
Photon Index (Free Index): 1.34 +/- 0.58
Photon Flux (Free Index): 1.63e-08 +/- 1.62e-08
Energy Flux (Free Index): 4.78e-05 +/- 5.79e-05

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/479602/cmap_HighResolution_362966401_363225601_4FGL_J1218.5-0119_daily_bin477.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.29e-08', energy_flux2='4.78e-05', photon_flux_error='2.55e-08', dlogl='6.08e-01', energy_flux='2.03e-05', photon_flux2='1.63e-08', job_status='DONE', time_completed='2021-09-05 07:36:53.606739', photon_index_error2='0.58', photon_index2='1.34', ts='8.69', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='5.79e-05', EG='1.05', time_epoch_completed='1630852613.61', return_code='0', job_id='479602', GAL2='0.88', EG2='1.06', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='1.62e-08', ts2='9.91', photon_index='2.02' WHERE bin_id='477' AND source_name='4FGL J1218.5-0119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 07:36:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 479602: <4FGL_J1218.5-0119_daily_bin477> in cluster <slac> Done

Job <4FGL_J1218.5-0119_daily_bin477> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sun Sep  5 07:20:47 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 07:20:49 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:20:49 2021
Terminated at Sun Sep  5 07:36:54 2021
Results reported at Sun Sep  5 07:36:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.5-0119_daily_bin477 184.639 -1.327 362966401 363225601 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 :                                   752.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            967 sec.

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

