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


Performing analysis on: 4FGL_J0016.2-0016_daily_bin1597
RA = 4.061, Dec = -0.2806
tmin = 653270401, tmax = 653529601
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='530835', job_status='RUN', time_executed='2021-09-17 00:03:06.757622', time_epoch_executed='1631862186.76' WHERE source_name='4FGL J0016.2-0016' and cadence='daily' and bin_id='1597'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/530835

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/530835/ft1_4FGL_J0016.2-0016_daily_bin1597.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/530835/ft2_4FGL_J0016.2-0016_daily_bin1597.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/530835/ft1_4FGL_J0016.2-0016_daily_bin1597.fits outfile=/scratch/kocevski/530835/ft1_filteredMKT_4FGL_J0016.2-0016_daily_bin1597.fits ra=4.061 dec=-0.2806 rad=12.0 tmin=653270401.0 tmax=653529601.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.31
user 3.10
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/530835/ft1_filtered_4FGL_J0016.2-0016_daily_bin1597.fits" evtable="EVENTS" scfile=/scratch/kocevski/530835/ft2_4FGL_J0016.2-0016_daily_bin1597.fits sctable="SC_DATA" outfile=/scratch/kocevski/530835/ltcube_653270401_653529601_4FGL_J0016.2-0016_daily_bin1597.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/530835/ft2_4FGL_J0016.2-0016_daily_bin1597.fits
.....................!
real 12.56
user 12.21
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/530835/ft1_filtered_4FGL_J0016.2-0016_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/530835/ft2_4FGL_J0016.2-0016_daily_bin1597.fits sctable="SC_DATA" expcube=/scratch/kocevski/530835/ltcube_653270401_653529601_4FGL_J0016.2-0016_daily_bin1597.fits outfile=/scratch/kocevski/530835/expmap_653270401_653529601_4FGL_J0016.2-0016_daily_bin1597.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/530835/ltcube_653270401_653529601_4FGL_J0016.2-0016_daily_bin1597.fits
.....................!
real 192.52
user 186.26
sys 5.38

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/530835/ft1_filtered_4FGL_J0016.2-0016_daily_bin1597.fits scfile=/scratch/kocevski/530835/ft2_4FGL_J0016.2-0016_daily_bin1597.fits outfile=/scratch/kocevski/530835/cmap_653270401_653529601_4FGL_J0016.2-0016_daily_bin1597.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.59
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/530835/ft1_filtered_4FGL_J0016.2-0016_daily_bin1597.fits scfile=/scratch/kocevski/530835/ft2_4FGL_J0016.2-0016_daily_bin1597.fits outfile=/scratch/kocevski/530835/cmap_HighResolution_653270401_653529601_4FGL_J0016.2-0016_daily_bin1597.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/530835/ft1_filtered_4FGL_J0016.2-0016_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/530835/ft2_4FGL_J0016.2-0016_daily_bin1597.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/530835/Model_4FGL_J0016.2-0016_daily_bin1597.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/530835/ft1_filtered_4FGL_J0016.2-0016_daily_bin1597.fits.....................!
real 29.60
user 27.61
sys 1.37

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    187.83       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5659       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.284       1.0000         .10000E-03   10000.    
    10 'norm      '    38.603       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.9770       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    38.149       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .55710E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.933       1.0000         .10000E-03   10000.    
    19 'Prefactor '    51.584       1.0000         .10000E-03   10000.    
    20 'Prefactor '    50.115       1.0000         .10000E-03   10000.    
    21 'Prefactor '    40.617       1.0000         .10000E-03   10000.    
    22 'Prefactor '    38.020       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .31604E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2164       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=   1708.357     FROM MIGRAD    STATUS=CONVERGED    924 CALLS     3489 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.586        .15418E-02** at limit **
   2  Prefactor     187.81        170.04        .14732E-03    .13389E-05
   3  Prefactor     .10000E-03    26.352        .18142E-02** at limit **
   4  Prefactor     .10000E-03    14.954        .15567E-02** at limit **
   5  norm          2.5688        7.9546        .16919E-03   -.38452E-04
   6  Prefactor     .10000E-03    22.853        .18142E-02** at limit **
   7  norm          .10000E-03    6.5708        .10321E-02** at limit **
   8  norm          .10000E-03    2.3260        .61528E-03** at limit **
   9  Prefactor     20.294        24.516        .88933E-04    .22627E-04
  10  norm          38.611        34.162        .64510E-04   -.48587E-04
  11  Prefactor     8.9778        6.4013        .80930E-04    .20190E-03
  12  Prefactor     .10000E-03    4.4749        .85291E-03** at limit **
  13  norm          38.152        22.664        .64891E-04    .88474E-05
  14  Prefactor     .10000E-03    50.865        .18142E-02** at limit **
  15  Prefactor     .10020E-03    6761.0        .19049E-02** at limit **
  16  Prefactor     .10000E-03    18.122        .17179E-02** at limit **
  17  norm          .10000E-03    33.034        .18142E-02** at limit **
  18  Prefactor     11.920        11.504        .11597E-03    .26397E-03
  19  Prefactor     51.469        132.89        .55840E-04    .61251E-04
  20  Prefactor     50.305        87.830        .28324E-03    .97585E-04
  21  Prefactor     40.611        37.990        .62896E-04    .52138E-04
  22  Prefactor     38.026        27.795        .32501E-03   -.88062E-05
  23  Normalizat    .30349E-01    6.9517        .11958E-01    .16265E-04
  24  Prefactor     1.2170        .41285        .18515E-03    .89648E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 187.808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.56878
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 20.2939
  norm       = 38.6107
  Prefactor  = 8.97783
  Prefactor  = 0.0001
  norm       = 38.1522
  Prefactor  = 0.0001
  Prefactor  = 0.000100195
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.9203
  Prefactor  = 51.4692
  Prefactor  = 50.3055
  Prefactor  = 40.6106
  Prefactor  = 38.0263
  Normalizat = 0.0303492
  Prefactor  = 1.217
 **********
 **   18 **HESSE 
 **********

 FCN=   1708.357     FROM HESSE     STATUS=OK           375 CALLS     3864 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.586        .30836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     187.81        169.43        .29464E-04   -1.2958    
   3  Prefactor     .10000E-03    26.352        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.955        .31134E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5688        7.5850        .67676E-05   -1.5387    
   6  Prefactor     .10000E-03    22.853        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.5711        .20643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.3260        .12306E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.294        24.054        .35573E-05   -1.4807    
  10  norm          38.611        33.372        .12902E-04   -1.4464    
  11  Prefactor     8.9778        6.3015        .32372E-05   -1.5109    
  12  Prefactor     .10000E-03    4.4750        .17058E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          38.152        22.518        .25956E-05   -1.4472    
  14  Prefactor     .10000E-03    50.865        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10020E-03    6761.1        .38099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.123        .34359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    33.034        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.920        11.483        .23193E-04   -1.5017    
  19  Prefactor     51.469        132.88        .11168E-04   -1.4272    
  20  Prefactor     50.305        82.957        .11330E-04   -1.4288    
  21  Prefactor     40.611        37.943        .12579E-04   -1.4433    
  22  Prefactor     38.026        27.447        .13000E-04   -1.4474    
  23  Normalizat    .30349E-01    5.9584        .47832E-03   -1.4805    
  24  Prefactor     1.2170        .30234        .74060E-05   -.85810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90454e-10
Minuit parameter uncertainties:
  1  3.31107e-05
  2  169.877
  3  0.000135806
  4  0.000158035
  5  7.58783
  6  7.71053e-05
  7  6.08909e-05
  8  3.35076e-06
  9  24.0655
  10  33.388
  11  6.302
  12  1.20257e-05
  13  22.5228
  14  4.43747e-05
  15  0.0561192
  16  5.64648e-05
  17  2.10565e-05
  18  11.4852
  19  133.658
  20  83.1486
  21  37.9651
  22  27.4559
  23  0.452589
  24  0.30277
Done.

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

Extracting fit parameters...

4FGL J0016.2-0016
   Spectrum: LogParabola
72          norm:  2.569e+00  7.588e+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.217e+00  3.028e-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:  3.035e-02  4.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/530835/likelihoodResults_653270401_653529601_4FGL_J0016.2-0016_daily_bin1597.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) = 1706.29663674
delta logL = 2.06063726488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1706.29639354
delta logL = 2.06088046625

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1774       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1894       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=   1706.296     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1715        1.8337        .69753E-02   -.53554E-03
   2  alpha         5.0000        .98626        .46267    ** at limit **
   3  Normalizat    .10000E-01    .25272        .19476    ** at limit **
   4  Prefactor     1.1894        .17312        .34886E-01    .56420E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.17152
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 1.18944
 **********
 **   18 **HESSE 
 **********

 FCN=   1706.296     FROM HESSE     STATUS=OK            29 CALLS      265 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1715        1.4827        .40237E-04   -1.5413    
   2  alpha         5.0000        .91011        .30107E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .30844        .10965E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1894        .14993        .18474E-03   -.86657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24566e-09
Minuit parameter uncertainties:
  1  1.48268
  2  2.38727e-05
  3  1.17821e-05
  4  0.149982
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/530835': 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) = 1706.2963795
delta logL = 2.0608945114

Extracting fit parameters...

4FGL J0016.2-0016
   Spectrum: LogParabola
72          norm:  2.172e+00  1.483e+00  1.000e-04  1.000e+04 ( 1.000e-11)
73         alpha:  5.000e+00  2.387e-05  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.189e+00  1.500e-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:  1.000e-02  1.178e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.31
Ra Dec: 4.061 -0.281
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 3.14e-07 +/- 2.13e-07
Energy Flux (Free Index): 4.28e-05 +/- 2.91e-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/530835/cmap_HighResolution_653270401_653529601_4FGL_J0016.2-0016_daily_bin1597.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.14e-05', comment='SUCCESS', energy_flux2='4.28e-05', dlogl='2.06e+00', photon_flux2='3.14e-07', job_status='DONE', time_completed='2021-09-17 00:10:18.743872', photon_index_error2='0.00', photon_index2='5.00', ts='0.17', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='3.40e-07', energy_flux_error2='2.91e-05', EG='0.03', time_epoch_completed='1631862618.74', return_code='0', job_id='530835', GAL2='1.19', EG2='0.01', return_code2='0', photon_flux_error2='2.13e-07', ts2='4.31', photon_index='2.61' WHERE bin_id='1597' AND source_name='4FGL J0016.2-0016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 00:10:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 530835: <4FGL_J0016.2-0016_daily_bin1597> in cluster <slac> Done

Job <4FGL_J0016.2-0016_daily_bin1597> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 17 00:00:16 2021
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 00:00:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 00:00:18 2021
Terminated at Fri Sep 17 00:10:19 2021
Results reported at Fri Sep 17 00:10:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0016.2-0016_daily_bin1597 4.061 -0.2806 653270401 653529601 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 :                                   433.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             250.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   603 sec.
    Turnaround time :                            603 sec.

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

