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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin961
RA = 184.061, Dec = 5.6248
tmin = 488419201, tmax = 488678401
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='447288', job_status='RUN', time_executed='2021-09-05 05:52:54.725095', time_epoch_executed='1630846374.73' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='961'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447288

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447288/ft1_4FGL_J1216.2+0537_daily_bin961.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447288/ft2_4FGL_J1216.2+0537_daily_bin961.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447288/ft1_4FGL_J1216.2+0537_daily_bin961.fits outfile=/scratch/kocevski/447288/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin961.fits ra=184.061 dec=5.6248 rad=12.0 tmin=488419201.0 tmax=488678401.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 7.24
user 6.80
sys 0.35

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447288/ft1_filtered_4FGL_J1216.2+0537_daily_bin961.fits evtable="EVENTS" scfile=/scratch/kocevski/447288/ft2_4FGL_J1216.2+0537_daily_bin961.fits sctable="SC_DATA" expcube=/scratch/kocevski/447288/ltcube_488419201_488678401_4FGL_J1216.2+0537_daily_bin961.fits outfile=/scratch/kocevski/447288/expmap_488419201_488678401_4FGL_J1216.2+0537_daily_bin961.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/447288/ltcube_488419201_488678401_4FGL_J1216.2+0537_daily_bin961.fits
.....................!
real 191.61
user 185.25
sys 5.93

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/447288/ft1_filtered_4FGL_J1216.2+0537_daily_bin961.fits scfile=/scratch/kocevski/447288/ft2_4FGL_J1216.2+0537_daily_bin961.fits outfile=/scratch/kocevski/447288/cmap_488419201_488678401_4FGL_J1216.2+0537_daily_bin961.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.57
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.720       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.882       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10816E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10769E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.941       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    190.96       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7489       1.0000         .10000E-03   10000.    
    12 'Prefactor '    65.306       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.1460       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.7192       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.6016       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.171       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.954       1.0000         .10000E-03   10000.    
    23 'norm      '    1.1956       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.174       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .80912       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0753       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=   3559.425     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3885 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.721        5.9177       -.23261E-06   -.32650E-04
   2  Prefactor     19.884        22.535       -.34519E-06    .21886E-04
   3  Prefactor     .10000E-03    120.46        .88111E-04** at limit **
   4  Prefactor     .10000E-03    7.9911        .20968E-06** at limit **
   5  Prefactor     .10000E-03    10.647        .45036E-05** at limit **
   6  Prefactor     14.945        25.277       -.65855E-06   -.31285E-03
   7  Prefactor     .10000E-03    11.034       -.40413E-05** at limit **
   8  Prefactor     .10000E-03    78.914       -.84502E-05** at limit **
   9  Prefactor     190.98        80.789        .11278E-04   -.72275E-04
  10  Prefactor     .10000E-03    75.486       -.29009E-04** at limit **
  11  Prefactor     4.7495        4.9137       -.28670E-07   -.19372E-03
  12  Prefactor     65.310        52.019        .18913E-05   -.10898E-04
  13  Prefactor     .10000E-03    5.2574       -.26874E-08** at limit **
  14  norm          3.1459        3.3289       -.65303E-08   -.11473E-04
  15  norm          .10000E-03    2.6824       -.13285E-06** at limit **
  16  Prefactor     .10000E-03    17.823        .28524E-05** at limit **
  17  norm          8.7178        31.353       -.85129E-06   -.79508E-05
  18  Prefactor     .10000E-03    83.118        .20526E-04** at limit **
  19  norm          2.6016        .87163       -.20995E-07    .27093E-04
  20  Prefactor     26.171        14.468        .28587E-06    .41003E-04
  21  Prefactor     .10000E-03    9.1862       -.10626E-05** at limit **
  22  Prefactor     14.954        13.790       -.65892E-07    .10344E-05
  23  norm          1.1955        1.3247        .26522E-07   -.27247E-04
  24  Prefactor     .10000E-03    3.4339        .74193E-08** at limit **
  25  Prefactor     .10000E-03    19.092        .63857E-06** at limit **
  26  Prefactor     .10000E-03    181.99       -.10441E-03** at limit **
  27  norm          .10000E-03    17.037       -.30314E-05** at limit **
  28  Prefactor     10.175        14.613        .24465E-06    .39368E-03
  29  Normalizat    .80880        .28506       -.39389E-05    .18192E-03
  30  Prefactor     1.0756        .23121        .10326E-05    .13865E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7205
  Prefactor  = 19.8839
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.9447
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 190.983
  Prefactor  = 0.0001
  Prefactor  = 4.74946
  Prefactor  = 65.31
  Prefactor  = 0.0001
  norm       = 3.14587
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.71778
  Prefactor  = 0.0001
  norm       = 2.60162
  Prefactor  = 26.1715
  Prefactor  = 0.0001
  Prefactor  = 14.9538
  norm       = 1.19552
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 10.1749
  Normalizat = 0.808802
  Prefactor  = 1.07561
 **********
 **   18 **HESSE 
 **********

 FCN=   3559.425     FROM HESSE     STATUS=OK           580 CALLS     4465 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.721        5.9205        .10443E-03   -1.5053    
   2  Prefactor     19.884        22.537        .89825E-04   -1.4816    
   3  Prefactor     .10000E-03    120.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.0120        .16468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.945        25.436        .51809E-03   -1.4935    
   7  Prefactor     .10000E-03    11.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    78.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     190.98        80.891        .14613E-03   -1.2935    
  10  Prefactor     .10000E-03    76.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.7495        4.9221        .12791E-03   -1.5272    
  12  Prefactor     65.310        51.957        .49662E-04   -1.4090    
  13  Prefactor     .10000E-03    5.2610        .13358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.1459        3.3206        .10792E-03   -1.5353    
  15  norm          .10000E-03    2.7173        .95146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.7178        31.377        .13575E-03   -1.5117    
  18  Prefactor     .10000E-03    83.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.6016        .87302        .29969E-04   -1.5385    
  20  Prefactor     26.171        14.476        .78307E-04   -1.4684    
  21  Prefactor     .10000E-03    9.1877        .17662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.954        13.786        .10357E-03   -1.4934    
  23  norm          1.1955        1.3069        .69882E-04   -1.5489    
  24  Prefactor     .10000E-03    3.4367        .10797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    19.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    182.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    17.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     10.175        14.616        .12562E-03   -1.5070    
  29  Normalizat    .80880        .32817        .31369E-03   -.99743    
  30  Prefactor     1.0756        .26632        .24018E-03   -.90250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14966e-09
Minuit parameter uncertainties:
  1  5.92084
  2  22.5462
  3  0.000463509
  4  3.66843e-06
  5  0.000130475
  6  25.4544
  7  8.32881e-06
  8  4.36305e-05
  9  80.9386
  10  0.00013843
  11  4.92252
  12  51.9928
  13  9.16977e-07
  14  3.32081
  15  2.20743e-05
  16  5.46622e-06
  17  31.4366
  18  1.23444e-05
  19  0.873027
  20  14.4777
  21  4.26696e-06
  22  13.7887
  23  1.30697
  24  2.25608e-06
  25  9.52346e-06
  26  0.00163522
  27  4.30687e-06
  28  14.6211
  29  0.328977
  30  0.266648
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  6.531e+01  5.199e+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:  1.076e+00  2.666e-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:  8.088e-01  3.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.41
Ra Dec: 184.061 5.625
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 6.72e-08 +/- 5.34e-08
Energy Flux (Fixed Index): 4.42e-05 +/- 3.52e-05

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

Saving results to:
/scratch/kocevski/447288/likelihoodResults_488419201_488678401_4FGL_J1216.2+0537_daily_bin961.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): 0
logL (Free Index) = 3558.71614233
delta logL = 0.708608069488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3558.69939586
delta logL = 0.725354536665

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.384       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8428       1.0000          .0000       10.000    
     3 'Normalizat'    .73125       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1212       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3558.699     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      304 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.312        247.73        .54743E-03    .64048E-04
   2  Index         2.8449        2.9638        .26069E-02    .37243E-04
   3  Normalizat    .73117        .35000        .32761E-03    .15616E-05
   4  Prefactor     1.1211        .29817        .23583E-03   -.14004E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3123
  Index      = 2.84487
  Normalizat = 0.731168
  Prefactor  = 1.12113
 **********
 **   18 **HESSE 
 **********

 FCN=   3558.699     FROM HESSE     STATUS=OK            27 CALLS      331 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.312        31.225        .10949E-03   -1.4978    
   2  Index         2.8449        .87048        .10428E-03   -.44563    
   3  Normalizat    .73117        .30955        .13104E-04   -1.0268    
   4  Prefactor     1.1211        .26765        .94330E-05   -.88794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18573e-11
Minuit parameter uncertainties:
  1  31.2629
  2  0.875974
  3  0.310292
  4  0.267975
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447288': 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) = 3558.69939256
delta logL = 0.725357841613

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.331e+01  3.126e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.845e+00  8.760e-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.121e+00  2.680e-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:  7.312e-01  3.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.96
Ra Dec: 184.061 5.625
Photon Index (Free Index): 2.84 +/- 0.88
Photon Flux (Free Index): 1.30e-07 +/- 8.86e-08
Energy Flux (Free Index): 2.83e-05 +/- 1.92e-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/447288/cmap_HighResolution_488419201_488678401_4FGL_J1216.2+0537_daily_bin961.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-02', comment='SUCCESS', photon_flux='6.72e-08', energy_flux2='2.83e-05', photon_flux_error='5.34e-08', dlogl='7.25e-01', energy_flux='4.42e-05', photon_flux2='1.30e-07', job_status='DONE', time_completed='2021-09-05 06:05:14.897094', photon_index_error2='0.88', photon_index2='2.84', ts='2.41', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.82e-07', energy_flux_error2='1.92e-05', EG='0.81', time_epoch_completed='1630847114.9', return_code='0', job_id='447288', GAL2='1.12', EG2='0.73', return_code2='0', energy_flux_error='3.52e-05', photon_flux_error2='8.86e-08', ts2='3.96', photon_index='2.02' WHERE bin_id='961' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:05:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 447288: <4FGL_J1216.2+0537_daily_bin961> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin961 184.061 5.6248 488419201 488678401 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 :                                   674.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            833 sec.

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

