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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin670
RA = 184.061, Dec = 5.6248
tmin = 412992001, tmax = 413251201
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='446776', job_status='RUN', time_executed='2021-09-05 05:53:10.086581', time_epoch_executed='1630846390.09' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='670'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446776

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446776/ft1_4FGL_J1216.2+0537_daily_bin670.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446776/ft2_4FGL_J1216.2+0537_daily_bin670.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446776/ft1_4FGL_J1216.2+0537_daily_bin670.fits outfile=/scratch/kocevski/446776/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin670.fits ra=184.061 dec=5.6248 rad=12.0 tmin=412992001.0 tmax=413251201.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.61
user 3.33
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/446776/ft2_4FGL_J1216.2+0537_daily_bin670.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/446776/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin670.fits evtable="EVENTS" outfile="/scratch/kocevski/446776/ft1_filtered_4FGL_J1216.2+0537_daily_bin670.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/446776/ft1_filtered_4FGL_J1216.2+0537_daily_bin670.fits" evtable="EVENTS" scfile=/scratch/kocevski/446776/ft2_4FGL_J1216.2+0537_daily_bin670.fits sctable="SC_DATA" outfile=/scratch/kocevski/446776/ltcube_412992001_413251201_4FGL_J1216.2+0537_daily_bin670.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/446776/ft2_4FGL_J1216.2+0537_daily_bin670.fits
.....................!
real 12.19
user 11.74
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446776/ft1_filtered_4FGL_J1216.2+0537_daily_bin670.fits evtable="EVENTS" scfile=/scratch/kocevski/446776/ft2_4FGL_J1216.2+0537_daily_bin670.fits sctable="SC_DATA" expcube=/scratch/kocevski/446776/ltcube_412992001_413251201_4FGL_J1216.2+0537_daily_bin670.fits outfile=/scratch/kocevski/446776/expmap_412992001_413251201_4FGL_J1216.2+0537_daily_bin670.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/446776/ltcube_412992001_413251201_4FGL_J1216.2+0537_daily_bin670.fits
.....................!
real 191.35
user 185.57
sys 5.40

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/446776/ft1_filtered_4FGL_J1216.2+0537_daily_bin670.fits scfile=/scratch/kocevski/446776/ft2_4FGL_J1216.2+0537_daily_bin670.fits outfile=/scratch/kocevski/446776/cmap_412992001_413251201_4FGL_J1216.2+0537_daily_bin670.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.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/446776/ft1_filtered_4FGL_J1216.2+0537_daily_bin670.fits', '/scratch/kocevski/446776/ft2_4FGL_J1216.2+0537_daily_bin670.fits', expMap='/scratch/kocevski/446776/expmap_412992001_413251201_4FGL_J1216.2+0537_daily_bin670.fits', expCube='/scratch/kocevski/446776/ltcube_412992001_413251201_4FGL_J1216.2+0537_daily_bin670.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/446776/Model_4FGL_J1216.2+0537_daily_bin670.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/446776/ft1_filtered_4FGL_J1216.2+0537_daily_bin670.fits
Spacecraft file(s): /scratch/kocevski/446776/ft2_4FGL_J1216.2+0537_daily_bin670.fits
Exposure map: /scratch/kocevski/446776/expmap_412992001_413251201_4FGL_J1216.2+0537_daily_bin670.fits
Exposure cube: /scratch/kocevski/446776/ltcube_412992001_413251201_4FGL_J1216.2+0537_daily_bin670.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/446776/Model_4FGL_J1216.2+0537_daily_bin670.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1213.4072189

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1206.50433589

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17048E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .25859E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .71734E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.8942       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.771       1.0000         .10000E-03   10000.    
     6 'Prefactor '    42.936       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3550       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4708       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .25555E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10269       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18449E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .32412E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .51184E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .58768       1.0000         .10000E-03   10000.    
    19 'norm      '    1.3374       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.352       1.0000         .10000E-03   10000.    
    21 'Prefactor '    94.102       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .45049E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    14.925       1.0000         .10000E-03   10000.    
    24 'Prefactor '    100.84       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .24827E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .27097E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    137.87       1.0000         .10000E-03   10000.    
    28 'Prefactor '    43.643       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .92031       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1206.499     FROM MIGRAD    STATUS=CONVERGED    236 CALLS      613 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10035E-03    33.093       -.39934E-05** at limit **
   2  Prefactor     .11191E-03    96.618        .53661E-06** at limit **
   3  Prefactor     .10000E-03    49.490       -.81829E-05** at limit **
   4  Prefactor     8.9316        23.844       -.17547E-06    .53263E-04
   5  Prefactor     11.717        29.890        .99188E-07   -.12428E-02
   6  Prefactor     43.368        36.265        .14789E-05   -.17580E-02
   7  Prefactor     3.3550        1.0116         .0000         .0000    
   8  Prefactor     .13720E-03    983.92        .11262E-03** at limit **
   9  Prefactor     .10000E-03    65.667       -.33207E-06** at limit **
  10  Prefactor     .10003E-03    66.785       -.85479E-05** at limit **
  11  Prefactor     .10000E-03    2.3334        .91461E-07** at limit **
  12  Prefactor     .10000E-03    26.420       -.72028E-06** at limit **
  13  Prefactor     .10000E-03    38.576       -.35359E-05** at limit **
  14  norm          .10000E-03    9.2323        .14690E-05** at limit **
  15  norm          .10000E-03    5.3211        .43552E-06** at limit **
  16  Prefactor     .10000E-03    47.053       -.29160E-05** at limit **
  17  norm          .10000E-03    64.919        .38387E-05** at limit **
  18  Prefactor     .10006E-03    128.12        .20473E-05** at limit **
  19  norm          1.3372        2.2798       -.93520E-06   -.10926E-03
  20  Prefactor     18.441        12.471       -.12413E-05   -.31284E-02
  21  Prefactor     93.907        54.777        .11033E-05   -.31580E-02
  22  Prefactor     .10166E-03    10.062       -.22517E-05** at limit **
  23  norm          14.928        7.1200        .35245E-06   -.86186E-04
  24  Prefactor     99.693        65.234       -.48524E-05    .36807E-01
  25  Prefactor     .10001E-03    56.215        .61785E-05** at limit **
  26  Prefactor     .10000E-03    46.327        .26690E-05** at limit **
  27  norm          145.45        347.91        .18145E-04    .80252E-02
  28  Prefactor     43.678        6.9796       -.46593E-07    .80005E-02
  29  Normalizat    .10000E-01    .56740        .66300E-05** at limit **
  30  Prefactor     .92009        .18910       -.19898E-05   -.16389E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010035
  Prefactor  = 0.000111909
  Prefactor  = 0.000100001
  Prefactor  = 8.93164
  Prefactor  = 11.7171
  Prefactor  = 43.3682
  Prefactor  = 3.35499
  Prefactor  = 0.0001372
  Prefactor  = 0.000100001
  Prefactor  = 0.000100027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.000100003
  Prefactor  = 0.000100061
  norm       = 1.33721
  Prefactor  = 18.441
  Prefactor  = 93.9066
  Prefactor  = 0.000101664
  norm       = 14.9278
  Prefactor  = 99.6934
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  norm       = 145.45
  Prefactor  = 43.6779
  Normalizat = 0.01
  Prefactor  = 0.920086
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1206.499     FROM HESSE     STATUS=FAILED        33 CALLS      646 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10035E-03    40.589        .91080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11191E-03    104.79        .99920E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    113.07        .93756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.9316        22.404        .33599E-02   -1.5110    
   5  Prefactor     11.717        29.718        .29190E-02   -1.5023    
   6  Prefactor     43.368        33.294        .15295E-02   -1.4390    
   7  Prefactor     549.80        546.37         .0000       -1.5342    
   8  Prefactor     .13720E-03    .10573        .11262E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .24990       -.33207E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10003E-03    .22677       -.85479E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .20571        .91461E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .20571       -.72028E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .20571       -.35359E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .20571        .14690E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .20571        .43552E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .24361       -.29160E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .21510        .38387E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10006E-03    .33777        .20473E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.3372        1.0962       -.93520E-06   -1.5477    
  20  Prefactor     18.441        1.0028       -.12413E-05   -1.4849    
  21  Prefactor     93.907        .99898        .11033E-05   -1.3767    
  22  Prefactor     .10166E-03    .23384       -.22517E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          14.928        1.0007        .35245E-06   -1.4935    
  24  Prefactor     99.693        .99438       -.48524E-05   -1.3708    
  25  Prefactor     .10001E-03    .25062        .61785E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    .20966        .26690E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          145.45        1.0267        .18145E-04   -1.3290    
  28  Prefactor     43.678        1.0005       -.46593E-07   -1.4385    
  29  Normalizat    .10000E-01    .25505        .66300E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .92009        1.2641       -.19898E-05   -.95443    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.32832e-09
Minuit parameter uncertainties:
  1  0.0075482
  2  0.0707769
  3  0.000704145
  4  22.4254
  5  29.7557
  6  33.3081
  7  1.01156
  8  0.00396654
  9  3.16053e-05
  10  0.000156795
  11  1.97047e-08
  12  1.43328e-06
  13  5.13298e-06
  14  2.67205e-06
  15  7.36069e-07
  16  5.43036e-05
  17  5.02351e-05
  18  0.000286835
  19  1.09624
  20  1.00279
  21  0.998984
  22  0.00124754
  23  1.00066
  24  0.994378
  25  0.000108092
  26  7.49079e-06
  27  1.02672
  28  1.00046
  29  4.24808e-07
  30  1.30828
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1206.49875993

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  1.433e-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.201e-01  1.308e+00  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.000e-02  4.248e-07  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.57e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/446776/likelihoodResults_412992001_413251201_4FGL_J1216.2+0537_daily_bin670.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) = 1206.49894445
delta logL = -0.000184521715482

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1206.49876479
delta logL = -4.8624676765e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10630E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3521       1.0000          .0000       10.000    
     3 'Normalizat'    .10004E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92009       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=   1206.499     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      291 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10563E-03    7.0331        .14075E-01** at limit **
   2  Index         2.2415        5.7445        .50000        .17500E-04
   3  Normalizat    .10000E-01    .42237E-03    .89160E-02** at limit **
   4  Prefactor     .92009        .44307E-02    .19251E-03    .29612E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105627
  Index      = 2.24154
  Normalizat = 0.01
  Prefactor  = 0.920086
 **********
 **   18 **HESSE 
 **********

 FCN=   1206.499     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      320 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10563E-03    174.42        .14888E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2415        5.1183        .50000       -.58439    
   3  Normalizat    .10000E-01    .10749E-01    .17832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .92009        .22320E-01    .38503E-04   -.95443    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.43437e-09
Minuit parameter uncertainties:
  1  0.0628426
  2  401.495
  3  1.41e-07
  4  0.0223206
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446776': 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) = 1206.49876078
delta logL = -8.52226321513e-07

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.056e-04  6.284e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.242e+00  4.015e+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.201e-01  2.232e-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.000e-02  1.410e-07  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/446776/cmap_HighResolution_412992001_413251201_4FGL_J1216.2+0537_daily_bin670.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', job_status='DONE', photon_flux_upper_limit='1.57e-07', time_completed='2021-09-05 06:00:22.190293', job_id='446776', GAL2='0.92', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630846822.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.92', dlogl='-8.52e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='670' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:00:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 446776: <4FGL_J1216.2+0537_daily_bin670> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin670 184.061 5.6248 412992001 413251201 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 :                                   348.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             242.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   568 sec.
    Turnaround time :                            570 sec.

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

