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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin621
RA = 184.061, Dec = 5.6248
tmin = 400291201, tmax = 400550401
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='446699', job_status='RUN', time_executed='2021-09-05 05:51:09.393978', time_epoch_executed='1630846269.39' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='621'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446699

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446699/ft1_4FGL_J1216.2+0537_daily_bin621.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446699/ft2_4FGL_J1216.2+0537_daily_bin621.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446699/ft1_4FGL_J1216.2+0537_daily_bin621.fits outfile=/scratch/kocevski/446699/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin621.fits ra=184.061 dec=5.6248 rad=12.0 tmin=400291201.0 tmax=400550401.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.32
user 3.08
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/446699/ft1_filtered_4FGL_J1216.2+0537_daily_bin621.fits" evtable="EVENTS" scfile=/scratch/kocevski/446699/ft2_4FGL_J1216.2+0537_daily_bin621.fits sctable="SC_DATA" outfile=/scratch/kocevski/446699/ltcube_400291201_400550401_4FGL_J1216.2+0537_daily_bin621.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/446699/ft2_4FGL_J1216.2+0537_daily_bin621.fits
.....................!
real 12.39
user 11.76
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446699/ft1_filtered_4FGL_J1216.2+0537_daily_bin621.fits evtable="EVENTS" scfile=/scratch/kocevski/446699/ft2_4FGL_J1216.2+0537_daily_bin621.fits sctable="SC_DATA" expcube=/scratch/kocevski/446699/ltcube_400291201_400550401_4FGL_J1216.2+0537_daily_bin621.fits outfile=/scratch/kocevski/446699/expmap_400291201_400550401_4FGL_J1216.2+0537_daily_bin621.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/446699/ltcube_400291201_400550401_4FGL_J1216.2+0537_daily_bin621.fits
.....................!
real 191.27
user 185.98
sys 4.68

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/446699/ft1_filtered_4FGL_J1216.2+0537_daily_bin621.fits scfile=/scratch/kocevski/446699/ft2_4FGL_J1216.2+0537_daily_bin621.fits outfile=/scratch/kocevski/446699/cmap_400291201_400550401_4FGL_J1216.2+0537_daily_bin621.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/446699/ft1_filtered_4FGL_J1216.2+0537_daily_bin621.fits scfile=/scratch/kocevski/446699/ft2_4FGL_J1216.2+0537_daily_bin621.fits outfile=/scratch/kocevski/446699/cmap_HighResolution_400291201_400550401_4FGL_J1216.2+0537_daily_bin621.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1190       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4225       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.578       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.419       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.886       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .36389E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6668       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0695       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.7458       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.045       1.0000         .10000E-03   10000.    
    14 'norm      '    2.5340       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2494       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10243E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .70933       1.0000         .10000E-03   10000.    
    20 'Prefactor '    44.767       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    11.019       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    38.320       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10337E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1306       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .99290       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=   6335.708     FROM MIGRAD    STATUS=CONVERGED    759 CALLS     3999 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1182        3.2216       -.62011E-07   -.10922E-03
   2  Prefactor     3.4231        44.752       -.15703E-05   -.28608E-04
   3  Prefactor     .10000E-03    32.256        .16155E-04** at limit **
   4  Prefactor     18.577        13.583       -.31441E-06    .57967E-03
   5  Prefactor     .10000E-03    6.4655        .43467E-07** at limit **
   6  Prefactor     15.395        20.646        .45403E-05    .70554E-03
   7  Prefactor     25.890        23.048       -.58911E-06    .12596E-04
   8  Prefactor     .10000E-03    935.34       -.20517E-03** at limit **
   9  Prefactor     .10000E-03    19.469       -.15792E-04** at limit **
  10  Prefactor     4.6671        33.959       -.12873E-05   -.13873E-04
  11  Prefactor     4.0698        3.7995       -.17960E-06   -.15342E-03
  12  Prefactor     8.7346        25.850        .15632E-06    .18276E-04
  13  Prefactor     13.046        11.660        .53309E-08    .83078E-04
  14  norm          2.5339        2.5229        .15983E-07   -.17886E-04
  15  norm          2.2513        4.7744       -.51644E-06   -.32465E-03
  16  Prefactor     .10000E-03    21.452        .15170E-04** at limit **
  17  norm          .10000E-03    150.58       -.48217E-04** at limit **
  18  Prefactor     .10000E-03    68.843        .57492E-04** at limit **
  19  norm          .70946        .67487        .98213E-07    .12792E-02
  20  Prefactor     44.766        16.440        .11867E-06    .43710E-03
  21  Prefactor     .10000E-03    40.106       -.23722E-04** at limit **
  22  Prefactor     .10000E-03    11.447       -.40608E-05** at limit **
  23  norm          11.018        2.7919        .26619E-07    .34056E-03
  24  Prefactor     .10000E-03    2.9398        .33372E-07** at limit **
  25  Prefactor     38.314        33.948       -.21127E-05    .16991E-04
  26  Prefactor     .10000E-03    47.274       -.23833E-04** at limit **
  27  norm          .10000E-03    9.0224        .18250E-06** at limit **
  28  Prefactor     .10000E-03    12.449        .57193E-05** at limit **
  29  Normalizat    1.1306        .22872        .30763E-06    .50343E-03
  30  Prefactor     .99293        .18151        .32823E-06    .54731E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.11823
  Prefactor  = 3.4231
  Prefactor  = 0.0001
  Prefactor  = 18.5766
  Prefactor  = 0.0001
  Prefactor  = 15.3947
  Prefactor  = 25.8904
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.66713
  Prefactor  = 4.06979
  Prefactor  = 8.73457
  Prefactor  = 13.0462
  norm       = 2.53394
  norm       = 2.25133
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.709464
  Prefactor  = 44.7665
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.018
  Prefactor  = 0.0001
  Prefactor  = 38.3142
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13057
  Prefactor  = 0.992925
 **********
 **   18 **HESSE 
 **********

 FCN=   6335.708     FROM HESSE     STATUS=OK           578 CALLS     4577 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1182        3.2185        .14026E-03   -1.5355    
   2  Prefactor     3.4231        44.768        .21865E-03   -1.5338    
   3  Prefactor     .10000E-03    32.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.577        13.580        .92924E-04   -1.4846    
   5  Prefactor     .10000E-03    6.5419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.395        20.707        .10200E-03   -1.4923    
   7  Prefactor     25.890        23.053        .78736E-04   -1.4690    
   8  Prefactor     .10000E-03    954.47        .42613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.6671        33.671        .18629E-03   -1.5276    
  11  Prefactor     4.0698        3.7975        .14408E-03   -1.5304    
  12  Prefactor     8.7346        25.705        .13554E-03   -1.5117    
  13  Prefactor     13.046        11.645        .11090E-03   -1.4985    
  14  norm          2.5339        2.5187        .11534E-03   -1.5390    
  15  norm          2.2513        4.6224        .20816E-03   -1.5408    
  16  Prefactor     .10000E-03    21.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    151.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    68.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .70946        .62733        .53908E-03   -1.5540    
  20  Prefactor     44.766        16.430        .59922E-04   -1.4369    
  21  Prefactor     .10000E-03    40.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          11.018        2.7841        .61985E-04   -1.5044    
  24  Prefactor     .10000E-03    2.9448        .13328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     38.314        33.926        .32373E-03   -1.4469    
  26  Prefactor     .10000E-03    47.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    9.0232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    12.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1306        .26777        .30064E-03   -.88776    
  30  Prefactor     .99293        .21182        .26534E-03   -.92966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0224e-09
Minuit parameter uncertainties:
  1  3.21867
  2  24.7808
  3  4.97903e-07
  4  13.5825
  5  4.8983e-06
  6  20.7167
  7  23.061
  8  0.00189387
  9  8.87636e-06
  10  25.0912
  11  3.79773
  12  25.7379
  13  11.6467
  14  2.51879
  15  4.62309
  16  1.8786e-05
  17  0.000880457
  18  3.78628e-06
  19  0.627331
  20  16.4317
  21  7.22968e-05
  22  2.94116e-05
  23  2.78412
  24  1.09707e-06
  25  33.9427
  26  1.85432e-05
  27  9.83526e-07
  28  1.29359e-05
  29  0.26809
  30  0.212
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  8.735e+00  2.574e+01  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.929e-01  2.120e-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.131e+00  2.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 184.061 5.625
Photon Flux Upper Limit: 8.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/446699/likelihoodResults_400291201_400550401_4FGL_J1216.2+0537_daily_bin621.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): 0
logL (Free Index) = 6335.70559942
delta logL = 0.00227023718526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6335.70512691
delta logL = 0.00274274562707

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9432       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1117       1.0000          .0000       10.000    
     3 'Normalizat'    1.1294       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99334       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=   6335.705     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      259 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9409        27.308        .14227E-03   -.27090E-04
   2  Index         2.1116        1.3001        .89066E-02   -.23600E-04
   3  Normalizat    1.1294        .24892        .30077E-03   -.25000E-03
   4  Prefactor     .99332        .20843        .26529E-03   -.31926E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.94086
  Index      = 2.11156
  Normalizat = 1.1294
  Prefactor  = 0.99332
 **********
 **   18 **HESSE 
 **********

 FCN=   6335.705     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9409        25.710        .56907E-05   -1.5144    
   2  Index         2.1116        1.2264        .35626E-03   -.61589    
   3  Normalizat    1.1294        .24900        .60155E-04   -.88813    
   4  Prefactor     .99332        .20852        .53059E-04   -.92953    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69574e-10
Minuit parameter uncertainties:
  1  25.7462
  2  1.24564
  3  0.249259
  4  0.208685
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446699': 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): 0
logL (Free Index) = 6335.70512686
delta logL = 0.00274279919086

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  7.941e+00  2.575e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.112e+00  1.246e+00  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.933e-01  2.087e-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.129e+00  2.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
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/446699/cmap_HighResolution_400291201_400550401_4FGL_J1216.2+0537_daily_bin621.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.15e-03', job_status='DONE', photon_flux_upper_limit='8.19e-08', time_completed='2021-09-05 06:06:12.728687', job_id='446699', GAL2='0.99', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630847172.73', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.74e-03', ts2='0.15', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='621' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:06:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 446699: <4FGL_J1216.2+0537_daily_bin621> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin621 184.061 5.6248 400291201 400550401 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 :                                   896.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            927 sec.

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

