/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 32 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 = 7393
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1216.2+0537_daily_bin164
RA = 184.061, Dec = 5.6248
tmin = 281836801, tmax = 282096001
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='442057', job_status='RUN', time_executed='2021-09-05 05:37:27.410243', time_epoch_executed='1630845447.41' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/442057

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/442057/ft1_4FGL_J1216.2+0537_daily_bin164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/442057/ft2_4FGL_J1216.2+0537_daily_bin164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/442057/ft1_4FGL_J1216.2+0537_daily_bin164.fits outfile=/scratch/kocevski/442057/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin164.fits ra=184.061 dec=5.6248 rad=12.0 tmin=281836801.0 tmax=282096001.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 4.94
user 3.71
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/442057/ft2_4FGL_J1216.2+0537_daily_bin164.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/442057/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin164.fits evtable="EVENTS" outfile="/scratch/kocevski/442057/ft1_filtered_4FGL_J1216.2+0537_daily_bin164.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 2.33
user 0.36
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/442057/ft1_filtered_4FGL_J1216.2+0537_daily_bin164.fits evtable="EVENTS" scfile=/scratch/kocevski/442057/ft2_4FGL_J1216.2+0537_daily_bin164.fits sctable="SC_DATA" expcube=/scratch/kocevski/442057/ltcube_281836801_282096001_4FGL_J1216.2+0537_daily_bin164.fits outfile=/scratch/kocevski/442057/expmap_281836801_282096001_4FGL_J1216.2+0537_daily_bin164.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/442057/ltcube_281836801_282096001_4FGL_J1216.2+0537_daily_bin164.fits
.....................!
real 195.05
user 186.47
sys 4.55

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/442057/ft1_filtered_4FGL_J1216.2+0537_daily_bin164.fits scfile=/scratch/kocevski/442057/ft2_4FGL_J1216.2+0537_daily_bin164.fits outfile=/scratch/kocevski/442057/cmap_281836801_282096001_4FGL_J1216.2+0537_daily_bin164.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.39
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1734       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6185       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.751       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10453E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.346       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.6205       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.2696       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.4656       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.6788       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.0966       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.2108       1.0000         .10000E-03   10000.    
    26 'Prefactor '    20.938       1.0000         .10000E-03   10000.    
    27 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    16.750       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4872       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .66854       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=   5881.297     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     3899 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1735        5.1934        .21567E-05   -.90726E-03
   2  Prefactor     .10000E-03    7.5123       -.49505E-06** at limit **
   3  Prefactor     .10002E-03    46.463        .61033E-05** at limit **
   4  Prefactor     .10000E-03    2.4185       -.47427E-08** at limit **
   5  Prefactor     .10000E-03    3.3783       -.23804E-07** at limit **
   6  Prefactor     .10000E-03    6.2422       -.38685E-06** at limit **
   7  Prefactor     2.6056        15.147        .64543E-06   -.27814E-04
   8  Prefactor     .10000E-03    20.198        .12503E-05** at limit **
   9  Prefactor     19.756        40.131        .11024E-05    .41356E-04
  10  Prefactor     .10000E-03    60.717        .81877E-06** at limit **
  11  Prefactor     .10000E-03    1.9001        .11112E-07** at limit **
  12  Prefactor     23.345        23.047       -.71836E-08   -.42516E-05
  13  Prefactor     8.6188        14.992        .26097E-05   -.17474E-03
  14  norm          .10000E-03    1.2662       -.13006E-06** at limit **
  15  norm          7.2686        5.0546        .56684E-07   -.63820E-04
  16  Prefactor     .10000E-03    11.020        .68026E-07** at limit **
  17  norm          .10000E-03    21.224       -.99044E-07** at limit **
  18  Prefactor     .10003E-03    68.749       -.75697E-05** at limit **
  19  norm          9.4656        1.2827       -.23489E-07    .66095E-04
  20  Prefactor     7.6788        7.7744        .86944E-07   -.11465E-04
  21  Prefactor     .10000E-03    6.8431        .94988E-06** at limit **
  22  Prefactor     .10000E-03    4.3293       -.62310E-07** at limit **
  23  norm          7.0966        2.4604        .40516E-07   -.18818E-04
  24  Prefactor     .10000E-03    4.6586        .62329E-07** at limit **
  25  Prefactor     6.2103        22.859        .28665E-06   -.57136E-05
  26  Prefactor     20.938        64.642        .53689E-06   -.92373E-06
  27  norm          .10000E-03    27.771       -.31714E-05** at limit **
  28  Prefactor     16.750        17.335        .13803E-06   -.65124E-05
  29  Normalizat    1.4872        .23749       -.91155E-06    .60367E-05
  30  Prefactor     .66849        .19081       -.40841E-06   -.38873E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.17351
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.60558
  Prefactor  = 0.000100001
  Prefactor  = 19.7558
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.3455
  Prefactor  = 8.6188
  norm       = 0.0001
  norm       = 7.26856
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100028
  norm       = 9.4656
  Prefactor  = 7.67878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.09664
  Prefactor  = 0.0001
  Prefactor  = 6.21034
  Prefactor  = 20.9383
  norm       = 0.000100004
  Prefactor  = 16.7502
  Normalizat = 1.48724
  Prefactor  = 0.668489
 **********
 **   18 **HESSE 
 **********

 FCN=   5881.297     FROM HESSE     STATUS=OK           584 CALLS     4483 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1735        5.3479        .78659E-03   -1.5211    
   2  Prefactor     .10000E-03    7.5315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    48.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.4194        .11648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.3862        .13765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.2970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6056        15.144        .25205E-03   -1.5385    
   8  Prefactor     .10000E-03    20.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.756        40.194        .90122E-04   -1.4819    
  10  Prefactor     .10000E-03    62.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.9420        .10319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.345        23.046        .82902E-04   -1.4741    
  13  Prefactor     8.6188        15.064        .68263E-03   -1.5121    
  14  norm          .10000E-03    1.2729        .84146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.2686        5.0602        .13085E-03   -1.5169    
  16  Prefactor     .10000E-03    11.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    21.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10003E-03    72.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.4656        1.2885        .28479E-04   -1.5093    
  20  Prefactor     7.6788        7.7758        .14471E-03   -1.5154    
  21  Prefactor     .10000E-03    6.9073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.3353        .15584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.0966        2.4604        .67504E-04   -1.5175    
  24  Prefactor     .10000E-03    4.6769        .16166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.2103        22.864        .16108E-03   -1.5210    
  26  Prefactor     20.938        64.477        .87533E-04   -1.4792    
  27  norm          .10000E-03    28.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     16.750        17.295        .97862E-04   -1.4889    
  29  Normalizat    1.4872        .28612        .27451E-03   -.78138    
  30  Prefactor     .66849        .22786        .32399E-03   -1.0478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54139e-09
Minuit parameter uncertainties:
  1  5.34829
  2  6.00416e-05
  3  0.00186577
  4  5.46199e-07
  5  4.73796e-06
  6  4.0188e-05
  7  12.5679
  8  0.000248372
  9  40.2494
  10  0.000217599
  11  1.50852e-06
  12  23.0548
  13  15.0702
  14  6.61131e-06
  15  5.06048
  16  1.0484e-05
  17  1.80114e-05
  18  0.0028373
  19  1.28853
  20  7.77678
  21  0.000109891
  22  5.42871e-06
  23  2.46046
  24  7.84949e-06
  25  22.8966
  26  64.693
  27  0.000708251
  28  17.3
  29  0.286436
  30  0.228179
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  6.685e-01  2.282e-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.487e+00  2.864e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.23
Ra Dec: 184.061 5.625
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.40e-08 +/- 2.37e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.56e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5881.086556
delta logL = 0.210563417767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5881.06899617
delta logL = 0.228123243834

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.317       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4604       1.0000          .0000       10.000    
     3 'Normalizat'    1.5007       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66306       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=   5881.069     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      277 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.319        31.857        .71599E-04   -.52379E-03
   2  Index         1.4600        .75984        .10470E-01   -.19811E-03
   3  Normalizat    1.5007        .27197        .27361E-03    .59623E-03
   4  Prefactor     .66305        .22541        .32530E-03    .48959E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.319
  Index      = 1.46003
  Normalizat = 1.50074
  Prefactor  = 0.663046
 **********
 **   18 **HESSE 
 **********

 FCN=   5881.069     FROM HESSE     STATUS=OK            23 CALLS      300 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.319        31.823        .14320E-04   -1.4588    
   2  Index         1.4600        .75913        .41881E-03   -.78665    
   3  Normalizat    1.5007        .27218        .54721E-04   -.77757    
   4  Prefactor     .66305        .22559        .65060E-04   -1.0499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28868e-09
Minuit parameter uncertainties:
  1  31.8404
  2  0.765102
  3  0.272444
  4  0.2259
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/442057': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5881.06899604
delta logL = 0.228123368809

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  3.132e+01  3.184e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.460e+00  7.651e-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:  6.630e-01  2.259e-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.501e+00  2.724e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.69
Ra Dec: 184.061 5.625
Photon Index (Free Index): 1.46 +/- 0.77
Photon Flux (Free Index): 9.96e-09 +/- 1.55e-08
Energy Flux (Free Index): 3.60e-05 +/- 6.20e-05

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/442057/cmap_HighResolution_281836801_282096001_4FGL_J1216.2+0537_daily_bin164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.40e-08', energy_flux2='3.60e-05', photon_flux_error='2.37e-08', dlogl='2.28e-01', energy_flux='1.58e-05', photon_flux2='9.96e-09', job_status='DONE', time_completed='2021-09-05 05:50:36.026710', photon_index_error2='0.77', photon_index2='1.46', ts='5.23', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='6.20e-05', EG='1.49', time_epoch_completed='1630846236.03', return_code='0', job_id='442057', GAL2='0.66', EG2='1.50', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='1.55e-08', ts2='5.69', photon_index='2.02' WHERE bin_id='164' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:50:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 442057: <4FGL_J1216.2+0537_daily_bin164> in cluster <slac> Done

Job <4FGL_J1216.2+0537_daily_bin164> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 05:35:53 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:35:55 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:35:55 2021
Terminated at Sun Sep  5 05:50:36 2021
Results reported at Sun Sep  5 05:50:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin164 184.061 5.6248 281836801 282096001 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 :                                   776.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            883 sec.

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

