/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 134 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 = 7261
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1216.2+0537_daily_bin446
RA = 184.061, Dec = 5.6248
tmin = 354931201, tmax = 355190401
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='443799', job_status='RUN', time_executed='2021-09-05 05:43:21.968442', time_epoch_executed='1630845801.97' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='446'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443799

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443799/ft1_4FGL_J1216.2+0537_daily_bin446.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443799/ft2_4FGL_J1216.2+0537_daily_bin446.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443799/ft1_4FGL_J1216.2+0537_daily_bin446.fits outfile=/scratch/kocevski/443799/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin446.fits ra=184.061 dec=5.6248 rad=12.0 tmin=354931201.0 tmax=355190401.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.30
user 3.10
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/443799/ft2_4FGL_J1216.2+0537_daily_bin446.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/443799/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin446.fits evtable="EVENTS" outfile="/scratch/kocevski/443799/ft1_filtered_4FGL_J1216.2+0537_daily_bin446.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/443799/ft1_filtered_4FGL_J1216.2+0537_daily_bin446.fits" evtable="EVENTS" scfile=/scratch/kocevski/443799/ft2_4FGL_J1216.2+0537_daily_bin446.fits sctable="SC_DATA" outfile=/scratch/kocevski/443799/ltcube_354931201_355190401_4FGL_J1216.2+0537_daily_bin446.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/443799/ft2_4FGL_J1216.2+0537_daily_bin446.fits
.....................!
real 11.85
user 11.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443799/ft1_filtered_4FGL_J1216.2+0537_daily_bin446.fits evtable="EVENTS" scfile=/scratch/kocevski/443799/ft2_4FGL_J1216.2+0537_daily_bin446.fits sctable="SC_DATA" expcube=/scratch/kocevski/443799/ltcube_354931201_355190401_4FGL_J1216.2+0537_daily_bin446.fits outfile=/scratch/kocevski/443799/expmap_354931201_355190401_4FGL_J1216.2+0537_daily_bin446.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/443799/ltcube_354931201_355190401_4FGL_J1216.2+0537_daily_bin446.fits
.....................!
real 189.99
user 184.97
sys 4.64

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/443799/ft1_filtered_4FGL_J1216.2+0537_daily_bin446.fits scfile=/scratch/kocevski/443799/ft2_4FGL_J1216.2+0537_daily_bin446.fits outfile=/scratch/kocevski/443799/cmap_354931201_355190401_4FGL_J1216.2+0537_daily_bin446.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443799/ft1_filtered_4FGL_J1216.2+0537_daily_bin446.fits scfile=/scratch/kocevski/443799/ft2_4FGL_J1216.2+0537_daily_bin446.fits outfile=/scratch/kocevski/443799/cmap_HighResolution_354931201_355190401_4FGL_J1216.2+0537_daily_bin446.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.54
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5924       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .24806E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4609       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2213       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.606       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.169       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   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      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.6122       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .66388       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .59238       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.0133       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.1969       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.7829       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.5701       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10796E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2698       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .81902       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=   4789.798     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     3854 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5921        3.1391        .25133E-06    .10192E-02
   2  Prefactor     .10000E-03    130.37        .47206E-05** at limit **
   3  Prefactor     .10000E-03    80.304        .15707E-04** at limit **
   4  Prefactor     4.4610        8.3414        .75250E-08   -.14094E-03
   5  Prefactor     6.2186        5.9932        .31080E-05    .11276E-06
   6  Prefactor     .10000E-03    18.144        .50061E-05** at limit **
   7  Prefactor     11.605        23.507        .73333E-07   -.23233E-04
   8  Prefactor     11.163        188.46       -.16313E-04   -.10744E-04
   9  Prefactor     .10000E-03    22.578        .14446E-04** at limit **
  10  Prefactor     .10000E-03    9.2592       -.22409E-06** at limit **
  11  Prefactor     .10000E-03    1.3882       -.29423E-08** at limit **
  12  Prefactor     .10000E-03    7.1104       -.74551E-07** at limit **
  13  Prefactor     .10000E-03    2.8964       -.41814E-07** at limit **
  14  norm          .10000E-03    .71278        .80741E-08** at limit **
  15  norm          2.6120        2.4511       -.51957E-07   -.15768E-03
  16  Prefactor     .56816        17.587       -.19172E-05    .51504E-04
  17  norm          .10000E-03    20.694       -.70146E-05** at limit **
  18  Prefactor     .10000E-03    39.807       -.61023E-05** at limit **
  19  norm          .59237        .46455       -.22192E-07   -.30927E-03
  20  Prefactor     5.0138        7.4585       -.22020E-06   -.55624E-04
  21  Prefactor     9.2015        26.790       -.29966E-06   -.97195E-05
  22  Prefactor     .10000E-03    2.7217       -.73228E-07** at limit **
  23  norm          2.7829        1.8785       -.15445E-07   -.43926E-04
  24  Prefactor     6.5700        5.7337        .21604E-05    .58584E-04
  25  Prefactor     .10000E-03    141.85       -.20676E-04** at limit **
  26  Prefactor     .10000E-03    20.243       -.98881E-05** at limit **
  27  norm          .10000E-03    10.081        .11029E-06** at limit **
  28  Prefactor     .10000E-03    3.7018        .45545E-07** at limit **
  29  Normalizat    1.2698        .21200        .46469E-07   -.20946E-05
  30  Prefactor     .81893        .17829       -.15383E-06    .26553E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.59213
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.46095
  Prefactor  = 6.21859
  Prefactor  = 0.0001
  Prefactor  = 11.6051
  Prefactor  = 11.163
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.61195
  Prefactor  = 0.568163
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.592366
  Prefactor  = 5.0138
  Prefactor  = 9.20151
  Prefactor  = 0.0001
  norm       = 2.78294
  Prefactor  = 6.57005
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26977
  Prefactor  = 0.818935
 **********
 **   18 **HESSE 
 **********

 FCN=   4789.798     FROM HESSE     STATUS=OK           586 CALLS     4440 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5921        3.1577        .55938E-03   -1.5329    
   2  Prefactor     .10000E-03    134.91        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    80.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.4610        8.3168        .19065E-03   -1.5286    
   5  Prefactor     6.2186        5.9926        .16094E-03   -1.5209    
   6  Prefactor     .10000E-03    18.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.605        23.525        .11759E-03   -1.5027    
   8  Prefactor     11.163        188.49        .11987E-03   -1.5040    
   9  Prefactor     .10000E-03    22.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.2782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.4025        .79609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.1116        .18025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.9001        .11503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .71618        .57055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.6120        2.4384        .10053E-03   -1.5385    
  16  Prefactor     .56816        124.01        .56319E-02   -1.5557    
  17  norm          .10000E-03    20.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    39.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .59237        .45375        .39379E-04   -1.5554    
  20  Prefactor     5.0138        7.4371        .17960E-03   -1.5260    
  21  Prefactor     9.2015        26.756        .13216E-03   -1.5101    
  22  Prefactor     .10000E-03    2.7278        .11151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.7829        1.8705        .73652E-04   -1.5374    
  24  Prefactor     6.5700        5.7417        .15093E-03   -1.5195    
  25  Prefactor     .10000E-03    145.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    20.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    10.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    3.7050        .13005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2698        .24772        .24053E-03   -.84473    
  30  Prefactor     .81893        .20794        .25143E-03   -.99034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.03263e-10
Minuit parameter uncertainties:
  1  3.1578
  2  0.000850536
  3  2.32088e-05
  4  8.31894
  5  5.99319
  6  8.2891e-05
  7  23.5439
  8  92.0834
  9  4.48047e-05
  10  7.09364e-06
  11  1.24197e-06
  12  6.7908e-08
  13  1.19626e-06
  14  2.83552e-07
  15  2.43848
  16  16.8215
  17  6.16385e-06
  18  3.36162e-06
  19  0.453749
  20  7.43848
  21  26.7911
  22  1.83534e-06
  23  1.87051
  24  5.74217
  25  0.000542227
  26  6.89623e-06
  27  4.64608e-06
  28  1.13096e-06
  29  0.247947
  30  0.20814
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  6.791e-08  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:  8.189e-01  2.081e-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.270e+00  2.479e-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: 4.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443799/likelihoodResults_354931201_355190401_4FGL_J1216.2+0537_daily_bin446.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) = 4789.79883444
delta logL = -0.00065158542111

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4789.79818297
delta logL = -1.19063770398e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10755E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9833       1.0000          .0000       10.000    
     3 'Normalizat'    1.2698       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81895       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=   4789.798     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10176E-03    43.421        .18142E-02** at limit **
   2  Index         1.9189        5.8621        .50000        .34593E-04
   3  Normalizat    1.2698        .12145E-01    .24053E-03   -.11207E-03
   4  Prefactor     .81894        .10498E-01    .25143E-03   -.75962E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101765
  Index      = 1.91887
  Normalizat = 1.26977
  Prefactor  = 0.818936
 **********
 **   18 **HESSE 
 **********

 FCN=   4789.798     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10176E-03    190.16        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9189        6.6748        .50000       -.66394    
   3  Normalizat    1.2698        .25974E-01    .48106E-04   -.84473    
   4  Prefactor     .81894        .22450E-01    .10057E-04   -.99034    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.19939e-08
Minuit parameter uncertainties:
  1  0.0367535
  2  269.339
  3  0.025974
  4  0.0224501
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443799': 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) = 4789.79818197
delta logL = 8.78922946868e-07

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.018e-04  3.675e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.919e+00  2.693e+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:  8.189e-01  2.245e-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.270e+00  2.597e-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/443799/cmap_HighResolution_354931201_355190401_4FGL_J1216.2+0537_daily_bin446.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.11e-03', job_status='DONE', photon_flux_upper_limit='4.13e-08', time_completed='2021-09-05 05:55:55.271511', job_id='443799', GAL2='0.82', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1630846555.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='8.79e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='446' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:55:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 443799: <4FGL_J1216.2+0537_daily_bin446> in cluster <slac> Done

Job <4FGL_J1216.2+0537_daily_bin446> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 05:40:57 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:40:58 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:40:58 2021
Terminated at Sun Sep  5 05:55:55 2021
Results reported at Sun Sep  5 05:55:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin446 184.061 5.6248 354931201 355190401 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 :                                   751.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            898 sec.

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

