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


Performing analysis on: 4FGL_J1218.0-0028_daily_bin466
RA = 184.514, Dec = -0.4832
tmin = 360115201, tmax = 360374401
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='465343', job_status='RUN', time_executed='2021-09-05 06:40:58.851085', time_epoch_executed='1630849258.85' WHERE source_name='4FGL J1218.0-0028' and cadence='daily' and bin_id='466'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/465343

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/465343/ft1_4FGL_J1218.0-0028_daily_bin466.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/465343/ft2_4FGL_J1218.0-0028_daily_bin466.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/465343/ft1_4FGL_J1218.0-0028_daily_bin466.fits outfile=/scratch/kocevski/465343/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin466.fits ra=184.514 dec=-0.4832 rad=12.0 tmin=360115201.0 tmax=360374401.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.46
user 3.25
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/465343/ft2_4FGL_J1218.0-0028_daily_bin466.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/465343/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin466.fits evtable="EVENTS" outfile="/scratch/kocevski/465343/ft1_filtered_4FGL_J1218.0-0028_daily_bin466.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.52
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/465343/ft1_filtered_4FGL_J1218.0-0028_daily_bin466.fits" evtable="EVENTS" scfile=/scratch/kocevski/465343/ft2_4FGL_J1218.0-0028_daily_bin466.fits sctable="SC_DATA" outfile=/scratch/kocevski/465343/ltcube_360115201_360374401_4FGL_J1218.0-0028_daily_bin466.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/465343/ft2_4FGL_J1218.0-0028_daily_bin466.fits
.....................!
real 12.17
user 11.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/465343/ft1_filtered_4FGL_J1218.0-0028_daily_bin466.fits evtable="EVENTS" scfile=/scratch/kocevski/465343/ft2_4FGL_J1218.0-0028_daily_bin466.fits sctable="SC_DATA" expcube=/scratch/kocevski/465343/ltcube_360115201_360374401_4FGL_J1218.0-0028_daily_bin466.fits outfile=/scratch/kocevski/465343/expmap_360115201_360374401_4FGL_J1218.0-0028_daily_bin466.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/465343/ltcube_360115201_360374401_4FGL_J1218.0-0028_daily_bin466.fits
.....................!
real 189.88
user 184.39
sys 4.99

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/465343/ft1_filtered_4FGL_J1218.0-0028_daily_bin466.fits scfile=/scratch/kocevski/465343/ft2_4FGL_J1218.0-0028_daily_bin466.fits outfile=/scratch/kocevski/465343/cmap_360115201_360374401_4FGL_J1218.0-0028_daily_bin466.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/465343/ft1_filtered_4FGL_J1218.0-0028_daily_bin466.fits scfile=/scratch/kocevski/465343/ft2_4FGL_J1218.0-0028_daily_bin466.fits outfile=/scratch/kocevski/465343/cmap_HighResolution_360115201_360374401_4FGL_J1218.0-0028_daily_bin466.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/465343/ft1_filtered_4FGL_J1218.0-0028_daily_bin466.fits evtable="EVENTS" scfile=/scratch/kocevski/465343/ft2_4FGL_J1218.0-0028_daily_bin466.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/465343/Model_4FGL_J1218.0-0028_daily_bin466.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/465343/ft1_filtered_4FGL_J1218.0-0028_daily_bin466.fits.....................!
real 47.31
user 45.95
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/465343/ft1_filtered_4FGL_J1218.0-0028_daily_bin466.fits', '/scratch/kocevski/465343/ft2_4FGL_J1218.0-0028_daily_bin466.fits', expMap='/scratch/kocevski/465343/expmap_360115201_360374401_4FGL_J1218.0-0028_daily_bin466.fits', expCube='/scratch/kocevski/465343/ltcube_360115201_360374401_4FGL_J1218.0-0028_daily_bin466.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/465343/Model_4FGL_J1218.0-0028_daily_bin466.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/465343/ft1_filtered_4FGL_J1218.0-0028_daily_bin466.fits
Spacecraft file(s): /scratch/kocevski/465343/ft2_4FGL_J1218.0-0028_daily_bin466.fits
Exposure map: /scratch/kocevski/465343/expmap_360115201_360374401_4FGL_J1218.0-0028_daily_bin466.fits
Exposure cube: /scratch/kocevski/465343/ltcube_360115201_360374401_4FGL_J1218.0-0028_daily_bin466.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/465343/Model_4FGL_J1218.0-0028_daily_bin466.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) = 5085.99023325

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5085.98698316

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3414       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .11917E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11980E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2800       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10634E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    87.167       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10793E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .54864       1.0000         .10000E-03   10000.    
    16 'norm      '    .24459       1.0000         .10000E-03   10000.    
    17 'norm      '    .90411       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    61.130       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10540E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.7909       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10392       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .67657       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.4666       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10480E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    32.926       1.0000         .10000E-03   10000.    
    28 'norm      '    .43877       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.6350       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .53914       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=   5085.987     FROM MIGRAD    STATUS=CONVERGED    784 CALLS     3950 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3415        3.0524        .94029E-07   -.25667E-04
   2  Prefactor     .10000E-03    7.8215       -.42760E-06** at limit **
   3  norm          .10000E-03    8.5181        .89840E-06** at limit **
   4  Prefactor     .10000E-03    2.0184        .33120E-06** at limit **
   5  Prefactor     .10000E-03    7.8819       -.60447E-06** at limit **
   6  Prefactor     .10000E-03    30.525        .59793E-06** at limit **
   7  Prefactor     3.2808        7.3878        .14614E-05    .10690E-04
   8  Prefactor     .10000E-03    21.214       -.21613E-06** at limit **
   9  Prefactor     .10001E-03    5.0764        .17942E-05** at limit **
  10  Prefactor     .10000E-03    6.1986        .40793E-06** at limit **
  11  Prefactor     87.230        54.929       -.51556E-05   -.13973E-04
  12  Prefactor     .10000E-03    19.593        .31389E-06** at limit **
  13  Prefactor     .10000E-03    7.4970        .95764E-06** at limit **
  14  Prefactor     .10000E-03    25.538       -.34088E-06** at limit **
  15  Prefactor     .49992        17.644        .62220E-05   -.25857E-03
  16  norm          .26134        3.8270       -.10369E-05   -.22524E-03
  17  norm          .89249        5.7418        .43420E-05    .50552E-03
  18  Prefactor     .10000E-03    31.008        .46386E-06** at limit **
  19  norm          61.068        55.329       -.75708E-06    .21134E-03
  20  Prefactor     .10000E-03    101.57       -.21508E-05** at limit **
  21  norm          1.7909        .74504       -.60827E-06    .18219E-02
  22  Prefactor     .10000E-03    4.3510        .33049E-06** at limit **
  23  norm          .10416        .91984       -.33811E-06   -.18016E-04
  24  Prefactor     .67414        6.8870        .13008E-04   -.25954E-04
  25  Prefactor     8.4646        26.768        .35363E-06   -.16765E-04
  26  Prefactor     .10000E-03    31.682        .47655E-06** at limit **
  27  norm          32.897        25.604       -.41038E-06   -.84150E-05
  28  norm          .43883        .24650        .31859E-07    .58738E-05
  29  Normalizat    1.6353        .22496       -.27415E-05   -.19475E-03
  30  Prefactor     .53878        .16263       -.53982E-06   -.23008E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.34146
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.2808
  Prefactor  = 0.000100001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 87.2299
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.499915
  norm       = 0.261344
  norm       = 0.892495
  Prefactor  = 0.0001
  norm       = 61.0681
  Prefactor  = 0.0001
  norm       = 1.79088
  Prefactor  = 0.0001
  norm       = 0.104161
  Prefactor  = 0.674135
  Prefactor  = 8.46457
  Prefactor  = 0.0001
  norm       = 32.8972
  norm       = 0.438831
  Normalizat = 1.63533
  Prefactor  = 0.538781
 **********
 **   18 **HESSE 
 **********

 FCN=   5085.987     FROM HESSE     STATUS=NOT POSDEF   596 CALLS     4546 TOTAL
                     EDM=   .55E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3415        3.0406        .83845E-04   -1.5204    
   2  Prefactor     .10000E-03    7.7436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.7861        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.0261        .98976E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.8032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.2808        7.3401        .11179E-02   -1.5346    
   8  Prefactor     .10000E-03    20.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    33.080        .30906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.1533        .17345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     87.230        54.632        .21516E-03   -1.3837    
  12  Prefactor     .10000E-03    19.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.4319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    25.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .49992        7474.8        .40123E-02   -1.5567    
  16  norm          .26134        698.15        .19345E-02   -1.5606    
  17  norm          .89249        8.6006        .22958E-02   -1.5519    
  18  Prefactor     .10000E-03    31.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          61.068        55.989        .25660E-03   -1.4143    
  20  Prefactor     .10000E-03    100.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.7909        .90272        .34278E-04   -1.5440    
  22  Prefactor     .10000E-03    4.3214        .14532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10416        5.6548        .12613E-02   -1.5643    
  24  Prefactor     .67414        6.9701        .18209E-02   -1.5544    
  25  Prefactor     8.4646        26.599        .13777E-03   -1.5126    
  26  Prefactor     .10000E-03    31.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          32.897        25.479        .69833E-04   -1.4560    
  28  norm          .43883        .24263        .25520E-04   -1.5575    
  29  Normalizat    1.6353        .33251        .23538E-03   -.74044    
  30  Prefactor     .53878        .24016        .28941E-03   -1.1023    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.5282e-06
Minuit parameter uncertainties:
  1  3.04065
  2  8.61393e-06
  3  0.000114464
  4  4.42367e-05
  5  7.70062e-06
  6  2.3147e-05
  7  7.3421
  8  0.000238959
  9  0.00104133
  10  0.000107921
  11  54.6638
  12  6.27664e-05
  13  1.38385e-05
  14  0.00012334
  15  111.343
  16  27.3353
  17  5.54185
  18  6.75482e-05
  19  56.0371
  20  0.000100838
  21  0.902728
  22  2.89525e-05
  23  1.53436
  24  4.33567
  25  26.6358
  26  1.32078e-05
  27  25.4876
  28  0.242627
  29  0.332967
  30  0.240615
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5085.98696175

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  4.999e-01  1.113e+02  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:  5.388e-01  2.406e-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:  1.635e+00  3.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 184.514 -0.483
Photon Flux Upper Limit: 9.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/465343/likelihoodResults_360115201_360374401_4FGL_J1218.0-0028_daily_bin466.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) = 5085.98695621
delta logL = 5.53681275051e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5085.98695149
delta logL = 1.02618087112e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .49992       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3159       1.0000          .0000       10.000    
     3 'Normalizat'    1.6353       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53881       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.

 FCN=   5085.987     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      240 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52970        18.199        .72281E-01    .35652E-03
   2  Index         2.2798        1.1053        .50000        .23959E-05
   3  Normalizat    1.6354        .81745E-02    .53241E-01   -.88871E-06
   4  Prefactor     .53873        .61540E-02    .65398E-01    .28874E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.529705
  Index      = 2.27985
  Normalizat = 1.6354
  Prefactor  = 0.538731
 **********
 **   18 **HESSE 
 **********

 FCN=   5085.987     FROM HESSE     STATUS=OK            35 CALLS      275 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .52970        64.639        .40585E-02   -1.5562    
   2  Index         2.2798        6.0227        .12677E-01   -.57523    
   3  Normalizat    1.6354        .24025        .23538E-03   -.74042    
   4  Prefactor     .53873        .18094        .28942E-03   -1.1023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.504e-08
Minuit parameter uncertainties:
  1  11.7148
  2  5.4666
  3  0.240425
  4  0.181137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/465343': 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) = 5085.98691728
delta logL = 4.44680581495e-05

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  5.297e-01  1.171e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.280e+00  5.467e+00  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:  5.387e-01  1.811e-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:  1.635e+00  2.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 184.514 -0.483

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/465343/cmap_HighResolution_360115201_360374401_4FGL_J1218.0-0028_daily_bin466.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.39e-03', job_status='DONE', photon_flux_upper_limit='9.62e-08', time_completed='2021-09-05 06:54:13.840787', job_id='465343', GAL2='0.54', fit_tolerance='1e-08', EG2='1.64', EG='1.64', time_epoch_completed='1630850053.84', return_code2='0', ts='0.00', comment='SUCCESS', return_code='102', GAL='0.54', dlogl='4.45e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='466' AND source_name='4FGL J1218.0-0028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:54:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 465343: <4FGL_J1218.0-0028_daily_bin466> in cluster <slac> Done

Job <4FGL_J1218.0-0028_daily_bin466> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 06:40:45 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:40:47 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:40:47 2021
Terminated at Sun Sep  5 06:54:14 2021
Results reported at Sun Sep  5 06:54:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.0-0028_daily_bin466 184.514 -0.4832 360115201 360374401 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 :                                   788.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            809 sec.

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

