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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin856
RA = 184.061, Dec = 5.6248
tmin = 461203201, tmax = 461462401
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='447105', job_status='RUN', time_executed='2021-09-05 05:52:22.952047', time_epoch_executed='1630846342.95' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='856'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447105

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447105/ft1_4FGL_J1216.2+0537_daily_bin856.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447105/ft2_4FGL_J1216.2+0537_daily_bin856.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447105/ft1_4FGL_J1216.2+0537_daily_bin856.fits outfile=/scratch/kocevski/447105/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin856.fits ra=184.061 dec=5.6248 rad=12.0 tmin=461203201.0 tmax=461462401.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.94
user 3.22
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447105/ft1_filtered_4FGL_J1216.2+0537_daily_bin856.fits evtable="EVENTS" scfile=/scratch/kocevski/447105/ft2_4FGL_J1216.2+0537_daily_bin856.fits sctable="SC_DATA" expcube=/scratch/kocevski/447105/ltcube_461203201_461462401_4FGL_J1216.2+0537_daily_bin856.fits outfile=/scratch/kocevski/447105/expmap_461203201_461462401_4FGL_J1216.2+0537_daily_bin856.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/447105/ltcube_461203201_461462401_4FGL_J1216.2+0537_daily_bin856.fits
.....................!
real 192.16
user 185.05
sys 5.48

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/447105/ft1_filtered_4FGL_J1216.2+0537_daily_bin856.fits scfile=/scratch/kocevski/447105/ft2_4FGL_J1216.2+0537_daily_bin856.fits outfile=/scratch/kocevski/447105/cmap_461203201_461462401_4FGL_J1216.2+0537_daily_bin856.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 1.15
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447105/ft1_filtered_4FGL_J1216.2+0537_daily_bin856.fits scfile=/scratch/kocevski/447105/ft2_4FGL_J1216.2+0537_daily_bin856.fits outfile=/scratch/kocevski/447105/cmap_HighResolution_461203201_461462401_4FGL_J1216.2+0537_daily_bin856.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.85
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.6427       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.179       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10509E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.550       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.1770       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    47.059       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.2231       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.1121       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.7069       1.0000         .10000E-03   10000.    
    23 'norm      '    1.0084       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.855       1.0000         .10000E-03   10000.    
    26 'Prefactor '    29.032       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4557       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .70819       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=   5565.252     FROM MIGRAD    STATUS=CONVERGED    751 CALLS     3832 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0582        .36362E-08** at limit **
   2  Prefactor     .10000E-03    6.7976        .24358E-06** at limit **
   3  Prefactor     .10000E-03    53.335        .12492E-05** at limit **
   4  Prefactor     .10000E-03    3.9075       -.67945E-07** at limit **
   5  Prefactor     .10000E-03    2.2636        .33605E-07** at limit **
   6  Prefactor     5.6402        17.197        .61976E-05   -.27611E-04
   7  Prefactor     .10000E-03    6.2059       -.31466E-06** at limit **
   8  Prefactor     .10000E-03    30.736       -.10091E-05** at limit **
   9  Prefactor     .10000E-03    20.822       -.23591E-06** at limit **
  10  Prefactor     30.176        22.086        .14012E-06   -.48103E-05
  11  Prefactor     .10000E-03    1.8893       -.18094E-06** at limit **
  12  Prefactor     .10000E-03    12.192       -.32090E-07** at limit **
  13  Prefactor     24.544        12.798        .16913E-06    .38966E-05
  14  norm          .10000E-03    .99437       -.29592E-07** at limit **
  15  norm          1.1847        3.7184       -.15415E-05   -.93525E-04
  16  Prefactor     .10000E-03    8.1974       -.16157E-06** at limit **
  17  norm          46.972        44.098       -.49107E-06   -.13149E-03
  18  Prefactor     .10000E-03    36.481        .43030E-06** at limit **
  19  norm          1.2224        .56895        .20398E-06    .84560E-04
  20  Prefactor     9.1125        8.5810        .10430E-06   -.10185E-04
  21  Prefactor     .10000E-03    15.554        .84579E-06** at limit **
  22  Prefactor     9.7093        10.921        .15235E-05   -.38400E-04
  23  norm          1.0078        1.7221        .60194E-06    .51520E-04
  24  Prefactor     .10000E-03    3.5523       -.97085E-08** at limit **
  25  Prefactor     13.861        41.561       -.17856E-06   -.74532E-05
  26  Prefactor     29.025        44.171       -.15912E-06   -.13775E-04
  27  norm          .10000E-03    7.6638        .23469E-06** at limit **
  28  Prefactor     .10000E-03    5.3300       -.76515E-07** at limit **
  29  Normalizat    1.4559        .21256       -.13934E-05    .10802E-03
  30  Prefactor     .70797        .17413        .13114E-05   -.51444E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.6402
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.1759
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.5438
  norm       = 0.0001
  norm       = 1.18466
  Prefactor  = 0.0001
  norm       = 46.9717
  Prefactor  = 0.0001
  norm       = 1.2224
  Prefactor  = 9.11247
  Prefactor  = 0.0001
  Prefactor  = 9.70935
  norm       = 1.00783
  Prefactor  = 0.0001
  Prefactor  = 13.8608
  Prefactor  = 29.025
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.45593
  Prefactor  = 0.707966
 **********
 **   18 **HESSE 
 **********

 FCN=   5565.252     FROM HESSE     STATUS=OK           582 CALLS     4414 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0608        .74940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.8007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    53.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9164        .14402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.2656        .10961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.6402        17.138        .84555E-03   -1.5233    
   7  Prefactor     .10000E-03    6.2133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     30.176        22.084        .72933E-04   -1.4609    
  11  Prefactor     .10000E-03    3.4885        .19845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.544        12.769        .80847E-04   -1.4717    
  14  norm          .10000E-03    .99767        .72506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.1847        3.6397        .20470E-03   -1.5490    
  16  Prefactor     .10000E-03    8.1999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          46.972        43.786        .29225E-03   -1.4336    
  18  Prefactor     .10000E-03    36.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.2224        .56023        .35062E-04   -1.5487    
  20  Prefactor     9.1125        8.5814        .13277E-03   -1.5104    
  21  Prefactor     .10000E-03    15.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.7093        10.908        .64310E-03   -1.5085    
  23  norm          1.0078        1.6827        .11834E-03   -1.5507    
  24  Prefactor     .10000E-03    3.5689        .13729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     13.861        41.435        .10761E-03   -1.4963    
  26  Prefactor     29.025        44.166        .74357E-04   -1.4630    
  27  norm          .10000E-03    7.6648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    5.3354        .16806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.4559        .24793        .23902E-03   -.79024    
  30  Prefactor     .70797        .20338        .27949E-03   -1.0322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08453e-10
Minuit parameter uncertainties:
  1  3.47955e-07
  2  8.7844e-06
  3  0.000118555
  4  6.66306e-06
  5  4.11534e-07
  6  17.1525
  7  1.09436e-05
  8  0.000129176
  9  2.14903e-05
  10  22.0896
  11  1.11835e-05
  12  3.55914e-06
  13  12.7703
  14  1.96571e-06
  15  3.64033
  16  7.29058e-06
  17  43.8161
  18  3.71618e-05
  19  0.56023
  20  8.58256
  21  4.57052e-05
  22  10.9104
  23  1.6828
  24  7.24407e-06
  25  41.5207
  26  44.2157
  27  7.64137e-06
  28  4.99544e-06
  29  0.248135
  30  0.20359
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  3.559e-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:  7.080e-01  2.036e-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.456e+00  2.481e-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: 5.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/447105/likelihoodResults_461203201_461462401_4FGL_J1216.2+0537_daily_bin856.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) = 5565.25251932
delta logL = -0.000389270469896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5565.2521299
delta logL = 1.49281731865e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9886       1.0000          .0000       10.000    
     3 'Normalizat'    1.4559       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70798       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=   5565.252     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      256 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10096E-03    66.721        .18142E-02** at limit **
   2  Index         1.9402        5.1461        .50000        .16182E-04
   3  Normalizat    1.4559        .11561E-01    .23903E-03   -.10654E-04
   4  Prefactor     .70797        .98537E-02    .27949E-03   -.22779E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100959
  Index      = 1.94016
  Normalizat = 1.45593
  Prefactor  = 0.707968
 **********
 **   18 **HESSE 
 **********

 FCN=   5565.252     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10096E-03    309.30        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9402        9.0072        .50000       -.65855    
   3  Normalizat    1.4559        .25492E-01    .95610E-05   -.79024    
   4  Prefactor     .70797        .21726E-01    .11180E-04   -1.0322    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24775e-08
Minuit parameter uncertainties:
  1  0.0346247
  2  338.499
  3  0.0254922
  4  0.0217262
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447105': 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) = 5565.25212972
delta logL = 3.27372617903e-07

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.010e-04  3.462e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.940e+00  3.385e+02  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:  7.080e-01  2.173e-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.456e+00  2.549e-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/447105/cmap_HighResolution_461203201_461462401_4FGL_J1216.2+0537_daily_bin856.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.02e-03', job_status='DONE', photon_flux_upper_limit='5.35e-08', time_completed='2021-09-05 06:06:57.308831', job_id='447105', GAL2='0.71', fit_tolerance='1e-08', EG2='1.46', EG='1.46', time_epoch_completed='1630847217.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='3.27e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='856' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:06:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 447105: <4FGL_J1216.2+0537_daily_bin856> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin856 184.061 5.6248 461203201 461462401 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.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            944 sec.

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

