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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin506
RA = 184.061, Dec = 5.6248
tmin = 370483201, tmax = 370742401
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='446525', job_status='RUN', time_executed='2021-09-05 05:50:51.795408', time_epoch_executed='1630846251.8' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446525

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446525/ft1_4FGL_J1216.2+0537_daily_bin506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446525/ft2_4FGL_J1216.2+0537_daily_bin506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446525/ft1_4FGL_J1216.2+0537_daily_bin506.fits outfile=/scratch/kocevski/446525/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin506.fits ra=184.061 dec=5.6248 rad=12.0 tmin=370483201.0 tmax=370742401.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 19.95
user 19.04
sys 0.47

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/446525/ft1_filtered_4FGL_J1216.2+0537_daily_bin506.fits" evtable="EVENTS" scfile=/scratch/kocevski/446525/ft2_4FGL_J1216.2+0537_daily_bin506.fits sctable="SC_DATA" outfile=/scratch/kocevski/446525/ltcube_370483201_370742401_4FGL_J1216.2+0537_daily_bin506.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/446525/ft2_4FGL_J1216.2+0537_daily_bin506.fits
.....................!
real 10.46
user 9.94
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446525/ft1_filtered_4FGL_J1216.2+0537_daily_bin506.fits evtable="EVENTS" scfile=/scratch/kocevski/446525/ft2_4FGL_J1216.2+0537_daily_bin506.fits sctable="SC_DATA" expcube=/scratch/kocevski/446525/ltcube_370483201_370742401_4FGL_J1216.2+0537_daily_bin506.fits outfile=/scratch/kocevski/446525/expmap_370483201_370742401_4FGL_J1216.2+0537_daily_bin506.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/446525/ltcube_370483201_370742401_4FGL_J1216.2+0537_daily_bin506.fits
.....................!
real 191.76
user 185.20
sys 4.74

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/446525/ft1_filtered_4FGL_J1216.2+0537_daily_bin506.fits scfile=/scratch/kocevski/446525/ft2_4FGL_J1216.2+0537_daily_bin506.fits outfile=/scratch/kocevski/446525/cmap_370483201_370742401_4FGL_J1216.2+0537_daily_bin506.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/446525/ft1_filtered_4FGL_J1216.2+0537_daily_bin506.fits scfile=/scratch/kocevski/446525/ft2_4FGL_J1216.2+0537_daily_bin506.fits outfile=/scratch/kocevski/446525/cmap_HighResolution_370483201_370742401_4FGL_J1216.2+0537_daily_bin506.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/446525/ft1_filtered_4FGL_J1216.2+0537_daily_bin506.fits evtable="EVENTS" scfile=/scratch/kocevski/446525/ft2_4FGL_J1216.2+0537_daily_bin506.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/446525/Model_4FGL_J1216.2+0537_daily_bin506.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/446525/ft1_filtered_4FGL_J1216.2+0537_daily_bin506.fits.........................!
real 18.04
user 16.58
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16575E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    146.81       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14589E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10584E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .22746E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    237.90       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .78774E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .63812E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.6068       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .28888E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    231.71       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    50.395       1.0000         .10000E-03   10000.    
    16 'Prefactor '    131.99       1.0000         .10000E-03   10000.    
    17 'norm      '    34.831       1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.546       1.0000         .10000E-03   10000.    
    19 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11664E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    110.79       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .34389E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    23.406       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .15449E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    201.20       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12543E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    .18486E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .18026E-02   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .90706       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=   590.8528     FROM MIGRAD    STATUS=CONVERGED    352 CALLS     3034 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.6429        .74443E-08** at limit **
   2  Prefactor     .10000E-03    89.360       -.24508E-05** at limit **
   3  Prefactor     149.50        109.32        .20565E-06   -.75107E-02
   4  Prefactor     .10000E-03    18.840        .54235E-06** at limit **
   5  Prefactor     .10000E-03    44.792        .78704E-06** at limit **
   6  Prefactor     .10000E-03    24.679       -.18007E-06** at limit **
   7  Prefactor     .10000E-03    688.64       -.93480E-05** at limit **
   8  Prefactor     254.48        120.18        .55725E-05   -.19532E-02
   9  Prefactor     .10000E-03    283.69       -.75417E-05** at limit **
  10  Prefactor     .10067E-03    630.63        .46695E-04** at limit **
  11  Prefactor     8.6831        9.0327        .36009E-06    .13738E-04
  12  Prefactor     .10000E-03    75.688       -.87081E-06** at limit **
  13  Prefactor     235.43        132.75       -.16576E-07   -.47446E-01
  14  norm          .10000E-03    50.678       -.12982E-04** at limit **
  15  norm          43.683        35.610       -.15543E-05    .14562E-02
  16  Prefactor     127.84        134.47       -.25638E-05   -.25924E-01
  17  norm          80.180        299.52        .25433E-04   -.26838E-03
  18  Prefactor     370.65        939.76       -.23757E-05   -.12479E-03
  19  norm          .10000E-03    2.3670        .12096E-06** at limit **
  20  Prefactor     .10000E-03    104.21        .26931E-05** at limit **
  21  Prefactor     114.37        108.92        .13735E-05    .52201E-03
  22  Prefactor     .10000E-03    63.713       -.49271E-06** at limit **
  23  norm          22.701        14.298        .60302E-07    .13968E-03
  24  Prefactor     .10000E-03    86.717        .22676E-05** at limit **
  25  Prefactor     195.05        195.05        .15204E-05   -.28350E-01
  26  Prefactor     .10002E-03    157.06       -.31546E-05** at limit **
  27  norm          .10029E-03    409.83        .23336E-04** at limit **
  28  Prefactor     .10000E-03    42.848        .85055E-06** at limit **
  29  Normalizat    .10000E-01    .60545        .11164E-04** at limit **
  30  Prefactor     .89045        .28987       -.26890E-05    .23007E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 149.499
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 254.481
  Prefactor  = 0.0001
  Prefactor  = 0.000100674
  Prefactor  = 8.68309
  Prefactor  = 0.0001
  Prefactor  = 235.433
  norm       = 0.000100003
  norm       = 43.6832
  Prefactor  = 127.845
  norm       = 80.18
  Prefactor  = 370.654
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 114.37
  Prefactor  = 0.0001
  norm       = 22.701
  Prefactor  = 0.0001
  Prefactor  = 195.051
  Prefactor  = 0.000100019
  norm       = 0.000100289
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.890448
 **********
 **   18 **HESSE 
 **********

 FCN=   590.8528     FROM HESSE     STATUS=OK           632 CALLS     3666 TOTAL
                     EDM=   .99E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.7117        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    89.449        .91056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     149.50        313.79        .83146E-03   -1.3256    
   4  Prefactor     .10000E-03    18.919        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    44.481        .10246E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.316        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    700.03        .91362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     254.48        238.92        .65620E-03   -1.2504    
   9  Prefactor     .10000E-03    283.33        .94095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10067E-03    660.62        .93373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.6831        9.0325        .34159E-02   -1.5119    
  12  Prefactor     .10000E-03    74.585        .91665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     235.43        152.93        .66468E-03   -1.2627    
  14  norm          .10000E-03    51.701        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          43.683        36.734        .14123E-02   -1.4385    
  16  Prefactor     127.84        144.64        .87624E-03   -1.3442    
  17  norm          80.180        373.40        .16975E-02   -1.3915    
  18  Prefactor     370.65        936.64        .19083E-02   -1.1833    
  19  norm          .10000E-03    2.3892        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    105.62        .10329E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     114.37        110.06        .95536E-03   -1.3565    
  22  Prefactor     .10000E-03    63.827        .98377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          22.701        14.578        .20699E-02   -1.4755    
  24  Prefactor     .10000E-03    86.224        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     195.05        375.06        .71219E-03   -1.2906    
  26  Prefactor     .10002E-03    158.78        .90856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10029E-03    408.50        .91151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    43.858        .10160E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .53256        .18786       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .89045        .32931        .45095E-01   -.96476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.87322e-05
Minuit parameter uncertainties:
  1  3.6616e-07
  2  0.000652712
  3  317.4
  4  3.85686e-05
  5  7.18918e-05
  6  2.97756e-05
  7  0.000124229
  8  239.848
  9  0.000374227
  10  0.0426875
  11  9.03396
  12  4.14055e-05
  13  153.192
  14  0.000820485
  15  36.7533
  16  145.047
  17  349.702
  18  980.004
  19  1.33914e-06
  20  0.000535914
  21  110.253
  22  9.17575e-05
  23  14.5801
  24  0.000301206
  25  379.817
  26  0.00346926
  27  0.0218839
  28  6.79968e-05
  29  3.64513e-06
  30  0.330048
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  4.141e-05  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.020e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  8.904e-01  3.300e-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.000e-02  3.645e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 184.061 5.625
Photon Flux Upper Limit: 3.97e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.98e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/446525/likelihoodResults_370483201_370742401_4FGL_J1216.2+0537_daily_bin506.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) = 590.852862339
delta logL = -6.46615209234e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 590.852798415
delta logL = -7.37918412597e-07

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.3719       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89053       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=   590.8528     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      284 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10469E-03    8.3023        .16613E-01** at limit **
   2  Index         2.2700        5.6103        .50000        .58311E-05
   3  Normalizat    .10000E-01    .19149E-03    .95478E-02** at limit **
   4  Prefactor     .89045        .45612E-02    .21667E-03    .11767E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104686
  Index      = 2.26996
  Normalizat = 0.01
  Prefactor  = 0.890448
 **********
 **   18 **HESSE 
 **********

 FCN=   590.8528     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      313 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10469E-03    395.00        .17421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2700        5.0020        .50000       -.57759    
   3  Normalizat    .10000E-01    .93717E-02    .19096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .89045        .31891E-01    .43333E-04   -.96476    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.88509e-09
Minuit parameter uncertainties:
  1  0.0866233
  2  613.677
  3  2.50484e-08
  4  0.0318919
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446525': 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) = 590.852797981
delta logL = -3.03370711663e-07

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.047e-04  8.662e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.270e+00  6.137e+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:  8.904e-01  3.189e-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  2.505e-08  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/446525/cmap_HighResolution_370483201_370742401_4FGL_J1216.2+0537_daily_bin506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.98e-02', job_status='DONE', photon_flux_upper_limit='3.97e-07', time_completed='2021-09-05 05:58:28.943118', job_id='446525', GAL2='0.89', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630846708.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='-3.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='506' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:58:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 446525: <4FGL_J1216.2+0537_daily_bin506> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin506 184.061 5.6248 370483201 370742401 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 :                                   446.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   493 sec.
    Turnaround time :                            476 sec.

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

