/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 47 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 = 7421
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1218.0-0028_daily_bin499
RA = 184.514, Dec = -0.4832
tmin = 368668801, tmax = 368928001
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='465393', job_status='RUN', time_executed='2021-09-05 06:41:57.674185', time_epoch_executed='1630849317.67' WHERE source_name='4FGL J1218.0-0028' and cadence='daily' and bin_id='499'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/465393

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/465393/ft1_4FGL_J1218.0-0028_daily_bin499.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/465393/ft2_4FGL_J1218.0-0028_daily_bin499.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/465393/ft1_4FGL_J1218.0-0028_daily_bin499.fits outfile=/scratch/kocevski/465393/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin499.fits ra=184.514 dec=-0.4832 rad=12.0 tmin=368668801.0 tmax=368928001.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.41
user 3.14
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/465393/ft1_filtered_4FGL_J1218.0-0028_daily_bin499.fits" evtable="EVENTS" scfile=/scratch/kocevski/465393/ft2_4FGL_J1218.0-0028_daily_bin499.fits sctable="SC_DATA" outfile=/scratch/kocevski/465393/ltcube_368668801_368928001_4FGL_J1218.0-0028_daily_bin499.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/465393/ft2_4FGL_J1218.0-0028_daily_bin499.fits
.....................!
real 11.82
user 11.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/465393/ft1_filtered_4FGL_J1218.0-0028_daily_bin499.fits evtable="EVENTS" scfile=/scratch/kocevski/465393/ft2_4FGL_J1218.0-0028_daily_bin499.fits sctable="SC_DATA" expcube=/scratch/kocevski/465393/ltcube_368668801_368928001_4FGL_J1218.0-0028_daily_bin499.fits outfile=/scratch/kocevski/465393/expmap_368668801_368928001_4FGL_J1218.0-0028_daily_bin499.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/465393/ltcube_368668801_368928001_4FGL_J1218.0-0028_daily_bin499.fits
.....................!
real 192.43
user 186.66
sys 4.78

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/465393/ft1_filtered_4FGL_J1218.0-0028_daily_bin499.fits scfile=/scratch/kocevski/465393/ft2_4FGL_J1218.0-0028_daily_bin499.fits outfile=/scratch/kocevski/465393/cmap_368668801_368928001_4FGL_J1218.0-0028_daily_bin499.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.69
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/465393/ft1_filtered_4FGL_J1218.0-0028_daily_bin499.fits scfile=/scratch/kocevski/465393/ft2_4FGL_J1218.0-0028_daily_bin499.fits outfile=/scratch/kocevski/465393/cmap_HighResolution_368668801_368928001_4FGL_J1218.0-0028_daily_bin499.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.80
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/465393/ft1_filtered_4FGL_J1218.0-0028_daily_bin499.fits evtable="EVENTS" scfile=/scratch/kocevski/465393/ft2_4FGL_J1218.0-0028_daily_bin499.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/465393/Model_4FGL_J1218.0-0028_daily_bin499.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/465393/ft1_filtered_4FGL_J1218.0-0028_daily_bin499.fits.....................!
real 57.31
user 55.15
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23268E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    49.666       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.0918       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    70.106       1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.082       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0504       1.0000         .10000E-03   10000.    
    16 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.8096       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .12128E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.1034       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.386       1.0000         .10000E-03   10000.    
    23 'norm      '    6.6961       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.7595       1.0000         .10000E-03   10000.    
    25 'Prefactor '    49.427       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    10.261       1.0000         .10000E-03   10000.    
    28 'norm      '    .47204       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .99173       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3908       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=   6483.513     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     3910 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9387       -.20176E-06** at limit **
   2  Prefactor     49.670        33.850        .22349E-05    .92129E-05
   3  norm          .10000E-03    2.2171        .50731E-07** at limit **
   4  Prefactor     .10000E-03    3.1213       -.41175E-07** at limit **
   5  Prefactor     .10000E-03    7.2179       -.70600E-05** at limit **
   6  Prefactor     .10000E-03    26.089       -.19740E-04** at limit **
   7  Prefactor     .10000E-03    7.6185        .96384E-05** at limit **
   8  Prefactor     .10000E-03    18.383        .14391E-04** at limit **
   9  Prefactor     7.0907        10.019        .78127E-07   -.59504E-04
  10  Prefactor     .10000E-03    5.0246        .21368E-06** at limit **
  11  Prefactor     70.100        48.274       -.50256E-05   -.20908E-04
  12  Prefactor     45.078        42.333       -.35182E-05    .13139E-04
  13  Prefactor     .10000E-03    7.4203        .14003E-05** at limit **
  14  Prefactor     .10000E-03    12.543        .23318E-05** at limit **
  15  Prefactor     7.0488        11.385       -.33992E-06   -.51251E-04
  16  norm          .10000E-03    1.1591       -.54905E-07** at limit **
  17  norm          3.7996        3.8084       -.26631E-06    .11938E-03
  18  Prefactor     .10000E-03    9.5903       -.76137E-05** at limit **
  19  norm          .10000E-03    80.500       -.31910E-04** at limit **
  20  Prefactor     .10000E-03    40.230        .38516E-04** at limit **
  21  norm          1.1031        .74968        .13848E-06    .77018E-03
  22  Prefactor     10.385        11.359        .17902E-06   -.23529E-04
  23  norm          6.6957        2.5042        .20690E-06    .11505E-04
  24  Prefactor     8.7590        8.1551        .43536E-06    .27714E-04
  25  Prefactor     49.407        43.090       -.17573E-04    .43230E-05
  26  Prefactor     .10000E-03    22.860       -.13045E-04** at limit **
  27  norm          10.262        22.516        .44965E-06   -.76242E-05
  28  norm          .47202        .23990       -.68218E-08    .38306E-03
  29  Normalizat    .99218        .24133        .16316E-05    .13099E-04
  30  Prefactor     1.3906        .18431        .55400E-06    .51957E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 49.6699
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.09073
  Prefactor  = 0.0001
  Prefactor  = 70.1
  Prefactor  = 45.0783
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.04883
  norm       = 0.0001
  norm       = 3.79961
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.10314
  Prefactor  = 10.3855
  norm       = 6.6957
  Prefactor  = 8.75898
  Prefactor  = 49.4073
  Prefactor  = 0.0001
  norm       = 10.2621
  norm       = 0.472023
  Normalizat = 0.992178
  Prefactor  = 1.39057
 **********
 **   18 **HESSE 
 **********

 FCN=   6483.513     FROM HESSE     STATUS=OK           582 CALLS     4492 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4144        .21704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     49.670        33.856        .56903E-04   -1.4297    
   3  norm          .10000E-03    2.2222        .11708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.2286        .27766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.2214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.8061        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.0907        10.002        .15064E-03   -1.5175    
  10  Prefactor     .10000E-03    5.0307        .17626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     70.100        48.319        .47943E-04   -1.4031    
  12  Prefactor     45.078        42.427        .59713E-04   -1.4364    
  13  Prefactor     .10000E-03    7.4253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.0488        11.295        .15108E-03   -1.5177    
  16  norm          .10000E-03    1.1653        .84214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.7996        3.7745        .14083E-03   -1.5318    
  18  Prefactor     .10000E-03    9.5953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    80.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    40.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1031        .72307        .49019E-04   -1.5498    
  22  Prefactor     10.385        11.340        .12433E-03   -1.5063    
  23  norm          6.6957        2.4961        .72377E-04   -1.5190    
  24  Prefactor     8.7590        8.1479        .13543E-03   -1.5116    
  25  Prefactor     49.407        43.073        .57039E-04   -1.4301    
  26  Prefactor     .10000E-03    22.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          10.262        22.515        .12508E-03   -1.5067    
  28  norm          .47202        .23933        .27065E-04   -1.5571    
  29  Normalizat    .99218        .27952        .34921E-03   -.93293    
  30  Prefactor     1.3906        .21515        .24349E-03   -.80652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09169e-10
Minuit parameter uncertainties:
  1  3.84978e-05
  2  33.8687
  3  2.34358e-06
  4  6.11744e-06
  5  1.68375e-06
  6  1.04907e-06
  7  8.98638e-05
  8  1.286e-05
  9  10.0045
  10  1.69571e-06
  11  48.3462
  12  42.4559
  13  2.06968e-06
  14  4.2915e-06
  15  11.2987
  16  5.11277e-07
  17  3.77472
  18  1.76112e-06
  19  0.000240593
  20  1.85139e-06
  21  0.723072
  22  11.3422
  23  2.49618
  24  8.14896
  25  43.1
  26  7.098e-07
  27  22.5337
  28  0.239331
  29  0.279928
  30  0.215292
Done.

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

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  7.049e+00  1.130e+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.391e+00  2.153e-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.922e-01  2.799e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/465393/likelihoodResults_368668801_368928001_4FGL_J1218.0-0028_daily_bin499.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) = 6483.32829567
delta logL = 0.185164136194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6483.32317491
delta logL = 0.190284896564

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7629       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9298       1.0000          .0000       10.000    
     3 'Normalizat'    .96997       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3996       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=   6483.323     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      293 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7617        10.429        .17827E-03   -.71048E-03
   2  Index         2.9300        1.3158        .62150E-02   -.18533E-03
   3  Normalizat    .96998        .26490        .35259E-03    .23315E-03
   4  Prefactor     1.3995        .21220        .24276E-03    .38641E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.76169
  Index      = 2.93001
  Normalizat = 0.969981
  Prefactor  = 1.39954
 **********
 **   18 **HESSE 
 **********

 FCN=   6483.323     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7617        8.0428        .71309E-05   -1.5320    
   2  Index         2.9300        1.0194        .24860E-03   -.42684    
   3  Normalizat    .96998        .26473        .14103E-04   -.94043    
   4  Prefactor     1.3995        .21203        .48552E-04   -.80393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.56509e-10
Minuit parameter uncertainties:
  1  8.04508
  2  1.02816
  3  0.265087
  4  0.21216
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/465393': 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) = 6483.32317487
delta logL = 0.190284935884

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  3.762e+00  8.045e+00  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.930e+00  1.028e+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:  1.400e+00  2.122e-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.700e-01  2.651e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.51
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/465393/cmap_HighResolution_368668801_368928001_4FGL_J1218.0-0028_daily_bin499.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.80e-03', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2021-09-05 06:57:10.493931', job_id='465393', GAL2='1.40', fit_tolerance='1e-08', EG2='0.97', EG='0.99', time_epoch_completed='1630850230.49', return_code2='0', ts='0.51', comment='SUCCESS', return_code='0', GAL='1.39', dlogl='1.90e-01', ts2='0.90', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='499' AND source_name='4FGL J1218.0-0028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:57:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 465393: <4FGL_J1218.0-0028_daily_bin499> in cluster <slac> Done

Job <4FGL_J1218.0-0028_daily_bin499> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 06:40:49 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:40:51 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:51 2021
Terminated at Sun Sep  5 06:57:11 2021
Results reported at Sun Sep  5 06:57:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.0-0028_daily_bin499 184.514 -0.4832 368668801 368928001 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 :                                   907.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            982 sec.

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

