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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin327
RA = 184.061, Dec = 5.6248
tmin = 324086401, tmax = 324345601
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='443644', job_status='RUN', time_executed='2021-09-05 05:41:00.031941', time_epoch_executed='1630845660.03' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='327'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443644

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443644/ft1_4FGL_J1216.2+0537_daily_bin327.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443644/ft2_4FGL_J1216.2+0537_daily_bin327.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443644/ft1_4FGL_J1216.2+0537_daily_bin327.fits outfile=/scratch/kocevski/443644/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin327.fits ra=184.061 dec=5.6248 rad=12.0 tmin=324086401.0 tmax=324345601.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 4.30
user 4.05
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/443644/ft2_4FGL_J1216.2+0537_daily_bin327.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/443644/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin327.fits evtable="EVENTS" outfile="/scratch/kocevski/443644/ft1_filtered_4FGL_J1216.2+0537_daily_bin327.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.51
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443644/ft1_filtered_4FGL_J1216.2+0537_daily_bin327.fits evtable="EVENTS" scfile=/scratch/kocevski/443644/ft2_4FGL_J1216.2+0537_daily_bin327.fits sctable="SC_DATA" expcube=/scratch/kocevski/443644/ltcube_324086401_324345601_4FGL_J1216.2+0537_daily_bin327.fits outfile=/scratch/kocevski/443644/expmap_324086401_324345601_4FGL_J1216.2+0537_daily_bin327.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/443644/ltcube_324086401_324345601_4FGL_J1216.2+0537_daily_bin327.fits
.....................!
real 191.05
user 186.04
sys 4.61

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/443644/ft1_filtered_4FGL_J1216.2+0537_daily_bin327.fits scfile=/scratch/kocevski/443644/ft2_4FGL_J1216.2+0537_daily_bin327.fits outfile=/scratch/kocevski/443644/cmap_324086401_324345601_4FGL_J1216.2+0537_daily_bin327.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443644/ft1_filtered_4FGL_J1216.2+0537_daily_bin327.fits scfile=/scratch/kocevski/443644/ft2_4FGL_J1216.2+0537_daily_bin327.fits outfile=/scratch/kocevski/443644/cmap_HighResolution_324086401_324345601_4FGL_J1216.2+0537_daily_bin327.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=184.061 yref=5.6248 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6325       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8033       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.255       1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.410       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.823       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.8764       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    87.956       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.6721       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.0469       1.0000         .10000E-03   10000.    
    25 'Prefactor '    43.720       1.0000         .10000E-03   10000.    
    26 'Prefactor '    29.412       1.0000         .10000E-03   10000.    
    27 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    29.477       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .71585       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .95137       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=   5473.445     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3914 TOTAL
                     EDM=   .49E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6335        5.4271        .22178E-06   -.40177E-06
   2  Prefactor     .10000E-03    64.445        .14104E-06** at limit **
   3  Prefactor     .10000E-03    48.077       -.29379E-05** at limit **
   4  Prefactor     3.8100        14.123        .38205E-05   -.92240E-05
   5  Prefactor     .10000E-03    3.2833        .12495E-07** at limit **
   6  Prefactor     18.264        16.244       -.25028E-06   -.32553E-04
   7  Prefactor     43.413        23.947        .96270E-07   -.50037E-06
   8  Prefactor     .10000E-03    73.693        .41538E-05** at limit **
   9  Prefactor     .10000E-03    11.204       -.57236E-06** at limit **
  10  Prefactor     .10000E-03    8.0412        .66111E-07** at limit **
  11  Prefactor     .10000E-03    1.7868       -.22410E-07** at limit **
  12  Prefactor     .10000E-03    11.310       -.18405E-06** at limit **
  13  Prefactor     15.824        12.879        .14612E-06    .72878E-05
  14  norm          .10000E-03    .92133        .57512E-08** at limit **
  15  norm          .10000E-03    3.3964       -.27943E-07** at limit **
  16  Prefactor     .10000E-03    29.580        .20401E-05** at limit **
  17  norm          .10000E-03    16.890       -.61478E-06** at limit **
  18  Prefactor     .10000E-03    59.458       -.21946E-05** at limit **
  19  norm          5.8765        1.0611        .22263E-07    .17596E-03
  20  Prefactor     .10000E-03    11.708        .10182E-05** at limit **
  21  Prefactor     87.954        39.397        .13015E-06   -.50245E-04
  22  Prefactor     .10000E-03    19.815       -.38954E-06** at limit **
  23  norm          4.6718        2.5300        .66160E-08   -.20270E-04
  24  Prefactor     5.0443        9.1618        .13240E-05    .44216E-06
  25  Prefactor     43.702        53.709        .22258E-05    .49866E-05
  26  Prefactor     29.412        88.083        .32449E-06   -.25632E-05
  27  norm          .10000E-03    15.579        .34789E-06** at limit **
  28  Prefactor     29.479        28.336        .15540E-06   -.10707E-04
  29  Normalizat    .71544        .23719       -.20086E-05   -.12949E-04
  30  Prefactor     .95169        .17457        .24560E-06   -.35178E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.63347
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.81004
  Prefactor  = 0.0001
  Prefactor  = 18.2638
  Prefactor  = 43.4129
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8239
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.87646
  Prefactor  = 0.0001
  Prefactor  = 87.954
  Prefactor  = 0.0001
  norm       = 4.67176
  Prefactor  = 5.04427
  Prefactor  = 43.7022
  Prefactor  = 29.4121
  norm       = 0.0001
  Prefactor  = 29.4791
  Normalizat = 0.715442
  Prefactor  = 0.951691
 **********
 **   18 **HESSE 
 **********

 FCN=   5473.445     FROM HESSE     STATUS=OK           582 CALLS     4496 TOTAL
                     EDM=   .91E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6335        5.4318        .12957E-03   -1.5120    
   2  Prefactor     .10000E-03    66.107        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    48.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.8100        14.149        .10349E-02   -1.5318    
   5  Prefactor     .10000E-03    3.2918        .13091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.264        16.284        .93742E-04   -1.4853    
   7  Prefactor     43.413        23.957        .60847E-04   -1.4389    
   8  Prefactor     .10000E-03    73.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.0482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.8150        .96531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.824        12.860        .10069E-03   -1.4912    
  14  norm          .10000E-03    .92295        .69215E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.4705        .26541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    29.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    16.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    59.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.8765        1.0648        .28829E-04   -1.5223    
  20  Prefactor     .10000E-03    11.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     87.954        39.393        .42840E-04   -1.3830    
  22  Prefactor     .10000E-03    20.563        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.6718        2.5261        .79194E-04   -1.5276    
  24  Prefactor     5.0443        9.1578        .89494E-03   -1.5259    
  25  Prefactor     43.702        53.697        .60632E-04   -1.4385    
  26  Prefactor     29.412        87.838        .73875E-04   -1.4623    
  27  norm          .10000E-03    15.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     29.479        28.309        .73794E-04   -1.4622    
  29  Normalizat    .71544        .26739        .33454E-03   -1.0329    
  30  Prefactor     .95169        .19893        .24264E-03   -.94358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.11739e-12
Minuit parameter uncertainties:
  1  5.43214
  2  4.72775e-05
  3  5.73506e-06
  4  14.1609
  5  1.30637e-06
  6  16.2882
  7  23.9627
  8  1.31652e-05
  9  8.45218e-07
  10  1.88671e-06
  11  1.81615e-06
  12  1.92923e-06
  13  12.862
  14  2.21888e-08
  15  3.32382e-06
  16  1.08561e-05
  17  1.07256e-06
  18  7.0612e-06
  19  1.06483
  20  9.93041e-07
  21  39.4044
  22  3.36757e-07
  23  2.52616
  24  9.16037
  25  53.7565
  26  88.228
  27  8.81405e-06
  28  28.3223
  29  0.267884
  30  0.199079
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  1.929e-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:  9.517e-01  1.991e-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:  7.154e-01  2.679e-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.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443644/likelihoodResults_324086401_324345601_4FGL_J1216.2+0537_daily_bin327.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) = 5473.44565714
delta logL = -0.000419945941758

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5473.44523717
delta logL = 2.47719071922e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5473.445     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      208 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    459.68        .90712E-02** at limit **
   2  Index         1.9919        5.2016        .50000        .97604E-05
   3  Normalizat    .71544        .35356E-01    .75571E-01    .25023E-04
   4  Prefactor     .95169        .29417E-01    .45661E-01    .10066E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.99194
  Normalizat = 0.715442
  Prefactor  = 0.951692
 **********
 **   18 **HESSE 
 **********

 FCN=   5473.445     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      241 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    442.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9919        5.0443        .50000       -.64552    
   3  Normalizat    .71544        .34505E-01    .33454E-03   -1.0329    
   4  Prefactor     .95169        .28762E-01    .24264E-03   -.94358    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.78337e-09
Minuit parameter uncertainties:
  1  9.15977e-06
  2  25.0067
  3  0.0345059
  4  0.0287626
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443644': 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) = 5473.44523713
delta logL = 6.89260559739e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  9.517e-01  2.876e-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:  7.154e-01  3.451e-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/443644/cmap_HighResolution_324086401_324345601_4FGL_J1216.2+0537_daily_bin327.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.25e-03', job_status='DONE', photon_flux_upper_limit='5.65e-08', time_completed='2021-09-05 05:54:44.459848', job_id='443644', GAL2='0.95', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1630846484.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='6.89e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='327' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:54:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 443644: <4FGL_J1216.2+0537_daily_bin327> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin327 184.061 5.6248 324086401 324345601 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 :                                   818.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            839 sec.

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

