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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin696
RA = 184.061, Dec = 5.6248
tmin = 419731201, tmax = 419990401
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='446821', job_status='RUN', time_executed='2021-09-05 05:52:57.557001', time_epoch_executed='1630846377.56' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='696'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446821

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446821/ft1_4FGL_J1216.2+0537_daily_bin696.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446821/ft2_4FGL_J1216.2+0537_daily_bin696.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446821/ft1_4FGL_J1216.2+0537_daily_bin696.fits outfile=/scratch/kocevski/446821/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin696.fits ra=184.061 dec=5.6248 rad=12.0 tmin=419731201.0 tmax=419990401.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.09
user 5.75
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/446821/ft2_4FGL_J1216.2+0537_daily_bin696.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/446821/ft2_4FGL_J1216.2+0537_daily_bin696.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/446821/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin696.fits evtable="EVENTS" outfile="/scratch/kocevski/446821/ft1_filtered_4FGL_J1216.2+0537_daily_bin696.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.55
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/446821/ft1_filtered_4FGL_J1216.2+0537_daily_bin696.fits" evtable="EVENTS" scfile=/scratch/kocevski/446821/ft2_4FGL_J1216.2+0537_daily_bin696.fits sctable="SC_DATA" outfile=/scratch/kocevski/446821/ltcube_419731201_419990401_4FGL_J1216.2+0537_daily_bin696.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/446821/ft2_4FGL_J1216.2+0537_daily_bin696.fits
.....................!
real 12.16
user 11.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446821/ft1_filtered_4FGL_J1216.2+0537_daily_bin696.fits evtable="EVENTS" scfile=/scratch/kocevski/446821/ft2_4FGL_J1216.2+0537_daily_bin696.fits sctable="SC_DATA" expcube=/scratch/kocevski/446821/ltcube_419731201_419990401_4FGL_J1216.2+0537_daily_bin696.fits outfile=/scratch/kocevski/446821/expmap_419731201_419990401_4FGL_J1216.2+0537_daily_bin696.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/446821/ltcube_419731201_419990401_4FGL_J1216.2+0537_daily_bin696.fits
.....................!
real 192.46
user 185.42
sys 5.13

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 191 point sources and 0 extended sources

Setting source of interest to:
4FGL J1216.2+0537 @ 184.061 5.6248

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/446821/ft1_filtered_4FGL_J1216.2+0537_daily_bin696.fits scfile=/scratch/kocevski/446821/ft2_4FGL_J1216.2+0537_daily_bin696.fits outfile=/scratch/kocevski/446821/cmap_419731201_419990401_4FGL_J1216.2+0537_daily_bin696.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.061 yref=5.6248 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/446821/ft1_filtered_4FGL_J1216.2+0537_daily_bin696.fits scfile=/scratch/kocevski/446821/ft2_4FGL_J1216.2+0537_daily_bin696.fits outfile=/scratch/kocevski/446821/cmap_HighResolution_419731201_419990401_4FGL_J1216.2+0537_daily_bin696.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.061 yref=5.6248 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/446821/ft1_filtered_4FGL_J1216.2+0537_daily_bin696.fits evtable="EVENTS" scfile=/scratch/kocevski/446821/ft2_4FGL_J1216.2+0537_daily_bin696.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/446821/Model_4FGL_J1216.2+0537_daily_bin696.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/446821/ft1_filtered_4FGL_J1216.2+0537_daily_bin696.fits.....................!
real 45.47
user 43.55
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/446821/ft1_filtered_4FGL_J1216.2+0537_daily_bin696.fits', '/scratch/kocevski/446821/ft2_4FGL_J1216.2+0537_daily_bin696.fits', expMap='/scratch/kocevski/446821/expmap_419731201_419990401_4FGL_J1216.2+0537_daily_bin696.fits', expCube='/scratch/kocevski/446821/ltcube_419731201_419990401_4FGL_J1216.2+0537_daily_bin696.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/446821/Model_4FGL_J1216.2+0537_daily_bin696.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1216.2+0537'

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.062e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.020e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/446821/ft1_filtered_4FGL_J1216.2+0537_daily_bin696.fits
Spacecraft file(s): /scratch/kocevski/446821/ft2_4FGL_J1216.2+0537_daily_bin696.fits
Exposure map: /scratch/kocevski/446821/expmap_419731201_419990401_4FGL_J1216.2+0537_daily_bin696.fits
Exposure cube: /scratch/kocevski/446821/ltcube_419731201_419990401_4FGL_J1216.2+0537_daily_bin696.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/446821/Model_4FGL_J1216.2+0537_daily_bin696.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) = 4600.36766691

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.056       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.145       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .53965       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1998       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10950E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.4490       1.0000         .10000E-03   10000.    
    15 'norm      '    8.0361       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    22.065       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.8241       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.4378       1.0000         .10000E-03   10000.    
    23 'norm      '    .99579E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.160       1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.148       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10494E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.131       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3305       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .69380       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4600.365     FROM MIGRAD    STATUS=CONVERGED    751 CALLS     3891 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8020        .39564E-07** at limit **
   2  Prefactor     16.057        16.259        .11653E-07    .15538E-04
   3  Prefactor     .10000E-03    27.709       -.10836E-04** at limit **
   4  Prefactor     17.140        14.058       -.25471E-06   -.27832E-05
   5  Prefactor     .10000E-03    7.8946       -.59968E-06** at limit **
   6  Prefactor     .10000E-03    36.067        .73670E-05** at limit **
   7  Prefactor     .41703        9.7672       -.15627E-07   -.21747E-03
   8  Prefactor     .10000E-03    62.105       -.33008E-04** at limit **
   9  Prefactor     3.1980        114.18       -.11506E-04   -.12016E-04
  10  Prefactor     .10000E-03    9.3465        .27418E-05** at limit **
  11  Prefactor     .10000E-03    2.4430        .44926E-07** at limit **
  12  Prefactor     .10000E-03    21.921        .33309E-05** at limit **
  13  Prefactor     .10000E-03    28.812       -.92241E-05** at limit **
  14  norm          2.4478        2.0790        .47310E-07    .58075E-03
  15  norm          8.0354        4.6851        .79574E-07   -.58675E-04
  16  Prefactor     .10000E-03    35.265        .45100E-05** at limit **
  17  norm          22.063        31.444       -.16035E-05    .85210E-05
  18  Prefactor     .10000E-03    47.503        .15808E-04** at limit **
  19  norm          1.8238        .72911        .54321E-07    .61041E-03
  20  Prefactor     .10000E-03    13.148        .95134E-05** at limit **
  21  Prefactor     .10000E-03    31.081       -.56794E-05** at limit **
  22  Prefactor     5.4364        10.165       -.77812E-07   -.50577E-04
  23  norm          .10287        .93348       -.71406E-07   -.99698E-04
  24  Prefactor     11.160        8.7323       -.42519E-06   -.95665E-03
  25  Prefactor     20.135        30.731       -.14544E-04    .14063E-04
  26  Prefactor     .10000E-03    42.197        .16822E-04** at limit **
  27  norm          .10000E-03    11.927       -.11384E-04** at limit **
  28  Prefactor     10.128        14.971       -.10569E-05   -.13342E-03
  29  Normalizat    1.3303        .23305        .11942E-06    .41385E-04
  30  Prefactor     .69395        .18804        .22912E-05   -.44540E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.0574
  Prefactor  = 0.0001
  Prefactor  = 17.1398
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.41703
  Prefactor  = 0.0001
  Prefactor  = 3.19804
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.44777
  norm       = 8.03541
  Prefactor  = 0.0001
  norm       = 22.0634
  Prefactor  = 0.0001
  norm       = 1.82383
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.43636
  norm       = 0.102867
  Prefactor  = 11.16
  Prefactor  = 20.135
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.1276
  Normalizat = 1.33034
  Prefactor  = 0.693951
 **********
 **   18 **HESSE 
 **********

 FCN=   4600.365     FROM HESSE     STATUS=OK           590 CALLS     4481 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8087        .88913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.057        16.262        .99954E-04   -1.4906    
   3  Prefactor     .10000E-03    27.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.140        14.074        .96729E-04   -1.4880    
   5  Prefactor     .10000E-03    7.9909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    36.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .41703        82.533        .41164E-02   -1.5579    
   8  Prefactor     .10000E-03    62.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.1980        114.44        .22651E-03   -1.5350    
  10  Prefactor     .10000E-03    9.3604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.657        .20511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    29.303        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.4478        2.0699        .87170E-04   -1.5395    
  15  norm          8.0354        4.6873        .10175E-03   -1.5141    
  16  Prefactor     .10000E-03    35.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          22.063        31.480        .85272E-04   -1.4768    
  18  Prefactor     .10000E-03    47.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.8238        .72611        .33265E-04   -1.5438    
  20  Prefactor     .10000E-03    13.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    31.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.4364        10.144        .17232E-03   -1.5242    
  23  norm          .10287        6.1310        .12201E-02   -1.5644    
  24  Prefactor     11.160        8.7582        .59961E-03   -1.5040    
  25  Prefactor     20.135        30.683        .89231E-04   -1.4810    
  26  Prefactor     .10000E-03    42.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    11.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     10.128        15.026        .12589E-03   -1.5071    
  29  Normalizat    1.3303        .27754        .25112E-03   -.82665    
  30  Prefactor     .69395        .22415        .27498E-03   -1.0376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07942e-08
Minuit parameter uncertainties:
  1  1.68362e-06
  2  16.2662
  3  9.66581e-07
  4  14.077
  5  7.07189e-06
  6  8.76337e-05
  7  11.7485
  8  2.5965e-05
  9  38.341
  10  1.50527e-06
  11  0.000440277
  12  8.05306e-06
  13  5.99104e-05
  14  2.06997
  15  4.68756
  16  4.71236e-05
  17  31.5033
  18  4.57427e-06
  19  0.726115
  20  6.89237e-05
  21  8.0869e-05
  22  10.1469
  23  1.5877
  24  8.75924
  25  30.7072
  26  9.27709e-06
  27  1.79062e-05
  28  15.0313
  29  0.277849
  30  0.224442
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  8.053e-06  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.020e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  6.940e-01  2.244e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.330e+00  2.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 184.061 5.625
Photon Flux Upper Limit: 7.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/446821/likelihoodResults_419731201_419990401_4FGL_J1216.2+0537_daily_bin696.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) = 4600.36540846
delta logL = -0.000216839036511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4600.36519194
delta logL = -3.14959834213e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1435       1.0000          .0000       10.000    
     3 'Normalizat'    1.3303       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69395       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4600.365     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      242 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.7129        .90712E-02** at limit **
   2  Index         2.1133        5.9830        .50000        .11769E-04
   3  Normalizat    1.3303        .35654E-02    .56790E-01   -.53671E-04
   4  Prefactor     .69395        .29324E-02    .62162E-01   -.33809E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.11333
  Normalizat = 1.33034
  Prefactor  = 0.693952
 **********
 **   18 **HESSE 
 **********

 FCN=   4600.365     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      275 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    57.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1133        5.6445        .50000       -.61546    
   3  Normalizat    1.3303        .97313E-02    .25113E-03   -.82665    
   4  Prefactor     .69395        .79964E-02    .27498E-03   -1.0376    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.02732e-08
Minuit parameter uncertainties:
  1  0.000223274
  2  83.2319
  3  0.00973132
  4  0.00799641
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446821': 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) = 4600.36519185
delta logL = -2.23473762162e-07

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  2.233e-04  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.113e+00  8.323e+01  0.000e+00  1.000e+01 (-1.000e+00)
322        Scale:  3.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  6.940e-01  7.996e-03  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.330e+00  9.731e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 184.061 5.625

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/446821/cmap_HighResolution_419731201_419990401_4FGL_J1216.2+0537_daily_bin696.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.90e-03', job_status='DONE', photon_flux_upper_limit='7.85e-08', time_completed='2021-09-05 06:06:29.933682', job_id='446821', GAL2='0.69', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1630847189.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='-2.23e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='696' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:06:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 446821: <4FGL_J1216.2+0537_daily_bin696> in cluster <slac> Done

Job <4FGL_J1216.2+0537_daily_bin696> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 05:50:55 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:50:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 05:50:56 2021
Terminated at Sun Sep  5 06:06:30 2021
Results reported at Sun Sep  5 06:06:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin696 184.061 5.6248 419731201 419990401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1216.2+0537 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   739.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            935 sec.

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

