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


Performing analysis on: 4FGL_J1218.5-0119_daily_bin748
RA = 184.639, Dec = -1.327
tmin = 433209601, tmax = 433468801
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='481178', job_status='RUN', time_executed='2021-09-05 07:26:07.698835', time_epoch_executed='1630851967.7' WHERE source_name='4FGL J1218.5-0119' and cadence='daily' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/481178

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/481178/ft1_4FGL_J1218.5-0119_daily_bin748.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/481178/ft2_4FGL_J1218.5-0119_daily_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/481178/ft1_4FGL_J1218.5-0119_daily_bin748.fits outfile=/scratch/kocevski/481178/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin748.fits ra=184.639 dec=-1.327 rad=12.0 tmin=433209601.0 tmax=433468801.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 6.01
user 5.74
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/481178/ft1_filtered_4FGL_J1218.5-0119_daily_bin748.fits" evtable="EVENTS" scfile=/scratch/kocevski/481178/ft2_4FGL_J1218.5-0119_daily_bin748.fits sctable="SC_DATA" outfile=/scratch/kocevski/481178/ltcube_433209601_433468801_4FGL_J1218.5-0119_daily_bin748.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/481178/ft2_4FGL_J1218.5-0119_daily_bin748.fits
.....................!
real 12.31
user 11.94
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/481178/ft1_filtered_4FGL_J1218.5-0119_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/481178/ft2_4FGL_J1218.5-0119_daily_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/481178/ltcube_433209601_433468801_4FGL_J1218.5-0119_daily_bin748.fits outfile=/scratch/kocevski/481178/expmap_433209601_433468801_4FGL_J1218.5-0119_daily_bin748.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/481178/ltcube_433209601_433468801_4FGL_J1218.5-0119_daily_bin748.fits
.....................!
real 190.64
user 185.87
sys 4.30

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/481178/ft1_filtered_4FGL_J1218.5-0119_daily_bin748.fits scfile=/scratch/kocevski/481178/ft2_4FGL_J1218.5-0119_daily_bin748.fits outfile=/scratch/kocevski/481178/cmap_433209601_433468801_4FGL_J1218.5-0119_daily_bin748.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/481178/ft1_filtered_4FGL_J1218.5-0119_daily_bin748.fits scfile=/scratch/kocevski/481178/ft2_4FGL_J1218.5-0119_daily_bin748.fits outfile=/scratch/kocevski/481178/cmap_HighResolution_433209601_433468801_4FGL_J1218.5-0119_daily_bin748.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.61
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3632       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    13.828       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18654E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2183       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.467       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    133.43       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.816       1.0000         .10000E-03   10000.    
    16 'norm      '    2.9671       1.0000         .10000E-03   10000.    
    17 'norm      '    3.0091       1.0000         .10000E-03   10000.    
    18 'Prefactor '    37.586       1.0000         .10000E-03   10000.    
    19 'norm      '    15.153       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.2919       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.007       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5723       1.0000         .10000E-03   10000.    
    24 'norm      '    5.1612       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.4801       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    171.83       1.0000         .10000E-03   10000.    
    28 'norm      '    22.172       1.0000         .10000E-03   10000.    
    29 'norm      '    .70402       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.9257       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .95669       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=   5785.468     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     4441 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3634        2.5739        .46339E-07   -.10153E-04
   2  Prefactor     .10000E-03    46.995       -.12871E-06** at limit **
   3  norm          13.830        11.566        .42927E-07   -.16078E-05
   4  Prefactor     .10000E-03    2.7479       -.21191E-07** at limit **
   5  Prefactor     .10000E-03    25.102       -.15401E-06** at limit **
   6  Prefactor     .10000E-03    39.815        .10946E-06** at limit **
   7  Prefactor     .10000E-03    366.85       -.11584E-05** at limit **
   8  Prefactor     .10000E-03    20.647        .16851E-07** at limit **
   9  Prefactor     1.2183        13.968        .33854E-05   -.12337E-04
  10  Prefactor     33.470        28.024        .22211E-06   -.63702E-05
  11  Prefactor     .10000E-03    159.06        .18146E-06** at limit **
  12  Prefactor     .10000E-03    85.687       -.61333E-07** at limit **
  13  Prefactor     133.44        58.631       -.13974E-06   -.18170E-04
  14  Prefactor     .10000E-03    16.032       -.14350E-06** at limit **
  15  Prefactor     25.828        33.475       -.13275E-05   -.24628E-04
  16  norm          2.9657        5.9679        .89371E-06   -.71589E-06
  17  norm          3.0033        6.0058        .17698E-05    .20044E-05
  18  Prefactor     37.594        55.468       -.27537E-06   -.23806E-06
  19  norm          15.265        56.669       -.40389E-05    .14634E-04
  20  Prefactor     .10000E-03    65.162       -.10691E-06** at limit **
  21  norm          1.2918        .91352       -.76806E-07   -.31014E-03
  22  Prefactor     12.010        16.038        .11850E-06   -.71569E-05
  23  Prefactor     2.5883        55.999        .14422E-05   -.13962E-06
  24  norm          5.1616        2.4211       -.45939E-07   -.23790E-04
  25  Prefactor     8.4815        11.153        .91007E-07   -.25680E-05
  26  Prefactor     .10000E-03    16.007       -.37009E-07** at limit **
  27  Prefactor     171.84        92.554        .24626E-06    .20404E-05
  28  norm          22.172        21.471        .40912E-07   -.96714E-06
  29  norm          .70404        .33154        .50610E-08   -.30457E-04
  30  Prefactor     .10000E-03    30.983        .84978E-07** at limit **
  31  Normalizat    1.9256        .33274        .52231E-06   -.73365E-04
  32  Prefactor     .95668        .22988       -.15991E-05   -.85574E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.36336
  Prefactor  = 0.0001
  norm       = 13.83
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.21832
  Prefactor  = 33.4701
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 133.439
  Prefactor  = 0.0001
  Prefactor  = 25.8284
  norm       = 2.9657
  norm       = 3.00334
  Prefactor  = 37.5939
  norm       = 15.2652
  Prefactor  = 0.0001
  norm       = 1.29184
  Prefactor  = 12.0104
  Prefactor  = 2.58831
  norm       = 5.16159
  Prefactor  = 8.48152
  Prefactor  = 0.0001
  Prefactor  = 171.836
  norm       = 22.1723
  norm       = 0.704045
  Prefactor  = 0.0001
  Normalizat = 1.92564
  Prefactor  = 0.95668
 **********
 **   18 **HESSE 
 **********

 FCN=   5785.468     FROM HESSE     STATUS=OK           659 CALLS     5100 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3634        2.5639        .12408E-03   -1.5400    
   2  Prefactor     .10000E-03    47.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          13.830        11.561        .10771E-03   -1.4964    
   4  Prefactor     .10000E-03    2.7565        .12304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    39.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    367.16        .20290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.2183        13.794        .40893E-03   -1.5487    
  10  Prefactor     33.470        28.147        .69267E-04   -1.4550    
  11  Prefactor     .10000E-03    160.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    86.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     133.44        58.634        .34863E-04   -1.3392    
  14  Prefactor     .10000E-03    16.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.828        32.978        .78843E-04   -1.4691    
  16  norm          2.9657        5.8680        .19866E-03   -1.5364    
  17  norm          3.0033        6.0363        .21738E-03   -1.5361    
  18  Prefactor     37.594        55.510        .65373E-04   -1.4481    
  19  norm          15.265        56.269        .10289E-03   -1.4926    
  20  Prefactor     .10000E-03    65.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.2918        .88937        .52944E-04   -1.5481    
  22  Prefactor     12.010        16.004        .11561E-03   -1.5015    
  23  Prefactor     2.5883        56.345        .25449E-03   -1.5386    
  24  norm          5.1616        2.4189        .76867E-04   -1.5254    
  25  Prefactor     8.4815        11.139        .13766E-03   -1.5125    
  26  Prefactor     .10000E-03    16.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     171.84        93.130        .30781E-04   -1.3079    
  28  norm          22.172        21.470        .85065E-04   -1.4766    
  29  norm          .70404        .33174        .26400E-04   -1.5540    
  30  Prefactor     .10000E-03    30.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.9256        .40070        .33280E-03   -.66428    
  32  Prefactor     .95668        .27031        .32450E-03   -.94188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40539e-11
Minuit parameter uncertainties:
  1  2.56403
  2  4.49273e-05
  3  11.5625
  4  1.32666e-06
  5  2.49743e-05
  6  1.03342e-05
  7  0.000935768
  8  1.25423e-05
  9  8.20096
  10  28.1581
  11  0.000255878
  12  1.46226e-05
  13  58.6591
  14  9.59179e-06
  15  33.0013
  16  5.86911
  17  6.03752
  18  55.5861
  19  56.4656
  20  7.51704e-05
  21  0.889381
  22  16.01
  23  24.1781
  24  2.41896
  25  11.142
  26  1.87591e-06
  27  93.2096
  28  21.4772
  29  0.33174
  30  4.84575e-05
  31  0.401393
  32  0.270688
Done.

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

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  2.966e+00  5.869e+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

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  9.567e-01  2.707e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.926e+00  4.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.51
Ra Dec: 184.639 -1.327
Photon Flux Upper Limit: 1.61e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/481178/likelihoodResults_433209601_433468801_4FGL_J1218.5-0119_daily_bin748.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) = 5784.89307315
delta logL = 0.574764613825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5784.87306459
delta logL = 0.594773170127

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4951       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8907       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97573       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=   5784.873     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      225 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4938        48.922        .64687E-02    .81164E-03
   2  alpha         2.8913        3.9456        .24579        .87274E-04
   3  Normalizat    1.8607        .10817        .76023E-01   -.27336E-04
   4  Prefactor     .97609        .73130E-01    .72557E-01    .13927E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.49375
  alpha      = 2.89135
  Normalizat = 1.8607
  Prefactor  = 0.976086
 **********
 **   18 **HESSE 
 **********

 FCN=   5784.873     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4938        3.8576        .97692E-04   -1.5392    
   2  alpha         2.8913        .86653        .11980E-01    .15719    
   3  Normalizat    1.8607        .37102        .33635E-03   -.68089    
   4  Prefactor     .97609        .26664        .32101E-03   -.93531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.56905e-11
Minuit parameter uncertainties:
  1  3.85794
  2  0.885376
  3  0.371592
  4  0.266998
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/481178': 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) = 5784.87306134
delta logL = 0.594776422168

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  9.761e-01  2.670e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.861e+00  3.716e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.71
Ra Dec: 184.639 -1.327
Photon Index (Free Index): 2.89 +/- 0.89
Photon Flux (Free Index): 1.24e-07 +/- 1.17e-07
Energy Flux (Free Index): 2.93e-05 +/- 2.57e-05

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/481178/cmap_HighResolution_433209601_433468801_4FGL_J1218.5-0119_daily_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.94e-05', comment='SUCCESS', energy_flux2='2.93e-05', dlogl='5.95e-01', photon_flux2='1.24e-07', job_status='DONE', time_completed='2021-09-05 07:41:53.641776', photon_index_error2='0.89', photon_index2='2.89', ts='0.51', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.61e-07', energy_flux_error2='2.57e-05', EG='1.93', time_epoch_completed='1630852913.64', return_code='0', job_id='481178', GAL2='0.98', EG2='1.86', return_code2='0', photon_flux_error2='1.17e-07', ts2='1.71', photon_index='2.02' WHERE bin_id='748' AND source_name='4FGL J1218.5-0119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 07:41:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 481178: <4FGL_J1218.5-0119_daily_bin748> in cluster <slac> Done

Job <4FGL_J1218.5-0119_daily_bin748> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 07:25:46 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 07:25:48 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:48 2021
Terminated at Sun Sep  5 07:41:54 2021
Results reported at Sun Sep  5 07:41:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.5-0119_daily_bin748 184.639 -1.327 433209601 433468801 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 :                                   936.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             361.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            968 sec.

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

