/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 81 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 = 7390
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1218.0-0028_daily_bin199
RA = 184.514, Dec = -0.4832
tmin = 290908801, tmax = 291168001
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='463769', job_status='RUN', time_executed='2021-09-05 06:37:27.612920', time_epoch_executed='1630849047.61' WHERE source_name='4FGL J1218.0-0028' and cadence='daily' and bin_id='199'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/463769

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/463769/ft1_4FGL_J1218.0-0028_daily_bin199.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/463769/ft2_4FGL_J1218.0-0028_daily_bin199.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/463769/ft1_4FGL_J1218.0-0028_daily_bin199.fits outfile=/scratch/kocevski/463769/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin199.fits ra=184.514 dec=-0.4832 rad=12.0 tmin=290908801.0 tmax=291168001.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.48
user 3.27
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/463769/ft2_4FGL_J1218.0-0028_daily_bin199.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/463769/ft2_4FGL_J1218.0-0028_daily_bin199.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/463769/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin199.fits evtable="EVENTS" outfile="/scratch/kocevski/463769/ft1_filtered_4FGL_J1218.0-0028_daily_bin199.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.60
user 0.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/463769/ft1_filtered_4FGL_J1218.0-0028_daily_bin199.fits" evtable="EVENTS" scfile=/scratch/kocevski/463769/ft2_4FGL_J1218.0-0028_daily_bin199.fits sctable="SC_DATA" outfile=/scratch/kocevski/463769/ltcube_290908801_291168001_4FGL_J1218.0-0028_daily_bin199.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/463769/ft2_4FGL_J1218.0-0028_daily_bin199.fits
.....................!
real 11.90
user 11.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/463769/ft1_filtered_4FGL_J1218.0-0028_daily_bin199.fits evtable="EVENTS" scfile=/scratch/kocevski/463769/ft2_4FGL_J1218.0-0028_daily_bin199.fits sctable="SC_DATA" expcube=/scratch/kocevski/463769/ltcube_290908801_291168001_4FGL_J1218.0-0028_daily_bin199.fits outfile=/scratch/kocevski/463769/expmap_290908801_291168001_4FGL_J1218.0-0028_daily_bin199.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/463769/ltcube_290908801_291168001_4FGL_J1218.0-0028_daily_bin199.fits
.....................!
real 190.57
user 185.96
sys 4.24

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 189 point sources and 0 extended sources

Setting source of interest to:
4FGL J1218.0-0028 @ 184.514 -0.4832

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/463769/ft1_filtered_4FGL_J1218.0-0028_daily_bin199.fits scfile=/scratch/kocevski/463769/ft2_4FGL_J1218.0-0028_daily_bin199.fits outfile=/scratch/kocevski/463769/cmap_290908801_291168001_4FGL_J1218.0-0028_daily_bin199.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.514 yref=-0.4832 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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/463769/ft1_filtered_4FGL_J1218.0-0028_daily_bin199.fits scfile=/scratch/kocevski/463769/ft2_4FGL_J1218.0-0028_daily_bin199.fits outfile=/scratch/kocevski/463769/cmap_HighResolution_290908801_291168001_4FGL_J1218.0-0028_daily_bin199.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.514 yref=-0.4832 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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/463769/ft1_filtered_4FGL_J1218.0-0028_daily_bin199.fits evtable="EVENTS" scfile=/scratch/kocevski/463769/ft2_4FGL_J1218.0-0028_daily_bin199.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/463769/Model_4FGL_J1218.0-0028_daily_bin199.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/463769/ft1_filtered_4FGL_J1218.0-0028_daily_bin199.fits.....................!
real 54.39
user 51.67
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/463769/ft1_filtered_4FGL_J1218.0-0028_daily_bin199.fits', '/scratch/kocevski/463769/ft2_4FGL_J1218.0-0028_daily_bin199.fits', expMap='/scratch/kocevski/463769/expmap_290908801_291168001_4FGL_J1218.0-0028_daily_bin199.fits', expCube='/scratch/kocevski/463769/ltcube_290908801_291168001_4FGL_J1218.0-0028_daily_bin199.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/463769/Model_4FGL_J1218.0-0028_daily_bin199.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1218.0-0028'

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  2.373e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.321e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.446e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/463769/ft1_filtered_4FGL_J1218.0-0028_daily_bin199.fits
Spacecraft file(s): /scratch/kocevski/463769/ft2_4FGL_J1218.0-0028_daily_bin199.fits
Exposure map: /scratch/kocevski/463769/expmap_290908801_291168001_4FGL_J1218.0-0028_daily_bin199.fits
Exposure cube: /scratch/kocevski/463769/ltcube_290908801_291168001_4FGL_J1218.0-0028_daily_bin199.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/463769/Model_4FGL_J1218.0-0028_daily_bin199.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) = 5947.98366576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5445       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10424E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5865       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    56.563       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.920       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3682       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .59312       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.2856       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.857       1.0000         .10000E-03   10000.    
    23 'norm      '    1.0705       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.6054       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.841       1.0000         .10000E-03   10000.    
    27 'norm      '    26.255       1.0000         .10000E-03   10000.    
    28 'norm      '    1.1853       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .93453       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0015       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5947.937     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3331 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5445        3.0641       -.41399E-06   -.85507E-03
   2  Prefactor     .10000E-03    12.155        .38252E-06** at limit **
   3  norm          .10000E-03    6.4106       -.32263E-06** at limit **
   4  Prefactor     7.5855        5.3259        .55879E-06   -.16487E-03
   5  Prefactor     .10000E-03    15.031        .17917E-05** at limit **
   6  Prefactor     .10000E-03    125.63       -.13591E-04** at limit **
   7  Prefactor     .10000E-03    22.728        .80127E-05** at limit **
   8  Prefactor     56.566        42.927        .16927E-05    .18663E-04
   9  Prefactor     12.920        9.3755       -.48255E-07   -.38919E-04
  10  Prefactor     .10000E-03    10.228       -.38694E-05** at limit **
  11  Prefactor     .10000E-03    21.233       -.27485E-05** at limit **
  12  Prefactor     .10000E-03    33.896       -.13311E-04** at limit **
  13  Prefactor     .10000E-03    6.7561        .26622E-06** at limit **
  14  Prefactor     .10000E-03    23.836        .11072E-04** at limit **
  15  Prefactor     6.3682        8.2756       -.15540E-06   -.88283E-04
  16  norm          .10000E-03    1.2824        .25660E-07** at limit **
  17  norm          .59350        2.8964        .15848E-05   -.16425E-02
  18  Prefactor     .10000E-03    15.201       -.68584E-07** at limit **
  19  norm          .10000E-03    20.060       -.10755E-04** at limit **
  20  Prefactor     .10000E-03    65.023        .14765E-04** at limit **
  21  norm          9.2855        1.2011       -.66370E-07   -.36937E-02
  22  Prefactor     10.858        9.9909       -.18865E-06   -.25704E-04
  23  norm          1.0704        1.1794       -.37214E-07   -.50191E-03
  24  Prefactor     6.6040        9.7388       -.47069E-06   -.13790E-03
  25  Prefactor     .10000E-03    10.194        .34450E-05** at limit **
  26  Prefactor     18.837        29.948       -.10019E-05   -.36307E-05
  27  norm          26.255        27.570        .54648E-07   -.58585E-05
  28  norm          1.1854        .32327        .13455E-07   -.20380E-03
  29  Normalizat    .93455        .23448       -.70012E-06   -.25231E-03
  30  Prefactor     1.0015        .17026        .19018E-06   -.22405E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.54455
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.58547
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.5661
  Prefactor  = 12.9196
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.36817
  norm       = 0.0001
  norm       = 0.5935
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.28555
  Prefactor  = 10.8577
  norm       = 1.07045
  Prefactor  = 6.60399
  Prefactor  = 0.0001
  Prefactor  = 18.8373
  norm       = 26.2552
  norm       = 1.18539
  Normalizat = 0.934546
  Prefactor  = 1.0015
 **********
 **   18 **HESSE 
 **********

 FCN=   5947.937     FROM HESSE     STATUS=OK           582 CALLS     3913 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5445        3.0808        .18119E-03   -1.5459    
   2  Prefactor     .10000E-03    12.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.5136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.5855        5.2979        .14001E-03   -1.5157    
   5  Prefactor     .10000E-03    15.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    125.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     56.566        42.941        .26669E-03   -1.4202    
   9  Prefactor     12.920        9.3983        .11144E-03   -1.4989    
  10  Prefactor     .10000E-03    10.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.7607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.3682        8.2616        .15905E-03   -1.5203    
  16  norm          .10000E-03    1.2954        .85159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .59350        10.617        .21742E-02   -1.5554    
  18  Prefactor     .10000E-03    15.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    20.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    64.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.2855        1.1927        .26057E-04   -1.5098    
  22  Prefactor     10.858        9.9850        .12159E-03   -1.5049    
  23  norm          1.0704        1.1597        .84626E-04   -1.5501    
  24  Prefactor     6.6040        9.7289        .15614E-03   -1.5194    
  25  Prefactor     .10000E-03    10.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     18.837        30.039        .92273E-04   -1.4840    
  27  norm          26.255        27.556        .78182E-04   -1.4683    
  28  norm          1.1854        .32413        .21754E-04   -1.5490    
  29  Normalizat    .93455        .26856        .33080E-03   -.95257    
  30  Prefactor     1.0015        .19627        .24926E-03   -.92680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.74561e-09
Minuit parameter uncertainties:
  1  3.08115
  2  9.06269e-07
  3  3.26174e-05
  4  5.29825
  5  2.97988e-06
  6  1.2713e-05
  7  7.10062e-05
  8  42.9646
  9  9.39934
  10  1.58674e-06
  11  1.0199e-05
  12  1.96668e-05
  13  5.7736e-07
  14  7.64585e-05
  15  8.2631
  16  1.27873e-06
  17  5.021
  18  1.03361e-05
  19  2.10831e-05
  20  2.66064e-05
  21  1.19273
  22  9.98648
  23  1.15975
  24  9.7312
  25  2.03383e-06
  26  30.0636
  27  27.5692
  28  0.324134
  29  0.268949
  30  0.196408
Done.

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

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  6.368e+00  8.263e+00  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.321e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.446e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  1.001e+00  1.964e-01  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
607   Normalization:  9.345e-01  2.689e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.20
Ra Dec: 184.514 -0.483
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 2.38e-08 +/- 3.09e-08
Energy Flux (Fixed Index): 8.72e-06 +/- 1.13e-05

TS (Fixed Index): 1.20
Ra Dec: 184.514 -0.483
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/463769/likelihoodResults_290908801_291168001_4FGL_J1218.0-0028_daily_bin199.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) = 5947.680581
delta logL = 0.256030294473

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5947.62587092
delta logL = 0.310740379534

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.664       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5392       1.0000          .0000       10.000    
     3 'Normalizat'    .94874       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99102       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6110E+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=   5947.626     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      278 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.665        14.046        .11256E-03   -.70050E-03
   2  Index         1.5391        .68759        .10971E-01   -.16634E-03
   3  Normalizat    .94874        .24594        .32869E-03    .95047E-04
   4  Prefactor     .99103        .19263        .25038E-03    .13301E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.6647
  Index      = 1.53914
  Normalizat = 0.948736
  Prefactor  = 0.991029
 **********
 **   18 **HESSE 
 **********

 FCN=   5947.626     FROM HESSE     STATUS=OK            23 CALLS      301 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.665        13.997        .22512E-04   -1.4996    
   2  Index         1.5391        .68549        .43884E-03   -.76449    
   3  Normalizat    .94874        .24610        .13148E-04   -.94768    
   4  Prefactor     .99103        .19275        .50076E-04   -.93029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63558e-09
Minuit parameter uncertainties:
  1  14.0009
  2  0.689679
  3  0.246395
  4  0.192888
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/463769': 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) = 5947.62587091
delta logL = 0.310740384539

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  1.266e+01  1.400e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  1.539e+00  6.897e-01  0.000e+00  1.000e+01 (-1.000e+00)
327        Scale:  1.446e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  9.910e-01  1.929e-01  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
607   Normalization:  9.487e-01  2.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.83
Ra Dec: 184.514 -0.483
Photon Index (Free Index): 1.54 +/- 0.69
Photon Flux (Free Index): 1.40e-08 +/- 1.76e-08
Energy Flux (Free Index): 3.88e-05 +/- 7.91e-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/463769/cmap_HighResolution_290908801_291168001_4FGL_J1218.0-0028_daily_bin199.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.99e-03', comment='SUCCESS', photon_flux='2.38e-08', energy_flux2='3.88e-05', photon_flux_error='3.09e-08', dlogl='3.11e-01', energy_flux='8.72e-06', photon_flux2='1.40e-08', job_status='DONE', time_completed='2021-09-05 06:51:32.683285', photon_index_error2='0.69', photon_index2='1.54', ts='1.20', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='7.91e-05', EG='0.93', time_epoch_completed='1630849892.68', return_code='0', job_id='463769', GAL2='0.99', EG2='0.95', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='1.76e-08', ts2='1.83', photon_index='2.32' WHERE bin_id='199' AND source_name='4FGL J1218.0-0028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:51:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 463769: <4FGL_J1218.0-0028_daily_bin199> in cluster <slac> Done

Job <4FGL_J1218.0-0028_daily_bin199> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 06:35:53 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:35:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 06:35:54 2021
Terminated at Sun Sep  5 06:51:33 2021
Results reported at Sun Sep  5 06:51:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.0-0028_daily_bin199 184.514 -0.4832 290908801 291168001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1218.0-0028 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   830.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            940 sec.

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

