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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin505
RA = 184.061, Dec = 5.6248
tmin = 370224001, tmax = 370483201
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='443862', job_status='RUN', time_executed='2021-09-05 05:43:54.595773', time_epoch_executed='1630845834.6' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443862

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443862/ft1_4FGL_J1216.2+0537_daily_bin505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443862/ft2_4FGL_J1216.2+0537_daily_bin505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443862/ft1_4FGL_J1216.2+0537_daily_bin505.fits outfile=/scratch/kocevski/443862/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin505.fits ra=184.061 dec=5.6248 rad=12.0 tmin=370224001.0 tmax=370483201.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 16.21
user 15.70
sys 0.46

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443862/ft1_filtered_4FGL_J1216.2+0537_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/443862/ft2_4FGL_J1216.2+0537_daily_bin505.fits sctable="SC_DATA" expcube=/scratch/kocevski/443862/ltcube_370224001_370483201_4FGL_J1216.2+0537_daily_bin505.fits outfile=/scratch/kocevski/443862/expmap_370224001_370483201_4FGL_J1216.2+0537_daily_bin505.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/443862/ltcube_370224001_370483201_4FGL_J1216.2+0537_daily_bin505.fits
.....................!
real 191.03
user 185.43
sys 5.08

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/443862/ft1_filtered_4FGL_J1216.2+0537_daily_bin505.fits scfile=/scratch/kocevski/443862/ft2_4FGL_J1216.2+0537_daily_bin505.fits outfile=/scratch/kocevski/443862/cmap_370224001_370483201_4FGL_J1216.2+0537_daily_bin505.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.807       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    100.11       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    86.095       1.0000         .10000E-03   10000.    
    10 'Prefactor '    98.861       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0105       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.6408       1.0000         .10000E-03   10000.    
    15 'norm      '    27.214       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    122.78       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .38788E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .11044E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.840       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.440       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    13.700       1.0000         .10000E-03   10000.    
    24 'Prefactor '    27.993       1.0000         .10000E-03   10000.    
    25 'Prefactor '    215.97       1.0000         .10000E-03   10000.    
    26 'Prefactor '    80.788       1.0000         .10000E-03   10000.    
    27 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    21.055       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .98418       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2929       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=   2508.428     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     3893 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0277       -.16582E-09** at limit **
   2  Prefactor     20.706        66.334        .33053E-04   -.36028E-05
   3  Prefactor     .10000E-03    106.76       -.10089E-04** at limit **
   4  Prefactor     .10000E-03    9.1327       -.61001E-08** at limit **
   5  Prefactor     .10000E-03    15.141       -.14823E-05** at limit **
   6  Prefactor     .10000E-03    19.489        .10902E-06** at limit **
   7  Prefactor     100.01        109.94       -.45644E-04   -.12932E-05
   8  Prefactor     .10000E-03    53.863       -.74152E-05** at limit **
   9  Prefactor     86.236        112.73        .88562E-04    .23640E-05
  10  Prefactor     98.882        86.707        .18937E-04    .11667E-04
  11  Prefactor     1.0096        3.6205        .31065E-06   -.49734E-03
  12  Prefactor     .10000E-03    71.048        .63034E-06** at limit **
  13  Prefactor     .10000E-03    28.085       -.69468E-06** at limit **
  14  norm          8.6377        7.9382       -.84707E-06    .42487E-04
  15  norm          27.200        14.666       -.69383E-05    .32197E-03
  16  Prefactor     .10000E-03    37.656        .17778E-05** at limit **
  17  norm          122.85        146.20        .43087E-04    .55043E-04
  18  Prefactor     .10000E-03    925.56        .18940E-03** at limit **
  19  norm          .10000E-03    1.2602       -.10031E-05** at limit **
  20  Prefactor     10.795        27.569       -.13433E-04   -.10823E-03
  21  Prefactor     20.601        78.842        .64098E-04   -.62019E-05
  22  Prefactor     .10000E-03    21.683        .28120E-06** at limit **
  23  norm          13.697        6.1886       -.17599E-06    .22137E-03
  24  Prefactor     27.989        34.193        .70066E-06    .19515E-04
  25  Prefactor     216.07        167.01        .50416E-04    .28741E-04
  26  Prefactor     80.749        89.554       -.16322E-04   -.37745E-05
  27  norm          .10000E-03    66.986        .10105E-04** at limit **
  28  Prefactor     21.080        40.726       -.19170E-04   -.28809E-04
  29  Normalizat    .98294        .41599       -.19938E-04    .91527E-04
  30  Prefactor     1.2938        .33077       -.26726E-05   -.96820E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 20.7055
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 100.01
  Prefactor  = 0.0001
  Prefactor  = 86.2359
  Prefactor  = 98.8823
  Prefactor  = 1.00957
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.63774
  norm       = 27.1997
  Prefactor  = 0.0001
  norm       = 122.85
  Prefactor  = 0.000100002
  norm       = 0.000100002
  Prefactor  = 10.7945
  Prefactor  = 20.6005
  Prefactor  = 0.0001
  norm       = 13.697
  Prefactor  = 27.9887
  Prefactor  = 216.067
  Prefactor  = 80.7485
  norm       = 0.0001
  Prefactor  = 21.0805
  Normalizat = 0.982937
  Prefactor  = 1.29378
 **********
 **   18 **HESSE 
 **********

 FCN=   2508.428     FROM HESSE     STATUS=OK           580 CALLS     4473 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0303        .85112E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.706        66.272        .87808E-04   -1.4798    
   3  Prefactor     .10000E-03    106.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.1668        .14783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     100.01        109.95        .20090E-03   -1.3705    
   8  Prefactor     .10000E-03    53.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     86.236        112.71        .21648E-03   -1.3848    
  10  Prefactor     98.882        86.703        .20215E-03   -1.3716    
  11  Prefactor     1.0096        3.5160        .17201E-03   -1.5507    
  12  Prefactor     .10000E-03    71.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    28.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.6377        7.9373        .12989E-03   -1.5120    
  15  norm          27.200        14.620        .76795E-04   -1.4664    
  16  Prefactor     .10000E-03    37.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          122.85        146.26        .18161E-03   -1.3487    
  18  Prefactor     .10000E-03    927.65        .19532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.9340        .10621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.795        27.386        .12169E-03   -1.5051    
  21  Prefactor     20.601        79.215        .88592E-04   -1.4800    
  22  Prefactor     .10000E-03    21.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          13.697        6.1762        .78942E-04   -1.4968    
  24  Prefactor     27.989        34.181        .75721E-04   -1.4649    
  25  Prefactor     216.07        166.93        .13759E-03   -1.2757    
  26  Prefactor     80.749        89.518        .22342E-03   -1.3908    
  27  norm          .10000E-03    66.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     21.080        40.976        .87291E-04   -1.4789    
  29  Normalizat    .98294        .49527        .36355E-03   -.93604    
  30  Prefactor     1.2938        .39481        .27921E-03   -.83492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71297e-09
Minuit parameter uncertainties:
  1  2.20203e-06
  2  66.5087
  3  0.000639793
  4  3.26868e-05
  5  0.000528333
  6  0.000167327
  7  110.172
  8  7.91563e-05
  9  112.995
  10  86.8146
  11  3.51672
  12  0.000305388
  13  0.000128053
  14  7.93823
  15  14.6222
  16  7.93816e-05
  17  146.697
  18  0.00241434
  19  0.000135604
  20  27.4175
  21  79.6239
  22  1.96223e-05
  23  6.17651
  24  34.2052
  25  167.294
  26  89.6679
  27  8.77487e-05
  28  41.031
  29  0.497606
  30  0.395723
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  3.054e-04  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.294e+00  3.957e-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:  9.829e-01  4.976e-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: 1.95e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.47e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443862/likelihoodResults_370224001_370483201_4FGL_J1216.2+0537_daily_bin505.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) = 2508.42847591
delta logL = -6.68583152219e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2508.42841392
delta logL = -4.87333954879e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .70853E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1704       1.0000          .0000       10.000    
     3 'Normalizat'    .98293       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2938       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=   2508.428     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      242 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.790        .10486E-01** at limit **
   2  Index         2.1691        6.6677        .50000        .30236E-05
   3  Normalizat    .98293        .45890E-02    .82127E-01    .70834E-05
   4  Prefactor     1.2938        .39934E-02    .63132E-01    .14512E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.1691
  Normalizat = 0.982927
  Prefactor  = 1.29379
 **********
 **   18 **HESSE 
 **********

 FCN=   2508.428     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      275 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    209.64        .20973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1691        7.1914        .50000       -.60186    
   3  Normalizat    .98293        .17939E-01    .36356E-03   -.93605    
   4  Prefactor     1.2938        .15633E-01    .27921E-03   -.83492    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.2493e-08
Minuit parameter uncertainties:
  1  8.19739e-05
  2  244.828
  3  0.0179387
  4  0.0156332
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443862': 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) = 2508.42840913
delta logL = -8.42064764583e-08

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  8.197e-05  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.169e+00  2.448e+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.294e+00  1.563e-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:  9.829e-01  1.794e-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/443862/cmap_HighResolution_370224001_370483201_4FGL_J1216.2+0537_daily_bin505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.47e-02', job_status='DONE', photon_flux_upper_limit='1.95e-07', time_completed='2021-09-05 05:53:56.401243', job_id='443862', GAL2='1.29', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630846436.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='-8.42e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='505' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:53:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 443862: <4FGL_J1216.2+0537_daily_bin505> in cluster <slac> Done

Job <4FGL_J1216.2+0537_daily_bin505> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 05:41:02 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:41:03 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:41:03 2021
Terminated at Sun Sep  5 05:53:57 2021
Results reported at Sun Sep  5 05:53:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin505 184.061 5.6248 370224001 370483201 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 :                                   596.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            775 sec.

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

