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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin559
RA = 184.061, Dec = 5.6248
tmin = 384220801, tmax = 384480001
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='446606', job_status='RUN', time_executed='2021-09-05 05:54:39.425037', time_epoch_executed='1630846479.43' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446606

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446606/ft1_4FGL_J1216.2+0537_daily_bin559.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446606/ft2_4FGL_J1216.2+0537_daily_bin559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446606/ft1_4FGL_J1216.2+0537_daily_bin559.fits outfile=/scratch/kocevski/446606/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin559.fits ra=184.061 dec=5.6248 rad=12.0 tmin=384220801.0 tmax=384480001.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 13.80
user 13.20
sys 0.42

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446606/ft1_filtered_4FGL_J1216.2+0537_daily_bin559.fits evtable="EVENTS" scfile=/scratch/kocevski/446606/ft2_4FGL_J1216.2+0537_daily_bin559.fits sctable="SC_DATA" expcube=/scratch/kocevski/446606/ltcube_384220801_384480001_4FGL_J1216.2+0537_daily_bin559.fits outfile=/scratch/kocevski/446606/expmap_384220801_384480001_4FGL_J1216.2+0537_daily_bin559.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/446606/ltcube_384220801_384480001_4FGL_J1216.2+0537_daily_bin559.fits
.....................!
real 195.57
user 186.11
sys 5.28

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/446606/ft1_filtered_4FGL_J1216.2+0537_daily_bin559.fits scfile=/scratch/kocevski/446606/ft2_4FGL_J1216.2+0537_daily_bin559.fits outfile=/scratch/kocevski/446606/cmap_384220801_384480001_4FGL_J1216.2+0537_daily_bin559.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/446606/ft1_filtered_4FGL_J1216.2+0537_daily_bin559.fits scfile=/scratch/kocevski/446606/ft2_4FGL_J1216.2+0537_daily_bin559.fits outfile=/scratch/kocevski/446606/cmap_HighResolution_384220801_384480001_4FGL_J1216.2+0537_daily_bin559.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.57
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1853       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9903       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12411E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.708       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1082       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10145E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.1890       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    111.83       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .80799E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.115       1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.720       1.0000         .10000E-03   10000.    
    22 'Prefactor '    38.808       1.0000         .10000E-03   10000.    
    23 'norm      '    6.5626       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    96.042       1.0000         .10000E-03   10000.    
    27 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0682       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .77516       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=   2176.611     FROM MIGRAD    STATUS=CONVERGED    755 CALLS     3922 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8819        .26364E-07** at limit **
   2  Prefactor     .10000E-03    62.284       -.36045E-05** at limit **
   3  Prefactor     .10000E-03    195.50        .45910E-05** at limit **
   4  Prefactor     3.1790        11.993        .11829E-04   -.59093E-04
   5  Prefactor     .10000E-03    11.389        .21317E-07** at limit **
   6  Prefactor     5.9452        23.669       -.34763E-05    .55191E-04
   7  Prefactor     .10000E-03    28.084       -.21815E-05** at limit **
   8  Prefactor     .10021E-03    326.74       -.29033E-04** at limit **
   9  Prefactor     .10000E-03    30.316        .50263E-06** at limit **
  10  Prefactor     20.702        31.207        .17632E-06   -.43832E-06
  11  Prefactor     5.1073        4.9383        .13659E-06   -.32363E-05
  12  Prefactor     .10000E-03    30.790        .98886E-06** at limit **
  13  Prefactor     .10000E-03    10.996        .92883E-08** at limit **
  14  norm          .10000E-03    3.5355        .14647E-07** at limit **
  15  norm          5.1772        9.3926       -.36526E-06   -.20949E-04
  16  Prefactor     .10000E-03    30.141        .33033E-06** at limit **
  17  norm          111.86        125.00        .22352E-05    .45850E-04
  18  Prefactor     .10000E-03    211.49        .17205E-05** at limit **
  19  norm          .78732E-01    .63670       -.52648E-07    .10997E-03
  20  Prefactor     32.114        24.020        .16420E-06    .62189E-05
  21  Prefactor     31.714        48.901       -.34975E-07   -.12494E-04
  22  Prefactor     38.804        31.255        .26431E-06   -.43040E-05
  23  norm          6.5610        4.2337        .68078E-07   -.27898E-05
  24  Prefactor     .10000E-03    16.959       -.23958E-06** at limit **
  25  Prefactor     .10000E-03    46.397        .15808E-05** at limit **
  26  Prefactor     96.037        110.53        .51370E-06   -.13724E-04
  27  norm          .10002E-03    171.70        .90470E-05** at limit **
  28  Prefactor     .10000E-03    18.728        .45018E-06** at limit **
  29  Normalizat    1.0688        .33377       -.89076E-06   -.89489E-05
  30  Prefactor     .77476        .28013       -.17685E-05   -.26849E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100005
  Prefactor  = 3.17899
  Prefactor  = 0.0001
  Prefactor  = 5.9452
  Prefactor  = 0.000100001
  Prefactor  = 0.000100209
  Prefactor  = 0.0001
  Prefactor  = 20.7023
  Prefactor  = 5.10734
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.17716
  Prefactor  = 0.0001
  norm       = 111.859
  Prefactor  = 0.000100001
  norm       = 0.0787322
  Prefactor  = 32.1137
  Prefactor  = 31.7137
  Prefactor  = 38.8038
  norm       = 6.56097
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 96.0374
  norm       = 0.000100019
  Prefactor  = 0.0001
  Normalizat = 1.06875
  Prefactor  = 0.774755
 **********
 **   18 **HESSE 
 **********

 FCN=   2176.611     FROM HESSE     STATUS=OK           584 CALLS     4506 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8986        .89758E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    62.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    196.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.1790        12.198        .11352E-02   -1.5351    
   5  Prefactor     .10000E-03    11.464        .15377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.9452        23.632        .16406E-03   -1.5220    
   7  Prefactor     .10000E-03    28.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10021E-03    348.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    30.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.702        31.222        .88018E-04   -1.4798    
  11  Prefactor     5.1073        4.9375        .97905E-04   -1.5256    
  12  Prefactor     .10000E-03    30.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.009        .15111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.5622        .85618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.1772        9.4603        .14117E-03   -1.5253    
  16  Prefactor     .10000E-03    30.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          111.86        126.71        .19020E-03   -1.3589    
  18  Prefactor     .10000E-03    211.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .78732E-01    1.0929        .69909E-03   -1.5652    
  20  Prefactor     32.114        24.054        .70707E-04   -1.4574    
  21  Prefactor     31.714        48.963        .71144E-04   -1.4581    
  22  Prefactor     38.804        31.231        .64340E-04   -1.4461    
  23  norm          6.5610        4.2182        .72956E-04   -1.5196    
  24  Prefactor     .10000E-03    16.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    46.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     96.037        110.57        .41014E-04   -1.3745    
  27  norm          .10002E-03    173.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    18.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0688        .39538        .27085E-03   -.90761    
  30  Prefactor     .77476        .33075        .26489E-03   -1.0067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.49265e-10
Minuit parameter uncertainties:
  1  5.22097e-06
  2  0.000808847
  3  0.00192408
  4  12.2076
  5  1.60007e-05
  6  23.6695
  7  0.00034451
  8  0.0171604
  9  9.91339e-05
  10  31.2469
  11  4.9379
  12  0.000205612
  13  5.269e-06
  14  3.77022e-06
  15  9.46301
  16  6.45819e-05
  17  127.014
  18  0.000796628
  19  0.586306
  20  24.0609
  21  49.0251
  22  31.2442
  23  4.21834
  24  3.07368e-05
  25  0.000339106
  26  110.807
  27  0.0036858
  28  7.86605e-05
  29  0.396475
  30  0.331601
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  2.056e-04  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:  7.748e-01  3.316e-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.069e+00  3.965e-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: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/446606/likelihoodResults_384220801_384480001_4FGL_J1216.2+0537_daily_bin559.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) = 2176.61067002
delta logL = -0.000154048683271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2176.61051686
delta logL = -8.86816906132e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15258E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0964       1.0000          .0000       10.000    
     3 'Normalizat'    1.0687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77476       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=   2176.611     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      231 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    880.54        .90712E-02** at limit **
   2  Index         2.0930        6.8742        .50000        .89101E-06
   3  Normalizat    1.0688        .46273E-01    .61239E-01    .31296E-05
   4  Prefactor     .77475        .39346E-01    .43388E-01    .60241E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.09298
  Normalizat = 1.06875
  Prefactor  = 0.774755
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6270.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0930        8.2894        .50000       -.62045    
   3  Normalizat    1.0688        .88616E-01    .27085E-03   -.90761    
   4  Prefactor     .77475        .75389E-01    .26489E-03   -1.0067    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.97923e-11
Minuit parameter uncertainties:
  1  5.1715e-05
  2  39.1715
  3  0.0886287
  4  0.0753991
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446606': 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) = 2176.610516
delta logL = -2.11207407119e-08

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  5.171e-05  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.093e+00  3.917e+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:  7.748e-01  7.540e-02  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.069e+00  8.863e-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/446606/cmap_HighResolution_384220801_384480001_4FGL_J1216.2+0537_daily_bin559.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.80e-03', job_status='DONE', photon_flux_upper_limit='1.30e-07', time_completed='2021-09-05 06:04:59.734881', job_id='446606', GAL2='0.77', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630847099.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='-2.11e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='559' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:04:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 446606: <4FGL_J1216.2+0537_daily_bin559> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin559 184.061 5.6248 384220801 384480001 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 :                                   550.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             236.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            861 sec.

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

