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


Performing analysis on: 4FGL_J1218.5-0119_daily_bin822
RA = 184.639, Dec = -1.327
tmin = 452390401, tmax = 452649601
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='481275', job_status='RUN', time_executed='2021-09-05 07:29:31.449413', time_epoch_executed='1630852171.45' WHERE source_name='4FGL J1218.5-0119' and cadence='daily' and bin_id='822'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/481275

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/481275/ft1_4FGL_J1218.5-0119_daily_bin822.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/481275/ft2_4FGL_J1218.5-0119_daily_bin822.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/481275/ft1_4FGL_J1218.5-0119_daily_bin822.fits outfile=/scratch/kocevski/481275/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin822.fits ra=184.639 dec=-1.327 rad=12.0 tmin=452390401.0 tmax=452649601.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.37
user 3.15
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/481275/ft1_filtered_4FGL_J1218.5-0119_daily_bin822.fits" evtable="EVENTS" scfile=/scratch/kocevski/481275/ft2_4FGL_J1218.5-0119_daily_bin822.fits sctable="SC_DATA" outfile=/scratch/kocevski/481275/ltcube_452390401_452649601_4FGL_J1218.5-0119_daily_bin822.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/481275/ft2_4FGL_J1218.5-0119_daily_bin822.fits
.....................!
real 11.71
user 11.36
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/481275/ft1_filtered_4FGL_J1218.5-0119_daily_bin822.fits evtable="EVENTS" scfile=/scratch/kocevski/481275/ft2_4FGL_J1218.5-0119_daily_bin822.fits sctable="SC_DATA" expcube=/scratch/kocevski/481275/ltcube_452390401_452649601_4FGL_J1218.5-0119_daily_bin822.fits outfile=/scratch/kocevski/481275/expmap_452390401_452649601_4FGL_J1218.5-0119_daily_bin822.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/481275/ltcube_452390401_452649601_4FGL_J1218.5-0119_daily_bin822.fits
.....................!
real 190.89
user 185.03
sys 4.72

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/481275/ft1_filtered_4FGL_J1218.5-0119_daily_bin822.fits scfile=/scratch/kocevski/481275/ft2_4FGL_J1218.5-0119_daily_bin822.fits outfile=/scratch/kocevski/481275/cmap_452390401_452649601_4FGL_J1218.5-0119_daily_bin822.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/481275/ft1_filtered_4FGL_J1218.5-0119_daily_bin822.fits scfile=/scratch/kocevski/481275/ft2_4FGL_J1218.5-0119_daily_bin822.fits outfile=/scratch/kocevski/481275/cmap_HighResolution_452390401_452649601_4FGL_J1218.5-0119_daily_bin822.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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/481275/ft1_filtered_4FGL_J1218.5-0119_daily_bin822.fits evtable="EVENTS" scfile=/scratch/kocevski/481275/ft2_4FGL_J1218.5-0119_daily_bin822.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/481275/Model_4FGL_J1218.5-0119_daily_bin822.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/481275/ft1_filtered_4FGL_J1218.5-0119_daily_bin822.fits.....................!
real 46.44
user 45.07
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7812       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.7033       1.0000         .10000E-03   10000.    
     3 'norm      '    7.2667       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1668       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.375       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.789       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.820       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.386       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.1988       1.0000         .10000E-03   10000.    
    16 'norm      '    2.0122       1.0000         .10000E-03   10000.    
    17 'norm      '    1.9075       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4421       1.0000         .10000E-03   10000.    
    19 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.8133       1.0000         .10000E-03   10000.    
    21 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.8842       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10218E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    20.062       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.1013       1.0000         .10000E-03   10000.    
    30 'Prefactor '    31.906       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.5471       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .46821       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=   5036.541     FROM MIGRAD    STATUS=CONVERGED    816 CALLS     4340 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7813        2.5412       -.21024E-06    .33277E-04
   2  Prefactor     6.7030        20.009       -.16503E-05   -.29917E-04
   3  norm          7.2652        7.3210        .12025E-06   -.16894E-03
   4  Prefactor     3.1703        5.9132        .53033E-05   -.22437E-03
   5  Prefactor     17.363        29.237       -.16304E-04   -.58609E-04
   6  Prefactor     .10000E-03    6.8668        .36882E-06** at limit **
   7  Prefactor     .10000E-03    36.057       -.34779E-05** at limit **
   8  Prefactor     .10000E-03    21.039        .15866E-05** at limit **
   9  Prefactor     .10000E-03    5.0755       -.17969E-06** at limit **
  10  Prefactor     16.778        19.152       -.65218E-05   -.33029E-04
  11  Prefactor     .10000E-03    18.172       -.75088E-05** at limit **
  12  Prefactor     .10000E-03    9.3535        .40356E-05** at limit **
  13  Prefactor     12.822        20.196        .16487E-05   -.66934E-05
  14  Prefactor     18.386        28.041       -.99508E-06    .45945E-06
  15  Prefactor     8.1986        14.060       -.18308E-05   -.73745E-04
  16  norm          2.0126        2.0814        .50497E-07    .11612E-03
  17  norm          1.9084        3.3338       -.50035E-06   -.68329E-03
  18  Prefactor     3.4413        27.553       -.12199E-05   -.30700E-04
  19  norm          .10000E-03    13.099        .54384E-05** at limit **
  20  Prefactor     7.8016        293.07       -.39782E-04    .65408E-06
  21  norm          .10000E-03    .18376        .48277E-07** at limit **
  22  Prefactor     3.8833        7.8571       -.10886E-05   -.20312E-03
  23  Prefactor     .10000E-03    8.6945       -.50562E-05** at limit **
  24  norm          .10000E-03    .58841       -.82989E-07** at limit **
  25  Prefactor     .10000E-03    2.7752       -.30466E-06** at limit **
  26  Prefactor     20.061        26.291       -.11512E-05   -.48926E-05
  27  Prefactor     .10000E-03    16.967       -.87543E-05** at limit **
  28  norm          .10000E-03    24.110        .13550E-04** at limit **
  29  norm          1.1012        .31296        .41553E-06   -.29073E-02
  30  Prefactor     31.825        61.612       -.12658E-03   -.22127E-05
  31  Normalizat    1.5469        .22939        .21076E-05    .11156E-04
  32  Prefactor     .46843        .16198        .41499E-05    .83912E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.78131
  Prefactor  = 6.70302
  norm       = 7.26523
  Prefactor  = 3.17029
  Prefactor  = 17.3632
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.7782
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.8224
  Prefactor  = 18.3857
  Prefactor  = 8.1986
  norm       = 2.01258
  norm       = 1.90836
  Prefactor  = 3.44131
  norm       = 0.0001
  Prefactor  = 7.80165
  norm       = 0.0001
  Prefactor  = 3.88334
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.0615
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.10116
  Prefactor  = 31.8252
  Normalizat = 1.54685
  Prefactor  = 0.468429
 **********
 **   18 **HESSE 
 **********

 FCN=   5036.541     FROM HESSE     STATUS=OK           665 CALLS     5005 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7813        2.5478        .10470E-03   -1.5374    
   2  Prefactor     6.7030        20.001        .15498E-03   -1.5190    
   3  norm          7.2652        7.2731        .14879E-03   -1.5169    
   4  Prefactor     3.1703        5.7892        .18954E-03   -1.5352    
   5  Prefactor     17.363        28.934        .96085E-04   -1.4874    
   6  Prefactor     .10000E-03    6.8697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    36.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.1604        .15612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.778        19.171        .97749E-04   -1.4889    
  11  Prefactor     .10000E-03    18.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.3551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.822        20.178        .11188E-03   -1.4992    
  14  Prefactor     18.386        27.853        .93406E-04   -1.4850    
  15  Prefactor     8.1986        13.894        .14002E-03   -1.5135    
  16  norm          2.0126        2.0736        .94400E-04   -1.5424    
  17  norm          1.9084        3.2817        .15080E-03   -1.5432    
  18  Prefactor     3.4413        27.376        .21800E-03   -1.5337    
  19  norm          .10000E-03    13.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.8016        292.30        .14345E-03   -1.5149    
  21  norm          .10000E-03    .22428        .57950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.8833        7.8357        .20473E-03   -1.5314    
  23  Prefactor     .10000E-03    8.7256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .98090        .10515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.7815        .11545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     20.061        26.282        .89422E-04   -1.4812    
  27  Prefactor     .10000E-03    16.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    24.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.1012        .31310        .20096E-04   -1.5498    
  30  Prefactor     31.825        61.692        .35468E-03   -1.4579    
  31  Normalizat    1.5469        .27012        .23327E-03   -.76470    
  32  Prefactor     .46843        .18790        .29198E-03   -1.1345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.64444e-10
Minuit parameter uncertainties:
  1  2.54788
  2  20.0206
  3  7.27401
  4  5.79018
  5  28.9572
  6  6.54114e-06
  7  3.5258e-05
  8  7.29213e-07
  9  2.64837e-05
  10  19.1778
  11  2.58806e-05
  12  7.9327e-06
  13  20.1886
  14  27.8727
  15  13.8997
  16  2.07369
  17  3.282
  18  19.4241
  19  2.43916e-06
  20  96.0169
  21  7.39096e-07
  22  7.83776
  23  1.84421e-05
  24  1.86656e-05
  25  4.39144e-06
  26  26.2974
  27  2.42105e-06
  28  8.51553e-05
  29  0.313103
  30  61.8157
  31  0.270372
  32  0.188149
Done.

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

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  2.013e+00  2.074e+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:  4.684e-01  1.881e-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.547e+00  2.704e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.47
Ra Dec: 184.639 -1.327
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.30e-08 +/- 2.37e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.46e-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) = 5036.36855982
delta logL = 0.17243594093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5036.36514962
delta logL = 0.175846142573

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8431       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5225       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5550       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .46718       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=   5036.365     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8434        2.1855        .76803E-02   -.19360E-03
   2  alpha         1.5224        .73976        .46073       -.15655E-04
   3  Normalizat    1.5551        .21800        .52663E-01   -.14219E-05
   4  Prefactor     .46716        .15954        .66069E-01    .28687E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.84338
  alpha      = 1.5224
  Normalizat = 1.55509
  Prefactor  = 0.467157
 **********
 **   18 **HESSE 
 **********

 FCN=   5036.365     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .93E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8434        2.0400        .93888E-04   -1.5436    
   2  alpha         1.5224        .81125        .19007E-01   -.40176    
   3  Normalizat    1.5551        .25213        .23283E-03   -.76242    
   4  Prefactor     .46716        .18464        .29244E-03   -1.1351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.33651e-13
Minuit parameter uncertainties:
  1  2.04006
  2  0.829079
  3  0.252338
  4  0.184876
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/481275': 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) = 5036.36514959
delta logL = 0.175846173634

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  1.843e+00  2.040e+00  1.000e-04  1.000e+04 ( 1.000e-12)
336        alpha:  1.522e+00  8.291e-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:  4.672e-01  1.849e-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.555e+00  2.523e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.82
Ra Dec: 184.639 -1.327
Photon Index (Free Index): 1.52 +/- 0.83
Photon Flux (Free Index): 1.21e-08 +/- 1.80e-08
Energy Flux (Free Index): 2.22e-05 +/- 3.14e-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/481275/cmap_HighResolution_452390401_452649601_4FGL_J1218.5-0119_daily_bin822.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.30e-08', energy_flux2='2.22e-05', photon_flux_error='2.37e-08', dlogl='1.76e-01', energy_flux='1.42e-05', photon_flux2='1.21e-08', job_status='DONE', time_completed='2021-09-05 07:41:32.905553', photon_index_error2='0.83', photon_index2='1.52', ts='4.47', fit_tolerance='1e-08', GAL='0.47', photon_index_error='0.00', energy_flux_error2='3.14e-05', EG='1.55', time_epoch_completed='1630852892.91', return_code='0', job_id='481275', GAL2='0.47', EG2='1.56', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='1.80e-08', ts2='4.82', photon_index='2.02' WHERE bin_id='822' AND source_name='4FGL J1218.5-0119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 07:41:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 481275: <4FGL_J1218.5-0119_daily_bin822> in cluster <slac> Done

Job <4FGL_J1218.5-0119_daily_bin822> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 07:25:55 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 07:25:56 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:25:56 2021
Terminated at Sun Sep  5 07:41:33 2021
Results reported at Sun Sep  5 07:41:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.5-0119_daily_bin822 184.639 -1.327 452390401 452649601 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 :                                   719.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            938 sec.

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

