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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin818
RA = 184.061, Dec = 5.6248
tmin = 451353601, tmax = 451612801
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='447036', job_status='RUN', time_executed='2021-09-05 05:52:33.481938', time_epoch_executed='1630846353.48' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='818'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447036

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447036/ft1_4FGL_J1216.2+0537_daily_bin818.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447036/ft2_4FGL_J1216.2+0537_daily_bin818.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447036/ft1_4FGL_J1216.2+0537_daily_bin818.fits outfile=/scratch/kocevski/447036/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin818.fits ra=184.061 dec=5.6248 rad=12.0 tmin=451353601.0 tmax=451612801.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.97
user 3.65
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447036/ft1_filtered_4FGL_J1216.2+0537_daily_bin818.fits" evtable="EVENTS" scfile=/scratch/kocevski/447036/ft2_4FGL_J1216.2+0537_daily_bin818.fits sctable="SC_DATA" outfile=/scratch/kocevski/447036/ltcube_451353601_451612801_4FGL_J1216.2+0537_daily_bin818.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/447036/ft2_4FGL_J1216.2+0537_daily_bin818.fits
.....................!
real 13.01
user 12.45
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447036/ft1_filtered_4FGL_J1216.2+0537_daily_bin818.fits evtable="EVENTS" scfile=/scratch/kocevski/447036/ft2_4FGL_J1216.2+0537_daily_bin818.fits sctable="SC_DATA" expcube=/scratch/kocevski/447036/ltcube_451353601_451612801_4FGL_J1216.2+0537_daily_bin818.fits outfile=/scratch/kocevski/447036/expmap_451353601_451612801_4FGL_J1216.2+0537_daily_bin818.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/447036/ltcube_451353601_451612801_4FGL_J1216.2+0537_daily_bin818.fits
.....................!
real 191.17
user 185.58
sys 4.34

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/447036/ft1_filtered_4FGL_J1216.2+0537_daily_bin818.fits scfile=/scratch/kocevski/447036/ft2_4FGL_J1216.2+0537_daily_bin818.fits outfile=/scratch/kocevski/447036/cmap_451353601_451612801_4FGL_J1216.2+0537_daily_bin818.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 2.00
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447036/ft1_filtered_4FGL_J1216.2+0537_daily_bin818.fits scfile=/scratch/kocevski/447036/ft2_4FGL_J1216.2+0537_daily_bin818.fits outfile=/scratch/kocevski/447036/cmap_HighResolution_451353601_451612801_4FGL_J1216.2+0537_daily_bin818.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 1.74
user 0.41
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/447036/ft1_filtered_4FGL_J1216.2+0537_daily_bin818.fits', '/scratch/kocevski/447036/ft2_4FGL_J1216.2+0537_daily_bin818.fits', expMap='/scratch/kocevski/447036/expmap_451353601_451612801_4FGL_J1216.2+0537_daily_bin818.fits', expCube='/scratch/kocevski/447036/ltcube_451353601_451612801_4FGL_J1216.2+0537_daily_bin818.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/447036/Model_4FGL_J1216.2+0537_daily_bin818.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/447036/ft1_filtered_4FGL_J1216.2+0537_daily_bin818.fits
Spacecraft file(s): /scratch/kocevski/447036/ft2_4FGL_J1216.2+0537_daily_bin818.fits
Exposure map: /scratch/kocevski/447036/expmap_451353601_451612801_4FGL_J1216.2+0537_daily_bin818.fits
Exposure cube: /scratch/kocevski/447036/ltcube_451353601_451612801_4FGL_J1216.2+0537_daily_bin818.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/447036/Model_4FGL_J1216.2+0537_daily_bin818.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) = 5328.44130258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10808E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    93.940       1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.013       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10931E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.772       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.686       1.0000         .10000E-03   10000.    
    14 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.872       1.0000         .10000E-03   10000.    
    17 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    93.479       1.0000         .10000E-03   10000.    
    19 'norm      '    .51870E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.337       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.373       1.0000         .10000E-03   10000.    
    23 'norm      '    1.1567       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    24.013       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10444E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0591       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0075       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=   5328.429     FROM MIGRAD    STATUS=CONVERGED    747 CALLS     3893 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0941       -.36618E-07** at limit **
   2  Prefactor     .10000E-03    29.848       -.96694E-07** at limit **
   3  Prefactor     .10000E-03    35.286        .17039E-04** at limit **
   4  Prefactor     .10000E-03    4.8614       -.53893E-07** at limit **
   5  Prefactor     .10000E-03    7.2837       -.32232E-05** at limit **
   6  Prefactor     .10000E-03    9.2776       -.11406E-05** at limit **
   7  Prefactor     .10000E-03    7.4767       -.18091E-06** at limit **
   8  Prefactor     93.933        85.009       -.65381E-05   -.18289E-04
   9  Prefactor     36.019        40.485        .59911E-05    .42316E-04
  10  Prefactor     .10000E-03    9.7320       -.44864E-05** at limit **
  11  Prefactor     .10007E-03    1.8190        .13746E-05** at limit **
  12  Prefactor     18.775        24.187        .20717E-05    .24412E-04
  13  Prefactor     20.687        12.790       -.11653E-06    .11930E-03
  14  norm          .10000E-03    1.4685        .39652E-08** at limit **
  15  norm          .10000E-03    2.3144        .22774E-06** at limit **
  16  Prefactor     36.879        37.242        .81080E-05    .65850E-05
  17  norm          .10000E-03    59.588       -.27989E-04** at limit **
  18  Prefactor     93.408        129.60       -.70890E-04    .69821E-05
  19  norm          .51907E-01    .41590       -.20828E-06   -.51517E-03
  20  Prefactor     12.339        9.4630       -.13564E-06   -.72380E-04
  21  Prefactor     .10000E-03    15.477        .62155E-05** at limit **
  22  Prefactor     18.373        11.521        .38915E-07    .37343E-04
  23  norm          1.1569        1.3621        .16056E-06   -.51823E-04
  24  Prefactor     .10000E-03    5.6627        .17170E-06** at limit **
  25  Prefactor     .10000E-03    47.460        .20370E-04** at limit **
  26  Prefactor     .10000E-03    24.856       -.14453E-04** at limit **
  27  norm          24.003        26.025       -.58523E-05   -.86684E-05
  28  Prefactor     .10000E-03    27.851       -.39714E-05** at limit **
  29  Normalizat    1.0590        .20925       -.69756E-06    .66977E-05
  30  Prefactor     1.0076        .17663        .17845E-05   -.90852E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 93.9326
  Prefactor  = 36.0186
  Prefactor  = 0.0001
  Prefactor  = 0.000100067
  Prefactor  = 18.7753
  Prefactor  = 20.6866
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 36.8792
  norm       = 0.000100001
  Prefactor  = 93.4082
  norm       = 0.0519071
  Prefactor  = 12.3392
  Prefactor  = 0.0001
  Prefactor  = 18.373
  norm       = 1.15694
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.0034
  Prefactor  = 0.0001
  Normalizat = 1.05895
  Prefactor  = 1.00756
 **********
 **   18 **HESSE 
 **********

 FCN=   5328.429     FROM HESSE     STATUS=OK           584 CALLS     4477 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0978        .74561E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    30.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    35.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.8763        .15714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.3720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.2958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.4895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     93.933        85.289        .41466E-04   -1.3767    
   9  Prefactor     36.019        40.601        .66782E-04   -1.4507    
  10  Prefactor     .10000E-03    9.7542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10007E-03    8.1568        .18854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.775        24.155        .92441E-04   -1.4841    
  13  Prefactor     20.687        12.670        .88065E-04   -1.4798    
  14  norm          .10000E-03    1.4788        .85964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.3688        .21579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     36.879        37.255        .66001E-04   -1.4493    
  17  norm          .10000E-03    59.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     93.408        129.59        .20783E-03   -1.3772    
  19  norm          .51907E-01    .97124        .84134E-03   -1.5662    
  20  Prefactor     12.339        9.4636        .11405E-03   -1.5005    
  21  Prefactor     .10000E-03    15.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     18.373        11.489        .93439E-04   -1.4850    
  23  norm          1.1569        1.3265        .86997E-04   -1.5493    
  24  Prefactor     .10000E-03    5.7566        .16957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    47.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    24.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          24.003        26.034        .81744E-04   -1.4728    
  28  Prefactor     .10000E-03    28.908        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0590        .24362        .26500E-03   -.91081    
  30  Prefactor     1.0076        .20722        .23787E-03   -.92478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17015e-08
Minuit parameter uncertainties:
  1  9.69009e-07
  2  4.02878e-05
  3  2.22411e-05
  4  9.5491e-06
  5  4.47329e-05
  6  3.18211e-05
  7  3.90607e-06
  8  85.401
  9  40.6325
  10  5.45884e-06
  11  0.00147866
  12  24.1676
  13  12.6714
  14  3.28205e-07
  15  3.28988e-05
  16  37.2784
  17  0.000479231
  18  129.981
  19  0.448637
  20  9.46479
  21  1.8422e-05
  22  11.4906
  23  1.32655
  24  1.87062e-05
  25  0.000120514
  26  7.68339e-06
  27  26.0468
  28  7.80187e-05
  29  0.243879
  30  0.207388
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.878e+01  2.417e+01  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:  1.008e+00  2.074e-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.059e+00  2.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/447036/likelihoodResults_451353601_451612801_4FGL_J1216.2+0537_daily_bin818.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) = 5328.24494052
delta logL = 0.183976853949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5328.24332939
delta logL = 0.18558797859

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6392       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7675       1.0000          .0000       10.000    
     3 'Normalizat'    1.0271       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0244       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5328.243     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      371 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6399        293.25        .16916E-03    .27144E-03
   2  Index         2.7677        6.2994        .53662E-02    .14197E-03
   3  Normalizat    1.0262        .29883        .26859E-03    .62053E-04
   4  Prefactor     1.0252        .22451        .23603E-03    .21434E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.63994
  Index      = 2.76768
  Normalizat = 1.02621
  Prefactor  = 1.02519
 **********
 **   18 **HESSE 
 **********

 FCN=   5328.243     FROM HESSE     STATUS=OK            25 CALLS      396 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6399        19.408        .67665E-05   -1.5233    
   2  Index         2.7677        1.4321        .21465E-03   -.46281    
   3  Normalizat    1.0262        .24415        .10743E-04   -.92158    
   4  Prefactor     1.0252        .20979        .94411E-05   -.91895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83373e-10
Minuit parameter uncertainties:
  1  19.4292
  2  1.45771
  3  0.244412
  4  0.209954
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447036': 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) = 5328.24332111
delta logL = 0.185596266348

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  5.640e+00  1.943e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.768e+00  1.458e+00  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:  1.025e+00  2.100e-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.026e+00  2.444e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.31
Ra Dec: 184.061 5.625
Photon Index (Free Index): 2.77 +/- 1.46
Photon Flux (Free Index): 4.40e-08 +/- 6.09e-08
Energy Flux (Free Index): 1.01e-05 +/- 1.06e-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/447036/cmap_HighResolution_451353601_451612801_4FGL_J1216.2+0537_daily_bin818.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.44e-03', comment='SUCCESS', energy_flux2='1.01e-05', dlogl='1.86e-01', photon_flux2='4.40e-08', job_status='DONE', time_completed='2021-09-05 06:07:16.023441', photon_index_error2='1.46', photon_index2='2.77', ts='0.92', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='8.57e-08', energy_flux_error2='1.06e-05', EG='1.06', time_epoch_completed='1630847236.02', return_code='0', job_id='447036', GAL2='1.03', EG2='1.03', return_code2='0', photon_flux_error2='6.09e-08', ts2='1.31', photon_index='2.02' WHERE bin_id='818' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:07:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 447036: <4FGL_J1216.2+0537_daily_bin818> in cluster <slac> Done

Job <4FGL_J1216.2+0537_daily_bin818> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 05:51:09 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:51:10 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:51:10 2021
Terminated at Sun Sep  5 06:07:16 2021
Results reported at Sun Sep  5 06:07:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin818 184.061 5.6248 451353601 451612801 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 :                                   819.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            967 sec.

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

