/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 = 7567
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1216.2+0537_daily_bin179
RA = 184.061, Dec = 5.6248
tmin = 285724801, tmax = 285984001
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='442076', job_status='RUN', time_executed='2021-09-05 05:37:33.187444', time_epoch_executed='1630845453.19' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='179'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/442076

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/442076/ft1_4FGL_J1216.2+0537_daily_bin179.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/442076/ft2_4FGL_J1216.2+0537_daily_bin179.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/442076/ft1_4FGL_J1216.2+0537_daily_bin179.fits outfile=/scratch/kocevski/442076/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin179.fits ra=184.061 dec=5.6248 rad=12.0 tmin=285724801.0 tmax=285984001.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.21
user 3.91
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/442076/ft1_filtered_4FGL_J1216.2+0537_daily_bin179.fits" evtable="EVENTS" scfile=/scratch/kocevski/442076/ft2_4FGL_J1216.2+0537_daily_bin179.fits sctable="SC_DATA" outfile=/scratch/kocevski/442076/ltcube_285724801_285984001_4FGL_J1216.2+0537_daily_bin179.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/442076/ft2_4FGL_J1216.2+0537_daily_bin179.fits
.....................!
real 11.73
user 11.29
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/442076/ft1_filtered_4FGL_J1216.2+0537_daily_bin179.fits evtable="EVENTS" scfile=/scratch/kocevski/442076/ft2_4FGL_J1216.2+0537_daily_bin179.fits sctable="SC_DATA" expcube=/scratch/kocevski/442076/ltcube_285724801_285984001_4FGL_J1216.2+0537_daily_bin179.fits outfile=/scratch/kocevski/442076/expmap_285724801_285984001_4FGL_J1216.2+0537_daily_bin179.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/442076/ltcube_285724801_285984001_4FGL_J1216.2+0537_daily_bin179.fits
.....................!
real 191.16
user 185.58
sys 4.69

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/442076/ft1_filtered_4FGL_J1216.2+0537_daily_bin179.fits scfile=/scratch/kocevski/442076/ft2_4FGL_J1216.2+0537_daily_bin179.fits outfile=/scratch/kocevski/442076/cmap_285724801_285984001_4FGL_J1216.2+0537_daily_bin179.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.60
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/442076/ft1_filtered_4FGL_J1216.2+0537_daily_bin179.fits scfile=/scratch/kocevski/442076/ft2_4FGL_J1216.2+0537_daily_bin179.fits outfile=/scratch/kocevski/442076/cmap_HighResolution_285724801_285984001_4FGL_J1216.2+0537_daily_bin179.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.447       1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.194       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.180       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    77.480       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.8947       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.0905       1.0000         .10000E-03   10000.    
    15 'norm      '    4.5272       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13520E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10819E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.4936       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11263E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    52.811       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.2625       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    33.237       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .17272E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0201       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1733       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=   5706.499     FROM MIGRAD    STATUS=CONVERGED    786 CALLS     4050 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4099        .38847E-06** at limit **
   2  Prefactor     13.447        16.741        .24982E-07   -.31077E-05
   3  Prefactor     27.106        85.075       -.13996E-05   -.54142E-04
   4  Prefactor     .10000E-03    7.4180       -.45161E-06** at limit **
   5  Prefactor     .10000E-03    4.9373        .33289E-06** at limit **
   6  Prefactor     .10000E-03    4.8549        .95613E-07** at limit **
   7  Prefactor     12.178        22.375        .12824E-06   -.18217E-05
   8  Prefactor     .10000E-03    50.964        .71877E-07** at limit **
   9  Prefactor     77.503        53.436        .20343E-06    .13079E-04
  10  Prefactor     9.8961        17.927        .10018E-06    .69392E-06
  11  Prefactor     .10000E-03    4.3636       -.29022E-05** at limit **
  12  Prefactor     .10000E-03    15.046        .15326E-06** at limit **
  13  Prefactor     .10000E-03    24.780        .17256E-06** at limit **
  14  norm          5.0907        3.1008       -.79124E-07   -.25011E-03
  15  norm          4.5295        4.0280        .12123E-06    .11063E-03
  16  Prefactor     .10000E-03    130.46        .10631E-05** at limit **
  17  norm          .10000E-03    16.678        .61101E-08** at limit **
  18  Prefactor     .10000E-03    261.05        .69634E-06** at limit **
  19  norm          7.4946        1.1421       -.35047E-07   -.68954E-03
  20  Prefactor     .10000E-03    6.7792        .65150E-07** at limit **
  21  Prefactor     52.821        36.180       -.19508E-06    .77648E-05
  22  Prefactor     .10000E-03    3.4174        .61650E-07** at limit **
  23  norm          1.2621        1.8068        .41243E-06    .71899E-03
  24  Prefactor     .10000E-03    2.2971        .38739E-07** at limit **
  25  Prefactor     .10000E-03    25.489        .23048E-06** at limit **
  26  Prefactor     33.183        53.954        .39333E-06    .20684E-04
  27  norm          .10000E-03    9.1515        .21067E-07** at limit **
  28  Prefactor     .10002E-03    45.439       -.68732E-05** at limit **
  29  Normalizat    1.0188        .24399       -.27027E-06    .65426E-04
  30  Prefactor     1.1744        .19833       -.19508E-06    .37423E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.4466
  Prefactor  = 27.1057
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1785
  Prefactor  = 0.0001
  Prefactor  = 77.5035
  Prefactor  = 9.89606
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.09074
  norm       = 4.52949
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 7.49458
  Prefactor  = 0.0001
  Prefactor  = 52.8209
  Prefactor  = 0.0001
  norm       = 1.26213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.1829
  norm       = 0.0001
  Prefactor  = 0.000100021
  Normalizat = 1.01876
  Prefactor  = 1.1744
 **********
 **   18 **HESSE 
 **********

 FCN=   5706.499     FROM HESSE     STATUS=OK           576 CALLS     4626 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6081        .31008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.447        16.739        .10923E-03   -1.4974    
   3  Prefactor     27.106        85.837        .76823E-04   -1.4666    
   4  Prefactor     .10000E-03    7.4947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.9678        .16410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.8645        .16259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.178        22.368        .11478E-03   -1.5010    
   8  Prefactor     .10000E-03    51.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     77.503        53.679        .45621E-04   -1.3945    
  10  Prefactor     9.8961        17.913        .12739E-03   -1.5079    
  11  Prefactor     .10000E-03    4.9004        .20886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.304        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.0907        3.0938        .10015E-03   -1.5257    
  15  norm          4.5295        4.0230        .13346E-03   -1.5282    
  16  Prefactor     .10000E-03    132.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    16.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    261.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.4946        1.1469        .28698E-04   -1.5160    
  20  Prefactor     .10000E-03    6.7965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     52.821        36.433        .55191E-04   -1.4253    
  22  Prefactor     .10000E-03    3.4211        .13639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.2621        1.7981        .11627E-03   -1.5483    
  24  Prefactor     .10000E-03    2.2987        .11182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    25.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     33.183        53.952        .69506E-04   -1.4555    
  27  norm          .10000E-03    9.1523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10002E-03    51.254        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0188        .29238        .32018E-03   -.92404    
  30  Prefactor     1.1744        .23885        .25947E-03   -.87123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27474e-09
Minuit parameter uncertainties:
  1  3.77061e-05
  2  16.7446
  3  86.2321
  4  5.16232e-05
  5  3.97208e-05
  6  1.60059e-05
  7  22.3835
  8  3.54772e-05
  9  53.7126
  10  17.9227
  11  0.000228664
  12  2.80776e-05
  13  4.33255e-05
  14  3.0939
  15  4.0232
  16  0.000551518
  17  1.14674e-06
  18  0.000815283
  19  1.14691
  20  1.15302e-05
  21  36.4487
  22  5.66716e-06
  23  1.79817
  24  2.7812e-06
  25  7.06064e-05
  26  54.031
  27  3.01123e-06
  28  0.00209462
  29  0.292841
  30  0.239073
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  2.808e-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:  1.174e+00  2.391e-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.019e+00  2.928e-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: 6.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/442076/likelihoodResults_285724801_285984001_4FGL_J1216.2+0537_daily_bin179.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) = 5706.499779
delta logL = -0.000315799423333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5706.49946375
delta logL = -5.55120095669e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1860       1.0000          .0000       10.000    
     3 'Normalizat'    1.0188       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1744       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=   5706.499     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      239 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1363        .90712E-02** at limit **
   2  Index         2.1604        6.0065        .50000        .15702E-04
   3  Normalizat    1.0188        .36365E-02    .72360E-01    .23233E-04
   4  Prefactor     1.1744        .31521E-02    .58677E-01    .37635E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.16044
  Normalizat = 1.01876
  Prefactor  = 1.1744
 **********
 **   18 **HESSE 
 **********

 FCN=   5706.499     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      272 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1604        8.4550        .50000       -.60397    
   3  Normalizat    1.0188        .10853E-01    .32018E-03   -.92404    
   4  Prefactor     1.1744        .94168E-02    .25947E-03   -.87123    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.09413e-07
Minuit parameter uncertainties:
  1  0.000530983
  2  91.9323
  3  0.0108535
  4  0.00941677
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/442076': 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) = 5706.49946365
delta logL = -4.49814251624e-07

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  5.310e-04  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.160e+00  9.193e+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:  1.174e+00  9.417e-03  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.019e+00  1.085e-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/442076/cmap_HighResolution_285724801_285984001_4FGL_J1216.2+0537_daily_bin179.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.21e-03', job_status='DONE', photon_flux_upper_limit='6.94e-08', time_completed='2021-09-05 05:52:10.519102', job_id='442076', GAL2='1.17', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630846330.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='-4.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='179' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:52:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 442076: <4FGL_J1216.2+0537_daily_bin179> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin179 184.061 5.6248 285724801 285984001 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 :                                   868.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            977 sec.

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

