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


Performing analysis on: 4FGL_J1218.5-0119_daily_bin766
RA = 184.639, Dec = -1.327
tmin = 437875201, tmax = 438134401
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='481208', job_status='RUN', time_executed='2021-09-05 07:26:02.848135', time_epoch_executed='1630851962.85' WHERE source_name='4FGL J1218.5-0119' and cadence='daily' and bin_id='766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/481208

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/481208/ft1_4FGL_J1218.5-0119_daily_bin766.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/481208/ft2_4FGL_J1218.5-0119_daily_bin766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/481208/ft1_4FGL_J1218.5-0119_daily_bin766.fits outfile=/scratch/kocevski/481208/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin766.fits ra=184.639 dec=-1.327 rad=12.0 tmin=437875201.0 tmax=438134401.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.67
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/481208/ft2_4FGL_J1218.5-0119_daily_bin766.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/481208/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin766.fits evtable="EVENTS" outfile="/scratch/kocevski/481208/ft1_filtered_4FGL_J1218.5-0119_daily_bin766.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.49
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/481208/ft1_filtered_4FGL_J1218.5-0119_daily_bin766.fits" evtable="EVENTS" scfile=/scratch/kocevski/481208/ft2_4FGL_J1218.5-0119_daily_bin766.fits sctable="SC_DATA" outfile=/scratch/kocevski/481208/ltcube_437875201_438134401_4FGL_J1218.5-0119_daily_bin766.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/481208/ft2_4FGL_J1218.5-0119_daily_bin766.fits
.....................!
real 12.07
user 11.72
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/481208/ft1_filtered_4FGL_J1218.5-0119_daily_bin766.fits evtable="EVENTS" scfile=/scratch/kocevski/481208/ft2_4FGL_J1218.5-0119_daily_bin766.fits sctable="SC_DATA" expcube=/scratch/kocevski/481208/ltcube_437875201_438134401_4FGL_J1218.5-0119_daily_bin766.fits outfile=/scratch/kocevski/481208/expmap_437875201_438134401_4FGL_J1218.5-0119_daily_bin766.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/481208/ltcube_437875201_438134401_4FGL_J1218.5-0119_daily_bin766.fits
.....................!
real 189.68
user 185.13
sys 4.03

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/481208/ft1_filtered_4FGL_J1218.5-0119_daily_bin766.fits scfile=/scratch/kocevski/481208/ft2_4FGL_J1218.5-0119_daily_bin766.fits outfile=/scratch/kocevski/481208/cmap_437875201_438134401_4FGL_J1218.5-0119_daily_bin766.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/481208/ft1_filtered_4FGL_J1218.5-0119_daily_bin766.fits scfile=/scratch/kocevski/481208/ft2_4FGL_J1218.5-0119_daily_bin766.fits outfile=/scratch/kocevski/481208/cmap_HighResolution_437875201_438134401_4FGL_J1218.5-0119_daily_bin766.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5484       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .49579       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    45.398       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0281       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.095       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    118.31       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.2277       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21117E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .58450E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.6182       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.194       1.0000         .10000E-03   10000.    
    24 'norm      '    7.5433       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.8588       1.0000         .10000E-03   10000.    
    26 'Prefactor '    86.272       1.0000         .10000E-03   10000.    
    27 'Prefactor '    88.208       1.0000         .10000E-03   10000.    
    28 'norm      '    11.282       1.0000         .10000E-03   10000.    
    29 'norm      '    1.5615       1.0000         .10000E-03   10000.    
    30 'Prefactor '    36.910       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .85221       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .95028       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=   5143.331     FROM MIGRAD    STATUS=CONVERGED    837 CALLS     4371 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5474        4.3288       -.55581E-06   -.20455E-02
   2  Prefactor     .10000E-03    14.568        .20246E-05** at limit **
   3  norm          .46866        4.3134        .13702E-05   -.90912E-03
   4  Prefactor     .10000E-03    1.6160        .20271E-07** at limit **
   5  Prefactor     .10000E-03    6.3447       -.23384E-07** at limit **
   6  Prefactor     45.394        38.707       -.61914E-06   -.22215E-05
   7  Prefactor     .10000E-03    26.093       -.63290E-05** at limit **
   8  Prefactor     .10000E-03    21.776        .98388E-05** at limit **
   9  Prefactor     .10000E-03    7.5046        .22698E-06** at limit **
  10  Prefactor     5.0475        28.150        .66874E-06   -.54021E-04
  11  Prefactor     23.084        42.186       -.12677E-04   -.25825E-04
  12  Prefactor     .10000E-03    16.403       -.60948E-05** at limit **
  13  Prefactor     118.29        44.759       -.86454E-05   -.18144E-04
  14  Prefactor     .10000E-03    39.727       -.12165E-04** at limit **
  15  Prefactor     .10000E-03    3.8858        .71461E-07** at limit **
  16  norm          .10000E-03    .76647        .41724E-07** at limit **
  17  norm          4.2303        4.0434       -.86536E-07   -.27927E-03
  18  Prefactor     .10000E-03    155.58        .42387E-05** at limit **
  19  norm          .10000E-03    43.780        .13067E-04** at limit **
  20  Prefactor     .10000E-03    252.23       -.30644E-04** at limit **
  21  norm          1.6180        .77932        .14382E-06   -.88505E-04
  22  Prefactor     .10000E-03    9.9759       -.34639E-06** at limit **
  23  Prefactor     23.187        21.930        .61782E-06   -.73169E-05
  24  norm          7.5437        2.4262        .10578E-06   -.58406E-05
  25  Prefactor     4.8546        11.115       -.27450E-05   -.16087E-03
  26  Prefactor     86.254        50.330       -.10341E-04    .67352E-05
  27  Prefactor     88.243        83.406        .30106E-04   -.88955E-04
  28  norm          11.282        18.840       -.10790E-06   -.14323E-04
  29  norm          1.5612        .40530       -.63739E-06    .50646E-02
  30  Prefactor     36.935        66.937        .29208E-04   -.20965E-04
  31  Normalizat    .85234        .28495        .40283E-05   -.15401E-03
  32  Prefactor     .95034        .18618       -.15521E-05    .72190E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.54742
  Prefactor  = 0.0001
  norm       = 0.468658
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.3936
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.04747
  Prefactor  = 23.0839
  Prefactor  = 0.0001
  Prefactor  = 118.286
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.2303
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.61796
  Prefactor  = 0.0001
  Prefactor  = 23.1865
  norm       = 7.54368
  Prefactor  = 4.85461
  Prefactor  = 86.2539
  Prefactor  = 88.2429
  norm       = 11.2815
  norm       = 1.56123
  Prefactor  = 36.9346
  Normalizat = 0.852336
  Prefactor  = 0.950345
 **********
 **   18 **HESSE 
 **********

 FCN=   5143.331     FROM HESSE     STATUS=OK           653 CALLS     5024 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5474        4.3568        .58277E-03   -1.5196    
   2  Prefactor     .10000E-03    14.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .46866        19.070        .28338E-02   -1.5571    
   4  Prefactor     .10000E-03    1.6262        .88987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.3467        .17644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     45.394        38.731        .59506E-04   -1.4359    
   7  Prefactor     .10000E-03    26.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.5556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.0475        27.952        .17933E-03   -1.5259    
  11  Prefactor     23.084        42.174        .83350E-04   -1.4747    
  12  Prefactor     .10000E-03    16.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     118.29        44.901        .18498E-03   -1.3528    
  14  Prefactor     .10000E-03    40.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.8885        .13806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .76764        .61309E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.2303        4.0382        .12931E-03   -1.5297    
  18  Prefactor     .10000E-03    157.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    43.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    252.65        .21078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.6180        .77418        .39464E-04   -1.5454    
  22  Prefactor     .10000E-03    10.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     23.187        21.987        .83173E-04   -1.4745    
  24  norm          7.5437        2.4268        .59729E-04   -1.5159    
  25  Prefactor     4.8546        11.105        .18249E-03   -1.5267    
  26  Prefactor     86.254        50.345        .43253E-04   -1.3848    
  27  Prefactor     88.243        83.664        .42780E-04   -1.3826    
  28  norm          11.282        18.835        .11927E-03   -1.5036    
  29  norm          1.5612        .40889        .19352E-04   -1.5458    
  30  Prefactor     36.935        66.857        .65968E-04   -1.4492    
  31  Normalizat    .85234        .32934        .35347E-03   -.98156    
  32  Prefactor     .95034        .21556        .24767E-03   -.94403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.40056e-09
Minuit parameter uncertainties:
  1  4.35701
  2  1.25145e-07
  3  5.98045
  4  4.18402e-07
  5  3.4327e-07
  6  38.7529
  7  1.5871e-06
  8  5.2738e-05
  9  4.86362e-05
  10  23.773
  11  42.228
  12  1.79232e-05
  13  44.9143
  14  7.79919e-05
  15  1.50113e-05
  16  3.81968e-06
  17  4.03846
  18  0.000206185
  19  2.10816e-05
  20  4.69851e-06
  21  0.774181
  22  3.15774e-05
  23  21.9951
  24  2.42681
  25  11.1098
  26  50.3697
  27  83.7757
  28  18.845
  29  0.408889
  30  66.9934
  31  0.330119
  32  0.215757
Done.

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

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  1.000e-04  3.820e-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:  9.503e-01  2.158e-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:  8.523e-01  3.301e-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: 4.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/481208/likelihoodResults_437875201_438134401_4FGL_J1218.5-0119_daily_bin766.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) = 5143.33104692
delta logL = -1.66522831933e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5143.3310305
delta logL = -2.25887561101e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0081       1.0000          .0000       5.0000    
     3 'Normalizat'    .85242       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95039       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=   5142.563     FROM MIGRAD    STATUS=CONVERGED    137 CALLS      282 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29028E-01    1.0689        .22768E-02    .51195E-02
   2  alpha         5.0000        4.5275        .50000    ** at limit **
   3  Normalizat    .72360        .23391        .35347E-02    .16670E-04
   4  Prefactor     1.0096        .12453        .24767E-02    .25733E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.029028
  alpha      = 5
  Normalizat = 0.723605
  Prefactor  = 1.00964
 **********
 **   18 **HESSE 
 **********

 FCN=   5142.563     FROM HESSE     STATUS=OK            31 CALLS      313 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .29028E-01    .26252E-01    .10305E-03   -1.5674    
   2  alpha         5.0000        .66331        .43240E-01   -10.996    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .72360        .29943        .14139E-03   -1.0297    
   4  Prefactor     1.0096        .21579        .99067E-04   -.92409    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67424e-11
Minuit parameter uncertainties:
  1  0.0262523
  2  8.19225e-06
  3  0.300114
  4  0.215977
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/481208': 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) = 5142.5634476
delta logL = 0.767582673365

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  2.903e-02  2.625e-02  1.000e-04  1.000e+04 ( 1.000e-12)
336        alpha:  5.000e+00  8.192e-06  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:  1.010e+00  2.160e-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.236e-01  3.001e-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): 5.00 +/- 0.00
Photon Flux (Free Index): 1.21e-07 +/- 1.09e-07
Energy Flux (Free Index): 1.67e-05 +/- 1.51e-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/481208/cmap_HighResolution_437875201_438134401_4FGL_J1218.5-0119_daily_bin766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-05', comment='SUCCESS', energy_flux2='1.67e-05', dlogl='7.68e-01', photon_flux2='1.21e-07', job_status='DONE', time_completed='2021-09-05 07:40:27.856760', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='4.98e-08', energy_flux_error2='1.51e-05', EG='0.85', time_epoch_completed='1630852827.86', return_code='0', job_id='481208', GAL2='1.01', EG2='0.72', return_code2='0', photon_flux_error2='1.09e-07', ts2='1.71', photon_index='2.02' WHERE bin_id='766' AND source_name='4FGL J1218.5-0119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 07:40:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 481208: <4FGL_J1218.5-0119_daily_bin766> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.5-0119_daily_bin766 184.639 -1.327 437875201 438134401 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 :                                   860.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            880 sec.

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

