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


Performing analysis on: 4FGL_J1218.5-0119_daily_bin668
RA = 184.639, Dec = -1.327
tmin = 412473601, tmax = 412732801
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='481054', job_status='RUN', time_executed='2021-09-05 07:28:30.720047', time_epoch_executed='1630852110.72' WHERE source_name='4FGL J1218.5-0119' and cadence='daily' and bin_id='668'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/481054

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/481054/ft1_4FGL_J1218.5-0119_daily_bin668.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/481054/ft2_4FGL_J1218.5-0119_daily_bin668.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/481054/ft1_4FGL_J1218.5-0119_daily_bin668.fits outfile=/scratch/kocevski/481054/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin668.fits ra=184.639 dec=-1.327 rad=12.0 tmin=412473601.0 tmax=412732801.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.44
user 3.21
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/481054/ft1_filtered_4FGL_J1218.5-0119_daily_bin668.fits" evtable="EVENTS" scfile=/scratch/kocevski/481054/ft2_4FGL_J1218.5-0119_daily_bin668.fits sctable="SC_DATA" outfile=/scratch/kocevski/481054/ltcube_412473601_412732801_4FGL_J1218.5-0119_daily_bin668.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/481054/ft2_4FGL_J1218.5-0119_daily_bin668.fits
.....................!
real 12.35
user 11.98
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/481054/ft1_filtered_4FGL_J1218.5-0119_daily_bin668.fits evtable="EVENTS" scfile=/scratch/kocevski/481054/ft2_4FGL_J1218.5-0119_daily_bin668.fits sctable="SC_DATA" expcube=/scratch/kocevski/481054/ltcube_412473601_412732801_4FGL_J1218.5-0119_daily_bin668.fits outfile=/scratch/kocevski/481054/expmap_412473601_412732801_4FGL_J1218.5-0119_daily_bin668.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/481054/ltcube_412473601_412732801_4FGL_J1218.5-0119_daily_bin668.fits
.....................!
real 190.98
user 185.77
sys 4.54

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/481054/ft1_filtered_4FGL_J1218.5-0119_daily_bin668.fits scfile=/scratch/kocevski/481054/ft2_4FGL_J1218.5-0119_daily_bin668.fits outfile=/scratch/kocevski/481054/cmap_412473601_412732801_4FGL_J1218.5-0119_daily_bin668.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.64
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/481054/ft1_filtered_4FGL_J1218.5-0119_daily_bin668.fits scfile=/scratch/kocevski/481054/ft2_4FGL_J1218.5-0119_daily_bin668.fits outfile=/scratch/kocevski/481054/cmap_HighResolution_412473601_412732801_4FGL_J1218.5-0119_daily_bin668.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/481054/ft1_filtered_4FGL_J1218.5-0119_daily_bin668.fits', '/scratch/kocevski/481054/ft2_4FGL_J1218.5-0119_daily_bin668.fits', expMap='/scratch/kocevski/481054/expmap_412473601_412732801_4FGL_J1218.5-0119_daily_bin668.fits', expCube='/scratch/kocevski/481054/ltcube_412473601_412732801_4FGL_J1218.5-0119_daily_bin668.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/481054/Model_4FGL_J1218.5-0119_daily_bin668.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/481054/ft1_filtered_4FGL_J1218.5-0119_daily_bin668.fits
Spacecraft file(s): /scratch/kocevski/481054/ft2_4FGL_J1218.5-0119_daily_bin668.fits
Exposure map: /scratch/kocevski/481054/expmap_412473601_412732801_4FGL_J1218.5-0119_daily_bin668.fits
Exposure cube: /scratch/kocevski/481054/ltcube_412473601_412732801_4FGL_J1218.5-0119_daily_bin668.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/481054/Model_4FGL_J1218.5-0119_daily_bin668.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 511.637091164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 505.448378907

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92862       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .44764E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .11949E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12681E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7460       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13361E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.9082       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.8488       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    256.38       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1073       1.0000         .10000E-03   10000.    
    12 'Prefactor '    138.93       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .78572E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    118.54       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13057E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.908       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .27101E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .37908E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .29849       1.0000         .10000E-03   10000.    
    21 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .21214E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.3857       1.0000         .10000E-03   10000.    
    24 'norm      '    1.4785       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .15181E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    145.71       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.1803       1.0000         .10000E-03   10000.    
    28 'norm      '    .30562       1.0000         .10000E-03   10000.    
    29 'norm      '    .14809E-02   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.4393       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .69127       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .25260       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   505.4351     FROM MIGRAD    STATUS=CONVERGED    313 CALLS      686 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .92855        13.199        .12911E-01    .65500    
   2  Prefactor     .10000E-03    97.843        .96755E-02** at limit **
   3  norm          .10000E-03    136.94        .90827E-02** at limit **
   4  Prefactor     .10000E-03    128.18        .10299E-01** at limit **
   5  Prefactor     3.7460        1.0092         .0000         .0000    
   6  Prefactor     .10000E-03    .20571        .42274E-05** at limit **
   7  Prefactor     .10001E-03    .14154       -.74005E-04** at limit **
   8  Prefactor     .10964E-01    .43270E-01    .38865E-04   -.19979E-02
   9  Prefactor     .10000E-03    .20571        .35157E-05** at limit **
  10  Prefactor     245.76        .97961        .11672E-04   -.10163E-01
  11  Prefactor     .19642E-02    .27559E-01   -.32782E-04** at limit **
  12  Prefactor     142.57        1.0128        .12873E-04    .11891E-02
  13  Prefactor     .10000E-03    .27334        .31660E-04** at limit **
  14  Prefactor     117.80        .99693       -.73734E-04   -.18606E-02
  15  Prefactor     .10000E-03    .26462       -.32767E-05** at limit **
  16  norm          .10000E-03    .20571       -.91147E-06** at limit **
  17  norm          11.900        1.0005        .98300E-05    .18014E-03
  18  Prefactor     .10000E-03    .28708       -.97112E-05** at limit **
  19  norm          .10000E-03    .21210       -.11736E-04** at limit **
  20  Prefactor     .10000E-03    .27135       -.50281E-04** at limit **
  21  norm          .10000E-03    .20571        .17425E-06** at limit **
  22  Prefactor     .10000E-03    .20571       -.50136E-05** at limit **
  23  Prefactor     4.3857        1.0066         .0000         .0000    
  24  norm          1.4825        1.0746        .11691E-04    .27527E-03
  25  Prefactor     .10000E-03    .20571        .93594E-05** at limit **
  26  Prefactor     144.96        .99746       -.63626E-05    .61076E-02
  27  Prefactor     .33021E-01    .73249E-01    .83332E-04    .17269E-02
  28  norm          .10000E-03    .27299        .24733E-04** at limit **
  29  norm          .10000E-03    .26216       -.10579E-04** at limit **
  30  Prefactor     .10000E-03    .20210        .11608E-04** at limit **
  31  Normalizat    .68907        1.0293        .31545E-04    .11097E-03
  32  Prefactor     .25378        .55518       -.29120E-04    .12689E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.928545
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.746
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0109637
  Prefactor  = 0.0001
  Prefactor  = 245.761
  Prefactor  = 0.00196415
  Prefactor  = 142.571
  Prefactor  = 0.000100002
  Prefactor  = 117.805
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.8997
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.38571
  norm       = 1.48247
  Prefactor  = 0.0001
  Prefactor  = 144.962
  Prefactor  = 0.0330212
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.689067
  Prefactor  = 0.253783
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   505.4351     FROM HESSE     STATUS=FAILED        17 CALLS      703 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .92855        13.199        .12911E-01   -1.5515    
   2  Prefactor     .10000E-03    97.843        .96755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    136.94        .90827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    128.18        .10299E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     545.08        541.27         .0000       -1.5321    
   6  Prefactor     .10000E-03    .20571        .42274E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    .14154       -.74005E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10964E-01    .43270E-01    .38865E-04   -1.5729    
   9  Prefactor     .10000E-03    .20571        .35157E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     245.76        .97961        .11672E-04   -1.2560    
  11  Prefactor     .19642E-02    .27559E-01   -.32782E-04   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     142.57        1.0128        .12873E-04   -1.3314    
  13  Prefactor     .10000E-03    .27334        .31660E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     117.80        .99693       -.73734E-04   -1.3533    
  15  Prefactor     .10000E-03    .26462       -.32767E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .20571       -.91147E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.900        1.0005        .98300E-05   -1.5018    
  18  Prefactor     .10000E-03    .28708       -.97112E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .21210       -.11736E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .27135       -.50281E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .20571        .17425E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .20571       -.50136E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.3857        1.0066         .0000       -1.5289    
  24  norm          1.4825        1.0746        .11691E-04   -1.5464    
  25  Prefactor     .10000E-03    .20571        .93594E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     144.96        .99746       -.63626E-05   -1.3294    
  27  Prefactor     .33021E-01    .73249E-01    .83332E-04   -1.5672    
  28  norm          .10000E-03    .27299        .24733E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    .26216       -.10579E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    .20210        .11608E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .68907        1.0293        .31545E-04   -1.0433    
  32  Prefactor     .25378        .55518       -.29120E-04   -1.2508    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.63526e-10
Minuit parameter uncertainties:
  1  7.00323
  2  0.000821256
  3  4.93529e-06
  4  0.000221061
  5  1.0092
  6  4.65526e-06
  7  7.12442e-05
  8  0.0432701
  9  3.88536e-06
  10  0.979609
  11  0.0143351
  12  1.01284
  13  4.08766e-05
  14  0.996929
  15  4.22295e-06
  16  1.011e-06
  17  1.00052
  18  1.26349e-05
  19  1.34991e-05
  20  6.4797e-05
  21  1.98799e-07
  22  5.6047e-06
  23  1.00665
  24  1.07462
  25  1.04566e-05
  26  0.997458
  27  0.0732493
  28  3.20498e-05
  29  1.34718e-05
  30  1.39536e-06
  31  1.06046
  32  0.567408
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 505.435145078

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  1.000e-04  1.011e-06  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.538e-01  5.674e-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:  6.891e-01  1.060e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 184.639 -1.327
Photon Flux Upper Limit: 3.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.95e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/481054/likelihoodResults_412473601_412732801_4FGL_J1218.5-0119_daily_bin668.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) = 505.435203033
delta logL = -5.79549196686e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 505.435144965
delta logL = 1.13572809823e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9904       1.0000          .0000       5.0000    
     3 'Normalizat'    .68883       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .25400       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=   505.4351     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      235 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    563.20        .47889E-02** at limit **
   2  alpha         1.4470        3.6880        .16915        .87181E-07
   3  Normalizat    .68908        .13715        .23156E-03    .10583E-02
   4  Prefactor     .25380        .10913        .29546E-03    .89305E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.44704
  Normalizat = 0.689077
  Prefactor  = 0.253798
 **********
 **   18 **HESSE 
 **********

 FCN=   505.4351     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.6587        .52243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4470        2.7090        .67660E-02   -.43475    
   3  Normalizat    .68908        .62227        .46312E-04   -1.0433    
   4  Prefactor     .25380        .49208        .59092E-04   -1.2508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46871e-08
Minuit parameter uncertainties:
  1  0.000161171
  2  285.375
  3  0.6288
  4  0.500489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/481054': 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) = 505.435143079
delta logL = 1.99928769007e-06

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  1.000e-04  1.612e-04  1.000e-04  1.000e+04 ( 1.000e-12)
336        alpha:  1.447e+00  2.854e+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:  2.538e-01  5.005e-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:  6.891e-01  6.288e-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/481054/cmap_HighResolution_412473601_412732801_4FGL_J1218.5-0119_daily_bin668.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.95e-04', job_status='DONE', photon_flux_upper_limit='3.16e-07', time_completed='2021-09-05 07:34:05.785313', job_id='481054', GAL2='0.25', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1630852445.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.25', dlogl='2.00e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='668' AND source_name='4FGL J1218.5-0119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 07:34:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 481054: <4FGL_J1218.5-0119_daily_bin668> in cluster <slac> Done

Job <4FGL_J1218.5-0119_daily_bin668> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 07:25:36 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 07:25:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 07:25:37 2021
Terminated at Sun Sep  5 07:34:06 2021
Results reported at Sun Sep  5 07:34:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.5-0119_daily_bin668 184.639 -1.327 412473601 412732801 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 :                                   334.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             372.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   509 sec.
    Turnaround time :                            510 sec.

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

