/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 18 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 = 7469
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1218.0-0028_daily_bin221
RA = 184.514, Dec = -0.4832
tmin = 296611201, tmax = 296870401
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='463791', job_status='RUN', time_executed='2021-09-05 06:36:37.316231', time_epoch_executed='1630848997.32' WHERE source_name='4FGL J1218.0-0028' and cadence='daily' and bin_id='221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/463791

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/463791/ft1_4FGL_J1218.0-0028_daily_bin221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/463791/ft2_4FGL_J1218.0-0028_daily_bin221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/463791/ft1_4FGL_J1218.0-0028_daily_bin221.fits outfile=/scratch/kocevski/463791/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin221.fits ra=184.514 dec=-0.4832 rad=12.0 tmin=296611201.0 tmax=296870401.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 4.35
user 4.08
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/463791/ft1_filtered_4FGL_J1218.0-0028_daily_bin221.fits" evtable="EVENTS" scfile=/scratch/kocevski/463791/ft2_4FGL_J1218.0-0028_daily_bin221.fits sctable="SC_DATA" outfile=/scratch/kocevski/463791/ltcube_296611201_296870401_4FGL_J1218.0-0028_daily_bin221.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/463791/ft2_4FGL_J1218.0-0028_daily_bin221.fits
.....................!
real 11.92
user 11.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/463791/ft1_filtered_4FGL_J1218.0-0028_daily_bin221.fits evtable="EVENTS" scfile=/scratch/kocevski/463791/ft2_4FGL_J1218.0-0028_daily_bin221.fits sctable="SC_DATA" expcube=/scratch/kocevski/463791/ltcube_296611201_296870401_4FGL_J1218.0-0028_daily_bin221.fits outfile=/scratch/kocevski/463791/expmap_296611201_296870401_4FGL_J1218.0-0028_daily_bin221.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/463791/ltcube_296611201_296870401_4FGL_J1218.0-0028_daily_bin221.fits
.....................!
real 190.84
user 185.66
sys 4.62

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/463791/ft1_filtered_4FGL_J1218.0-0028_daily_bin221.fits scfile=/scratch/kocevski/463791/ft2_4FGL_J1218.0-0028_daily_bin221.fits outfile=/scratch/kocevski/463791/cmap_296611201_296870401_4FGL_J1218.0-0028_daily_bin221.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/463791/ft1_filtered_4FGL_J1218.0-0028_daily_bin221.fits scfile=/scratch/kocevski/463791/ft2_4FGL_J1218.0-0028_daily_bin221.fits outfile=/scratch/kocevski/463791/cmap_HighResolution_296611201_296870401_4FGL_J1218.0-0028_daily_bin221.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=184.514 yref=-0.4832 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/463791/ft1_filtered_4FGL_J1218.0-0028_daily_bin221.fits evtable="EVENTS" scfile=/scratch/kocevski/463791/ft2_4FGL_J1218.0-0028_daily_bin221.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/463791/Model_4FGL_J1218.0-0028_daily_bin221.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/463791/ft1_filtered_4FGL_J1218.0-0028_daily_bin221.fits.....................!
real 56.04
user 54.00
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3980       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.5747       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.2928       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .63390E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.519       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2731       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.438       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.825       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.680       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.569       1.0000         .10000E-03   10000.    
    16 'norm      '    2.9044       1.0000         .10000E-03   10000.    
    17 'norm      '    .10182E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.1588       1.0000         .10000E-03   10000.    
    20 'Prefactor '    136.71       1.0000         .10000E-03   10000.    
    21 'norm      '    3.0690       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .19321       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.1035       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.314       1.0000         .10000E-03   10000.    
    27 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .31103       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .77297       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1091       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=   6423.051     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3922 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3980        1.6214        .26711E-07   -.41413E-04
   2  Prefactor     .10000E-03    16.203       -.13223E-06** at limit **
   3  norm          6.5757        6.3410        .57965E-07    .18439E-04
   4  Prefactor     7.2923        4.4722        .62308E-07    .57752E-04
   5  Prefactor     .10000E-03    5.8544       -.48171E-06** at limit **
   6  Prefactor     .10035E-03    492.90        .15972E-04** at limit **
   7  Prefactor     12.516        10.232       -.53065E-07   -.14613E-03
   8  Prefactor     .10000E-03    15.209       -.57334E-06** at limit **
   9  Prefactor     4.2731        5.7722        .65658E-07   -.13070E-03
  10  Prefactor     17.438        14.620        .29758E-06   -.14727E-04
  11  Prefactor     .10000E-03    31.432       -.13108E-05** at limit **
  12  Prefactor     14.822        32.122       -.29857E-06   -.20400E-03
  13  Prefactor     14.682        24.813        .17125E-06   -.73639E-04
  14  Prefactor     .10000E-03    14.891       -.73693E-06** at limit **
  15  Prefactor     16.569        18.482        .16738E-06   -.30147E-03
  16  norm          2.9040        3.8827        .52776E-08   -.29279E-03
  17  norm          .10000E-03    2.5538        .52358E-05** at limit **
  18  Prefactor     .10000E-03    17.405        .54027E-06** at limit **
  19  norm          9.2137        43.415       -.12722E-04   -.26216E-03
  20  Prefactor     136.73        190.27       -.16142E-05   -.11439E-03
  21  norm          3.0693        .75065        .55284E-08   -.92563E-02
  22  Prefactor     .10000E-03    5.7741        .50963E-06** at limit **
  23  norm          .19322        1.0631        .60967E-07   -.71119E-03
  24  Prefactor     2.1019        8.2629        .71137E-05   -.18330E-03
  25  Prefactor     .10000E-03    19.640        .11102E-05** at limit **
  26  Prefactor     15.304        28.360        .50742E-06   -.71745E-04
  27  norm          .10000E-03    10.329        .31346E-06** at limit **
  28  norm          .31104        .20220       -.65941E-08   -.27113E-03
  29  Normalizat    .77296        .21356       -.18855E-05   -.68145E-03
  30  Prefactor     1.1092        .15864        .26384E-06   -.86238E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.39795
  Prefactor  = 0.0001
  norm       = 6.57566
  Prefactor  = 7.29233
  Prefactor  = 0.0001
  Prefactor  = 0.000100353
  Prefactor  = 12.5156
  Prefactor  = 0.0001
  Prefactor  = 4.27306
  Prefactor  = 17.4382
  Prefactor  = 0.000100001
  Prefactor  = 14.8219
  Prefactor  = 14.6816
  Prefactor  = 0.0001
  Prefactor  = 16.5688
  norm       = 2.90404
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 9.21367
  Prefactor  = 136.732
  norm       = 3.06932
  Prefactor  = 0.0001
  norm       = 0.193222
  Prefactor  = 2.10188
  Prefactor  = 0.000100001
  Prefactor  = 15.3038
  norm       = 0.0001
  norm       = 0.311035
  Normalizat = 0.772959
  Prefactor  = 1.10916
 **********
 **   18 **HESSE 
 **********

 FCN=   6423.051     FROM HESSE     STATUS=OK           584 CALLS     4506 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3980        1.6041        .10683E-03   -1.5471    
   2  Prefactor     .10000E-03    16.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.5757        6.3335        .15651E-03   -1.5195    
   4  Prefactor     7.2923        4.4663        .12219E-03   -1.5168    
   5  Prefactor     .10000E-03    5.8545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10035E-03    494.53        .21035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.516        10.238        .11321E-03   -1.5000    
   8  Prefactor     .10000E-03    15.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.2731        5.7618        .19491E-03   -1.5295    
  10  Prefactor     17.438        14.628        .95911E-04   -1.4873    
  11  Prefactor     .10000E-03    31.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.822        32.150        .10402E-03   -1.4938    
  13  Prefactor     14.682        24.757        .10454E-03   -1.4941    
  14  Prefactor     .10000E-03    14.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.569        18.223        .98395E-04   -1.4894    
  16  norm          2.9040        3.8128        .14198E-03   -1.5367    
  17  norm          .10000E-03    3.4812        .21289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.2137        46.034        .13243E-03   -1.5101    
  20  Prefactor     136.73        189.65        .17224E-03   -1.3364    
  21  norm          3.0693        .74981        .30505E-04   -1.5358    
  22  Prefactor     .10000E-03    5.8086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .19322        2.0158        .15252E-02   -1.5620    
  24  Prefactor     2.1019        8.4094        .14226E-02   -1.5418    
  25  Prefactor     .10000E-03    19.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     15.304        28.370        .10235E-03   -1.4925    
  27  norm          .10000E-03    10.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .31104        .20048        .27102E-04   -1.5596    
  29  Normalizat    .77296        .24067        .33064E-03   -1.0108    
  30  Prefactor     1.1092        .17969        .22089E-03   -.89175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48449e-09
Minuit parameter uncertainties:
  1  1.60413
  2  1.12848e-05
  3  6.33411
  4  4.46646
  5  4.38479e-05
  6  0.0266481
  7  10.2394
  8  8.7265e-05
  9  5.7625
  10  14.6313
  11  0.000281943
  12  32.1878
  13  24.7744
  14  9.07011e-05
  15  18.2296
  16  3.81308
  17  9.33486e-05
  18  0.000111997
  19  41.2399
  20  190.501
  21  0.749814
  22  6.98647e-05
  23  1.24794
  24  8.41031
  25  0.000269803
  26  28.3947
  27  3.77117e-05
  28  0.200483
  29  0.241005
  30  0.179788
Done.

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

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  1.657e+01  1.823e+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.109e+00  1.798e-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:  7.730e-01  2.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.59
Ra Dec: 184.514 -0.483
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 6.19e-08 +/- 6.81e-08
Energy Flux (Fixed Index): 2.27e-05 +/- 2.50e-05

TS (Fixed Index): 1.59
Ra Dec: 184.514 -0.483
Photon Flux Upper Limit: 1.72e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.32e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/463791/likelihoodResults_296611201_296870401_4FGL_J1218.0-0028_daily_bin221.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) = 6422.36089827
delta logL = 0.690307929958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6422.34036778
delta logL = 0.710838418152

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8533       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4577       1.0000          .0000       10.000    
     3 'Normalizat'    .70936       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1446       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=   6422.340     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      293 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8550        56.637        .82875E-04    .22711E-02
   2  Index         3.4577        3.5992        .38270E-02    .41252E-03
   3  Normalizat    .70937        .23175        .34322E-03   -.52779E-03
   4  Prefactor     1.1445        .18193        .21778E-03   -.64135E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.855
  Index      = 3.45768
  Normalizat = 0.709369
  Prefactor  = 1.14452
 **********
 **   18 **HESSE 
 **********

 FCN=   6422.340     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8550        6.8585        .33150E-05   -1.5370    
   2  Index         3.4577        1.0897        .15308E-03   -.31358    
   3  Normalizat    .70937        .23101        .13729E-04   -1.0352    
   4  Prefactor     1.1445        .17904        .43555E-04   -.88056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64227e-09
Minuit parameter uncertainties:
  1  6.86043
  2  1.09949
  3  0.23133
  4  0.179136
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/463791': 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) = 6422.34036729
delta logL = 0.710838908676

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  2.855e+00  6.860e+00  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  3.458e+00  1.099e+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.145e+00  1.791e-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:  7.094e-01  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.20
Ra Dec: 184.514 -0.483
Photon Index (Free Index): 3.46 +/- 1.10
Photon Flux (Free Index): 1.20e-07 +/- 8.15e-08
Energy Flux (Free Index): 2.01e-05 +/- 1.35e-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/463791/cmap_HighResolution_296611201_296870401_4FGL_J1218.0-0028_daily_bin221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-02', comment='SUCCESS', photon_flux='6.19e-08', energy_flux2='2.01e-05', photon_flux_error='6.81e-08', dlogl='7.11e-01', energy_flux='2.27e-05', photon_flux2='1.20e-07', job_status='DONE', time_completed='2021-09-05 06:51:41.985260', photon_index_error2='1.10', photon_index2='3.46', ts='1.59', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.72e-07', energy_flux_error2='1.35e-05', EG='0.77', time_epoch_completed='1630849901.99', return_code='0', job_id='463791', GAL2='1.14', EG2='0.71', return_code2='0', energy_flux_error='2.50e-05', photon_flux_error2='8.15e-08', ts2='3.20', photon_index='2.32' WHERE bin_id='221' AND source_name='4FGL J1218.0-0028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:51:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 463791: <4FGL_J1218.0-0028_daily_bin221> in cluster <slac> Done

Job <4FGL_J1218.0-0028_daily_bin221> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 06:35:55 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:35:57 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:35:57 2021
Terminated at Sun Sep  5 06:51:42 2021
Results reported at Sun Sep  5 06:51:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.0-0028_daily_bin221 184.514 -0.4832 296611201 296870401 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 :                                   900.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            947 sec.

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

