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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin943
RA = 184.061, Dec = 5.6248
tmin = 483753601, tmax = 484012801
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='447259', job_status='RUN', time_executed='2021-09-05 05:55:28.318542', time_epoch_executed='1630846528.32' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='943'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447259

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447259/ft1_4FGL_J1216.2+0537_daily_bin943.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447259/ft2_4FGL_J1216.2+0537_daily_bin943.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447259/ft1_4FGL_J1216.2+0537_daily_bin943.fits outfile=/scratch/kocevski/447259/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin943.fits ra=184.061 dec=5.6248 rad=12.0 tmin=483753601.0 tmax=484012801.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 6.03
user 5.26
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447259/ft1_filtered_4FGL_J1216.2+0537_daily_bin943.fits" evtable="EVENTS" scfile=/scratch/kocevski/447259/ft2_4FGL_J1216.2+0537_daily_bin943.fits sctable="SC_DATA" outfile=/scratch/kocevski/447259/ltcube_483753601_484012801_4FGL_J1216.2+0537_daily_bin943.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/447259/ft2_4FGL_J1216.2+0537_daily_bin943.fits
.....................!
real 12.26
user 11.48
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447259/ft1_filtered_4FGL_J1216.2+0537_daily_bin943.fits evtable="EVENTS" scfile=/scratch/kocevski/447259/ft2_4FGL_J1216.2+0537_daily_bin943.fits sctable="SC_DATA" expcube=/scratch/kocevski/447259/ltcube_483753601_484012801_4FGL_J1216.2+0537_daily_bin943.fits outfile=/scratch/kocevski/447259/expmap_483753601_484012801_4FGL_J1216.2+0537_daily_bin943.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/447259/ltcube_483753601_484012801_4FGL_J1216.2+0537_daily_bin943.fits
.....................!
real 193.95
user 186.72
sys 5.49

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/447259/ft1_filtered_4FGL_J1216.2+0537_daily_bin943.fits scfile=/scratch/kocevski/447259/ft2_4FGL_J1216.2+0537_daily_bin943.fits outfile=/scratch/kocevski/447259/cmap_483753601_484012801_4FGL_J1216.2+0537_daily_bin943.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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447259/ft1_filtered_4FGL_J1216.2+0537_daily_bin943.fits scfile=/scratch/kocevski/447259/ft2_4FGL_J1216.2+0537_daily_bin943.fits outfile=/scratch/kocevski/447259/cmap_HighResolution_483753601_484012801_4FGL_J1216.2+0537_daily_bin943.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7283       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.189       1.0000         .10000E-03   10000.    
     3 'Prefactor '    95.358       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.855       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0601       1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.174       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4354       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    56.206       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.844       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.042       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .72101       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    98.379       1.0000         .10000E-03   10000.    
    19 'norm      '    2.8936       1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.098       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.530       1.0000         .10000E-03   10000.    
    23 'norm      '    2.5581       1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.792       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    26.290       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .44358       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3520       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=   4814.247     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     3874 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7279        2.9724       -.38917E-06   -.66886E-04
   2  Prefactor     16.186        15.978        .47545E-06   -.30525E-04
   3  Prefactor     95.284        101.38       -.68162E-04   -.26310E-04
   4  Prefactor     14.854        12.189        .16036E-05   -.59433E-04
   5  Prefactor     1.0706        10.703        .68880E-05   -.51490E-03
   6  Prefactor     34.164        22.312       -.29433E-05   -.73553E-04
   7  Prefactor     1.4227        40.280       -.32190E-05   -.21381E-03
   8  Prefactor     .10000E-03    97.096        .28057E-05** at limit **
   9  Prefactor     56.156        43.639       -.38148E-04   -.12210E-03
  10  Prefactor     21.844        21.051       -.52477E-06   -.27059E-04
  11  Prefactor     .10000E-03    .87562       -.10422E-06** at limit **
  12  Prefactor     17.042        17.258        .20845E-05    .44324E-05
  13  Prefactor     .10000E-03    4.6807        .41653E-07** at limit **
  14  norm          .71965        2.2838       -.12715E-05   -.12620E-02
  15  norm          .10000E-03    1.1053        .10085E-06** at limit **
  16  Prefactor     .10000E-03    8.4320        .16096E-06** at limit **
  17  norm          .10000E-03    21.060       -.25753E-04** at limit **
  18  Prefactor     98.373        96.958       -.57099E-05   -.51404E-05
  19  norm          2.8936        .75171       -.53987E-07    .53080E-03
  20  Prefactor     27.095        13.970       -.12953E-05   -.21131E-03
  21  Prefactor     .10000E-03    18.554        .14520E-04** at limit **
  22  Prefactor     13.528        11.907       -.10393E-05   -.89953E-04
  23  norm          2.5572        2.0042       -.74297E-06   -.65643E-03
  24  Prefactor     15.788        10.410       -.76508E-06   -.98235E-04
  25  Prefactor     .10000E-03    19.071        .51591E-05** at limit **
  26  Prefactor     .10000E-03    31.541        .89018E-05** at limit **
  27  norm          .10000E-03    12.480       -.16904E-05** at limit **
  28  Prefactor     26.287        17.636       -.27278E-05   -.13262E-03
  29  Normalizat    .44354        .25706        .27842E-04   -.30830E-04
  30  Prefactor     1.3522        .21040       -.45368E-05    .65229E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.7279
  Prefactor  = 16.1861
  Prefactor  = 95.2844
  Prefactor  = 14.8537
  Prefactor  = 1.07059
  Prefactor  = 34.1641
  Prefactor  = 1.42265
  Prefactor  = 0.0001
  Prefactor  = 56.1558
  Prefactor  = 21.8436
  Prefactor  = 0.0001
  Prefactor  = 17.0421
  Prefactor  = 0.0001
  norm       = 0.71965
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 98.3731
  norm       = 2.89365
  Prefactor  = 27.0952
  Prefactor  = 0.0001
  Prefactor  = 13.528
  norm       = 2.55716
  Prefactor  = 15.7884
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.2869
  Normalizat = 0.443543
  Prefactor  = 1.35216
 **********
 **   18 **HESSE 
 **********

 FCN=   4814.247     FROM HESSE     STATUS=OK           588 CALLS     4462 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7279        2.9695        .12078E-03   -1.5378    
   2  Prefactor     16.186        15.968        .99542E-04   -1.4903    
   3  Prefactor     95.284        101.40        .20580E-03   -1.3753    
   4  Prefactor     14.854        12.170        .10392E-03   -1.4937    
   5  Prefactor     1.0706        10.568        .42204E-03   -1.5501    
   6  Prefactor     34.164        22.260        .68549E-04   -1.4538    
   7  Prefactor     1.4227        40.674        .36033E-03   -1.5469    
   8  Prefactor     .10000E-03    97.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     56.156        43.173        .53507E-04   -1.4208    
  10  Prefactor     21.844        20.940        .85701E-04   -1.4773    
  11  Prefactor     .10000E-03    .87892        .63399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.042        17.255        .97018E-04   -1.4882    
  13  Prefactor     .10000E-03    4.6858        .14649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .71965        2.2306        .17804E-03   -1.5538    
  15  norm          .10000E-03    1.1186        .71186E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.4325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    21.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     98.373        96.955        .40529E-04   -1.3721    
  19  norm          2.8936        .74987        .28569E-04   -1.5368    
  20  Prefactor     27.095        13.953        .76958E-04   -1.4666    
  21  Prefactor     .10000E-03    18.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.528        11.891        .10889E-03   -1.4972    
  23  norm          2.5572        1.9909        .81280E-04   -1.5388    
  24  Prefactor     15.788        10.407        .10079E-03   -1.4913    
  25  Prefactor     .10000E-03    19.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    31.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    12.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     26.287        17.605        .78130E-04   -1.4682    
  29  Normalizat    .44354        .27145        .40198E-03   -1.1511    
  30  Prefactor     1.3522        .22837        .21737E-03   -.81769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3626e-09
Minuit parameter uncertainties:
  1  2.96961
  2  15.9724
  3  101.587
  4  12.1716
  5  6.72852
  6  22.2658
  7  15.2247
  8  0.000105975
  9  43.1966
  10  20.9466
  11  8.11938e-06
  12  17.2598
  13  5.33548e-06
  14  2.23089
  15  1.10471e-05
  16  2.39359e-06
  17  2.29861e-05
  18  97.1118
  19  0.749875
  20  13.9551
  21  0.000139267
  22  11.8934
  23  1.99097
  24  10.4082
  25  5.31092e-05
  26  6.55086e-05
  27  1.07261e-05
  28  17.6085
  29  0.27226
  30  0.228538
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.704e+01  1.726e+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.352e+00  2.285e-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:  4.435e-01  2.723e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.28
Ra Dec: 184.061 5.625
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.75e-08 +/- 1.77e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 1.17e-05

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) = 4813.66166556
delta logL = 0.585019984276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4813.66162681
delta logL = 0.585058738343

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.857       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3227       1.0000          .0000       10.000    
     3 'Normalizat'    .45146       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3491       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=   4813.662     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      276 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.857        163.94        .17748E-02   -.45529E-04
   2  Index         1.3227        2.1841        .20905        .25012E-04
   3  Normalizat    .45148        .23499        .89966E-01    .36123E-04
   4  Prefactor     1.3491        .20821        .49222E-01   -.17305E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.8567
  Index      = 1.3227
  Normalizat = 0.451483
  Prefactor  = 1.34911
 **********
 **   18 **HESSE 
 **********

 FCN=   4813.662     FROM HESSE     STATUS=OK            33 CALLS      309 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.857        32.354        .35496E-03   -1.4579    
   2  Index         1.3227        .60730        .10539E-01   -.82635    
   3  Normalizat    .45148        .24673        .39857E-03   -1.1472    
   4  Prefactor     1.3491        .22508        .21758E-03   -.81858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66738e-12
Minuit parameter uncertainties:
  1  32.372
  2  0.610604
  3  0.247328
  4  0.225239
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447259': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4813.6616268
delta logL = 0.585058745241

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  3.186e+01  3.237e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.323e+00  6.106e-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.349e+00  2.252e-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:  4.515e-01  2.473e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.45
Ra Dec: 184.061 5.625
Photon Index (Free Index): 1.32 +/- 0.61
Photon Flux (Free Index): 8.38e-09 +/- 1.03e-08
Energy Flux (Free Index): 4.77e-05 +/- 7.78e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/447259/cmap_HighResolution_483753601_484012801_4FGL_J1216.2+0537_daily_bin943.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.75e-08', energy_flux2='4.77e-05', photon_flux_error='1.77e-08', dlogl='5.85e-01', energy_flux='1.15e-05', photon_flux2='8.38e-09', job_status='DONE', time_completed='2021-09-05 06:07:31.659556', photon_index_error2='0.61', photon_index2='1.32', ts='4.28', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', energy_flux_error2='7.78e-05', EG='0.44', time_epoch_completed='1630847251.66', return_code='0', job_id='447259', GAL2='1.35', EG2='0.45', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='1.03e-08', ts2='5.45', photon_index='2.02' WHERE bin_id='943' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:07:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 447259: <4FGL_J1216.2+0537_daily_bin943> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin943 184.061 5.6248 483753601 484012801 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 :                                   689.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            969 sec.

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

