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


Performing analysis on: 4FGL_J1218.5-0119_daily_bin1429
RA = 184.639, Dec = -1.327
tmin = 609724801, tmax = 609984001
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='486193', job_status='RUN', time_executed='2021-09-05 07:45:16.802130', time_epoch_executed='1630853116.8' WHERE source_name='4FGL J1218.5-0119' and cadence='daily' and bin_id='1429'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/486193

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/486193/ft1_4FGL_J1218.5-0119_daily_bin1429.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/486193/ft2_4FGL_J1218.5-0119_daily_bin1429.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/486193/ft1_4FGL_J1218.5-0119_daily_bin1429.fits outfile=/scratch/kocevski/486193/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin1429.fits ra=184.639 dec=-1.327 rad=12.0 tmin=609724801.0 tmax=609984001.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.96
user 2.37
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/486193/ft1_filtered_4FGL_J1218.5-0119_daily_bin1429.fits" evtable="EVENTS" scfile=/scratch/kocevski/486193/ft2_4FGL_J1218.5-0119_daily_bin1429.fits sctable="SC_DATA" outfile=/scratch/kocevski/486193/ltcube_609724801_609984001_4FGL_J1218.5-0119_daily_bin1429.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/486193/ft2_4FGL_J1218.5-0119_daily_bin1429.fits
.....................!
real 13.01
user 12.08
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/486193/ft1_filtered_4FGL_J1218.5-0119_daily_bin1429.fits evtable="EVENTS" scfile=/scratch/kocevski/486193/ft2_4FGL_J1218.5-0119_daily_bin1429.fits sctable="SC_DATA" expcube=/scratch/kocevski/486193/ltcube_609724801_609984001_4FGL_J1218.5-0119_daily_bin1429.fits outfile=/scratch/kocevski/486193/expmap_609724801_609984001_4FGL_J1218.5-0119_daily_bin1429.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/486193/ltcube_609724801_609984001_4FGL_J1218.5-0119_daily_bin1429.fits
.....................!
real 193.20
user 185.57
sys 4.09

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/486193/ft1_filtered_4FGL_J1218.5-0119_daily_bin1429.fits scfile=/scratch/kocevski/486193/ft2_4FGL_J1218.5-0119_daily_bin1429.fits outfile=/scratch/kocevski/486193/cmap_609724801_609984001_4FGL_J1218.5-0119_daily_bin1429.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.97
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/486193/ft1_filtered_4FGL_J1218.5-0119_daily_bin1429.fits scfile=/scratch/kocevski/486193/ft2_4FGL_J1218.5-0119_daily_bin1429.fits outfile=/scratch/kocevski/486193/cmap_HighResolution_609724801_609984001_4FGL_J1218.5-0119_daily_bin1429.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.86
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3654       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.4091       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    238.32       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    138.18       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16698E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    212.23       1.0000         .10000E-03   10000.    
    21 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.1882       1.0000         .10000E-03   10000.    
    25 'Prefactor '    65.967       1.0000         .10000E-03   10000.    
    26 'Prefactor '    28.884       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11158E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .31449E-02   1.0000         .10000E-03   10000.    
    29 'norm      '    1.1875       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .11614E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .73729       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .78250       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=   1508.231     FROM MIGRAD    STATUS=CONVERGED    830 CALLS     4352 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3652        4.9769       -.49237E-08   -.29913E-06
   2  Prefactor     .10000E-03    180.62       -.21521E-06** at limit **
   3  norm          .10000E-03    9.5694       -.12242E-05** at limit **
   4  Prefactor     5.4095        9.1007        .16957E-06   -.18126E-04
   5  Prefactor     .10000E-03    33.233       -.66491E-06** at limit **
   6  Prefactor     .10000E-03    34.994       -.29855E-07** at limit **
   7  Prefactor     238.32        182.97       -.25776E-06    .64953E-06
   8  Prefactor     .10000E-03    52.287       -.36768E-06** at limit **
   9  Prefactor     .10000E-03    23.461        .25450E-06** at limit **
  10  Prefactor     138.17        65.266       -.52343E-07   -.84602E-05
  11  Prefactor     .10000E-03    59.495       -.17494E-06** at limit **
  12  Prefactor     .10000E-03    59.156        .24475E-06** at limit **
  13  Prefactor     .10000E-03    331.25        .64679E-06** at limit **
  14  Prefactor     .10000E-03    26.512        .81455E-07** at limit **
  15  Prefactor     .10000E-03    13.902        .13100E-06** at limit **
  16  norm          .10000E-03    7.3219        .34304E-06** at limit **
  17  norm          .10000E-03    2.8185        .37911E-07** at limit **
  18  Prefactor     .10000E-03    64.195        .37503E-07** at limit **
  19  norm          .10000E-03    34.110        .12019E-07** at limit **
  20  Prefactor     212.20        270.98       -.46569E-06   -.22582E-05
  21  norm          .10000E-03    .80442        .12133E-06** at limit **
  22  Prefactor     .10000E-03    55.875        .18866E-05** at limit **
  23  Prefactor     .10000E-03    76.706       -.13786E-06** at limit **
  24  norm          7.1872        4.4535        .21955E-08   -.33320E-04
  25  Prefactor     66.028        59.449       -.43469E-05    .67962E-06
  26  Prefactor     28.834        202.02       -.24352E-07   -.51383E-05
  27  Prefactor     .10000E-03    295.88        .66275E-06** at limit **
  28  norm          .10001E-03    903.35        .15853E-04** at limit **
  29  norm          1.1876        1.5883       -.16912E-07   -.50519E-04
  30  Prefactor     .10000E-03    395.83        .12238E-07** at limit **
  31  Normalizat    .73746        .38824       -.93228E-06    .70115E-06
  32  Prefactor     .78243        .29931        .14094E-05   -.32155E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.36523
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.40953
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 238.324
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 138.166
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 212.197
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.18724
  Prefactor  = 66.0278
  Prefactor  = 28.8341
  Prefactor  = 0.0001
  norm       = 0.000100007
  norm       = 1.18759
  Prefactor  = 0.0001
  Normalizat = 0.737456
  Prefactor  = 0.782425
 **********
 **   18 **HESSE 
 **********

 FCN=   1508.231     FROM HESSE     STATUS=OK           649 CALLS     5001 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3652        4.9759        .87575E-04   -1.5290    
   2  Prefactor     .10000E-03    182.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    9.5467        .11696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.4095        9.0774        .14366E-03   -1.5243    
   5  Prefactor     .10000E-03    33.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    34.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     238.32        183.33        .13113E-03   -1.2608    
   8  Prefactor     .10000E-03    52.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     138.17        65.240        .17133E-03   -1.3352    
  11  Prefactor     .10000E-03    59.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    59.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    336.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.915        .14146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.4635        .10256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.8282        .63653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    64.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    34.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     212.20        270.96        .13877E-03   -1.2784    
  21  norm          .10000E-03    .84109        .67880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    56.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    76.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.1872        4.4526        .58320E-04   -1.5172    
  25  Prefactor     66.028        59.982        .49413E-04   -1.4081    
  26  Prefactor     28.834        201.05        .74546E-04   -1.4634    
  27  Prefactor     .10000E-03    295.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10001E-03    947.73        .19777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.1876        1.5592        .54356E-04   -1.5490    
  30  Prefactor     .10000E-03    395.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .73746        .44086        .31235E-03   -1.0243    
  32  Prefactor     .78243        .33934        .11822E-02   -1.0038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99979e-11
Minuit parameter uncertainties:
  1  4.97636
  2  0.000210737
  3  1.18474e-05
  4  9.07974
  5  3.36146e-05
  6  3.95997e-05
  7  183.776
  8  1.03538e-06
  9  2.65954e-05
  10  65.2742
  11  3.70668e-05
  12  1.80635e-05
  13  0.000182008
  14  8.93971e-06
  15  3.34889e-06
  16  1.2768e-06
  17  6.06906e-07
  18  2.74846e-06
  19  5.27196e-06
  20  272.587
  21  4.43222e-06
  22  0.00019807
  23  0.000144674
  24  4.45284
  25  60.0374
  26  153.018
  27  0.000509958
  28  0.00510155
  29  1.5593
  30  0.00052735
  31  0.443008
  32  0.340251
Done.

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

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  1.000e-04  1.277e-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:  7.824e-01  3.403e-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:  7.375e-01  4.430e-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: 2.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.30e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/486193/likelihoodResults_609724801_609984001_4FGL_J1218.5-0119_daily_bin1429.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) = 1508.23153554
delta logL = -0.000637176482769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1508.23089838
delta logL = -1.62503965839e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0291       1.0000          .0000       5.0000    
     3 'Normalizat'    .73745       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78247       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=   1508.231     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      244 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    437.38        .10271E-02** at limit **
   2  alpha         2.1331        2.5222        .50000        .44952E-07
   3  Normalizat    .73745        .78082E-01    .31235E-03   -.21784E-04
   4  Prefactor     .78243        .61245E-01    .23643E-03   -.24511E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.13311
  Normalizat = 0.737454
  Prefactor  = 0.782426
 **********
 **   18 **HESSE 
 **********

 FCN=   1508.231     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1438.9        .20543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1331        3.8599        .50000       -.14729    
   3  Normalizat    .73745        .21166        .12494E-04   -1.0243    
   4  Prefactor     .78243        .16608        .94573E-05   -1.0038    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24044e-09
Minuit parameter uncertainties:
  1  0.000142869
  2  2451.59
  3  0.211895
  4  0.166181
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/486193': 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): 102
logL (Free Index) = 1508.23089826
delta logL = 1.07285586637e-07

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  1.000e-04  1.429e-04  1.000e-04  1.000e+04 ( 1.000e-12)
336        alpha:  2.133e+00  2.452e+03  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.824e-01  1.662e-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:  7.375e-01  2.119e-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/486193/cmap_HighResolution_609724801_609984001_4FGL_J1218.5-0119_daily_bin1429.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-04', job_status='DONE', photon_flux_upper_limit='2.10e-07', time_completed='2021-09-05 07:57:13.546641', job_id='486193', GAL2='0.78', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1630853833.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1429' AND source_name='4FGL J1218.5-0119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 07:57:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 486193: <4FGL_J1218.5-0119_daily_bin1429> in cluster <slac> Done

Job <4FGL_J1218.5-0119_daily_bin1429> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sun Sep  5 07:40:50 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 07:40:52 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:40:52 2021
Terminated at Sun Sep  5 07:57:14 2021
Results reported at Sun Sep  5 07:57:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.5-0119_daily_bin1429 184.639 -1.327 609724801 609984001 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 :                                   456.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             200.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            984 sec.

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

