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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin870
RA = 184.061, Dec = 5.6248
tmin = 464832001, tmax = 465091201
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='447132', job_status='RUN', time_executed='2021-09-05 05:51:35.623479', time_epoch_executed='1630846295.62' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='870'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447132

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447132/ft1_4FGL_J1216.2+0537_daily_bin870.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447132/ft2_4FGL_J1216.2+0537_daily_bin870.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447132/ft1_4FGL_J1216.2+0537_daily_bin870.fits outfile=/scratch/kocevski/447132/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin870.fits ra=184.061 dec=5.6248 rad=12.0 tmin=464832001.0 tmax=465091201.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.50
user 3.16
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447132/ft1_filtered_4FGL_J1216.2+0537_daily_bin870.fits evtable="EVENTS" scfile=/scratch/kocevski/447132/ft2_4FGL_J1216.2+0537_daily_bin870.fits sctable="SC_DATA" expcube=/scratch/kocevski/447132/ltcube_464832001_465091201_4FGL_J1216.2+0537_daily_bin870.fits outfile=/scratch/kocevski/447132/expmap_464832001_465091201_4FGL_J1216.2+0537_daily_bin870.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/447132/ltcube_464832001_465091201_4FGL_J1216.2+0537_daily_bin870.fits
.....................!
real 190.69
user 185.23
sys 4.90

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/447132/ft1_filtered_4FGL_J1216.2+0537_daily_bin870.fits scfile=/scratch/kocevski/447132/ft2_4FGL_J1216.2+0537_daily_bin870.fits outfile=/scratch/kocevski/447132/cmap_464832001_465091201_4FGL_J1216.2+0537_daily_bin870.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447132/ft1_filtered_4FGL_J1216.2+0537_daily_bin870.fits scfile=/scratch/kocevski/447132/ft2_4FGL_J1216.2+0537_daily_bin870.fits outfile=/scratch/kocevski/447132/cmap_HighResolution_464832001_465091201_4FGL_J1216.2+0537_daily_bin870.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.60
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3027       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.746       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.076       1.0000         .10000E-03   10000.    
     8 'Prefactor '    57.265       1.0000         .10000E-03   10000.    
     9 'Prefactor '    62.484       1.0000         .10000E-03   10000.    
    10 'Prefactor '    207.21       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1946       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.127       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.2496       1.0000         .10000E-03   10000.    
    15 'norm      '    8.1979       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .72814       1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.619       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.4384       1.0000         .10000E-03   10000.    
    23 'norm      '    2.5128       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    41.163       1.0000         .10000E-03   10000.    
    27 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10541E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3348       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0474       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=   6502.303     FROM MIGRAD    STATUS=CONVERGED    741 CALLS     3953 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3027        3.8085       -.43872E-06   -.66857E-03
   2  Prefactor     18.747        22.461        .21271E-06   -.51392E-04
   3  Prefactor     .10000E-03    36.867       -.14487E-04** at limit **
   4  Prefactor     .10000E-03    4.0651        .26744E-07** at limit **
   5  Prefactor     .10000E-03    14.314        .83941E-05** at limit **
   6  Prefactor     .10000E-03    8.7778        .16642E-05** at limit **
   7  Prefactor     26.078        27.665        .59322E-06   -.10886E-04
   8  Prefactor     57.264        75.068       -.16831E-05   -.76073E-05
   9  Prefactor     62.479        46.549       -.50110E-05   -.61285E-04
  10  Prefactor     207.21        51.003       -.31162E-06   -.75318E-04
  11  Prefactor     3.1946        2.6124       -.45354E-07   -.12714E-03
  12  Prefactor     16.136        39.721        .12654E-04   -.12232E-04
  13  Prefactor     .10000E-03    7.6662       -.56983E-06** at limit **
  14  norm          3.2498        3.1851        .11450E-07   -.17514E-03
  15  norm          8.1984        4.7631       -.65466E-06   -.39155E-03
  16  Prefactor     .10000E-03    39.386        .18030E-05** at limit **
  17  norm          .10000E-03    15.281        .56463E-05** at limit **
  18  Prefactor     .10000E-03    56.400        .23314E-04** at limit **
  19  norm          .72815        .57520        .28933E-07   -.62877E-03
  20  Prefactor     31.620        14.694        .17211E-07    .42043E-04
  21  Prefactor     .10000E-03    16.989       -.96460E-05** at limit **
  22  Prefactor     2.4378        10.061       -.85584E-06   -.21293E-03
  23  norm          2.5128        1.5861        .14843E-07   -.20561E-03
  24  Prefactor     .10000E-03    4.2842        .59525E-07** at limit **
  25  Prefactor     .10000E-03    11.899       -.59731E-05** at limit **
  26  Prefactor     41.159        42.273       -.37555E-05   -.14380E-03
  27  norm          .10000E-03    69.533       -.29530E-04** at limit **
  28  Prefactor     .10000E-03    41.982        .15953E-04** at limit **
  29  Normalizat    1.3347        .23541        .47145E-06   -.16059E-03
  30  Prefactor     1.0475        .19716       -.13681E-06   -.77879E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.30271
  Prefactor  = 18.7472
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.0775
  Prefactor  = 57.2637
  Prefactor  = 62.479
  Prefactor  = 207.208
  Prefactor  = 3.19458
  Prefactor  = 16.1359
  Prefactor  = 0.0001
  norm       = 3.24982
  norm       = 8.19843
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.728147
  Prefactor  = 31.6202
  Prefactor  = 0.0001
  Prefactor  = 2.4378
  norm       = 2.51281
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.1589
  norm       = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.33468
  Prefactor  = 1.04748
 **********
 **   18 **HESSE 
 **********

 FCN=   6502.303     FROM HESSE     STATUS=OK           582 CALLS     4535 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3027        3.8054        .19551E-03   -1.5404    
   2  Prefactor     18.747        22.457        .92505E-04   -1.4842    
   3  Prefactor     .10000E-03    36.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.0767        .15876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.8086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.078        27.666        .78449E-04   -1.4686    
   8  Prefactor     57.264        75.127        .53013E-04   -1.4193    
   9  Prefactor     62.479        46.638        .50763E-04   -1.4125    
  10  Prefactor     207.21        50.909        .28080E-04   -1.2819    
  11  Prefactor     3.1946        2.6074        .11451E-03   -1.5350    
  12  Prefactor     16.136        39.669        .99734E-04   -1.4904    
  13  Prefactor     .10000E-03    7.6849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.2498        3.1744        .13441E-03   -1.5347    
  15  norm          8.1984        4.7354        .11857E-03   -1.5135    
  16  Prefactor     .10000E-03    39.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    15.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    56.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .72815        .54948        .49386E-03   -1.5537    
  20  Prefactor     31.620        14.711        .71257E-04   -1.4583    
  21  Prefactor     .10000E-03    17.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.4378        10.050        .26202E-03   -1.5396    
  23  norm          2.5128        1.5793        .77124E-04   -1.5391    
  24  Prefactor     .10000E-03    4.3021        .16297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     41.159        42.344        .62479E-04   -1.4424    
  27  norm          .10000E-03    70.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    43.301        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.3347        .28027        .30374E-03   -.82537    
  30  Prefactor     1.0475        .23425        .28843E-03   -.91163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.56703e-10
Minuit parameter uncertainties:
  1  3.80579
  2  22.4673
  3  7.22374e-06
  4  1.41585e-06
  5  3.71659e-06
  6  3.99625e-06
  7  27.6795
  8  75.2521
  9  46.6656
  10  50.92
  11  2.60753
  12  39.7334
  13  5.91444e-06
  14  3.17456
  15  4.73562
  16  6.7131e-05
  17  7.39904e-06
  18  9.02328e-06
  19  0.54948
  20  14.7124
  21  7.06735e-06
  22  9.90215
  23  1.57931
  24  7.40748e-06
  25  2.77357e-06
  26  42.3748
  27  0.00040617
  28  4.30711e-05
  29  0.280593
  30  0.234475
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.614e+01  3.973e+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.047e+00  2.345e-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.335e+00  2.806e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.20
Ra Dec: 184.061 5.625
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/447132/likelihoodResults_464832001_465091201_4FGL_J1216.2+0537_daily_bin870.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) = 6502.09452923
delta logL = 0.208555727794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6502.08587749
delta logL = 0.217207464289

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80353       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5335       1.0000          .0000       10.000    
     3 'Normalizat'    1.2768       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0824       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=   6502.086     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      332 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .79936        17.276        .12453E-01    .17625E-02
   2  Index         3.5353        2.1455        .91735E-01    .26982E-03
   3  Normalizat    1.2770        .45879E-01    .69869E-01    .18564E-03
   4  Prefactor     1.0823        .39365E-01    .64265E-01   -.61640E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.799358
  Index      = 3.53531
  Normalizat = 1.27695
  Prefactor  = 1.08228
 **********
 **   18 **HESSE 
 **********

 FCN=   6502.086     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      365 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .79936        63.245        .89004E-04   -1.5529    
   2  Index         3.5353        6.7669        .49809E-02   -.29730    
   3  Normalizat    1.2770        .21980        .30914E-03   -.84257    
   4  Prefactor     1.0823        .18544        .28426E-03   -.90035    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.1698e-09
Minuit parameter uncertainties:
  1  14.2352
  2  5.96948
  3  0.219957
  4  0.185551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447132': 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) = 6502.08587691
delta logL = 0.217208047394

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  7.994e-01  1.424e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  3.535e+00  5.969e+00  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.082e+00  1.856e-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.277e+00  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.20
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/447132/cmap_HighResolution_464832001_465091201_4FGL_J1216.2+0537_daily_bin870.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.30e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-05 06:07:36.252719', job_id='447132', GAL2='1.08', fit_tolerance='1e-08', EG2='1.28', EG='1.33', time_epoch_completed='1630847256.25', return_code2='102', ts='0.20', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.17e-01', ts2='0.67', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='870' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:07:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 447132: <4FGL_J1216.2+0537_daily_bin870> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin870 184.061 5.6248 464832001 465091201 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 :                                   929.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            982 sec.

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

