aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 224 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 = 7326
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J1218.5-0119_daily_bin1667
RA = 184.639, Dec = -1.327
tmin = 671414401, tmax = 671673601
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='477532', job_status='RUN', time_executed='2022-04-15 03:24:27.707162', time_epoch_executed='1650018267.71' WHERE source_name='4FGL J1218.5-0119' and cadence='daily' and bin_id='1667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/477532

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/477532/ft1_4FGL_J1218.5-0119_daily_bin1667.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/477532/ft2_4FGL_J1218.5-0119_daily_bin1667.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/477532/ft1_4FGL_J1218.5-0119_daily_bin1667.fits outfile=/scratch/kocevski/477532/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin1667.fits ra=184.639 dec=-1.327 rad=12.0 tmin=671414401.0 tmax=671673601.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.48
user 3.25
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/477532/ft2_4FGL_J1218.5-0119_daily_bin1667.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/477532/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin1667.fits evtable="EVENTS" outfile="/scratch/kocevski/477532/ft1_filtered_4FGL_J1218.5-0119_daily_bin1667.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.31
sys 0.17

Number of photons that the gtmktime cut: 574

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/477532/ft1_filtered_4FGL_J1218.5-0119_daily_bin1667.fits" evtable="EVENTS" scfile=/scratch/kocevski/477532/ft2_4FGL_J1218.5-0119_daily_bin1667.fits sctable="SC_DATA" outfile=/scratch/kocevski/477532/ltcube_671414401_671673601_4FGL_J1218.5-0119_daily_bin1667.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/477532/ft2_4FGL_J1218.5-0119_daily_bin1667.fits
.....................!
real 12.99
user 12.63
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/477532/ft1_filtered_4FGL_J1218.5-0119_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/477532/ft2_4FGL_J1218.5-0119_daily_bin1667.fits sctable="SC_DATA" expcube=/scratch/kocevski/477532/ltcube_671414401_671673601_4FGL_J1218.5-0119_daily_bin1667.fits outfile=/scratch/kocevski/477532/expmap_671414401_671673601_4FGL_J1218.5-0119_daily_bin1667.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/477532/ltcube_671414401_671673601_4FGL_J1218.5-0119_daily_bin1667.fits
.....................!
real 192.22
user 186.46
sys 4.89

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/477532/ft1_filtered_4FGL_J1218.5-0119_daily_bin1667.fits scfile=/scratch/kocevski/477532/ft2_4FGL_J1218.5-0119_daily_bin1667.fits outfile=/scratch/kocevski/477532/cmap_671414401_671673601_4FGL_J1218.5-0119_daily_bin1667.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.67
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/477532/ft1_filtered_4FGL_J1218.5-0119_daily_bin1667.fits scfile=/scratch/kocevski/477532/ft2_4FGL_J1218.5-0119_daily_bin1667.fits outfile=/scratch/kocevski/477532/cmap_HighResolution_671414401_671673601_4FGL_J1218.5-0119_daily_bin1667.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/477532/ft1_filtered_4FGL_J1218.5-0119_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/477532/ft2_4FGL_J1218.5-0119_daily_bin1667.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/477532/Model_4FGL_J1218.5-0119_daily_bin1667.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/477532/ft1_filtered_4FGL_J1218.5-0119_daily_bin1667.fits.....................!
real 53.87
user 52.53
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2781       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .65693       1.0000         .10000E-03   10000.    
     3 'norm      '    9.7030       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5188       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.016       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7051       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    41.960       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3196       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.2591       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .33340E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    107.47       1.0000         .10000E-03   10000.    
    24 'norm      '    1.7446       1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.763       1.0000         .10000E-03   10000.    
    26 'Prefactor '    61.528       1.0000         .10000E-03   10000.    
    27 'Prefactor '    44.770       1.0000         .10000E-03   10000.    
    28 'norm      '    7.8976       1.0000         .10000E-03   10000.    
    29 'norm      '    .83386       1.0000         .10000E-03   10000.    
    30 'Prefactor '    13.607       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.4419       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .91628       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=   6181.437     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     4340 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2780        2.4998        .61216E-07   -.14824E-04
   2  Prefactor     .55858        17.823        .45195E-05   -.12240E-03
   3  norm          9.7026        8.3363        .49894E-07    .51006E-05
   4  Prefactor     6.5186        5.7479       -.10526E-06   -.46055E-04
   5  Prefactor     31.016        30.927        .45258E-06    .41781E-04
   6  Prefactor     .10000E-03    13.868       -.39746E-06** at limit **
   7  Prefactor     5.7208        964.13       -.58981E-05   -.13832E-04
   8  Prefactor     .10000E-03    11.004        .87141E-07** at limit **
   9  Prefactor     .10000E-03    5.6074       -.96720E-06** at limit **
  10  Prefactor     .10000E-03    4.4635        .28118E-07** at limit **
  11  Prefactor     .10000E-03    14.515       -.13095E-06** at limit **
  12  Prefactor     41.943        45.449        .17561E-05    .91264E-04
  13  Prefactor     .10000E-03    33.114       -.90325E-06** at limit **
  14  Prefactor     .10000E-03    16.062       -.34172E-06** at limit **
  15  Prefactor     1.3213        26.469        .19901E-04   -.10315E-04
  16  norm          .10000E-03    1.1369       -.13175E-06** at limit **
  17  norm          .10000E-03    1.4845       -.43804E-06** at limit **
  18  Prefactor     .10000E-03    7.1079       -.35831E-07** at limit **
  19  norm          .10000E-03    11.994        .25832E-07** at limit **
  20  Prefactor     .10000E-03    33.814       -.45487E-07** at limit **
  21  norm          1.2591        .56296       -.10779E-06    .12657E-03
  22  Prefactor     .10000E-03    5.5878       -.73605E-06** at limit **
  23  Prefactor     107.47        29.418        .26155E-06    .16046E-04
  24  norm          1.7445        1.6376        .14109E-06    .16894E-03
  25  Prefactor     12.765        9.7458        .41425E-07    .57505E-05
  26  Prefactor     61.537        54.516       -.15707E-07   -.61784E-05
  27  Prefactor     44.792        39.166       -.47295E-06    .59045E-04
  28  norm          7.8954        29.640        .11705E-05    .24353E-04
  29  norm          .83385        .31128       -.17098E-07   -.33176E-02
  30  Prefactor     13.633        92.805       -.25937E-05   -.65460E-05
  31  Normalizat    1.4418        .25399       -.12121E-05    .16968E-03
  32  Prefactor     .91644        .18053       -.43189E-06    .16159E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.27796
  Prefactor  = 0.558581
  norm       = 9.70261
  Prefactor  = 6.51856
  Prefactor  = 31.0158
  Prefactor  = 0.0001
  Prefactor  = 5.72078
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.9433
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.32127
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.25908
  Prefactor  = 0.0001
  Prefactor  = 107.466
  norm       = 1.74447
  Prefactor  = 12.7655
  Prefactor  = 61.5368
  Prefactor  = 44.7918
  norm       = 7.89544
  norm       = 0.83385
  Prefactor  = 13.6327
  Normalizat = 1.44179
  Prefactor  = 0.916438
 **********
 **   18 **HESSE 
 **********

 FCN=   6181.437     FROM HESSE     STATUS=OK           659 CALLS     4999 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2780        2.4967        .12605E-03   -1.5406    
   2  Prefactor     .55858        123.00        .61362E-02   -1.5558    
   3  norm          9.7026        8.3228        .12865E-03   -1.5085    
   4  Prefactor     6.5186        5.7323        .15132E-03   -1.5197    
   5  Prefactor     31.016        30.871        .71945E-04   -1.4594    
   6  Prefactor     .10000E-03    13.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.7208        993.79        .16817E-03   -1.5230    
   8  Prefactor     .10000E-03    11.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.6917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.4665        .16222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     41.943        45.683        .61885E-04   -1.4412    
  13  Prefactor     .10000E-03    34.055        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.3213        26.798        .19156E-02   -1.5478    
  16  norm          .10000E-03    1.1522        .81981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.5242        .93718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.1087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    11.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    33.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.2591        .55722        .36876E-04   -1.5484    
  22  Prefactor     .10000E-03    16.857        .35859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     107.47        29.418        .38795E-04   -1.3631    
  24  norm          1.7445        1.6211        .91886E-04   -1.5444    
  25  Prefactor     12.765        9.7033        .11212E-03   -1.4993    
  26  Prefactor     61.537        54.596        .51154E-04   -1.4137    
  27  Prefactor     44.792        39.202        .29960E-03   -1.4368    
  28  norm          7.8954        29.595        .14268E-03   -1.5146    
  29  norm          .83385        .31136        .24872E-04   -1.5525    
  30  Prefactor     13.633        92.601        .10859E-03   -1.4969    
  31  Normalizat    1.4418        .29999        .29455E-03   -.79428    
  32  Prefactor     .91644        .21123        .27524E-03   -.95569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12247e-09
Minuit parameter uncertainties:
  1  2.49681
  2  16.6107
  3  8.3238
  4  5.73276
  5  30.8871
  6  6.99191e-05
  7  153.463
  8  2.13997e-05
  9  0.000174918
  10  2.39137e-06
  11  7.68432e-07
  12  45.7208
  13  0.000370648
  14  0.000178516
  15  11.9066
  16  1.42386e-05
  17  4.08071e-05
  18  7.56244e-06
  19  2.46847e-05
  20  1.60796e-05
  21  0.557224
  22  0.000178013
  23  29.4219
  24  1.62113
  25  9.70453
  26  54.6404
  27  39.2249
  28  29.6502
  29  0.311361
  30  71.2192
  31  0.300358
  32  0.211423
Done.

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

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  1.000e-04  1.424e-05  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.164e-01  2.114e-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.442e+00  3.004e-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: 5.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/477532/likelihoodResults_671414401_671673601_4FGL_J1218.5-0119_daily_bin1667.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) = 6181.4372705
delta logL = -0.000348245148416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6181.43691322
delta logL = 9.02917599888e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1853       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4418       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91647       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6181.437     FROM MIGRAD    STATUS=FAILED        97 CALLS      296 TOTAL
                     EDM=   .44E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10066E-03    75.774        .88024E-03** at limit **
   2  alpha         3.0713        3.2994        .50000        .11857E-04
   3  Normalizat    1.4418        .45237E-01    .29456E-03   -.16663E-03
   4  Prefactor     .91644        .34856E-01    .27524E-03   -.11297E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6181.437     FROM SIMPLEX   STATUS=UNCHANGED    137 CALLS      433 TOTAL
                     EDM=   .97E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10066E-03    75.774        .19824E-03** at limit **
   2  alpha         3.0713        3.2994        .60784E-04    .11857E-04
   3  Normalizat    1.4418        .45237E-01    .15358E-05   -.16663E-03
   4  Prefactor     .91644        .34856E-01    .11812E-05   -.11297E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6181.437     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      478 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    300.91        .17605E-03** at limit **
   2  alpha         2.9965        3.9916        .50000        .15880E-06
   3  Normalizat    1.4418        .13553        .58911E-04    .29653E-03
   4  Prefactor     .91644        .10375        .11010E-04    .38331E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.99654
  Normalizat = 1.44178
  Prefactor  = 0.91644
 **********
 **   18 **HESSE 
 **********

 FCN=   6181.437     FROM HESSE     STATUS=OK            29 CALLS      507 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6582        .35210E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.9965        2.9955        .50000        .19994    
   3  Normalizat    1.4418        .26561        .11782E-04   -.79428    
   4  Prefactor     .91644        .20469        .22019E-05   -.95569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35665e-10
Minuit parameter uncertainties:
  1  8.235e-06
  2  86.7239
  3  0.265869
  4  0.204859
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/477532': 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) = 6181.43691191
delta logL = 1.03409429357e-05

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  1.000e-04  8.235e-06  1.000e-04  1.000e+04 ( 1.000e-12)
336        alpha:  2.997e+00  8.672e+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.164e-01  2.049e-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.442e+00  2.659e-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/477532/cmap_HighResolution_671414401_671673601_4FGL_J1218.5-0119_daily_bin1667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.65e-05', job_status='DONE', photon_flux_upper_limit='5.91e-08', time_completed='2022-04-15 03:40:58.034872', job_id='477532', GAL2='0.92', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1650019258.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.03e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1667' AND source_name='4FGL J1218.5-0119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Apr 15 03:40:58 PDT 2022

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 477531: <4FGL_J1218.5-0119_daily_bin1667> in cluster <slac> Done

Job <4FGL_J1218.5-0119_daily_bin1667> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Apr 15 00:07:06 2022
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:20:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:20:35 2022
Terminated at Fri Apr 15 03:37:41 2022
Results reported at Fri Apr 15 03:37:41 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.5-0119_daily_bin1667 184.639 -1.327 671414401 671673601 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 :                                   985.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             295.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1026 sec.
    Turnaround time :                            12635 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0157>
Subject: Job 477532: <4FGL_J1218.5-0119_daily_bin1667> in cluster <slac> Done

Job <4FGL_J1218.5-0119_daily_bin1667> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Apr 15 00:07:06 2022
Job was executed on host(s) <bullet0157>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:20:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:20:35 2022
Terminated at Fri Apr 15 03:40:58 2022
Results reported at Fri Apr 15 03:40:58 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.5-0119_daily_bin1667 184.639 -1.327 671414401 671673601 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 :                                   989.10 sec.
    Max Memory :                                 1267 MB
    Average Memory :                             312.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3407 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1223 sec.
    Turnaround time :                            12832 sec.

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

