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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin184
RA = 184.061, Dec = 5.6248
tmin = 287020801, tmax = 287280001
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='442082', job_status='RUN', time_executed='2021-09-05 05:38:34.812506', time_epoch_executed='1630845514.81' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='184'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/442082

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/442082/ft1_4FGL_J1216.2+0537_daily_bin184.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/442082/ft2_4FGL_J1216.2+0537_daily_bin184.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/442082/ft1_4FGL_J1216.2+0537_daily_bin184.fits outfile=/scratch/kocevski/442082/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin184.fits ra=184.061 dec=5.6248 rad=12.0 tmin=287020801.0 tmax=287280001.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.63
user 4.33
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/442082/ft1_filtered_4FGL_J1216.2+0537_daily_bin184.fits" evtable="EVENTS" scfile=/scratch/kocevski/442082/ft2_4FGL_J1216.2+0537_daily_bin184.fits sctable="SC_DATA" outfile=/scratch/kocevski/442082/ltcube_287020801_287280001_4FGL_J1216.2+0537_daily_bin184.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/442082/ft2_4FGL_J1216.2+0537_daily_bin184.fits
.....................!
real 11.81
user 11.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/442082/ft1_filtered_4FGL_J1216.2+0537_daily_bin184.fits evtable="EVENTS" scfile=/scratch/kocevski/442082/ft2_4FGL_J1216.2+0537_daily_bin184.fits sctable="SC_DATA" expcube=/scratch/kocevski/442082/ltcube_287020801_287280001_4FGL_J1216.2+0537_daily_bin184.fits outfile=/scratch/kocevski/442082/expmap_287020801_287280001_4FGL_J1216.2+0537_daily_bin184.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/442082/ltcube_287020801_287280001_4FGL_J1216.2+0537_daily_bin184.fits
.....................!
real 191.29
user 185.89
sys 4.69

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/442082/ft1_filtered_4FGL_J1216.2+0537_daily_bin184.fits scfile=/scratch/kocevski/442082/ft2_4FGL_J1216.2+0537_daily_bin184.fits outfile=/scratch/kocevski/442082/cmap_287020801_287280001_4FGL_J1216.2+0537_daily_bin184.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/442082/ft1_filtered_4FGL_J1216.2+0537_daily_bin184.fits scfile=/scratch/kocevski/442082/ft2_4FGL_J1216.2+0537_daily_bin184.fits outfile=/scratch/kocevski/442082/cmap_HighResolution_287020801_287280001_4FGL_J1216.2+0537_daily_bin184.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.63
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3579       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.094       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2955       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.816       1.0000         .10000E-03   10000.    
     8 'Prefactor '    86.616       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12019E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5273       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8853       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.2956       1.0000         .10000E-03   10000.    
    14 'norm      '    4.1362       1.0000         .10000E-03   10000.    
    15 'norm      '    6.5727       1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.647       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    170.38       1.0000         .10000E-03   10000.    
    19 'norm      '    5.1106       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.159       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.3058       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.0252       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.976       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    7.0194       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .87944       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .97909       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=   5500.918     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     3850 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3578        3.6580        .11269E-06   -.15257E-04
   2  Prefactor     11.096        29.142        .11076E-06   -.29441E-05
   3  Prefactor     .10000E-03    30.029        .23642E-07** at limit **
   4  Prefactor     5.2974        8.6104        .32133E-05   -.93988E-04
   5  Prefactor     .10000E-03    5.2504        .98723E-08** at limit **
   6  Prefactor     .10000E-03    10.838       -.11284E-05** at limit **
   7  Prefactor     10.823        17.128       -.50758E-07   -.43247E-04
   8  Prefactor     86.561        79.429       -.17691E-05   -.11360E-03
   9  Prefactor     .10000E-03    219.19       -.17709E-05** at limit **
  10  Prefactor     2.5230        50.367        .76081E-06   -.76664E-05
  11  Prefactor     8.8859        4.2657        .10623E-07    .21443E-05
  12  Prefactor     .10000E-03    15.478        .52711E-07** at limit **
  13  Prefactor     6.3160        25.828       -.15397E-06   -.22007E-04
  14  norm          4.1346        4.3977        .77707E-07   -.18076E-04
  15  norm          6.5735        5.3316        .35888E-07   -.94042E-04
  16  Prefactor     31.623        31.085       -.89229E-07   -.26404E-04
  17  norm          .10000E-03    16.449        .10930E-06** at limit **
  18  Prefactor     170.38        163.80        .35670E-07   -.50451E-05
  19  norm          5.1104        1.1025       -.15357E-08   -.30468E-04
  20  Prefactor     18.158        11.770       -.11368E-06    .43942E-05
  21  Prefactor     .10000E-03    18.725       -.20121E-06** at limit **
  22  Prefactor     .10000E-03    14.585        .31923E-06** at limit **
  23  norm          4.3060        2.4007        .42825E-07   -.14691E-04
  24  Prefactor     8.0219        10.273        .19935E-06   -.12209E-04
  25  Prefactor     10.968        25.449        .23098E-06    .63181E-05
  26  Prefactor     .10000E-03    13.808       -.19107E-06** at limit **
  27  norm          7.0204        31.228        .39501E-06   -.15324E-05
  28  Prefactor     .10000E-03    4.3096        .52582E-07** at limit **
  29  Normalizat    .87936        .23625        .93073E-06   -.36985E-04
  30  Prefactor     .97922        .19259       -.14491E-05    .48652E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.35783
  Prefactor  = 11.0965
  Prefactor  = 0.0001
  Prefactor  = 5.29735
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8225
  Prefactor  = 86.5608
  Prefactor  = 0.0001
  Prefactor  = 2.52301
  Prefactor  = 8.88593
  Prefactor  = 0.0001
  Prefactor  = 6.31596
  norm       = 4.13463
  norm       = 6.57353
  Prefactor  = 31.6226
  norm       = 0.0001
  Prefactor  = 170.379
  norm       = 5.1104
  Prefactor  = 18.1579
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.30598
  Prefactor  = 8.02193
  Prefactor  = 10.9681
  Prefactor  = 0.0001
  norm       = 7.02039
  Prefactor  = 0.0001
  Normalizat = 0.87936
  Prefactor  = 0.979218
 **********
 **   18 **HESSE 
 **********

 FCN=   5500.918     FROM HESSE     STATUS=OK           590 CALLS     4440 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3578        3.6521        .14302E-03   -1.5341    
   2  Prefactor     11.096        29.128        .12028E-03   -1.5042    
   3  Prefactor     .10000E-03    30.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.2974        8.6642        .87329E-03   -1.5248    
   5  Prefactor     .10000E-03    5.2845        .16593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.823        17.120        .12182E-03   -1.5050    
   8  Prefactor     86.561        79.678        .21584E-03   -1.3845    
   9  Prefactor     .10000E-03    227.48        .41273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.5230        49.706        .25694E-03   -1.5390    
  11  Prefactor     8.8859        4.2705        .10207E-03   -1.5112    
  12  Prefactor     .10000E-03    15.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.3160        25.584        .15998E-03   -1.5205    
  14  norm          4.1346        4.3934        .11433E-03   -1.5301    
  15  norm          6.5735        5.3386        .13666E-03   -1.5195    
  16  Prefactor     31.623        31.085        .71225E-04   -1.4583    
  17  norm          .10000E-03    16.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     170.38        163.76        .15454E-03   -1.3090    
  19  norm          5.1104        1.1052        .30955E-04   -1.5256    
  20  Prefactor     18.158        11.770        .93988E-04   -1.4855    
  21  Prefactor     .10000E-03    18.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.3060        2.3958        .79891E-04   -1.5293    
  24  Prefactor     8.0219        10.249        .14153E-03   -1.5141    
  25  Prefactor     10.968        25.442        .12093E-03   -1.5045    
  26  Prefactor     .10000E-03    13.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          7.0204        31.192        .15142E-03   -1.5178    
  28  Prefactor     .10000E-03    4.3137        .15037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .87936        .27411        .31898E-03   -.97189    
  30  Prefactor     .97922        .22248        .25522E-03   -.93425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82602e-10
Minuit parameter uncertainties:
  1  3.65233
  2  29.1656
  3  3.336e-05
  4  8.66625
  5  7.54817e-07
  6  2.00652e-05
  7  17.1281
  8  79.7769
  9  0.000665339
  10  22.4182
  11  4.27068
  12  7.188e-05
  13  25.4421
  14  4.39379
  15  5.339
  16  31.1014
  17  7.35038e-05
  18  164.199
  19  1.10525
  20  11.771
  21  0.000120849
  22  3.7452e-05
  23  2.39583
  24  10.2509
  25  25.4668
  26  8.52422e-05
  27  29.6217
  28  4.53466e-07
  29  0.274542
  30  0.22269
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  7.188e-05  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.792e-01  2.227e-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:  8.794e-01  2.745e-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: 7.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/442082/likelihoodResults_287020801_287280001_4FGL_J1216.2+0537_daily_bin184.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) = 5500.91803475
delta logL = -0.000307255018015

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5500.9177275
delta logL = -4.71482053399e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1207       1.0000          .0000       10.000    
     3 'Normalizat'    .87935       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97922       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=   5500.918     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      231 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    222.86        .90712E-02** at limit **
   2  Index         2.1221        8.8431        .50000       -.91848E-06
   3  Normalizat    .87936        .21477E-01    .72085E-01    .15974E-04
   4  Prefactor     .97922        .18144E-01    .46007E-01    .51867E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12213
  Normalizat = 0.879361
  Prefactor  = 0.979217
 **********
 **   18 **HESSE 
 **********

 FCN=   5500.918     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      264 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    795.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1221        6.0582        .50000       -.61331    
   3  Normalizat    .87936        .42819E-01    .31898E-03   -.97189    
   4  Prefactor     .97922        .36223E-01    .25522E-03   -.93426    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.14907e-11
Minuit parameter uncertainties:
  1  7.84563e-06
  2  29.8008
  3  0.0428204
  4  0.036224
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/442082': 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) = 5500.91772749
delta logL = -1.11140252557e-09

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  7.846e-06  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.122e+00  2.980e+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.792e-01  3.622e-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:  8.794e-01  4.282e-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/442082/cmap_HighResolution_287020801_287280001_4FGL_J1216.2+0537_daily_bin184.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-03', job_status='DONE', photon_flux_upper_limit='7.07e-08', time_completed='2021-09-05 05:52:18.682432', job_id='442082', GAL2='0.98', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1630846338.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='-1.11e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='184' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:52:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 442082: <4FGL_J1216.2+0537_daily_bin184> in cluster <slac> Done

Job <4FGL_J1216.2+0537_daily_bin184> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 05:35:55 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:35:56 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:35:56 2021
Terminated at Sun Sep  5 05:52:19 2021
Results reported at Sun Sep  5 05:52:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin184 184.061 5.6248 287020801 287280001 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 :                                   814.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            984 sec.

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

