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


Performing analysis on: 4FGL_J1218.0-0028_daily_bin970
RA = 184.514, Dec = -0.4832
tmin = 490752001, tmax = 491011201
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='472689', job_status='RUN', time_executed='2021-09-05 07:02:49.710785', time_epoch_executed='1630850569.71' WHERE source_name='4FGL J1218.0-0028' and cadence='daily' and bin_id='970'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/472689

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/472689/ft1_4FGL_J1218.0-0028_daily_bin970.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/472689/ft2_4FGL_J1218.0-0028_daily_bin970.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/472689/ft1_4FGL_J1218.0-0028_daily_bin970.fits outfile=/scratch/kocevski/472689/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin970.fits ra=184.514 dec=-0.4832 rad=12.0 tmin=490752001.0 tmax=491011201.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 6.21
user 5.49
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/472689/ft2_4FGL_J1218.0-0028_daily_bin970.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/472689/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin970.fits evtable="EVENTS" outfile="/scratch/kocevski/472689/ft1_filtered_4FGL_J1218.0-0028_daily_bin970.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 1.81
user 0.32
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/472689/ft1_filtered_4FGL_J1218.0-0028_daily_bin970.fits" evtable="EVENTS" scfile=/scratch/kocevski/472689/ft2_4FGL_J1218.0-0028_daily_bin970.fits sctable="SC_DATA" outfile=/scratch/kocevski/472689/ltcube_490752001_491011201_4FGL_J1218.0-0028_daily_bin970.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/472689/ft2_4FGL_J1218.0-0028_daily_bin970.fits
.....................!
real 12.89
user 11.26
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/472689/ft1_filtered_4FGL_J1218.0-0028_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/472689/ft2_4FGL_J1218.0-0028_daily_bin970.fits sctable="SC_DATA" expcube=/scratch/kocevski/472689/ltcube_490752001_491011201_4FGL_J1218.0-0028_daily_bin970.fits outfile=/scratch/kocevski/472689/expmap_490752001_491011201_4FGL_J1218.0-0028_daily_bin970.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/472689/ltcube_490752001_491011201_4FGL_J1218.0-0028_daily_bin970.fits
.....................!
real 193.12
user 184.88
sys 5.27

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/472689/ft1_filtered_4FGL_J1218.0-0028_daily_bin970.fits scfile=/scratch/kocevski/472689/ft2_4FGL_J1218.0-0028_daily_bin970.fits outfile=/scratch/kocevski/472689/cmap_490752001_491011201_4FGL_J1218.0-0028_daily_bin970.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.84
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/472689/ft1_filtered_4FGL_J1218.0-0028_daily_bin970.fits scfile=/scratch/kocevski/472689/ft2_4FGL_J1218.0-0028_daily_bin970.fits outfile=/scratch/kocevski/472689/cmap_HighResolution_490752001_491011201_4FGL_J1218.0-0028_daily_bin970.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.98
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/472689/ft1_filtered_4FGL_J1218.0-0028_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/472689/ft2_4FGL_J1218.0-0028_daily_bin970.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/472689/Model_4FGL_J1218.0-0028_daily_bin970.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/472689/ft1_filtered_4FGL_J1218.0-0028_daily_bin970.fits.....................!
real 55.02
user 49.92
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8108       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0780       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0264       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10785E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.9299       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.031       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3114       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.972       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    50.206       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8313       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0986       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.5313       1.0000         .10000E-03   10000.    
    17 'norm      '    1.9512       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.9740       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.789       1.0000         .10000E-03   10000.    
    23 'norm      '    1.7915       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.7486       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .44101       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .73375       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2097       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=   5893.632     FROM MIGRAD    STATUS=CONVERGED    770 CALLS     3903 TOTAL
                     EDM=   .33E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8108        1.5094        .15194E-08   -.61917E-05
   2  Prefactor     .10000E-03    7.7836       -.60052E-07** at limit **
   3  norm          .10000E-03    2.3885        .17496E-09** at limit **
   4  Prefactor     6.0787        3.6307        .62898E-07    .11115E-05
   5  Prefactor     3.0273        14.157        .41028E-05    .23683E-05
   6  Prefactor     .10000E-03    113.80        .71961E-05** at limit **
   7  Prefactor     7.9218        14.585        .57835E-10   -.25111E-04
   8  Prefactor     12.032        19.093        .66599E-07    .37595E-06
   9  Prefactor     3.3103        6.8885        .31612E-05   -.11529E-04
  10  Prefactor     17.973        13.302        .90402E-07    .38943E-06
  11  Prefactor     .10000E-03    10.356       -.34193E-06** at limit **
  12  Prefactor     50.190        40.404        .53101E-06   -.13547E-04
  13  Prefactor     4.8306        11.947       -.15841E-07   -.26647E-05
  14  Prefactor     5.0955        22.062        .20981E-05   -.66606E-06
  15  Prefactor     .10000E-03    5.8613       -.69724E-08** at limit **
  16  norm          2.5308        2.1718        .38896E-08   -.12778E-04
  17  norm          1.9520        2.4220       -.46568E-07   -.82513E-04
  18  Prefactor     .10000E-03    20.140       -.27486E-05** at limit **
  19  norm          .10000E-03    17.589        .19888E-05** at limit **
  20  Prefactor     .10000E-03    68.028       -.71831E-05** at limit **
  21  norm          1.9739        .65509       -.85393E-08   -.27370E-03
  22  Prefactor     11.788        10.394        .31297E-06   -.16227E-04
  23  norm          1.7916        1.9202        .92034E-07   -.37633E-04
  24  Prefactor     .10000E-03    4.2190        .10760E-08** at limit **
  25  Prefactor     .10000E-03    35.903        .29716E-05** at limit **
  26  Prefactor     3.7459        42.178        .58808E-06   -.32631E-06
  27  norm          .10000E-03    9.0209        .25948E-06** at limit **
  28  norm          .44101        .19053        .64628E-08   -.70808E-04
  29  Normalizat    .73378        .22259       -.26931E-06   -.29982E-04
  30  Prefactor     1.2097        .16993       -.63121E-06   -.41217E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.81082
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.07868
  Prefactor  = 3.02732
  Prefactor  = 0.0001
  Prefactor  = 7.92177
  Prefactor  = 12.0317
  Prefactor  = 3.31028
  Prefactor  = 17.9731
  Prefactor  = 0.0001
  Prefactor  = 50.1904
  Prefactor  = 4.83058
  Prefactor  = 5.0955
  Prefactor  = 0.0001
  norm       = 2.53082
  norm       = 1.95196
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.97394
  Prefactor  = 11.7876
  norm       = 1.7916
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.74587
  norm       = 0.0001
  norm       = 0.441014
  Normalizat = 0.733782
  Prefactor  = 1.20966
 **********
 **   18 **HESSE 
 **********

 FCN=   5893.632     FROM HESSE     STATUS=OK           592 CALLS     4495 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8108        1.5156        .83938E-04   -1.5439    
   2  Prefactor     .10000E-03    7.7924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.3990        .11577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.0787        3.6257        .10820E-03   -1.5215    
   5  Prefactor     3.0273        14.077        .11663E-02   -1.5360    
   6  Prefactor     .10000E-03    113.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.9218        14.628        .14239E-03   -1.5145    
   8  Prefactor     12.032        19.088        .11549E-03   -1.5014    
   9  Prefactor     3.3103        6.8824        .11123E-02   -1.5344    
  10  Prefactor     17.973        13.312        .94475E-04   -1.4860    
  11  Prefactor     .10000E-03    10.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     50.190        40.447        .56598E-04   -1.4290    
  13  Prefactor     4.8306        11.928        .18302E-03   -1.5268    
  14  Prefactor     5.0955        21.997        .89030E-03   -1.5256    
  15  Prefactor     .10000E-03    5.8806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.5308        2.1748        .10119E-03   -1.5390    
  17  norm          1.9520        2.3972        .12649E-03   -1.5429    
  18  Prefactor     .10000E-03    20.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    17.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    68.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.9739        .65307        .33286E-04   -1.5427    
  22  Prefactor     11.788        10.390        .58336E-03   -1.5021    
  23  norm          1.7916        1.9030        .10338E-03   -1.5440    
  24  Prefactor     .10000E-03    4.2550        .15394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    36.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.7459        42.131        .20854E-03   -1.5321    
  27  norm          .10000E-03    9.0285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .44101        .19010        .20747E-04   -1.5575    
  29  Normalizat    .73378        .25048        .33642E-03   -1.0257    
  30  Prefactor     1.2097        .19197        .21431E-03   -.86035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50563e-10
Minuit parameter uncertainties:
  1  1.51563
  2  6.47932e-07
  3  1.67836e-07
  4  3.62581
  5  13.061
  6  7.27618e-05
  7  14.6343
  8  19.0981
  9  6.884
  10  13.314
  11  4.99417e-07
  12  40.4688
  13  11.9336
  14  21.1873
  15  1.54659e-06
  16  2.17485
  17  2.39731
  18  1.05773e-06
  19  5.41245e-06
  20  3.74163e-05
  21  0.653077
  22  10.3911
  23  1.90303
  24  7.72444e-07
  25  2.697e-06
  26  25.1471
  27  9.96296e-07
  28  0.190102
  29  0.250868
  30  0.192085
Done.

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

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  1.547e-06  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.210e+00  1.921e-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.338e-01  2.509e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 184.514 -0.483
Photon Flux Upper Limit: 8.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/472689/likelihoodResults_490752001_491011201_4FGL_J1218.0-0028_daily_bin970.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) = 5893.63297037
delta logL = -0.000808866859188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5893.63216151
delta logL = -8.20182322059e-09

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 'Index     '    2.3210       1.0000          .0000       10.000    
     3 'Normalizat'    .73379       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2097       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=   5893.632     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      203 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    431.60        .90712E-02** at limit **
   2  Index         2.3208        5.8414        .50000       -.59376E-05
   3  Normalizat    .73378        .49318E-01    .75998E-01    .98959E-05
   4  Prefactor     1.2097        .39550E-01    .34406E-01   -.14285E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.32083
  Normalizat = 0.733782
  Prefactor  = 1.20966
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    568.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3208        8.5423        .50000       -.56549    
   3  Normalizat    .73378        .58751E-01    .33642E-03   -1.0257    
   4  Prefactor     1.2097        .47252E-01    .21431E-03   -.86035    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.36476e-09
Minuit parameter uncertainties:
  1  1.16609e-05
  2  41.9521
  3  0.0587563
  4  0.0472539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/472689': 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) = 5893.6321615
delta logL = 1.90993887372e-11

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  1.166e-05  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.321e+00  4.195e+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.210e+00  4.725e-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:  7.338e-01  5.876e-02  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/472689/cmap_HighResolution_490752001_491011201_4FGL_J1218.0-0028_daily_bin970.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.30e-03', job_status='DONE', photon_flux_upper_limit='8.20e-08', time_completed='2021-09-05 07:17:09.266263', job_id='472689', GAL2='1.21', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1630851429.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.91e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='970' AND source_name='4FGL J1218.0-0028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 07:17:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 472689: <4FGL_J1218.0-0028_daily_bin970> in cluster <slac> Done

Job <4FGL_J1218.0-0028_daily_bin970> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 07:00:37 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 07:00:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 07:00:39 2021
Terminated at Sun Sep  5 07:17:10 2021
Results reported at Sun Sep  5 07:17:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.0-0028_daily_bin970 184.514 -0.4832 490752001 491011201 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 :                                   841.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            993 sec.

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

