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


Performing analysis on: 4FGL_J1218.0-0028_daily_bin506
RA = 184.514, Dec = -0.4832
tmin = 370483201, tmax = 370742401
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='465405', job_status='RUN', time_executed='2021-09-05 06:43:28.785072', time_epoch_executed='1630849408.79' WHERE source_name='4FGL J1218.0-0028' and cadence='daily' and bin_id='506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/465405

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/465405/ft1_4FGL_J1218.0-0028_daily_bin506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/465405/ft2_4FGL_J1218.0-0028_daily_bin506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/465405/ft1_4FGL_J1218.0-0028_daily_bin506.fits outfile=/scratch/kocevski/465405/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin506.fits ra=184.514 dec=-0.4832 rad=12.0 tmin=370483201.0 tmax=370742401.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 19.57
user 19.04
sys 0.46

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/465405/ft1_filtered_4FGL_J1218.0-0028_daily_bin506.fits" evtable="EVENTS" scfile=/scratch/kocevski/465405/ft2_4FGL_J1218.0-0028_daily_bin506.fits sctable="SC_DATA" outfile=/scratch/kocevski/465405/ltcube_370483201_370742401_4FGL_J1218.0-0028_daily_bin506.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/465405/ft2_4FGL_J1218.0-0028_daily_bin506.fits
.....................!
real 10.44
user 10.08
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/465405/ft1_filtered_4FGL_J1218.0-0028_daily_bin506.fits evtable="EVENTS" scfile=/scratch/kocevski/465405/ft2_4FGL_J1218.0-0028_daily_bin506.fits sctable="SC_DATA" expcube=/scratch/kocevski/465405/ltcube_370483201_370742401_4FGL_J1218.0-0028_daily_bin506.fits outfile=/scratch/kocevski/465405/expmap_370483201_370742401_4FGL_J1218.0-0028_daily_bin506.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/465405/ltcube_370483201_370742401_4FGL_J1218.0-0028_daily_bin506.fits
.....................!
real 191.98
user 186.49
sys 4.85

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/465405/ft1_filtered_4FGL_J1218.0-0028_daily_bin506.fits scfile=/scratch/kocevski/465405/ft2_4FGL_J1218.0-0028_daily_bin506.fits outfile=/scratch/kocevski/465405/cmap_370483201_370742401_4FGL_J1218.0-0028_daily_bin506.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.58
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/465405/ft1_filtered_4FGL_J1218.0-0028_daily_bin506.fits scfile=/scratch/kocevski/465405/ft2_4FGL_J1218.0-0028_daily_bin506.fits outfile=/scratch/kocevski/465405/cmap_HighResolution_370483201_370742401_4FGL_J1218.0-0028_daily_bin506.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/465405/ft1_filtered_4FGL_J1218.0-0028_daily_bin506.fits evtable="EVENTS" scfile=/scratch/kocevski/465405/ft2_4FGL_J1218.0-0028_daily_bin506.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/465405/Model_4FGL_J1218.0-0028_daily_bin506.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/465405/ft1_filtered_4FGL_J1218.0-0028_daily_bin506.fits............................!
real 16.09
user 14.82
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6203       1.0000         .10000E-03   10000.    
     2 'Prefactor '    321.68       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    451.65       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13465E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    472.18       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10752E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13635E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    252.76       1.0000         .10000E-03   10000.    
    16 'norm      '    .12520E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    46.114       1.0000         .10000E-03   10000.    
    18 'Prefactor '    204.56       1.0000         .10000E-03   10000.    
    19 'norm      '    151.16       1.0000         .10000E-03   10000.    
    20 'Prefactor '    592.35       1.0000         .10000E-03   10000.    
    21 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    23.995       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    227.70       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .47377E-02   1.0000         .10000E-03   10000.    
    27 'norm      '    .10200E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .48409E-07   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=   331.6984     FROM MIGRAD    STATUS=CONVERGED    724 CALLS     4587 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6252        11.915       -.11067E-05    .66141E-04
   2  Prefactor     321.24        335.93       -.65989E-07   -.82191E-05
   3  norm          .10000E-03    52.119       -.55692E-06** at limit **
   4  Prefactor     .10000E-03    37.158       -.90457E-07** at limit **
   5  Prefactor     .10000E-03    84.517       -.86407E-07** at limit **
   6  Prefactor     451.47        346.31       -.81664E-05    .11839E-04
   7  Prefactor     .10000E-03    19.268       -.79472E-07** at limit **
   8  Prefactor     .10000E-03    545.53       -.28747E-05** at limit **
   9  Prefactor     .10000E-03    53.412        .13688E-06** at limit **
  10  Prefactor     .10000E-03    184.70        .12557E-05** at limit **
  11  Prefactor     471.52        721.92       -.67316E-05    .35186E-05
  12  Prefactor     .10000E-03    631.02        .46359E-06** at limit **
  13  Prefactor     .10002E-03    767.42        .10334E-04** at limit **
  14  Prefactor     .10000E-03    80.851       -.13782E-06** at limit **
  15  Prefactor     252.92        146.46       -.28230E-05   -.22523E-04
  16  norm          .10001E-03    68.365        .38866E-05** at limit **
  17  norm          46.088        37.342       -.30149E-06    .41491E-05
  18  Prefactor     204.47        176.96       -.27840E-05    .12323E-04
  19  norm          151.25        337.57       -.23582E-05    .33703E-05
  20  Prefactor     592.48        1017.1       -.42220E-05    .26084E-05
  21  norm          .10000E-03    2.2966        .18066E-06** at limit **
  22  Prefactor     .10000E-03    57.677        .61679E-06** at limit **
  23  norm          23.995        14.455       -.34314E-06    .26217E-04
  24  Prefactor     .10000E-03    65.845       -.76495E-07** at limit **
  25  Prefactor     227.45        349.95        .15491E-05   -.59769E-06
  26  Prefactor     .10000E-03    1055.6        .50879E-05** at limit **
  27  norm          .10000E-03    247.69       -.28444E-05** at limit **
  28  norm          .10000E-03    6.4831       -.31976E-07** at limit **
  29  Normalizat    .10000E-01    .44027       -.14857E-04** at limit **
  30  Prefactor     .54234E-12    .28809       -.14758E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.62518
  Prefactor  = 321.241
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 451.467
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 471.521
  Prefactor  = 0.000100003
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 252.915
  norm       = 0.000100009
  norm       = 46.0883
  Prefactor  = 204.467
  norm       = 151.254
  Prefactor  = 592.478
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 23.9945
  Prefactor  = 0.0001
  Prefactor  = 227.452
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 5.42344e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   331.6984     FROM HESSE     STATUS=OK           570 CALLS     5157 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6252        11.935        .73166E-04   -1.5193    
   2  Prefactor     321.24        336.51        .11335E-03   -1.2104    
   3  norm          .10000E-03    52.133        .12862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    37.161        .10857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    84.536        .16386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     451.47        345.63        .96309E-04   -1.1426    
   7  Prefactor     .10000E-03    19.275        .78141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    545.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    53.640        .13018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    184.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     471.52        719.31        .94293E-04   -1.1330    
  12  Prefactor     .10000E-03    634.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    775.57        .18182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    80.855        .16025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     252.92        147.01        .12742E-03   -1.2514    
  16  norm          .10001E-03    70.308        .14872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          46.088        37.446        .59044E-04   -1.4349    
  18  Prefactor     204.47        176.89        .14129E-03   -1.2838    
  19  norm          151.25        338.21        .16392E-03   -1.3242    
  20  Prefactor     592.48        1017.1        .84723E-04   -1.0790    
  21  norm          .10000E-03    2.3098        .26974E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    57.680        .13531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          23.995        14.457        .49907E-04   -1.4728    
  24  Prefactor     .10000E-03    65.848        .14459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     227.45        349.96        .13407E-03   -1.2680    
  26  Prefactor     .10000E-03    1055.3        .19276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    247.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    6.4832        .45325E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .44679        .70101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .54234E-12    .29010        .57938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55212e-10
Minuit parameter uncertainties:
  1  11.9391
  2  338.589
  3  2.58567e-05
  4  1.62558e-05
  5  5.47391e-05
  6  347.249
  7  1.78745e-05
  8  7.24815e-05
  9  0.00014867
  10  0.00028252
  11  733.889
  12  0.00259705
  13  0.00788428
  14  6.43276e-05
  15  147.225
  16  0.00161258
  17  37.4654
  18  177.358
  19  342.699
  20  1051.56
  21  1.66367e-05
  22  4.65807e-06
  23  14.4587
  24  1.51674e-05
  25  353.259
  26  0.000479953
  27  8.06734e-05
  28  3.17954e-08
  29  6.23468e-06
  30  7.97025e-07
Done.

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

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  2.529e+02  1.472e+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.423e-13  7.970e-07  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.000e-02  6.235e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.67
Ra Dec: 184.514 -0.483
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 9.45e-07 +/- 5.50e-07
Energy Flux (Fixed Index): 3.46e-04 +/- 2.02e-04

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) = 330.598536379
delta logL = 1.09987029346

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 330.554465089
delta logL = 1.14394158271

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.681       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4246       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60693E-09   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=   330.5545     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      293 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.667        75.398        .58685E-04    .74385E-04
   2  Index         3.4247        .81497        .94544E-04    .37299E-04
   3  Normalizat    .10000E-01    .31771        .61341E-02** at limit **
   4  Prefactor     .50904E-12    .26963        .56086E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.6674
  Index      = 3.42475
  Normalizat = 0.01
  Prefactor  = 5.09037e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   330.5545     FROM HESSE     STATUS=OK            23 CALLS      316 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.667        74.714        .11737E-04   -1.4341    
   2  Index         3.4247        .80760        .37818E-05   -.32051    
   3  Normalizat    .10000E-01    .31775        .12268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .50904E-12    .26967        .11217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23526e-11
Minuit parameter uncertainties:
  1  74.8642
  2  0.811553
  3  9.22178e-07
  4  7.44184e-07
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/465405': 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) = 330.554465015
delta logL = 1.14394165719

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  4.667e+01  7.486e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  3.425e+00  8.116e-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:  5.090e-13  7.442e-07  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.000e-02  9.222e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.93
Ra Dec: 184.514 -0.483
Photon Index (Free Index): 3.42 +/- 0.81
Photon Flux (Free Index): 1.82e-06 +/- 1.07e-06
Energy Flux (Free Index): 3.08e-04 +/- 1.56e-04

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/465405/cmap_HighResolution_370483201_370742401_4FGL_J1218.0-0028_daily_bin506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.45e-07', energy_flux2='3.08e-04', photon_flux_error='5.50e-07', dlogl='1.14e+00', energy_flux='3.46e-04', photon_flux2='1.82e-06', job_status='DONE', time_completed='2021-09-05 06:50:52.183133', photon_index_error2='0.81', photon_index2='3.42', ts='8.67', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', energy_flux_error2='1.56e-04', EG='0.01', time_epoch_completed='1630849852.18', return_code='0', job_id='465405', GAL2='0.00', EG2='0.01', return_code2='0', energy_flux_error='2.02e-04', photon_flux_error2='1.07e-06', ts2='10.93', photon_index='2.32' WHERE bin_id='506' AND source_name='4FGL J1218.0-0028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:50:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 465405: <4FGL_J1218.0-0028_daily_bin506> in cluster <slac> Done

Job <4FGL_J1218.0-0028_daily_bin506> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 06:40:50 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:40:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 06:40:52 2021
Terminated at Sun Sep  5 06:50:53 2021
Results reported at Sun Sep  5 06:50:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.0-0028_daily_bin506 184.514 -0.4832 370483201 370742401 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 :                                   429.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             250.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   600 sec.
    Turnaround time :                            603 sec.

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

