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


Performing analysis on: 4FGL_J1218.0-0028_daily_bin589
RA = 184.514, Dec = -0.4832
tmin = 391996801, tmax = 392256001
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='467354', job_status='RUN', time_executed='2021-09-05 06:48:02.187277', time_epoch_executed='1630849682.19' WHERE source_name='4FGL J1218.0-0028' and cadence='daily' and bin_id='589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/467354

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/467354/ft1_4FGL_J1218.0-0028_daily_bin589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/467354/ft2_4FGL_J1218.0-0028_daily_bin589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/467354/ft1_4FGL_J1218.0-0028_daily_bin589.fits outfile=/scratch/kocevski/467354/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin589.fits ra=184.514 dec=-0.4832 rad=12.0 tmin=391996801.0 tmax=392256001.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 5.37
user 5.10
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/467354/ft1_filtered_4FGL_J1218.0-0028_daily_bin589.fits" evtable="EVENTS" scfile=/scratch/kocevski/467354/ft2_4FGL_J1218.0-0028_daily_bin589.fits sctable="SC_DATA" outfile=/scratch/kocevski/467354/ltcube_391996801_392256001_4FGL_J1218.0-0028_daily_bin589.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/467354/ft2_4FGL_J1218.0-0028_daily_bin589.fits
.....................!
real 12.20
user 11.80
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/467354/ft1_filtered_4FGL_J1218.0-0028_daily_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/467354/ft2_4FGL_J1218.0-0028_daily_bin589.fits sctable="SC_DATA" expcube=/scratch/kocevski/467354/ltcube_391996801_392256001_4FGL_J1218.0-0028_daily_bin589.fits outfile=/scratch/kocevski/467354/expmap_391996801_392256001_4FGL_J1218.0-0028_daily_bin589.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/467354/ltcube_391996801_392256001_4FGL_J1218.0-0028_daily_bin589.fits
.....................!
real 192.00
user 186.11
sys 4.86

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/467354/ft1_filtered_4FGL_J1218.0-0028_daily_bin589.fits scfile=/scratch/kocevski/467354/ft2_4FGL_J1218.0-0028_daily_bin589.fits outfile=/scratch/kocevski/467354/cmap_391996801_392256001_4FGL_J1218.0-0028_daily_bin589.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.57
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/467354/ft1_filtered_4FGL_J1218.0-0028_daily_bin589.fits scfile=/scratch/kocevski/467354/ft2_4FGL_J1218.0-0028_daily_bin589.fits outfile=/scratch/kocevski/467354/cmap_HighResolution_391996801_392256001_4FGL_J1218.0-0028_daily_bin589.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/467354/ft1_filtered_4FGL_J1218.0-0028_daily_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/467354/ft2_4FGL_J1218.0-0028_daily_bin589.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/467354/Model_4FGL_J1218.0-0028_daily_bin589.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/467354/ft1_filtered_4FGL_J1218.0-0028_daily_bin589.fits.....................!
real 51.44
user 50.02
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1714       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .36827E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .77740       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.369       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7699       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9373       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.394       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.791       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.791       1.0000         .10000E-03   10000.    
    16 'norm      '    .27284E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    2.6627       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.609       1.0000         .10000E-03   10000.    
    19 'norm      '    .12540E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .58135       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.1078       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.0303       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    9.5596       1.0000         .10000E-03   10000.    
    28 'norm      '    1.1821       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .95977       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2625       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=   6059.297     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     3917 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1713        2.4132        .37625E-08   -.12310E-04
   2  Prefactor     .10000E-03    57.975        .68866E-08** at limit **
   3  norm          .10007E-03    5.9023        .15480E-05** at limit **
   4  Prefactor     .77740        2.5295        .19994E-06   -.11573E-03
   5  Prefactor     .10000E-03    12.388        .25089E-07** at limit **
   6  Prefactor     22.267        82.420        .10917E-04    .34277E-04
   7  Prefactor     2.7716        6.8316        .17466E-05    .16546E-03
   8  Prefactor     .10000E-03    29.207        .25547E-06** at limit **
   9  Prefactor     7.9379        9.6172        .21000E-07    .46355E-05
  10  Prefactor     12.394        18.692        .23755E-06   -.31766E-04
  11  Prefactor     .10000E-03    29.772        .15303E-06** at limit **
  12  Prefactor     23.793        26.158       -.22638E-06   -.40196E-05
  13  Prefactor     .10000E-03    51.825       -.15542E-05** at limit **
  14  Prefactor     .10000E-03    8.6185       -.67215E-08** at limit **
  15  Prefactor     13.786        11.726        .86831E-07    .44836E-04
  16  norm          .29857E-01    1.3986       -.13650E-06    .19233E-03
  17  norm          2.6617        3.8560       -.77984E-07   -.62446E-04
  18  Prefactor     12.608        27.813        .92141E-07   -.11482E-05
  19  norm          .10000E-03    65.050        .20183E-05** at limit **
  20  Prefactor     .10000E-03    57.702       -.50687E-06** at limit **
  21  norm          .58079        .54776        .74176E-08   -.18291E-04
  22  Prefactor     .10000E-03    5.0717        .35566E-07** at limit **
  23  norm          1.1078        1.0656        .14038E-07   -.96891E-05
  24  Prefactor     5.0299        7.1701        .53800E-06    .81318E-04
  25  Prefactor     .10000E-03    28.542        .39835E-06** at limit **
  26  Prefactor     .10000E-03    23.603       -.23664E-06** at limit **
  27  norm          9.5533        33.133        .56079E-06    .49063E-05
  28  norm          1.1821        .31109        .24195E-08   -.44117E-04
  29  Normalizat    .95974        .23509        .79040E-06   -.37458E-04
  30  Prefactor     1.2624        .17873       -.11162E-05   -.65819E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.17134
  Prefactor  = 0.0001
  norm       = 0.000100068
  Prefactor  = 0.777403
  Prefactor  = 0.0001
  Prefactor  = 22.2672
  Prefactor  = 2.77158
  Prefactor  = 0.0001
  Prefactor  = 7.93789
  Prefactor  = 12.3935
  Prefactor  = 0.0001
  Prefactor  = 23.7929
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7856
  norm       = 0.0298574
  norm       = 2.66171
  Prefactor  = 12.6079
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.580795
  Prefactor  = 0.0001
  norm       = 1.10781
  Prefactor  = 5.0299
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.55326
  norm       = 1.1821
  Normalizat = 0.959744
  Prefactor  = 1.26244
 **********
 **   18 **HESSE 
 **********

 FCN=   6059.297     FROM HESSE     STATUS=OK           600 CALLS     4517 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1713        2.4154        .10205E-03   -1.5352    
   2  Prefactor     .10000E-03    58.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10007E-03    26.638        .32114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .77740        2.4391        .21295E-03   -1.5532    
   5  Prefactor     .10000E-03    12.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.267        83.155        .84690E-04   -1.4764    
   7  Prefactor     2.7716        6.8981        .12227E-02   -1.5375    
   8  Prefactor     .10000E-03    29.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.9379        9.6226        .14232E-03   -1.5144    
  10  Prefactor     12.394        18.689        .11378E-03   -1.5004    
  11  Prefactor     .10000E-03    29.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.793        26.151        .82123E-04   -1.4732    
  13  Prefactor     .10000E-03    52.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.6208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.786        11.774        .10786E-03   -1.4965    
  16  norm          .29857E-01    2.1983        .32778E-01   -1.5673    
  17  norm          2.6617        3.7718        .15725E-03   -1.5382    
  18  Prefactor     12.608        27.817        .11281E-03   -1.4998    
  19  norm          .10000E-03    65.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    57.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .58079        .51713        .47804E-04   -1.5556    
  22  Prefactor     .10000E-03    5.1161        .17117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.1078        1.0664        .75722E-04   -1.5497    
  24  Prefactor     5.0299        7.1643        .89645E-03   -1.5259    
  25  Prefactor     .10000E-03    28.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    23.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          9.5533        33.079        .12961E-03   -1.5090    
  28  norm          1.1821        .31089        .21392E-04   -1.5491    
  29  Normalizat    .95974        .27673        .31767E-03   -.94392    
  30  Prefactor     1.2624        .21005        .22850E-03   -.84431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09316e-09
Minuit parameter uncertainties:
  1  2.41543
  2  1.19794e-05
  3  0.00269261
  4  2.43937
  5  2.06403e-06
  6  83.5922
  7  6.90004
  8  1.16105e-05
  9  9.62447
  10  18.6975
  11  6.84028e-06
  12  26.1633
  13  6.57936e-05
  14  6.84041e-07
  15  11.7763
  16  0.511548
  17  3.7721
  18  27.8458
  19  0.000173833
  20  3.55072e-05
  21  0.517139
  22  2.94119e-06
  23  1.06638
  24  7.16552
  25  2.46639e-05
  26  8.72166e-06
  27  33.1423
  28  0.310895
  29  0.277141
  30  0.210187
Done.

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

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  1.379e+01  1.178e+01  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.262e+00  2.102e-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.597e-01  2.771e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.14
Ra Dec: 184.514 -0.483
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 5.15e-08 +/- 4.40e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 1.61e-05

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) = 6059.19181431
delta logL = 0.105536638733

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6059.18641324
delta logL = 0.110937706268

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.983       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9857       1.0000          .0000       10.000    
     3 'Normalizat'    .98002       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2548       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=   6059.186     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      279 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.990        14.204        .50091E-03    .35996E-04
   2  Index         1.9877        .72585        .10424E-01    .14370E-03
   3  Normalizat    .97988        .25585        .31477E-03    .62339E-04
   4  Prefactor     1.2552        .20656        .22909E-03   -.65832E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9895
  Index      = 1.9877
  Normalizat = 0.979876
  Prefactor  = 1.25515
 **********
 **   18 **HESSE 
 **********

 FCN=   6059.186     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.990        14.161        .20036E-04   -1.4908    
   2  Index         1.9877        .72310        .20848E-02   -.64658    
   3  Normalizat    .97988        .25590        .12591E-04   -.93708    
   4  Prefactor     1.2552        .20670        .45819E-04   -.84651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.70957e-11
Minuit parameter uncertainties:
  1  14.1641
  2  0.727116
  3  0.256224
  4  0.206837
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/467354': 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) = 6059.1864043
delta logL = 0.110946650082

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  1.599e+01  1.416e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  1.988e+00  7.271e-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:  1.255e+00  2.068e-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.799e-01  2.562e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.35
Ra Dec: 184.514 -0.483
Photon Index (Free Index): 1.99 +/- 0.73
Photon Flux (Free Index): 3.27e-08 +/- 4.79e-08
Energy Flux (Free Index): 2.33e-05 +/- 2.56e-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/467354/cmap_HighResolution_391996801_392256001_4FGL_J1218.0-0028_daily_bin589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.15e-08', energy_flux2='2.33e-05', photon_flux_error='4.40e-08', dlogl='1.11e-01', energy_flux='1.89e-05', photon_flux2='3.27e-08', job_status='DONE', time_completed='2021-09-05 07:01:00.356487', photon_index_error2='0.73', photon_index2='1.99', ts='5.14', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='2.56e-05', EG='0.96', time_epoch_completed='1630850460.36', return_code='0', job_id='467354', GAL2='1.26', EG2='0.98', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='4.79e-08', ts2='5.35', photon_index='2.32' WHERE bin_id='589' AND source_name='4FGL J1218.0-0028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 07:01:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 467354: <4FGL_J1218.0-0028_daily_bin589> in cluster <slac> Done

Job <4FGL_J1218.0-0028_daily_bin589> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 06:45:24 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:45:26 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:26 2021
Terminated at Sun Sep  5 07:01:01 2021
Results reported at Sun Sep  5 07:01:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.0-0028_daily_bin589 184.514 -0.4832 391996801 392256001 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 :                                   774.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            937 sec.

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

