/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 215 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 = 7460
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J0016.2-0016_daily_bin1651
RA = 4.061, Dec = -0.2806
tmin = 667267201, tmax = 667526401
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='516099', job_status='RUN', time_executed='2022-02-26 00:10:14.810308', time_epoch_executed='1645863014.81' WHERE source_name='4FGL J0016.2-0016' and cadence='daily' and bin_id='1651'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516099

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516099/ft1_4FGL_J0016.2-0016_daily_bin1651.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516099/ft2_4FGL_J0016.2-0016_daily_bin1651.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516099/ft1_4FGL_J0016.2-0016_daily_bin1651.fits outfile=/scratch/kocevski/516099/ft1_filteredMKT_4FGL_J0016.2-0016_daily_bin1651.fits ra=4.061 dec=-0.2806 rad=12.0 tmin=667267201.0 tmax=667526401.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 2.90
user 2.69
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/516099/ft2_4FGL_J0016.2-0016_daily_bin1651.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/516099/ft2_4FGL_J0016.2-0016_daily_bin1651.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/516099/ft1_filteredMKT_4FGL_J0016.2-0016_daily_bin1651.fits evtable="EVENTS" outfile="/scratch/kocevski/516099/ft1_filtered_4FGL_J0016.2-0016_daily_bin1651.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.58
user 0.35
sys 0.16
Number of photons that survived the gtmktime cut: 516

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516099/ft1_filtered_4FGL_J0016.2-0016_daily_bin1651.fits" evtable="EVENTS" scfile=/scratch/kocevski/516099/ft2_4FGL_J0016.2-0016_daily_bin1651.fits sctable="SC_DATA" outfile=/scratch/kocevski/516099/ltcube_667267201_667526401_4FGL_J0016.2-0016_daily_bin1651.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/516099/ft2_4FGL_J0016.2-0016_daily_bin1651.fits
.....................!
real 16.98
user 16.58
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516099/ft1_filtered_4FGL_J0016.2-0016_daily_bin1651.fits evtable="EVENTS" scfile=/scratch/kocevski/516099/ft2_4FGL_J0016.2-0016_daily_bin1651.fits sctable="SC_DATA" expcube=/scratch/kocevski/516099/ltcube_667267201_667526401_4FGL_J0016.2-0016_daily_bin1651.fits outfile=/scratch/kocevski/516099/expmap_667267201_667526401_4FGL_J0016.2-0016_daily_bin1651.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/516099/ltcube_667267201_667526401_4FGL_J0016.2-0016_daily_bin1651.fits
.....................!
real 193.10
user 187.11
sys 4.75

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 168 point sources and 0 extended sources

Setting source of interest to:
4FGL J0016.2-0016 @ 4.061 -0.2806

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/516099/ft1_filtered_4FGL_J0016.2-0016_daily_bin1651.fits scfile=/scratch/kocevski/516099/ft2_4FGL_J0016.2-0016_daily_bin1651.fits outfile=/scratch/kocevski/516099/cmap_667267201_667526401_4FGL_J0016.2-0016_daily_bin1651.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=4.061 yref=-0.2806 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.56
user 0.42
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516099/ft1_filtered_4FGL_J0016.2-0016_daily_bin1651.fits scfile=/scratch/kocevski/516099/ft2_4FGL_J0016.2-0016_daily_bin1651.fits outfile=/scratch/kocevski/516099/cmap_HighResolution_667267201_667526401_4FGL_J0016.2-0016_daily_bin1651.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=4.061 yref=-0.2806 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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/516099/ft1_filtered_4FGL_J0016.2-0016_daily_bin1651.fits evtable="EVENTS" scfile=/scratch/kocevski/516099/ft2_4FGL_J0016.2-0016_daily_bin1651.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/516099/Model_4FGL_J0016.2-0016_daily_bin1651.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/516099/ft1_filtered_4FGL_J0016.2-0016_daily_bin1651.fits.....................!
real 65.23
user 63.85
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/516099/ft1_filtered_4FGL_J0016.2-0016_daily_bin1651.fits', '/scratch/kocevski/516099/ft2_4FGL_J0016.2-0016_daily_bin1651.fits', expMap='/scratch/kocevski/516099/expmap_667267201_667526401_4FGL_J0016.2-0016_daily_bin1651.fits', expCube='/scratch/kocevski/516099/ltcube_667267201_667526401_4FGL_J0016.2-0016_daily_bin1651.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/516099/Model_4FGL_J0016.2-0016_daily_bin1651.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0016.2-0016'

4FGL J0016.2-0016
   Spectrum: LogParabola
72          norm:  1.412e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
73         alpha:  2.614e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
74          beta:  1.848e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
75            Eb:  3.723e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/516099/ft1_filtered_4FGL_J0016.2-0016_daily_bin1651.fits
Spacecraft file(s): /scratch/kocevski/516099/ft2_4FGL_J0016.2-0016_daily_bin1651.fits
Exposure map: /scratch/kocevski/516099/expmap_667267201_667526401_4FGL_J0016.2-0016_daily_bin1651.fits
Exposure cube: /scratch/kocevski/516099/ltcube_667267201_667526401_4FGL_J0016.2-0016_daily_bin1651.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/516099/Model_4FGL_J0016.2-0016_daily_bin1651.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) = 5884.22240568

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.3392       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .23912E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .69747       1.0000         .10000E-03   10000.    
     8 'norm      '    6.3410       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    14.249       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4322       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.5763       1.0000         .10000E-03   10000.    
    13 'norm      '    .33549       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .56262E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11911E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.785       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    112.71       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .24910E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.344       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .75533       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2300       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5884.178     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     2780 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1747        .65199E-08** at limit **
   2  Prefactor     .10000E-03    37.505       -.93718E-07** at limit **
   3  Prefactor     9.3441        16.305        .71677E-07    .38318E-04
   4  Prefactor     .10000E-03    6.1620       -.40873E-05** at limit **
   5  norm          .10000E-03    1.0679        .46442E-08** at limit **
   6  Prefactor     .10000E-03    11.628       -.41256E-06** at limit **
   7  norm          .70888        4.8311        .55322E-05    .16485E-03
   8  norm          6.3443        4.9233        .99190E-07   -.23110E-04
   9  Prefactor     .10000E-03    10.764        .27880E-06** at limit **
  10  norm          14.252        10.072       -.14786E-06    .16877E-03
  11  Prefactor     4.4333        2.5391        .41227E-07    .15209E-04
  12  Prefactor     7.5646        5.6147       -.57252E-07    .55396E-03
  13  norm          .38853        9.5428       -.45083E-06    .32901E-03
  14  Prefactor     .10000E-03    80.337        .54303E-06** at limit **
  15  Prefactor     .10000E-03    284.70       -.21059E-05** at limit **
  16  Prefactor     .10001E-03    15.146       -.18988E-05** at limit **
  17  norm          12.704        28.061       -.13275E-06   -.54990E-04
  18  Prefactor     .10000E-03    3.5982       -.63720E-06** at limit **
  19  Prefactor     112.61        68.166       -.16712E-06   -.15255E-03
  20  Prefactor     .10002E-03    82.741       -.30361E-05** at limit **
  21  Prefactor     .10000E-03    10.541       -.40437E-08** at limit **
  22  Prefactor     10.347        13.233       -.22046E-07    .53011E-04
  23  Normalizat    .75545        .22802       -.12924E-05    .34008E-03
  24  Prefactor     1.2296        .16592        .32775E-06    .32953E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.34407
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.708884
  norm       = 6.34426
  Prefactor  = 0.0001
  norm       = 14.2524
  Prefactor  = 4.43328
  Prefactor  = 7.5646
  norm       = 0.388532
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100006
  norm       = 12.7036
  Prefactor  = 0.000100001
  Prefactor  = 112.614
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 10.3471
  Normalizat = 0.755446
  Prefactor  = 1.22965
 **********
 **   18 **HESSE 
 **********

 FCN=   5884.178     FROM HESSE     STATUS=OK           401 CALLS     3181 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1766        .15306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    37.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.3441        16.296        .13114E-03   -1.5097    
   4  Prefactor     .10000E-03    15.106        .33696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0744        .77252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .70888        5.4927        .32963E-02   -1.5540    
   8  norm          6.3443        4.9160        .14154E-03   -1.5204    
   9  Prefactor     .10000E-03    10.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.252        10.072        .10611E-03   -1.4953    
  11  Prefactor     4.4333        2.5379        .88277E-04   -1.5287    
  12  Prefactor     7.5646        5.6151        .12953E-03   -1.5158    
  13  norm          .38853        53.013        .39260E-02   -1.5583    
  14  Prefactor     .10000E-03    80.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    284.33        .21098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    14.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.704        28.035        .11202E-03   -1.4995    
  18  Prefactor     .10000E-03    3.5895        .14150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     112.61        68.264        .18946E-03   -1.3582    
  20  Prefactor     .10002E-03    83.781        .21467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.347        13.232        .12458E-03   -1.5065    
  23  Normalizat    .75545        .25817        .35029E-03   -1.0174    
  24  Prefactor     1.2296        .19085        .21705E-03   -.85424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23936e-09
Minuit parameter uncertainties:
  1  2.77786e-06
  2  0.000100595
  3  16.3036
  4  0.000307924
  5  1.1542e-06
  6  7.05939e-05
  7  3.9467
  8  4.91636
  9  6.90701e-05
  10  10.0737
  11  2.53797
  12  5.61545
  13  9.08391
  14  0.000541721
  15  0.0013527
  16  0.000590926
  17  28.0637
  18  9.71337e-05
  19  68.3116
  20  0.00266786
  21  2.05088e-05
  22  13.2361
  23  0.258591
  24  0.190955
Done.

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

Extracting fit parameters...

4FGL J0016.2-0016
   Spectrum: LogParabola
72          norm:  1.000e-04  1.154e-06  1.000e-04  1.000e+04 ( 1.000e-11)
73         alpha:  2.614e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
74          beta:  1.848e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
75            Eb:  3.723e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.230e+00  1.910e-01  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  7.554e-01  2.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 4.061 -0.281
Photon Flux Upper Limit: 8.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/516099/likelihoodResults_667267201_667526401_4FGL_J0016.2-0016_daily_bin1651.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) = 5884.18218416
delta logL = -0.00434713448067

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5884.17783736
delta logL = -3.33978277922e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6135       1.0000          .0000       5.0000    
     3 'Normalizat'    .75540       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2297       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5884.178     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      230 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2939        .77252E-03** at limit **
   2  alpha         2.6078        3.7579        .16482        .42986E-06
   3  Normalizat    .75544        .24289        .35028E-03   -.97367E-06
   4  Prefactor     1.2297        .18883        .21705E-03   -.39284E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.60778
  Normalizat = 0.755442
  Prefactor  = 1.22965
 **********
 **   18 **HESSE 
 **********

 FCN=   5884.178     FROM HESSE     STATUS=OK            23 CALLS      253 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0745        .15450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6078        3.6155        .65929E-02    .43124E-01
   3  Normalizat    .75544        .24307        .14011E-04   -1.0174    
   4  Prefactor     1.2297        .18897        .86820E-05   -.85424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01751e-09
Minuit parameter uncertainties:
  1  6.58915e-05
  2  190.962
  3  0.243418
  4  0.18907
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516099': 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) = 5884.17783703
delta logL = 1.1814336176e-09

Extracting fit parameters...

4FGL J0016.2-0016
   Spectrum: LogParabola
72          norm:  1.000e-04  6.589e-05  1.000e-04  1.000e+04 ( 1.000e-11)
73         alpha:  2.608e+00  1.910e+02  0.000e+00  5.000e+00 ( 1.000e+00)
74          beta:  1.848e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
75            Eb:  3.723e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.230e+00  1.891e-01  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  7.554e-01  2.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 4.061 -0.281

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/516099/cmap_HighResolution_667267201_667526401_4FGL_J0016.2-0016_daily_bin1651.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.94e-05', job_status='DONE', photon_flux_upper_limit='8.10e-08', time_completed='2022-02-26 00:21:13.928443', job_id='516099', GAL2='1.23', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1645863673.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='1.18e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1651' AND source_name='4FGL J0016.2-0016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 26 00:21:13 PST 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 516098: <4FGL_J0016.2-0016_daily_bin1651> in cluster <slac> Done

Job <4FGL_J0016.2-0016_daily_bin1651> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Feb 26 00:05:28 2022
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 26 00:05:56 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 26 00:05:56 2022
Terminated at Sat Feb 26 00:17:56 2022
Results reported at Sat Feb 26 00:17:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0016.2-0016_daily_bin1651 4.061 -0.2806 667267201 667526401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0016.2-0016 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   656.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            748 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 516099: <4FGL_J0016.2-0016_daily_bin1651> in cluster <slac> Done

Job <4FGL_J0016.2-0016_daily_bin1651> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Feb 26 00:05:28 2022
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 26 00:05:56 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 26 00:05:56 2022
Terminated at Sat Feb 26 00:21:14 2022
Results reported at Sat Feb 26 00:21:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0016.2-0016_daily_bin1651 4.061 -0.2806 667267201 667526401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0016.2-0016 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   659.56 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            946 sec.

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

