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


Performing analysis on: 4FGL_J1218.0-0028_daily_bin678
RA = 184.514, Dec = -0.4832
tmin = 415065601, tmax = 415324801
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='467551', job_status='RUN', time_executed='2021-09-05 06:47:41.007177', time_epoch_executed='1630849661.01' WHERE source_name='4FGL J1218.0-0028' and cadence='daily' and bin_id='678'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/467551

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/467551/ft1_4FGL_J1218.0-0028_daily_bin678.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/467551/ft2_4FGL_J1218.0-0028_daily_bin678.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/467551/ft1_4FGL_J1218.0-0028_daily_bin678.fits outfile=/scratch/kocevski/467551/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin678.fits ra=184.514 dec=-0.4832 rad=12.0 tmin=415065601.0 tmax=415324801.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.66
user 3.43
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/467551/ft2_4FGL_J1218.0-0028_daily_bin678.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/467551/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin678.fits evtable="EVENTS" outfile="/scratch/kocevski/467551/ft1_filtered_4FGL_J1218.0-0028_daily_bin678.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.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/467551/ft1_filtered_4FGL_J1218.0-0028_daily_bin678.fits" evtable="EVENTS" scfile=/scratch/kocevski/467551/ft2_4FGL_J1218.0-0028_daily_bin678.fits sctable="SC_DATA" outfile=/scratch/kocevski/467551/ltcube_415065601_415324801_4FGL_J1218.0-0028_daily_bin678.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/467551/ft2_4FGL_J1218.0-0028_daily_bin678.fits
.....................!
real 12.22
user 11.83
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/467551/ft1_filtered_4FGL_J1218.0-0028_daily_bin678.fits evtable="EVENTS" scfile=/scratch/kocevski/467551/ft2_4FGL_J1218.0-0028_daily_bin678.fits sctable="SC_DATA" expcube=/scratch/kocevski/467551/ltcube_415065601_415324801_4FGL_J1218.0-0028_daily_bin678.fits outfile=/scratch/kocevski/467551/expmap_415065601_415324801_4FGL_J1218.0-0028_daily_bin678.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/467551/ltcube_415065601_415324801_4FGL_J1218.0-0028_daily_bin678.fits
.....................!
real 191.76
user 185.91
sys 5.37

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/467551/ft1_filtered_4FGL_J1218.0-0028_daily_bin678.fits scfile=/scratch/kocevski/467551/ft2_4FGL_J1218.0-0028_daily_bin678.fits outfile=/scratch/kocevski/467551/cmap_415065601_415324801_4FGL_J1218.0-0028_daily_bin678.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/467551/ft1_filtered_4FGL_J1218.0-0028_daily_bin678.fits scfile=/scratch/kocevski/467551/ft2_4FGL_J1218.0-0028_daily_bin678.fits outfile=/scratch/kocevski/467551/cmap_HighResolution_415065601_415324801_4FGL_J1218.0-0028_daily_bin678.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.57
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/467551/ft1_filtered_4FGL_J1218.0-0028_daily_bin678.fits evtable="EVENTS" scfile=/scratch/kocevski/467551/ft2_4FGL_J1218.0-0028_daily_bin678.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/467551/Model_4FGL_J1218.0-0028_daily_bin678.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/467551/ft1_filtered_4FGL_J1218.0-0028_daily_bin678.fits..................................!
real 16.82
user 15.39
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.899       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11492E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    63.048       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2552.3       1.0000         .10000E-03   10000.    
    13 'Prefactor '    228.26       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   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      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.683       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .91645       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1691       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=   443.1749     FROM MIGRAD    STATUS=CONVERGED    755 CALLS     5767 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.008        .15206E-07** at limit **
   2  Prefactor     45.899        124.08        .16209E-06    .12611E-05
   3  norm          .10000E-03    6.6018       -.22202E-07** at limit **
   4  Prefactor     .10000E-03    3.8369       -.37077E-08** at limit **
   5  Prefactor     .10000E-03    296.17        .58016E-05** at limit **
   6  Prefactor     .10089E-03    5947.3       -.60806E-03** at limit **
   7  Prefactor     .10000E-03    1920.3       -.63876E-03** at limit **
   8  Prefactor     .10000E-03    77.616       -.41790E-04** at limit **
   9  Prefactor     .10000E-03    138.82       -.47188E-04** at limit **
  10  Prefactor     .10000E-03    39.946        .68908E-06** at limit **
  11  Prefactor     63.049        141.63        .10318E-05    .21174E-04
  12  Prefactor     2550.6        2755.2       -.37597E-03    .32685E-05
  13  Prefactor     228.26        217.87        .11617E-05    .28366E-05
  14  Prefactor     .10000E-03    1119.5       -.77585E-04** at limit **
  15  Prefactor     .10000E-03    52.572       -.21501E-04** at limit **
  16  norm          .10000E-03    11.224       -.21883E-07** at limit **
  17  norm          .10000E-03    106.90        .73583E-04** at limit **
  18  Prefactor     .10000E-03    1283.8       -.21771E-03** at limit **
  19  norm          .10000E-03    705.49        .28464E-03** at limit **
  20  Prefactor     .10000E-03    7105.5       -.13159E-02** at limit **
  21  norm          .10000E-03    5.1149        .59165E-07** at limit **
  22  Prefactor     .10000E-03    56.786        .34171E-04** at limit **
  23  norm          .10000E-03    28.396        .22371E-07** at limit **
  24  Prefactor     20.686        54.040        .38702E-05    .22785E-03
  25  Prefactor     .10000E-03    255.53       -.11399E-03** at limit **
  26  Prefactor     .10000E-03    363.78        .17895E-03** at limit **
  27  norm          .10000E-03    1410.7       -.31824E-03** at limit **
  28  norm          .91644        .98547       -.72272E-07   -.17456E-04
  29  Normalizat    .10000E-01    .26527        .10011E-05** at limit **
  30  Prefactor     1.1691        .30334        .42980E-06    .69713E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 45.8991
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100887
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 63.0492
  Prefactor  = 2550.63
  Prefactor  = 228.261
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.6862
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.916438
  Normalizat = 0.01
  Prefactor  = 1.16906
 **********
 **   18 **HESSE 
 **********

 FCN=   443.1749     FROM HESSE     STATUS=OK           562 CALLS     6329 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.018        .96533E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     45.899        124.46        .59181E-04   -1.4352    
   3  norm          .10000E-03    6.6019        .52855E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.8376        .40291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    296.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10089E-03    5931.8        .20668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1919.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    77.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    138.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    39.989        .13008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     63.049        142.59        .50537E-04   -1.4118    
  12  Prefactor     2550.6        2753.5        .45873E-04   -.51194    
  13  Prefactor     228.26        217.96        .13392E-03   -1.2675    
  14  Prefactor     .10000E-03    1119.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    52.575        .14927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    11.227        .68920E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    106.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1283.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    705.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7105.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.1312        .46512E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    56.844        .15511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    28.397        .10967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     20.686        53.912        .88070E-04   -1.4798    
  25  Prefactor     .10000E-03    255.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    363.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1410.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .91644        .98666        .19689E-04   -1.5517    
  29  Normalizat    .10000E-01    .26545        .33632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.1691        .30748        .17054E-03   -.87289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.17598e-10
Minuit parameter uncertainties:
  1  1.24473e-05
  2  125.172
  3  1.98467e-07
  4  3.45761e-07
  5  0.000432315
  6  0.50778
  7  0.0049529
  8  1.04976e-05
  9  0.00145306
  10  2.60114e-06
  11  143.376
  12  2980.36
  13  218.74
  14  0.0017953
  15  4.02781e-05
  16  4.46048e-06
  17  0.000631552
  18  0.000505958
  19  0.000338781
  20  0.000813085
  21  1.88161e-05
  22  6.45927e-05
  23  2.99288e-05
  24  54.0391
  25  1.64351e-05
  26  0.000398574
  27  0.00234293
  28  0.986674
  29  2.59834e-07
  30  0.307946
Done.

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

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  4.028e-05  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.169e+00  3.079e-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.000e-02  2.598e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 184.514 -0.483
Photon Flux Upper Limit: 1.03e-06 ph cm-2 s-1
Energy Flux Upper Limit: 7.93e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/467551/likelihoodResults_415065601_415324801_4FGL_J1218.0-0028_daily_bin678.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) = 443.174969863
delta logL = -8.99018949667e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 443.174880835
delta logL = -8.73710121141e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13028E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6600       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1691       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=   443.1749     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      228 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10371E-03    53.280        .90712E-02** at limit **
   2  Index         2.6297        7.1634        .50000        .77675E-05
   3  Normalizat    .10000E-01    .76516E-03    .32094E-01** at limit **
   4  Prefactor     1.1691        .14259E-01    .35407E-01   -.15164E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103706
  Index      = 2.62966
  Normalizat = 0.01
  Prefactor  = 1.16906
 **********
 **   18 **HESSE 
 **********

 FCN=   443.1749     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      257 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10371E-03    361.55        .12564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6297        8.4325        .50000       -.49391    
   3  Normalizat    .10000E-01    .53496E-02    .33633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1691        .37651E-01    .17054E-03   -.87289    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.87224e-09
Minuit parameter uncertainties:
  1  0.0736601
  2  542.141
  3  2.40206e-06
  4  0.0376517
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/467551': 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): 102
logL (Free Index) = 443.174880402
delta logL = -4.40753069597e-07

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  1.037e-04  7.366e-02  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.630e+00  5.421e+02  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:  1.169e+00  3.765e-02  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  2.402e-06  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/467551/cmap_HighResolution_415065601_415324801_4FGL_J1218.0-0028_daily_bin678.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.93e-02', job_status='DONE', photon_flux_upper_limit='1.03e-06', time_completed='2021-09-05 06:54:04.104771', job_id='467551', GAL2='1.17', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630850044.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='-4.41e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='678' AND source_name='4FGL J1218.0-0028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:54:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 467551: <4FGL_J1218.0-0028_daily_bin678> in cluster <slac> Done

Job <4FGL_J1218.0-0028_daily_bin678> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 06:45:34 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:45:35 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:45:35 2021
Terminated at Sun Sep  5 06:54:04 2021
Results reported at Sun Sep  5 06:54:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.0-0028_daily_bin678 184.514 -0.4832 415065601 415324801 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 :                                   375.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   509 sec.
    Turnaround time :                            510 sec.

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

