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


Performing analysis on: 4FGL_J1218.5-0119_daily_bin1171
RA = 184.639, Dec = -1.327
tmin = 542851201, tmax = 543110401
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='484117', job_status='RUN', time_executed='2021-09-05 07:39:40.843442', time_epoch_executed='1630852780.84' WHERE source_name='4FGL J1218.5-0119' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484117

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484117/ft1_4FGL_J1218.5-0119_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484117/ft2_4FGL_J1218.5-0119_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484117/ft1_4FGL_J1218.5-0119_daily_bin1171.fits outfile=/scratch/kocevski/484117/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin1171.fits ra=184.639 dec=-1.327 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.79
user 0.60
sys 0.14

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/484117/ft2_4FGL_J1218.5-0119_daily_bin1171.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/484117/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/484117/ft1_filtered_4FGL_J1218.5-0119_daily_bin1171.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.46
user 0.28
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/484117/ft1_filtered_4FGL_J1218.5-0119_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/484117/ft2_4FGL_J1218.5-0119_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/484117/ltcube_542851201_543110401_4FGL_J1218.5-0119_daily_bin1171.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/484117/ft2_4FGL_J1218.5-0119_daily_bin1171.fits
.....................!
real 1.89
user 1.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484117/ft1_filtered_4FGL_J1218.5-0119_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/484117/ft2_4FGL_J1218.5-0119_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/484117/ltcube_542851201_543110401_4FGL_J1218.5-0119_daily_bin1171.fits outfile=/scratch/kocevski/484117/expmap_542851201_543110401_4FGL_J1218.5-0119_daily_bin1171.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/484117/ltcube_542851201_543110401_4FGL_J1218.5-0119_daily_bin1171.fits
.....................!
real 192.64
user 187.85
sys 4.37

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/484117/ft1_filtered_4FGL_J1218.5-0119_daily_bin1171.fits scfile=/scratch/kocevski/484117/ft2_4FGL_J1218.5-0119_daily_bin1171.fits outfile=/scratch/kocevski/484117/cmap_542851201_543110401_4FGL_J1218.5-0119_daily_bin1171.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.59
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484117/ft1_filtered_4FGL_J1218.5-0119_daily_bin1171.fits scfile=/scratch/kocevski/484117/ft2_4FGL_J1218.5-0119_daily_bin1171.fits outfile=/scratch/kocevski/484117/cmap_HighResolution_542851201_543110401_4FGL_J1218.5-0119_daily_bin1171.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=184.639 yref=-1.327 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10713E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .22731E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    185.26       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12102E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    744.00       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11565E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18352E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .26124E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .24196E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .44462E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .28456E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    417.52       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .12543E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .15954E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10724E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .17332E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .18463E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    48.922       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10399E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2524.1       1.0000         .10000E-03   10000.    
    28 'norm      '    .20118E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    3.7777       1.0000         .10000E-03   10000.    
    30 'Prefactor '    485.16       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    .38446E-06   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=   105.3746     FROM MIGRAD    STATUS=CONVERGED    786 CALLS     5600 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.843       -.81510E-07** at limit **
   2  Prefactor     .10000E-03    666.48        .21456E-05** at limit **
   3  norm          185.21        195.90        .10811E-05    .56747E-05
   4  Prefactor     .10000E-03    65.351        .49675E-06** at limit **
   5  Prefactor     743.97        740.31        .32585E-06    .95819E-06
   6  Prefactor     .10000E-03    299.59       -.12066E-05** at limit **
   7  Prefactor     .10000E-03    1116.2        .55147E-05** at limit **
   8  Prefactor     .10000E-03    647.31       -.15838E-07** at limit **
   9  Prefactor     .10000E-03    83.844       -.99700E-06** at limit **
  10  Prefactor     .10000E-03    156.60        .51535E-06** at limit **
  11  Prefactor     .10000E-03    583.82       -.17632E-06** at limit **
  12  Prefactor     .10000E-03    647.16       -.34789E-05** at limit **
  13  Prefactor     .10000E-03    202.80       -.32370E-06** at limit **
  14  Prefactor     418.00        418.82        .21065E-07    .36343E-05
  15  Prefactor     .10000E-03    132.69       -.28841E-06** at limit **
  16  norm          .10000E-03    39.579       -.11657E-05** at limit **
  17  norm          .10000E-03    19.198       -.34024E-06** at limit **
  18  Prefactor     .10000E-03    253.61       -.99644E-06** at limit **
  19  norm          .10000E-03    282.88       -.12797E-05** at limit **
  20  Prefactor     .10000E-03    1127.9        .59750E-05** at limit **
  21  norm          .10000E-03    2.6030       -.15349E-06** at limit **
  22  Prefactor     48.944        122.87        .47899E-05    .26058E-04
  23  Prefactor     .10000E-03    171.37        .85518E-07** at limit **
  24  norm          .10000E-03    7.3351       -.23703E-07** at limit **
  25  Prefactor     .10000E-03    111.29       -.14495E-05** at limit **
  26  Prefactor     .10000E-03    188.07        .10468E-06** at limit **
  27  Prefactor     2527.6        1686.8        .22887E-05    .48723E-05
  28  norm          .10000E-03    321.00       -.17379E-05** at limit **
  29  norm          3.7529        10.946       -.89238E-06    .87015E-04
  30  Prefactor     489.86        5819.9        .22423E-04    .32082E-05
  31  Normalizat    .10000E-01    .50100       -.18607E-04** at limit **
  32  Prefactor     .27756E-14    .35585       -.10856E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 185.208
  Prefactor  = 0.0001
  Prefactor  = 743.97
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 418.004
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 48.944
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2527.56
  norm       = 0.0001
  norm       = 3.75286
  Prefactor  = 489.858
  Normalizat = 0.01
  Prefactor  = 2.77556e-15
 **********
 **   18 **HESSE 
 **********

 FCN=   105.3746     FROM HESSE     STATUS=OK           631 CALLS     6231 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.843        .70283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    666.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          185.21        196.04        .14832E-03   -1.2978    
   4  Prefactor     .10000E-03    65.348        .81314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     743.97        740.32        .76213E-04   -1.0183    
   6  Prefactor     .10000E-03    299.63        .17482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1117.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    647.32        .21447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    83.850        .92145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    156.60        .12608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    583.81        .21214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    645.73        .19885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    202.78        .14358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     418.00        419.32        .99989E-04   -1.1590    
  15  Prefactor     .10000E-03    132.71        .11602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    39.693        .63314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    19.192        .44037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    253.61        .16071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    282.89        .16982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1129.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.6044        .16215E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     48.944        126.16        .28666E-03   -1.4308    
  23  Prefactor     .10000E-03    171.36        .13193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    7.3350        .27218E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    111.23        .10620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    188.07        .13824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2527.6        1684.6        .46041E-04   -.51725    
  28  norm          .10000E-03    320.79        .18100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          3.7529        10.927        .23342E-04   -1.5320    
  30  Prefactor     489.86        5809.5        .93087E-04   -1.1244    
  31  Normalizat    .10000E-01    .50657        .22747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .27756E-14    .35725        .19075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94638e-11
Minuit parameter uncertainties:
  1  6.0509e-06
  2  0.000465538
  3  196.737
  4  2.33725e-05
  5  750.514
  6  0.000208768
  7  0.00212571
  8  3.71777e-05
  9  7.49155e-05
  10  6.44321e-05
  11  4.74976e-05
  12  0.000418287
  13  3.28536e-05
  14  422.45
  15  1.03199e-05
  16  4.55997e-05
  17  3.77233e-06
  18  0.000134832
  19  0.000184386
  20  0.00211304
  21  1.10581e-06
  22  126.854
  23  7.55801e-05
  24  6.11854e-08
  25  1.43214e-05
  26  2.02041e-05
  27  1729.91
  28  0.000180216
  29  10.9333
  30  3023.01
  31  3.01179e-07
  32  6.49183e-08
Done.

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

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  1.000e-04  4.560e-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:  2.776e-15  6.492e-08  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.000e-02  3.012e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 184.639 -1.327
Photon Flux Upper Limit: 1.68e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/484117/likelihoodResults_542851201_543110401_4FGL_J1218.5-0119_daily_bin1171.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 105.374706826
delta logL = -0.000118620009957

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 105.374588237
delta logL = -3.02374161265e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0193       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93384E-08   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=   105.3746     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      183 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    39.169        .90712E-02** at limit **
   2  alpha         2.0226        3.4236        .42157       -.42054E-06
   3  Normalizat    .10000E-01    .41861        .10325    ** at limit **
   4  Prefactor     .20461E-10    .31155        .86447E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.02258
  Normalizat = 0.01
  Prefactor  = 2.04614e-11
 **********
 **   18 **HESSE 
 **********

 FCN=   105.3746     FROM HESSE     STATUS=OK            29 CALLS      212 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    39.077        .63304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0226        3.4228        .50000       -.19215    
   3  Normalizat    .10000E-01    .42115        .22738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .20461E-10    .31258        .19071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.49074e-11
Minuit parameter uncertainties:
  1  0.000440505
  2  2.45405
  3  3.94131e-06
  4  5.08471e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484117': 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) = 105.374588206
delta logL = 3.93924892705e-11

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  1.000e-04  4.405e-04  1.000e-04  1.000e+04 ( 1.000e-12)
336        alpha:  2.023e+00  2.454e+00  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:  2.046e-11  5.085e-06  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.000e-02  3.941e-06  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/484117/cmap_HighResolution_542851201_543110401_4FGL_J1218.5-0119_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-03', job_status='DONE', photon_flux_upper_limit='1.68e-06', time_completed='2021-09-05 07:45:07.319251', job_id='484117', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630853107.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='3.94e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1171' AND source_name='4FGL J1218.5-0119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 07:45:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 484117: <4FGL_J1218.5-0119_daily_bin1171> in cluster <slac> Done

Job <4FGL_J1218.5-0119_daily_bin1171> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 07:35:47 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 07:35:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 07:35:49 2021
Terminated at Sun Sep  5 07:45:08 2021
Results reported at Sun Sep  5 07:45:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.5-0119_daily_bin1171 184.639 -1.327 542851201 543110401 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 :                                   319.67 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             246.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   558 sec.
    Turnaround time :                            561 sec.

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

