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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin757
RA = 184.061, Dec = 5.6248
tmin = 435542401, tmax = 435801601
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='446916', job_status='RUN', time_executed='2021-09-05 05:52:38.313292', time_epoch_executed='1630846358.31' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446916

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446916/ft1_4FGL_J1216.2+0537_daily_bin757.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446916/ft2_4FGL_J1216.2+0537_daily_bin757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446916/ft1_4FGL_J1216.2+0537_daily_bin757.fits outfile=/scratch/kocevski/446916/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin757.fits ra=184.061 dec=5.6248 rad=12.0 tmin=435542401.0 tmax=435801601.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 5.49
user 5.21
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/446916/ft2_4FGL_J1216.2+0537_daily_bin757.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/446916/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin757.fits evtable="EVENTS" outfile="/scratch/kocevski/446916/ft1_filtered_4FGL_J1216.2+0537_daily_bin757.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/446916/ft1_filtered_4FGL_J1216.2+0537_daily_bin757.fits" evtable="EVENTS" scfile=/scratch/kocevski/446916/ft2_4FGL_J1216.2+0537_daily_bin757.fits sctable="SC_DATA" outfile=/scratch/kocevski/446916/ltcube_435542401_435801601_4FGL_J1216.2+0537_daily_bin757.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/446916/ft2_4FGL_J1216.2+0537_daily_bin757.fits
.....................!
real 11.94
user 11.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446916/ft1_filtered_4FGL_J1216.2+0537_daily_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/446916/ft2_4FGL_J1216.2+0537_daily_bin757.fits sctable="SC_DATA" expcube=/scratch/kocevski/446916/ltcube_435542401_435801601_4FGL_J1216.2+0537_daily_bin757.fits outfile=/scratch/kocevski/446916/expmap_435542401_435801601_4FGL_J1216.2+0537_daily_bin757.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/446916/ltcube_435542401_435801601_4FGL_J1216.2+0537_daily_bin757.fits
.....................!
real 189.83
user 185.39
sys 3.99

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/446916/ft1_filtered_4FGL_J1216.2+0537_daily_bin757.fits scfile=/scratch/kocevski/446916/ft2_4FGL_J1216.2+0537_daily_bin757.fits outfile=/scratch/kocevski/446916/cmap_435542401_435801601_4FGL_J1216.2+0537_daily_bin757.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.56
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/446916/ft1_filtered_4FGL_J1216.2+0537_daily_bin757.fits scfile=/scratch/kocevski/446916/ft2_4FGL_J1216.2+0537_daily_bin757.fits outfile=/scratch/kocevski/446916/cmap_HighResolution_435542401_435801601_4FGL_J1216.2+0537_daily_bin757.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.58
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2909       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5751       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.174       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12390E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.7277       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.6480       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9925       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.4239       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.2076       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    45.690       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.8030       1.0000         .10000E-03   10000.    
    23 'norm      '    2.5263       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .14535E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.141       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1554       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .91116       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=   5238.048     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     3911 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2912        4.2710        .13084E-06    .10127E-05
   2  Prefactor     .10000E-03    6.7573        .10058E-08** at limit **
   3  Prefactor     .10001E-03    68.202       -.38686E-05** at limit **
   4  Prefactor     .10000E-03    12.458        .11221E-05** at limit **
   5  Prefactor     .10000E-03    4.6282        .60741E-07** at limit **
   6  Prefactor     4.5519        13.634       -.10661E-05   -.11073E-03
   7  Prefactor     11.176        17.200        .29467E-06    .65258E-05
   8  Prefactor     .10010E-03    180.42       -.14571E-04** at limit **
   9  Prefactor     6.7321        49.537        .11133E-05    .12714E-04
  10  Prefactor     7.6515        21.002        .37337E-06   -.34969E-05
  11  Prefactor     1.9927        2.7275        .11917E-06   -.18771E-04
  12  Prefactor     .10000E-03    13.641       -.12519E-05** at limit **
  13  Prefactor     .10000E-03    2.8157       -.41988E-08** at limit **
  14  norm          2.4239        1.8866       -.48357E-07   -.37376E-04
  15  norm          .10000E-03    1.2714        .16903E-07** at limit **
  16  Prefactor     .10000E-03    11.225       -.87768E-06** at limit **
  17  norm          .10000E-03    20.379       -.60723E-07** at limit **
  18  Prefactor     .10007E-03    95.608        .10550E-04** at limit **
  19  norm          3.2078        .75229       -.33396E-07   -.23444E-03
  20  Prefactor     .10000E-03    5.5434        .48043E-07** at limit **
  21  Prefactor     45.695        35.148        .38600E-06    .33694E-04
  22  Prefactor     3.8025        7.1808        .60127E-05   -.58383E-03
  23  norm          2.5265        2.0852        .11411E-06   -.90821E-04
  24  Prefactor     .10000E-03    3.2162       -.74354E-07** at limit **
  25  Prefactor     .10000E-03    11.578        .79037E-06** at limit **
  26  Prefactor     .10000E-03    21.201        .59777E-06** at limit **
  27  norm          .10085E-03    23.983        .28508E-05** at limit **
  28  Prefactor     14.145        16.093        .30539E-06    .22683E-04
  29  Normalizat    1.1552        .22813       -.16560E-06   -.77798E-04
  30  Prefactor     .91134        .18679       -.97762E-06   -.63299E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.29125
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.55193
  Prefactor  = 11.1757
  Prefactor  = 0.000100099
  Prefactor  = 6.73211
  Prefactor  = 7.65147
  Prefactor  = 1.9927
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.42395
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100065
  norm       = 3.20781
  Prefactor  = 0.0001
  Prefactor  = 45.6952
  Prefactor  = 3.80247
  norm       = 2.52647
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100847
  Prefactor  = 14.145
  Normalizat = 1.15517
  Prefactor  = 0.911338
 **********
 **   18 **HESSE 
 **********

 FCN=   5238.048     FROM HESSE     STATUS=OK           588 CALLS     4499 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2912        4.2713        .12897E-03   -1.5248    
   2  Prefactor     .10000E-03    6.7581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    68.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.6475        .15199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.5519        13.653        .18819E-03   -1.5281    
   7  Prefactor     11.176        17.200        .11985E-03   -1.5039    
   8  Prefactor     .10010E-03    188.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.7321        49.715        .15470E-03   -1.5189    
  10  Prefactor     7.6515        20.974        .14501E-03   -1.5155    
  11  Prefactor     1.9927        2.7111        .13581E-03   -1.5426    
  12  Prefactor     .10000E-03    13.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.8176        .11859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.4239        1.8878        .84900E-04   -1.5397    
  15  norm          .10000E-03    1.2827        .79626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    20.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10007E-03    100.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.2078        .75349        .28367E-04   -1.5350    
  20  Prefactor     .10000E-03    5.5542        .16630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     45.695        35.197        .59316E-04   -1.4355    
  22  Prefactor     3.8025        7.3261        .10349E-02   -1.5318    
  23  norm          2.5265        2.0765        .88556E-04   -1.5390    
  24  Prefactor     .10000E-03    3.2308        .12674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    21.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10085E-03    164.02        .68012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     14.145        16.112        .10651E-03   -1.4956    
  29  Normalizat    1.1552        .27158        .27067E-03   -.88000    
  30  Prefactor     .91134        .22057        .25515E-03   -.95746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.91473e-09
Minuit parameter uncertainties:
  1  4.27151
  2  5.90754e-07
  3  0.00156163
  4  0.000236603
  5  1.53872e-06
  6  13.662
  7  17.2078
  8  0.00865601
  9  36.6315
  10  20.9943
  11  2.71131
  12  0.0002276
  13  7.93441e-07
  14  1.88786
  15  2.42835e-07
  16  0.000144329
  17  1.52263e-05
  18  0.00513859
  19  0.753489
  20  1.70757e-06
  21  35.2134
  22  7.32781
  23  2.07657
  24  1.01825e-05
  25  0.000129672
  26  0.000124201
  27  0.0236351
  28  16.1167
  29  0.271915
  30  0.220787
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  2.276e-04  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:  9.113e-01  2.208e-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.155e+00  2.719e-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: 6.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/446916/likelihoodResults_435542401_435801601_4FGL_J1216.2+0537_daily_bin757.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) = 5238.04860586
delta logL = -0.00034664366467

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5238.04825951
delta logL = -2.91384822049e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10773E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0003       1.0000          .0000       10.000    
     3 'Normalizat'    1.1553       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91127       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5238.048     FROM MIGRAD    STATUS=FAILED        90 CALLS      244 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10160E-03    136.80        .18142E-02** at limit **
   2  Index         1.9334        9.0058        .50000        .93570E-05
   3  Normalizat    1.1552        .16841E-01    .27067E-03   -.18649E-04
   4  Prefactor     .91134        .14362E-01    .25515E-03   -.17778E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5238.048     FROM SIMPLEX   STATUS=PROGRESS     131 CALLS      375 TOTAL
                     EDM=   .85E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10120E-03    136.80        .57345E-03** at limit **
   2  Index         1.9332        9.0058        .67221E-04    .93570E-05
   3  Normalizat    1.1552        .16841E-01    .80075E-06   -.18649E-04
   4  Prefactor     .91134        .14362E-01    .66112E-06   -.17778E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5238.048     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      432 TOTAL
                     EDM=   .28E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    247.92        .36285E-02** at limit **
   2  Index         1.4811        5.9496        .50000       -.95497E-09
   3  Normalizat    1.1552        .20977E-01    .10827E-04    .84003E-06
   4  Prefactor     .91134        .17890E-01    .10206E-04   -.22278E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.4811
  Normalizat = 1.15517
  Prefactor  = 0.911338
 **********
 **   18 **HESSE 
 **********

 FCN=   5238.048     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      461 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1246.8        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4811        8.7524        .50000       -.78070    
   3  Normalizat    1.1552        .51810E-01    .21654E-05   -.88000    
   4  Prefactor     .91134        .44165E-01    .20412E-05   -.95746    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.44194e-12
Minuit parameter uncertainties:
  1  6.62462e-05
  2  2645.24
  3  0.051812
  4  0.0441663
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446916': 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) = 5238.04825846
delta logL = 7.54596840125e-07

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  6.625e-05  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.481e+00  2.645e+03  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:  9.113e-01  4.417e-02  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.155e+00  5.181e-02  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/446916/cmap_HighResolution_435542401_435801601_4FGL_J1216.2+0537_daily_bin757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.62e-03', job_status='DONE', photon_flux_upper_limit='6.15e-08', time_completed='2021-09-05 06:07:15.891524', job_id='446916', GAL2='0.91', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1630847235.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='7.55e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='757' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:07:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 446916: <4FGL_J1216.2+0537_daily_bin757> in cluster <slac> Done

Job <4FGL_J1216.2+0537_daily_bin757> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 05:51:02 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:51:03 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:03 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_bin757 184.061 5.6248 435542401 435801601 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 :                                   821.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            974 sec.

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

