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


Performing analysis on: 4FGL_J1218.5-0119_daily_bin944
RA = 184.639, Dec = -1.327
tmin = 484012801, tmax = 484272001
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='482505', job_status='RUN', time_executed='2021-09-05 07:31:46.889754', time_epoch_executed='1630852306.89' WHERE source_name='4FGL J1218.5-0119' and cadence='daily' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/482505

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/482505/ft1_4FGL_J1218.5-0119_daily_bin944.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/482505/ft2_4FGL_J1218.5-0119_daily_bin944.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/482505/ft1_4FGL_J1218.5-0119_daily_bin944.fits outfile=/scratch/kocevski/482505/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin944.fits ra=184.639 dec=-1.327 rad=12.0 tmin=484012801.0 tmax=484272001.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.41
user 3.17
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/482505/ft1_filtered_4FGL_J1218.5-0119_daily_bin944.fits" evtable="EVENTS" scfile=/scratch/kocevski/482505/ft2_4FGL_J1218.5-0119_daily_bin944.fits sctable="SC_DATA" outfile=/scratch/kocevski/482505/ltcube_484012801_484272001_4FGL_J1218.5-0119_daily_bin944.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/482505/ft2_4FGL_J1218.5-0119_daily_bin944.fits
.....................!
real 12.13
user 11.79
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/482505/ft1_filtered_4FGL_J1218.5-0119_daily_bin944.fits evtable="EVENTS" scfile=/scratch/kocevski/482505/ft2_4FGL_J1218.5-0119_daily_bin944.fits sctable="SC_DATA" expcube=/scratch/kocevski/482505/ltcube_484012801_484272001_4FGL_J1218.5-0119_daily_bin944.fits outfile=/scratch/kocevski/482505/expmap_484012801_484272001_4FGL_J1218.5-0119_daily_bin944.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/482505/ltcube_484012801_484272001_4FGL_J1218.5-0119_daily_bin944.fits
.....................!
real 192.07
user 185.54
sys 5.58

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/482505/ft1_filtered_4FGL_J1218.5-0119_daily_bin944.fits scfile=/scratch/kocevski/482505/ft2_4FGL_J1218.5-0119_daily_bin944.fits outfile=/scratch/kocevski/482505/cmap_484012801_484272001_4FGL_J1218.5-0119_daily_bin944.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/482505/ft1_filtered_4FGL_J1218.5-0119_daily_bin944.fits scfile=/scratch/kocevski/482505/ft2_4FGL_J1218.5-0119_daily_bin944.fits outfile=/scratch/kocevski/482505/cmap_HighResolution_484012801_484272001_4FGL_J1218.5-0119_daily_bin944.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/482505/ft1_filtered_4FGL_J1218.5-0119_daily_bin944.fits evtable="EVENTS" scfile=/scratch/kocevski/482505/ft2_4FGL_J1218.5-0119_daily_bin944.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/482505/Model_4FGL_J1218.5-0119_daily_bin944.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/482505/ft1_filtered_4FGL_J1218.5-0119_daily_bin944.fits.....................!
real 45.20
user 43.85
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .94857       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.8128       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .78554       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    88.828       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.498       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8959       1.0000         .10000E-03   10000.    
    16 'norm      '    .10164E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.1855       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.366       1.0000         .10000E-03   10000.    
    24 'norm      '    6.2346       1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.895       1.0000         .10000E-03   10000.    
    26 'Prefactor '    49.550       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .69805       1.0000         .10000E-03   10000.    
    30 'Prefactor '    125.86       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1972       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .71889       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=   5061.647     FROM MIGRAD    STATUS=CONVERGED    847 CALLS     4442 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94912        2.3908        .33426E-06    .93286E-04
   2  Prefactor     8.8122        27.477        .59780E-06    .16748E-07
   3  norm          .10000E-03    2.5483       -.74698E-08** at limit **
   4  Prefactor     .10000E-03    2.5489        .29795E-07** at limit **
   5  Prefactor     .94169        41.764        .15396E-04   -.28507E-03
   6  Prefactor     .10000E-03    39.655       -.90293E-06** at limit **
   7  Prefactor     .10000E-03    66.621       -.12607E-05** at limit **
   8  Prefactor     .10000E-03    10.691       -.28739E-06** at limit **
   9  Prefactor     .10000E-03    2.9069       -.16744E-07** at limit **
  10  Prefactor     .10000E-03    5.0392       -.38152E-07** at limit **
  11  Prefactor     88.829        45.543        .87584E-07   -.15991E-04
  12  Prefactor     .10000E-03    38.969       -.22031E-05** at limit **
  13  Prefactor     11.501        19.114       -.49607E-06   -.58376E-06
  14  Prefactor     .10000E-03    12.057       -.54827E-06** at limit **
  15  Prefactor     2.8934        8.5117        .72429E-05    .52834E-03
  16  norm          .10000E-03    1.7140       -.75937E-08** at limit **
  17  norm          .10000E-03    1.8727       -.61124E-07** at limit **
  18  Prefactor     .10000E-03    134.06        .28329E-05** at limit **
  19  norm          .10000E-03    13.440        .85441E-08** at limit **
  20  Prefactor     .10000E-03    73.522       -.49996E-05** at limit **
  21  norm          1.1856        .59194       -.63575E-07   -.31743E-03
  22  Prefactor     .10000E-03    11.059        .61007E-06** at limit **
  23  Prefactor     23.369        19.591        .43939E-06   -.12109E-04
  24  norm          6.2350        2.4446        .85460E-07   -.54865E-04
  25  Prefactor     13.896        10.067       -.12496E-06   -.22264E-03
  26  Prefactor     49.553        49.081       -.25128E-06   -.34099E-04
  27  Prefactor     .10000E-03    43.781        .34708E-05** at limit **
  28  norm          .10000E-03    15.193        .26544E-06** at limit **
  29  norm          .69808        .27085       -.14768E-08   -.19755E-02
  30  Prefactor     125.87        101.11       -.10459E-05   -.29523E-04
  31  Normalizat    1.1972        .21902       -.53707E-06   -.22573E-03
  32  Prefactor     .71885        .16317       -.99086E-06   -.21175E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.949123
  Prefactor  = 8.81218
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.94169
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 88.8292
  Prefactor  = 0.0001
  Prefactor  = 11.5013
  Prefactor  = 0.0001
  Prefactor  = 2.89345
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.18556
  Prefactor  = 0.0001
  Prefactor  = 23.3687
  norm       = 6.23496
  Prefactor  = 13.8957
  Prefactor  = 49.5532
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.698079
  Prefactor  = 125.866
  Normalizat = 1.19716
  Prefactor  = 0.718846
 **********
 **   18 **HESSE 
 **********

 FCN=   5061.647     FROM HESSE     STATUS=OK           649 CALLS     5091 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94912        2.3396        .16767E-03   -1.5513    
   2  Prefactor     8.8122        27.477        .13502E-03   -1.5114    
   3  norm          .10000E-03    2.5563        .11089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.5925        .11069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .94169        93.643        .54963E-02   -1.5514    
   6  Prefactor     .10000E-03    40.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    66.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.9136        .11845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.0582        .15597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     88.829        45.535        .42631E-04   -1.3820    
  12  Prefactor     .10000E-03    39.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.501        19.153        .11815E-03   -1.5030    
  14  Prefactor     .10000E-03    12.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.8934        9.3987        .11940E-02   -1.5368    
  16  norm          .10000E-03    1.7766        .18238E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.9560        .18976E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    135.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    13.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    73.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1856        .58692        .35555E-04   -1.5490    
  22  Prefactor     .10000E-03    11.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     23.369        19.595        .82865E-04   -1.4741    
  24  norm          6.2350        2.4463        .64056E-04   -1.5209    
  25  Prefactor     13.896        10.065        .10745E-03   -1.4962    
  26  Prefactor     49.553        49.078        .56969E-04   -1.4299    
  27  Prefactor     .10000E-03    43.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    15.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .69808        .27016        .21883E-04   -1.5541    
  30  Prefactor     125.87        101.19        .35882E-04   -1.3459    
  31  Normalizat    1.1972        .25361        .26150E-03   -.86691    
  32  Prefactor     .71885        .18810        .24994E-03   -1.0279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30748e-09
Minuit parameter uncertainties:
  1  2.3398
  2  27.5166
  3  4.82611e-06
  4  1.4247e-05
  5  18.8105
  6  5.51851e-05
  7  9.5521e-05
  8  1.04941e-05
  9  1.99732e-06
  10  7.70447e-06
  11  45.5534
  12  8.14816e-05
  13  19.1633
  14  2.03832e-05
  15  9.4035
  16  1.35301e-05
  17  5.81358e-06
  18  0.000784811
  19  3.63046e-06
  20  0.000352238
  21  0.586926
  22  5.10612e-06
  23  19.6
  24  2.44638
  25  10.0665
  26  49.1184
  27  0.000138622
  28  3.58415e-05
  29  0.270164
  30  101.334
  31  0.253871
  32  0.188271
Done.

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

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  1.000e-04  1.353e-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:  7.188e-01  1.883e-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.197e+00  2.539e-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: 6.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/482505/likelihoodResults_484012801_484272001_4FGL_J1218.5-0119_daily_bin944.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) = 5061.64935107
delta logL = -0.00267413385518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5061.64667708
delta logL = -1.42492353916e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5061.647     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      243 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    265.10        .18371E-02** at limit **
   2  alpha         1.8381        3.4180        .16882        .61294E-07
   3  Normalizat    1.1972        .81877E-01    .26150E-03    .14618E-03
   4  Prefactor     .71885        .62590E-01    .24994E-03    .14246E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.83812
  Normalizat = 1.19716
  Prefactor  = 0.718846
 **********
 **   18 **HESSE 
 **********

 FCN=   5061.647     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8886        .36742E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8381        3.4003        .33764E-01   -.26795    
   3  Normalizat    1.1972        .24027        .52301E-04   -.86691    
   4  Prefactor     .71885        .18355        .99977E-05   -1.0279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08812e-11
Minuit parameter uncertainties:
  1  1.45725e-06
  2  109.591
  3  0.240487
  4  0.183706
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/482505': 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) = 5061.64667551
delta logL = 1.43071611092e-06

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  1.000e-04  1.457e-06  1.000e-04  1.000e+04 ( 1.000e-12)
336        alpha:  1.838e+00  1.096e+02  0.000e+00  5.000e+00 ( 1.000e+00)
337         beta:  9.844e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  1.224e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  7.188e-01  1.837e-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.197e+00  2.405e-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/482505/cmap_HighResolution_484012801_484272001_4FGL_J1218.5-0119_daily_bin944.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.94e-05', job_status='DONE', photon_flux_upper_limit='6.39e-08', time_completed='2021-09-05 07:46:13.762478', job_id='482505', GAL2='0.72', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1630853173.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.43e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='944' AND source_name='4FGL J1218.5-0119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 07:46:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 482505: <4FGL_J1218.5-0119_daily_bin944> in cluster <slac> Done

Job <4FGL_J1218.5-0119_daily_bin944> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 07:31:02 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 07:31:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 07:31:04 2021
Terminated at Sun Sep  5 07:46:14 2021
Results reported at Sun Sep  5 07:46:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.5-0119_daily_bin944 184.639 -1.327 484012801 484272001 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 :                                   852.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

