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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin468
RA = 184.061, Dec = 5.6248
tmin = 360633601, tmax = 360892801
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='443821', job_status='RUN', time_executed='2021-09-05 05:43:33.773875', time_epoch_executed='1630845813.77' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='468'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443821

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443821/ft1_4FGL_J1216.2+0537_daily_bin468.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443821/ft2_4FGL_J1216.2+0537_daily_bin468.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443821/ft1_4FGL_J1216.2+0537_daily_bin468.fits outfile=/scratch/kocevski/443821/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin468.fits ra=184.061 dec=5.6248 rad=12.0 tmin=360633601.0 tmax=360892801.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.40
user 3.16
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/443821/ft2_4FGL_J1216.2+0537_daily_bin468.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/443821/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin468.fits evtable="EVENTS" outfile="/scratch/kocevski/443821/ft1_filtered_4FGL_J1216.2+0537_daily_bin468.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/443821/ft1_filtered_4FGL_J1216.2+0537_daily_bin468.fits" evtable="EVENTS" scfile=/scratch/kocevski/443821/ft2_4FGL_J1216.2+0537_daily_bin468.fits sctable="SC_DATA" outfile=/scratch/kocevski/443821/ltcube_360633601_360892801_4FGL_J1216.2+0537_daily_bin468.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/443821/ft2_4FGL_J1216.2+0537_daily_bin468.fits
.....................!
real 12.04
user 11.68
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443821/ft1_filtered_4FGL_J1216.2+0537_daily_bin468.fits evtable="EVENTS" scfile=/scratch/kocevski/443821/ft2_4FGL_J1216.2+0537_daily_bin468.fits sctable="SC_DATA" expcube=/scratch/kocevski/443821/ltcube_360633601_360892801_4FGL_J1216.2+0537_daily_bin468.fits outfile=/scratch/kocevski/443821/expmap_360633601_360892801_4FGL_J1216.2+0537_daily_bin468.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/443821/ltcube_360633601_360892801_4FGL_J1216.2+0537_daily_bin468.fits
.....................!
real 190.69
user 186.07
sys 3.88

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/443821/ft1_filtered_4FGL_J1216.2+0537_daily_bin468.fits scfile=/scratch/kocevski/443821/ft2_4FGL_J1216.2+0537_daily_bin468.fits outfile=/scratch/kocevski/443821/cmap_360633601_360892801_4FGL_J1216.2+0537_daily_bin468.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.53
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0669       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.7106       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .71665       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .83599       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3894       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .54013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    55.672       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2626       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.533       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    22.592       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .11319       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.217       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.7318       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.4545       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .17846E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10230E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .98596       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .98475       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=   5584.366     FROM MIGRAD    STATUS=CONVERGED    766 CALLS     3953 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0672        3.2932       -.33471E-07    .69826E-04
   2  Prefactor     .10000E-03    6.1001       -.16041E-07** at limit **
   3  Prefactor     .10000E-03    51.723       -.85014E-06** at limit **
   4  Prefactor     8.7104        7.5230       -.11812E-06    .38755E-04
   5  Prefactor     .71161        11.297       -.10024E-06    .59558E-03
   6  Prefactor     .83884        19.419        .57153E-05   -.28812E-03
   7  Prefactor     5.3925        27.956       -.58108E-06   -.72137E-05
   8  Prefactor     .10000E-03    26.276        .18163E-06** at limit **
   9  Prefactor     .10001E-03    166.69        .47454E-05** at limit **
  10  Prefactor     55.678        34.776       -.39826E-07    .12284E-03
  11  Prefactor     4.2632        3.0654       -.78526E-07    .98586E-05
  12  Prefactor     .10000E-03    10.741        .10390E-06** at limit **
  13  Prefactor     12.539        16.164       -.96665E-06   -.90597E-04
  14  norm          .10000E-03    1.2290        .85130E-07** at limit **
  15  norm          22.592        5.9278       -.12981E-07    .11749E-03
  16  Prefactor     .10000E-03    35.650        .25797E-05** at limit **
  17  norm          .10000E-03    18.160        .39192E-06** at limit **
  18  Prefactor     .10000E-03    49.655       -.47704E-06** at limit **
  19  norm          .11286        .50164        .15196E-06   -.26447E-03
  20  Prefactor     .10000E-03    4.4485       -.29278E-06** at limit **
  21  Prefactor     11.225        26.591       -.62735E-06    .58404E-05
  22  Prefactor     .10000E-03    5.0809        .51157E-07** at limit **
  23  norm          3.7324        2.3552       -.19044E-07   -.16627E-04
  24  Prefactor     9.4564        11.672       -.10277E-05   -.18933E-03
  25  Prefactor     .10002E-03    109.76        .99351E-05** at limit **
  26  Prefactor     .10000E-03    21.897       -.93462E-06** at limit **
  27  norm          .10000E-03    88.097       -.29401E-05** at limit **
  28  Prefactor     .10000E-03    5.6396       -.15656E-06** at limit **
  29  Normalizat    .98585        .22867        .81951E-06    .31138E-03
  30  Prefactor     .98470        .18146        .62006E-06    .34984E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.06715
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.71038
  Prefactor  = 0.711606
  Prefactor  = 0.838838
  Prefactor  = 5.39251
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 55.6778
  Prefactor  = 4.26316
  Prefactor  = 0.0001
  Prefactor  = 12.539
  norm       = 0.0001
  norm       = 22.5922
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.112857
  Prefactor  = 0.0001
  Prefactor  = 11.2252
  Prefactor  = 0.0001
  norm       = 3.73236
  Prefactor  = 9.45643
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 0.985848
  Prefactor  = 0.984697
 **********
 **   18 **HESSE 
 **********

 FCN=   5584.366     FROM HESSE     STATUS=OK           584 CALLS     4537 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0672        3.2952        .10627E-03   -1.5258    
   2  Prefactor     .10000E-03    6.1006        .18027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    51.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.7104        7.5251        .13581E-03   -1.5118    
   5  Prefactor     .71161        16.880        .37669E-02   -1.5539    
   6  Prefactor     .83884        22.705        .25147E-02   -1.5525    
   7  Prefactor     5.3925        27.982        .86551E-03   -1.5243    
   8  Prefactor     .10000E-03    26.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    170.86        .42237E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     55.678        34.626        .53762E-04   -1.4214    
  11  Prefactor     4.2632        3.0653        .10697E-03   -1.5295    
  12  Prefactor     .10000E-03    10.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.539        15.949        .11315E-03   -1.5000    
  14  norm          .10000E-03    1.2394        .80722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          22.592        5.7846        .81589E-04   -1.4757    
  16  Prefactor     .10000E-03    36.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    18.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    49.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .11286        .69064        .86162E-03   -1.5641    
  20  Prefactor     .10000E-03    4.4606        .15394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.225        26.674        .11962E-03   -1.5038    
  22  Prefactor     .10000E-03    5.0935        .16447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.7324        2.3186        .82584E-04   -1.5322    
  24  Prefactor     9.4564        11.738        .13033E-03   -1.5093    
  25  Prefactor     .10002E-03    113.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    22.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    89.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    5.6609        .17337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .98585        .26467        .28835E-03   -.93506    
  30  Prefactor     .98470        .21076        .24503E-03   -.93241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18827e-08
Minuit parameter uncertainties:
  1  3.29531
  2  8.99799e-07
  3  0.000263348
  4  7.52593
  5  6.93335
  6  8.73148
  7  24.5855
  8  2.32435e-05
  9  0.00197572
  10  34.6386
  11  3.06546
  12  5.88811e-06
  13  15.954
  14  5.14444e-06
  15  5.78478
  16  0.000482148
  17  5.56908e-05
  18  0.000146409
  19  0.558132
  20  2.07516e-05
  21  26.7028
  22  2.7818e-06
  23  2.31863
  24  11.7408
  25  0.00293107
  26  0.000177122
  27  0.000797529
  28  1.81067e-05
  29  0.265023
  30  0.210934
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  5.888e-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.847e-01  2.109e-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:  9.858e-01  2.650e-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/443821/likelihoodResults_360633601_360892801_4FGL_J1216.2+0537_daily_bin468.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) = 5584.3665291
delta logL = -0.000442875049885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5584.3660864
delta logL = -1.7756701709e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10817E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9804       1.0000          .0000       10.000    
     3 'Normalizat'    .98595       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98461       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=   5584.366     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      234 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10192E-03    68.581        .18142E-02** at limit **
   2  Index         1.9150        7.8317        .50000        .22843E-04
   3  Normalizat    .98585        .12308E-01    .28835E-03   -.21503E-03
   4  Prefactor     .98470        .10508E-01    .24503E-03   -.15587E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101922
  Index      = 1.91498
  Normalizat = 0.985845
  Prefactor  = 0.984697
 **********
 **   18 **HESSE 
 **********

 FCN=   5584.366     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10192E-03    299.39        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9150        5.1026        .50000       -.66493    
   3  Normalizat    .98585        .26340E-01    .11534E-04   -.93506    
   4  Prefactor     .98470        .22487E-01    .49006E-04   -.93241    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.5321e-08
Minuit parameter uncertainties:
  1  0.0482129
  2  353.042
  3  0.0263404
  4  0.0224877
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443821': 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) = 5584.36608563
delta logL = 5.95136043557e-07

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.019e-04  4.821e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.915e+00  3.530e+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:  9.847e-01  2.249e-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:  9.858e-01  2.634e-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/443821/cmap_HighResolution_360633601_360892801_4FGL_J1216.2+0537_daily_bin468.png

Cleaning up...

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

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:57:24.797786', job_id='443821', GAL2='0.98', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630846644.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='5.95e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='468' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:57:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 443821: <4FGL_J1216.2+0537_daily_bin468> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin468 184.061 5.6248 360633601 360892801 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 :                                   828.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            987 sec.

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

