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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin804
RA = 184.061, Dec = 5.6248
tmin = 447724801, tmax = 447984001
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='447008', job_status='RUN', time_executed='2021-09-05 05:51:32.927551', time_epoch_executed='1630846292.93' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='804'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447008

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447008/ft1_4FGL_J1216.2+0537_daily_bin804.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447008/ft2_4FGL_J1216.2+0537_daily_bin804.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447008/ft1_4FGL_J1216.2+0537_daily_bin804.fits outfile=/scratch/kocevski/447008/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin804.fits ra=184.061 dec=5.6248 rad=12.0 tmin=447724801.0 tmax=447984001.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.61
user 3.15
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447008/ft1_filtered_4FGL_J1216.2+0537_daily_bin804.fits evtable="EVENTS" scfile=/scratch/kocevski/447008/ft2_4FGL_J1216.2+0537_daily_bin804.fits sctable="SC_DATA" expcube=/scratch/kocevski/447008/ltcube_447724801_447984001_4FGL_J1216.2+0537_daily_bin804.fits outfile=/scratch/kocevski/447008/expmap_447724801_447984001_4FGL_J1216.2+0537_daily_bin804.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/447008/ltcube_447724801_447984001_4FGL_J1216.2+0537_daily_bin804.fits
.....................!
real 190.95
user 184.53
sys 5.18

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/447008/ft1_filtered_4FGL_J1216.2+0537_daily_bin804.fits scfile=/scratch/kocevski/447008/ft2_4FGL_J1216.2+0537_daily_bin804.fits outfile=/scratch/kocevski/447008/cmap_447724801_447984001_4FGL_J1216.2+0537_daily_bin804.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447008/ft1_filtered_4FGL_J1216.2+0537_daily_bin804.fits scfile=/scratch/kocevski/447008/ft2_4FGL_J1216.2+0537_daily_bin804.fits outfile=/scratch/kocevski/447008/cmap_HighResolution_447724801_447984001_4FGL_J1216.2+0537_daily_bin804.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8945       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1257       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.418       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.677       1.0000         .10000E-03   10000.    
     9 'Prefactor '    47.874       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0337       1.0000         .10000E-03   10000.    
    15 'norm      '    5.6540       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.346       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .51979       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    34.395       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.014       1.0000         .10000E-03   10000.    
    23 'norm      '    2.5532       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.6463       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    40.406       1.0000         .10000E-03   10000.    
    28 'Prefactor '    15.021       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0376       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0620       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=   5488.486     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3865 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8947        4.0700        .95799E-07    .40194E-04
   2  Prefactor     .10000E-03    9.3649        .54591E-07** at limit **
   3  Prefactor     .10000E-03    31.208       -.12296E-05** at limit **
   4  Prefactor     .10000E-03    2.6272        .11878E-06** at limit **
   5  Prefactor     2.1254        5.7901        .29496E-06    .49160E-04
   6  Prefactor     .10000E-03    4.9171        .32463E-06** at limit **
   7  Prefactor     12.418        19.416        .32728E-06    .67498E-04
   8  Prefactor     20.684        68.096       -.33297E-06    .77070E-06
   9  Prefactor     47.874        38.173        .18672E-06    .45723E-04
  10  Prefactor     .10000E-03    13.265       -.36268E-06** at limit **
  11  Prefactor     .10000E-03    1.8707       -.20331E-08** at limit **
  12  Prefactor     .10000E-03    22.125        .19390E-06** at limit **
  13  Prefactor     .10000E-03    5.3470        .74341E-07** at limit **
  14  norm          1.0359        2.1177       -.38102E-06   -.12374E-02
  15  norm          5.6529        3.4246       -.17642E-06   -.61964E-03
  16  Prefactor     24.346        31.743       -.65693E-07   -.39572E-04
  17  norm          .10000E-03    15.922        .43694E-06** at limit **
  18  Prefactor     .10000E-03    46.588        .11450E-05** at limit **
  19  norm          .52001        .54253        .44304E-07    .39348E-03
  20  Prefactor     .10000E-03    3.1276       -.51672E-07** at limit **
  21  Prefactor     34.393        24.729        .94534E-07    .18015E-04
  22  Prefactor     11.012        13.397       -.75629E-06    .31786E-04
  23  norm          2.5531        1.6210       -.30127E-07   -.26594E-03
  24  Prefactor     1.6453        10.669        .92812E-05   -.70312E-04
  25  Prefactor     .10000E-03    21.902        .17210E-06** at limit **
  26  Prefactor     .10000E-03    41.604       -.12220E-06** at limit **
  27  norm          40.405        31.960       -.10056E-05   -.19205E-04
  28  Prefactor     15.018        13.037        .13530E-06    .82799E-04
  29  Normalizat    1.0376        .22333        .64599E-06    .13958E-03
  30  Prefactor     1.0621        .19119       -.89960E-06    .11713E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.89465
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.12541
  Prefactor  = 0.0001
  Prefactor  = 12.4176
  Prefactor  = 20.684
  Prefactor  = 47.874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.03592
  norm       = 5.65295
  Prefactor  = 24.3456
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.520008
  Prefactor  = 0.0001
  Prefactor  = 34.3932
  Prefactor  = 11.0116
  norm       = 2.55312
  Prefactor  = 1.64527
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 40.4055
  Prefactor  = 15.0179
  Normalizat = 1.03759
  Prefactor  = 1.06206
 **********
 **   18 **HESSE 
 **********

 FCN=   5488.486     FROM HESSE     STATUS=OK           590 CALLS     4455 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8947        4.0646        .14712E-03   -1.5313    
   2  Prefactor     .10000E-03    9.3751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    31.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.6300        .11729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.1254        5.7513        .28278E-03   -1.5416    
   6  Prefactor     .10000E-03    4.9346        .16055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.418        19.434        .11367E-03   -1.5003    
   8  Prefactor     20.684        68.111        .88084E-04   -1.4798    
   9  Prefactor     47.874        38.226        .57953E-04   -1.4323    
  10  Prefactor     .10000E-03    13.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.9036        .98903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.3628        .16719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0359        1.7595        .14993E-02   -1.5504    
  15  norm          5.6529        3.4151        .99441E-04   -1.5232    
  16  Prefactor     24.346        31.751        .81183E-04   -1.4721    
  17  norm          .10000E-03    15.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    46.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .52001        .50804        .50570E-03   -1.5564    
  20  Prefactor     .10000E-03    3.1295        .12794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     34.393        24.769        .68330E-04   -1.4534    
  22  Prefactor     11.012        13.299        .12072E-03   -1.5044    
  23  norm          2.5531        1.6166        .71701E-04   -1.5388    
  24  Prefactor     1.6453        10.576        .16458E-02   -1.5451    
  25  Prefactor     .10000E-03    21.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    41.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          40.405        31.974        .63060E-04   -1.4436    
  28  Prefactor     15.018        13.045        .10334E-03   -1.4933    
  29  Normalizat    1.0376        .26338        .28136E-03   -.91782    
  30  Prefactor     1.0621        .22471        .24314E-03   -.90689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.58856e-10
Minuit parameter uncertainties:
  1  4.06485
  2  8.90301e-06
  3  3.17281e-05
  4  1.54052e-05
  5  5.75276
  6  5.30009e-05
  7  19.4439
  8  68.3685
  9  38.2451
  10  2.68056e-05
  11  3.89485e-07
  12  7.07303e-06
  13  1.81978e-05
  14  1.75956
  15  3.41521
  16  31.7731
  17  5.24508e-06
  18  2.89244e-05
  19  0.50804
  20  5.79057e-06
  21  24.7764
  22  13.3024
  23  1.61663
  24  8.34468
  25  4.02351e-05
  26  3.29582e-05
  27  31.9877
  28  13.0472
  29  0.263709
  30  0.224906
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  7.073e-06  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.062e+00  2.249e-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.038e+00  2.637e-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.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/447008/likelihoodResults_447724801_447984001_4FGL_J1216.2+0537_daily_bin804.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) = 5488.4866093
delta logL = -0.000214491378756

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5488.48639314
delta logL = 1.67658981809e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19741E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4737       1.0000          .0000       10.000    
     3 'Normalizat'    1.0376       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0621       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=   5488.452     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      292 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38340        77.267        .90712E-02    .17432E-02
   2  Index         3.2479        6.5266        .84408E-01    .18835E-03
   3  Normalizat    1.0238        .42089E-01    .63970E-01    .61767E-04
   4  Prefactor     1.0685        .36917E-01    .39250E-01    .58067E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.383405
  Index      = 3.24793
  Normalizat = 1.02381
  Prefactor  = 1.06847
 **********
 **   18 **HESSE 
 **********

 FCN=   5488.452     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      325 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38340        291.39        .17062E-03   -1.5584    
   2  Index         3.2479        7.8422        .14469E-01   -.35801    
   3  Normalizat    1.0238        .17081        .28296E-03   -.92237    
   4  Prefactor     1.0685        .14906        .24245E-03   -.90481    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.09181e-08
Minuit parameter uncertainties:
  1  21.2413
  2  17.2739
  3  0.170899
  4  0.149115
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447008': 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) = 5488.45197747
delta logL = 0.0344173474105

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  3.834e-01  2.124e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  3.248e+00  1.727e+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.068e+00  1.491e-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.024e+00  1.709e-01  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/447008/cmap_HighResolution_447724801_447984001_4FGL_J1216.2+0537_daily_bin804.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-03', job_status='DONE', photon_flux_upper_limit='6.41e-08', time_completed='2021-09-05 06:05:47.547302', job_id='447008', GAL2='1.07', fit_tolerance='1e-08', EG2='1.02', EG='1.04', time_epoch_completed='1630847147.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='3.44e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='804' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:05:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 447008: <4FGL_J1216.2+0537_daily_bin804> in cluster <slac> Done

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

Your job looked like:

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

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

