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


Performing analysis on: 4FGL_J0016.2-0016_daily_bin1628
RA = 4.061, Dec = -0.2806
tmin = 661305601, tmax = 661564801
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='313027', job_status='RUN', time_executed='2021-12-19 00:10:14.836291', time_epoch_executed='1639901414.84' WHERE source_name='4FGL J0016.2-0016' and cadence='daily' and bin_id='1628'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/313027

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/313027/ft1_4FGL_J0016.2-0016_daily_bin1628.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/313027/ft2_4FGL_J0016.2-0016_daily_bin1628.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/313027/ft1_4FGL_J0016.2-0016_daily_bin1628.fits outfile=/scratch/kocevski/313027/ft1_filteredMKT_4FGL_J0016.2-0016_daily_bin1628.fits ra=4.061 dec=-0.2806 rad=12.0 tmin=661305601.0 tmax=661564801.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.70
user 3.45
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/313027/ft2_4FGL_J0016.2-0016_daily_bin1628.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/313027/ft1_filteredMKT_4FGL_J0016.2-0016_daily_bin1628.fits evtable="EVENTS" outfile="/scratch/kocevski/313027/ft1_filtered_4FGL_J0016.2-0016_daily_bin1628.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.53
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/313027/ft1_filtered_4FGL_J0016.2-0016_daily_bin1628.fits" evtable="EVENTS" scfile=/scratch/kocevski/313027/ft2_4FGL_J0016.2-0016_daily_bin1628.fits sctable="SC_DATA" outfile=/scratch/kocevski/313027/ltcube_661305601_661564801_4FGL_J0016.2-0016_daily_bin1628.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/313027/ft2_4FGL_J0016.2-0016_daily_bin1628.fits
.....................!
real 14.71
user 14.32
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/313027/ft1_filtered_4FGL_J0016.2-0016_daily_bin1628.fits evtable="EVENTS" scfile=/scratch/kocevski/313027/ft2_4FGL_J0016.2-0016_daily_bin1628.fits sctable="SC_DATA" expcube=/scratch/kocevski/313027/ltcube_661305601_661564801_4FGL_J0016.2-0016_daily_bin1628.fits outfile=/scratch/kocevski/313027/expmap_661305601_661564801_4FGL_J0016.2-0016_daily_bin1628.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/313027/ltcube_661305601_661564801_4FGL_J0016.2-0016_daily_bin1628.fits
.....................!
real 191.56
user 186.43
sys 4.39

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/313027/ft1_filtered_4FGL_J0016.2-0016_daily_bin1628.fits scfile=/scratch/kocevski/313027/ft2_4FGL_J0016.2-0016_daily_bin1628.fits outfile=/scratch/kocevski/313027/cmap_661305601_661564801_4FGL_J0016.2-0016_daily_bin1628.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/313027/ft1_filtered_4FGL_J0016.2-0016_daily_bin1628.fits scfile=/scratch/kocevski/313027/ft2_4FGL_J0016.2-0016_daily_bin1628.fits outfile=/scratch/kocevski/313027/cmap_HighResolution_661305601_661564801_4FGL_J0016.2-0016_daily_bin1628.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.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/313027/ft1_filtered_4FGL_J0016.2-0016_daily_bin1628.fits evtable="EVENTS" scfile=/scratch/kocevski/313027/ft2_4FGL_J0016.2-0016_daily_bin1628.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/313027/Model_4FGL_J0016.2-0016_daily_bin1628.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/313027/ft1_filtered_4FGL_J0016.2-0016_daily_bin1628.fits.....................!
real 70.86
user 64.90
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/313027/ft1_filtered_4FGL_J0016.2-0016_daily_bin1628.fits', '/scratch/kocevski/313027/ft2_4FGL_J0016.2-0016_daily_bin1628.fits', expMap='/scratch/kocevski/313027/expmap_661305601_661564801_4FGL_J0016.2-0016_daily_bin1628.fits', expCube='/scratch/kocevski/313027/ltcube_661305601_661564801_4FGL_J0016.2-0016_daily_bin1628.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/313027/Model_4FGL_J0016.2-0016_daily_bin1628.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/313027/ft1_filtered_4FGL_J0016.2-0016_daily_bin1628.fits
Spacecraft file(s): /scratch/kocevski/313027/ft2_4FGL_J0016.2-0016_daily_bin1628.fits
Exposure map: /scratch/kocevski/313027/expmap_661305601_661564801_4FGL_J0016.2-0016_daily_bin1628.fits
Exposure cube: /scratch/kocevski/313027/ltcube_661305601_661564801_4FGL_J0016.2-0016_daily_bin1628.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/313027/Model_4FGL_J0016.2-0016_daily_bin1628.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) = 6695.13039125

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10705E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.772       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.882       1.0000         .10000E-03   10000.    
     5 'norm      '    3.5312       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10222E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.0666       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .83943E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    19.309       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.9881       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.6286       1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.525       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17387E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.821       1.0000         .10000E-03   10000.    
    17 'norm      '    .29178E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2173       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10630E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16723E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .25818E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.5457       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .24252       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3531       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=   6695.024     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     1975 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3704       -.12270E-07** at limit **
   2  Prefactor     .10000E-03    12.836       -.53485E-07** at limit **
   3  Prefactor     27.205        16.036       -.17566E-06   -.16104E-03
   4  Prefactor     16.898        6.6273       -.15667E-06   -.11007E-03
   5  norm          3.5197        2.6632       -.70979E-07   -.46365E-03
   6  Prefactor     .10000E-03    2.9788       -.78716E-08** at limit **
   7  norm          .10000E-03    3.0463        .31739E-07** at limit **
   8  norm          8.0318        5.4695        .46672E-07   -.64199E-03
   9  Prefactor     .10000E-03    21.972        .45711E-06** at limit **
  10  norm          19.238        10.080       -.19295E-06   -.10861E-03
  11  Prefactor     6.9992        3.8421       -.20155E-06   -.40402E-03
  12  Prefactor     .10000E-03    1.0634        .20220E-07** at limit **
  13  norm          8.6669        5.7065       -.31488E-07   -.33062E-04
  14  Prefactor     34.019        26.852       -.21936E-06   -.22717E-04
  15  Prefactor     .10000E-03    56.974       -.46883E-06** at limit **
  16  Prefactor     22.824        10.875       -.12272E-06   -.11967E-03
  17  norm          .10000E-03    8.0788        .55505E-08** at limit **
  18  Prefactor     2.2174        2.8637       -.42110E-07   -.16470E-03
  19  Prefactor     .10000E-03    21.678       -.21290E-06** at limit **
  20  Prefactor     .10000E-03    8.8355       -.49207E-07** at limit **
  21  Prefactor     .10000E-03    11.623       -.98867E-07** at limit **
  22  Prefactor     6.5596        6.8598       -.24889E-06   -.11619E-03
  23  Normalizat    .24194        .22308        .76283E-05   -.12479E-03
  24  Prefactor     1.3531        .17195       -.21970E-05   -.33786E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.2053
  Prefactor  = 16.898
  norm       = 3.51972
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.03178
  Prefactor  = 0.0001
  norm       = 19.2379
  Prefactor  = 6.99917
  Prefactor  = 0.0001
  norm       = 8.66689
  Prefactor  = 34.0188
  Prefactor  = 0.0001
  Prefactor  = 22.8244
  norm       = 0.0001
  Prefactor  = 2.21741
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.55964
  Normalizat = 0.241941
  Prefactor  = 1.35314
 **********
 **   18 **HESSE 
 **********

 FCN=   6695.024     FROM HESSE     STATUS=OK           393 CALLS     2368 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3743        .12302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.205        16.041        .77424E-04   -1.4664    
   4  Prefactor     16.898        6.5611        .97477E-04   -1.4886    
   5  norm          3.5197        2.6483        .10593E-03   -1.5333    
   6  Prefactor     .10000E-03    2.9831        .13789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.1082        .27495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.0318        5.4168        .14117E-03   -1.5141    
   9  Prefactor     .10000E-03    22.330        .41746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          19.238        10.078        .91149E-04   -1.4830    
  11  Prefactor     6.9992        3.8463        .10899E-03   -1.5179    
  12  Prefactor     .10000E-03    1.0736        .82298E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.6669        5.7021        .13646E-03   -1.5119    
  14  Prefactor     34.019        26.852        .68201E-04   -1.4541    
  15  Prefactor     .10000E-03    57.057        .20351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.824        10.864        .83848E-04   -1.4752    
  17  norm          .10000E-03    8.0970        .21401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2174        2.8464        .14982E-03   -1.5410    
  19  Prefactor     .10000E-03    21.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.8625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.106        .42904E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.5596        6.8539        .15686E-03   -1.5196    
  23  Normalizat    .24194        .22326        .52928E-03   -1.2649    
  24  Prefactor     1.3531        .17232        .19432E-03   -.81740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60534e-10
Minuit parameter uncertainties:
  1  1.91215e-06
  2  1.53039e-05
  3  16.0434
  4  6.56139
  5  2.64842
  6  1.60362e-06
  7  8.66609e-06
  8  5.41711
  9  5.90258e-05
  10  10.0791
  11  3.84647
  12  3.82422e-06
  13  5.70242
  14  26.8615
  15  0.000330525
  16  10.8653
  17  3.39559e-05
  18  2.84659
  19  3.74482e-05
  20  1.80619e-06
  21  7.7611e-07
  22  6.85469
  23  0.224091
  24  0.172391
Done.

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

Extracting fit parameters...

4FGL J0016.2-0016
   Spectrum: LogParabola
72          norm:  3.520e+00  2.648e+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

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.353e+00  1.724e-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:  2.419e-01  2.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.40
Ra Dec: 4.061 -0.281
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 5.82e-08 +/- 4.38e-08
Energy Flux (Fixed Index): 1.40e-05 +/- 1.05e-05

TS (Fixed Index): 3.40
Ra Dec: 4.061 -0.281
Photon Flux Upper Limit: 1.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.55e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/313027/likelihoodResults_661305601_661564801_4FGL_J0016.2-0016_daily_bin1628.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) = 6695.00405765
delta logL = 0.0196204131598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6695.0032863
delta logL = 0.0203917601775

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5210       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4517       1.0000          .0000       5.0000    
     3 'Normalizat'    .24935       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    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6695.003     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      200 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5265        6.2908        .53860E-02    .28807E-03
   2  alpha         2.4520        1.5936        .41161       -.34292E-05
   3  Normalizat    .24939        .24923        .11803        .89844E-04
   4  Prefactor     1.3490        .20711        .31804E-01   -.24189E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.52652
  alpha      = 2.45202
  Normalizat = 0.249393
  Prefactor  = 1.34903
 **********
 **   18 **HESSE 
 **********

 FCN=   6695.003     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5265        2.6250        .10882E-03   -1.5332    
   2  alpha         2.4520        .78464        .22330E-01   -.19195E-01
   3  Normalizat    .24939        .20935        .52156E-03   -1.2599    
   4  Prefactor     1.3490        .17170        .19457E-03   -.81861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40926e-11
Minuit parameter uncertainties:
  1  2.62513
  2  0.798131
  3  0.210015
  4  0.171768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/313027': 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) = 6695.00328384
delta logL = 0.0203942214821

Extracting fit parameters...

4FGL J0016.2-0016
   Spectrum: LogParabola
72          norm:  3.527e+00  2.625e+00  1.000e-04  1.000e+04 ( 1.000e-11)
73         alpha:  2.452e+00  7.981e-01  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.349e+00  1.718e-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:  2.494e-01  2.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.47
Ra Dec: 4.061 -0.281
Photon Index (Free Index): 2.45 +/- 0.80
Photon Flux (Free Index): 5.26e-08 +/- 4.81e-08
Energy Flux (Free Index): 1.39e-05 +/- 1.03e-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/313027/cmap_HighResolution_661305601_661564801_4FGL_J0016.2-0016_daily_bin1628.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.55e-05', comment='SUCCESS', photon_flux='5.82e-08', energy_flux2='1.39e-05', photon_flux_error='4.38e-08', dlogl='2.04e-02', energy_flux='1.40e-05', photon_flux2='5.26e-08', job_status='DONE', time_completed='2021-12-19 00:21:07.547911', photon_index_error2='0.80', photon_index2='2.45', ts='3.40', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', photon_flux_upper_limit='1.48e-07', energy_flux_error2='1.03e-05', EG='0.24', time_epoch_completed='1639902067.55', return_code='0', job_id='313027', GAL2='1.35', EG2='0.25', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='4.81e-08', ts2='3.47', photon_index='2.61' WHERE bin_id='1628' AND source_name='4FGL J0016.2-0016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 19 00:21:07 PST 2021

------------------------------------------------------------
Sender: LSF System <scs@bullet0177>
Subject: Job 312986: <4FGL_J0016.2-0016_daily_bin1628> in cluster <slac> Done

Job <4FGL_J0016.2-0016_daily_bin1628> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Dec 19 00:05:13 2021
Job was executed on host(s) <bullet0177>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 19 00:05:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 19 00:05:45 2021
Terminated at Sun Dec 19 00:17:19 2021
Results reported at Sun Dec 19 00:17:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0016.2-0016_daily_bin1628 4.061 -0.2806 661305601 661564801 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 :                                   643.97 sec.
    Max Memory :                                 1295 MB
    Average Memory :                             378.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2930 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            726 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 313027: <4FGL_J0016.2-0016_daily_bin1628> in cluster <slac> Done

Job <4FGL_J0016.2-0016_daily_bin1628> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Dec 19 00:05:16 2021
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 19 00:07:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 19 00:07:06 2021
Terminated at Sun Dec 19 00:21:08 2021
Results reported at Sun Dec 19 00:21:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0016.2-0016_daily_bin1628 4.061 -0.2806 661305601 661564801 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 :                                   646.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             239.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            952 sec.

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

