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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin373
RA = 184.061, Dec = 5.6248
tmin = 336009601, tmax = 336268801
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='443715', job_status='RUN', time_executed='2021-09-05 05:42:52.242129', time_epoch_executed='1630845772.24' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443715

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443715/ft1_4FGL_J1216.2+0537_daily_bin373.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443715/ft2_4FGL_J1216.2+0537_daily_bin373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443715/ft1_4FGL_J1216.2+0537_daily_bin373.fits outfile=/scratch/kocevski/443715/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin373.fits ra=184.061 dec=5.6248 rad=12.0 tmin=336009601.0 tmax=336268801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.26
user 3.04
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443715/ft1_filtered_4FGL_J1216.2+0537_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/443715/ft2_4FGL_J1216.2+0537_daily_bin373.fits sctable="SC_DATA" expcube=/scratch/kocevski/443715/ltcube_336009601_336268801_4FGL_J1216.2+0537_daily_bin373.fits outfile=/scratch/kocevski/443715/expmap_336009601_336268801_4FGL_J1216.2+0537_daily_bin373.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/443715/ltcube_336009601_336268801_4FGL_J1216.2+0537_daily_bin373.fits
.....................!
real 189.80
user 185.37
sys 3.95

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443715/ft1_filtered_4FGL_J1216.2+0537_daily_bin373.fits scfile=/scratch/kocevski/443715/ft2_4FGL_J1216.2+0537_daily_bin373.fits outfile=/scratch/kocevski/443715/cmap_HighResolution_336009601_336268801_4FGL_J1216.2+0537_daily_bin373.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.57
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1340       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.3203       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    136.30       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2395       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.2364       1.0000         .10000E-03   10000.    
    15 'norm      '    3.8023       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.506       1.0000         .10000E-03   10000.    
    19 'norm      '    .16892E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    8.4471       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.3990       1.0000         .10000E-03   10000.    
    25 'Prefactor '    39.087       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2371       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0298       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=   5803.349     FROM MIGRAD    STATUS=CONVERGED    776 CALLS     3928 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1337        2.9803        .13372E-06   -.24295E-04
   2  Prefactor     .10000E-03    6.4657       -.99904E-08** at limit **
   3  Prefactor     .10001E-03    230.09        .23272E-05** at limit **
   4  Prefactor     7.3180        11.300        .19879E-05   -.25785E-03
   5  Prefactor     .10000E-03    18.814       -.17050E-05** at limit **
   6  Prefactor     .10000E-03    24.767        .10834E-05** at limit **
   7  Prefactor     .10000E-03    8.5446        .20373E-06** at limit **
   8  Prefactor     136.30        104.71       -.74027E-06   -.15839E-04
   9  Prefactor     2.1898        234.43       -.18541E-04   -.44168E-04
  10  Prefactor     .10000E-03    57.033       -.28095E-06** at limit **
  11  Prefactor     .10000E-03    2.1089        .75012E-07** at limit **
  12  Prefactor     .10000E-03    10.641        .12240E-06** at limit **
  13  Prefactor     .10000E-03    8.7133       -.27779E-06** at limit **
  14  norm          1.2367        1.7620        .70401E-07    .12978E-03
  15  norm          3.8064        3.9060        .39349E-05   -.11652E-02
  16  Prefactor     .10000E-03    12.727        .42156E-07** at limit **
  17  norm          .10000E-03    33.312       -.16405E-05** at limit **
  18  Prefactor     12.603        119.43        .22155E-04    .20466E-03
  19  norm          .10003E-03    .26454       -.49577E-06** at limit **
  20  Prefactor     .10000E-03    8.5175       -.30274E-07** at limit **
  21  Prefactor     .10000E-03    16.451        .83636E-06** at limit **
  22  Prefactor     .10000E-03    12.432       -.10028E-07** at limit **
  23  norm          8.4478        2.3963       -.85175E-07    .73779E-03
  24  Prefactor     2.4000        7.2211        .82423E-06   -.19496E-04
  25  Prefactor     39.089        46.904        .59371E-06    .72081E-04
  26  Prefactor     .10000E-03    20.144       -.62657E-06** at limit **
  27  norm          .10000E-03    11.337       -.39962E-06** at limit **
  28  Prefactor     .10000E-03    5.2169        .43805E-07** at limit **
  29  Normalizat    1.2373        .22608        .90562E-06    .25482E-03
  30  Prefactor     1.0296        .18406       -.18912E-05    .41287E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.13366
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 7.31804
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 136.299
  Prefactor  = 2.18983
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.23669
  norm       = 3.8064
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 12.6029
  norm       = 0.000100032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.4478
  Prefactor  = 2.40003
  Prefactor  = 39.0891
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.23734
  Prefactor  = 1.02963
 **********
 **   18 **HESSE 
 **********

 FCN=   5803.349     FROM HESSE     STATUS=OK           578 CALLS     4506 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1337        2.9656        .15057E-03   -1.5416    
   2  Prefactor     .10000E-03    6.4666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    231.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.3180        11.286        .74122E-03   -1.5167    
   5  Prefactor     .10000E-03    19.370        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.5587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     136.30        104.87        .34498E-04   -1.3368    
   9  Prefactor     2.1898        239.60        .27465E-03   -1.5412    
  10  Prefactor     .10000E-03    57.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.1504        .10797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.7671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2367        1.7274        .11691E-03   -1.5486    
  15  norm          3.8064        4.1537        .72751E-03   -1.5318    
  16  Prefactor     .10000E-03    12.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    33.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.603        132.85        .11327E-03   -1.4998    
  19  norm          .10003E-03    1.1918        .11600E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.6907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.4478        2.3958        .59381E-04   -1.5127    
  24  Prefactor     2.4000        7.1936        .26437E-03   -1.5398    
  25  Prefactor     39.089        46.878        .64111E-04   -1.4457    
  26  Prefactor     .10000E-03    20.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    11.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    5.2414        .16993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2373        .26736        .27666E-03   -.85457    
  30  Prefactor     1.0296        .21626        .25420E-03   -.91748    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59846e-09
Minuit parameter uncertainties:
  1  2.96584
  2  2.63638e-06
  3  0.00243149
  4  11.289
  5  0.00015376
  6  0.000234744
  7  2.52307e-05
  8  105.017
  9  46.0012
  10  8.70494e-05
  11  1.04651e-06
  12  2.83372e-05
  13  2.47212e-05
  14  1.72746
  15  4.15403
  16  2.80244e-05
  17  0.000431577
  18  82.0689
  19  0.000389869
  20  1.1587e-05
  21  0.000130517
  22  2.73086e-06
  23  2.39581
  24  7.19619
  25  46.9219
  26  0.000129917
  27  6.06513e-05
  28  1.28824e-06
  29  0.267654
  30  0.216444
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  2.834e-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.030e+00  2.164e-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.237e+00  2.677e-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: 5.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443715/likelihoodResults_336009601_336268801_4FGL_J1216.2+0537_daily_bin373.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) = 5803.34946415
delta logL = -0.000446385457508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5803.34901769
delta logL = 7.6857759268e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9944       1.0000          .0000       10.000    
     3 'Normalizat'    1.2373       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0296       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=   5803.349     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      244 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10109E-03    71.856        .18142E-02** at limit **
   2  Index         1.9451        5.5939        .50000        .16187E-04
   3  Normalizat    1.2373        .13733E-01    .27665E-03   -.28354E-05
   4  Prefactor     1.0296        .11701E-01    .25421E-03   -.35778E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101088
  Index      = 1.94513
  Normalizat = 1.23734
  Prefactor  = 1.02962
 **********
 **   18 **HESSE 
 **********

 FCN=   5803.349     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10109E-03    321.57        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9451        5.9290        .50000       -.65729    
   3  Normalizat    1.2373        .29889E-01    .11066E-04   -.85457    
   4  Prefactor     1.0296        .25466E-01    .10168E-04   -.91748    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.59394e-08
Minuit parameter uncertainties:
  1  0.037621
  2  425.673
  3  0.0298897
  4  0.0254664
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443715': 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) = 5803.34901749
delta logL = 2.83881490759e-07

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.011e-04  3.762e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.945e+00  4.257e+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:  1.030e+00  2.547e-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.237e+00  2.989e-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/443715/cmap_HighResolution_336009601_336268801_4FGL_J1216.2+0537_daily_bin373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.19e-03', job_status='DONE', photon_flux_upper_limit='5.58e-08', time_completed='2021-09-05 05:56:41.124126', job_id='443715', GAL2='1.03', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1630846601.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.84e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='373' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:56:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 443715: <4FGL_J1216.2+0537_daily_bin373> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin373 184.061 5.6248 336009601 336268801 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 :                                   825.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            952 sec.

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

