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


Performing analysis on: 4FGL_J0016.2-0016_daily_bin1656
RA = 4.061, Dec = -0.2806
tmin = 668563201, tmax = 668822401
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='370908', job_status='RUN', time_executed='2022-03-13 00:08:51.587758', time_epoch_executed='1647158931.59' WHERE source_name='4FGL J0016.2-0016' and cadence='daily' and bin_id='1656'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/370908

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/370908/ft1_4FGL_J0016.2-0016_daily_bin1656.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/370908/ft2_4FGL_J0016.2-0016_daily_bin1656.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/370908/ft1_4FGL_J0016.2-0016_daily_bin1656.fits outfile=/scratch/kocevski/370908/ft1_filteredMKT_4FGL_J0016.2-0016_daily_bin1656.fits ra=4.061 dec=-0.2806 rad=12.0 tmin=668563201.0 tmax=668822401.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 5.47
user 5.07
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/370908/ft2_4FGL_J0016.2-0016_daily_bin1656.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/370908/ft1_filteredMKT_4FGL_J0016.2-0016_daily_bin1656.fits evtable="EVENTS" outfile="/scratch/kocevski/370908/ft1_filtered_4FGL_J0016.2-0016_daily_bin1656.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.52
user 0.34
sys 0.17
Number of photons that survived the gtmktime cut: 545

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/370908/ft1_filtered_4FGL_J0016.2-0016_daily_bin1656.fits" evtable="EVENTS" scfile=/scratch/kocevski/370908/ft2_4FGL_J0016.2-0016_daily_bin1656.fits sctable="SC_DATA" outfile=/scratch/kocevski/370908/ltcube_668563201_668822401_4FGL_J0016.2-0016_daily_bin1656.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/370908/ft2_4FGL_J0016.2-0016_daily_bin1656.fits
.....................!
real 16.02
user 15.63
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/370908/ft1_filtered_4FGL_J0016.2-0016_daily_bin1656.fits evtable="EVENTS" scfile=/scratch/kocevski/370908/ft2_4FGL_J0016.2-0016_daily_bin1656.fits sctable="SC_DATA" expcube=/scratch/kocevski/370908/ltcube_668563201_668822401_4FGL_J0016.2-0016_daily_bin1656.fits outfile=/scratch/kocevski/370908/expmap_668563201_668822401_4FGL_J0016.2-0016_daily_bin1656.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/370908/ltcube_668563201_668822401_4FGL_J0016.2-0016_daily_bin1656.fits
.....................!
real 192.28
user 186.93
sys 4.95

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/370908/ft1_filtered_4FGL_J0016.2-0016_daily_bin1656.fits scfile=/scratch/kocevski/370908/ft2_4FGL_J0016.2-0016_daily_bin1656.fits outfile=/scratch/kocevski/370908/cmap_668563201_668822401_4FGL_J0016.2-0016_daily_bin1656.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/370908/ft1_filtered_4FGL_J0016.2-0016_daily_bin1656.fits scfile=/scratch/kocevski/370908/ft2_4FGL_J0016.2-0016_daily_bin1656.fits outfile=/scratch/kocevski/370908/cmap_HighResolution_668563201_668822401_4FGL_J0016.2-0016_daily_bin1656.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/370908/ft1_filtered_4FGL_J0016.2-0016_daily_bin1656.fits evtable="EVENTS" scfile=/scratch/kocevski/370908/ft2_4FGL_J0016.2-0016_daily_bin1656.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/370908/Model_4FGL_J0016.2-0016_daily_bin1656.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/370908/ft1_filtered_4FGL_J0016.2-0016_daily_bin1656.fits.....................!
real 63.90
user 62.54
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    64.555       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10434E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5962       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.8698       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0737       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11119E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6090       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.354       1.0000         .10000E-03   10000.    
    15 'Prefactor '    609.22       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.024       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3432       1.0000         .10000E-03   10000.    
    19 'Prefactor '    75.648       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10495E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2546       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1668       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5902.140     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2741 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7718         .0000    ** at limit **
   2  Prefactor     .10005E-03    23.042         .0000    ** at limit **
   3  Prefactor     64.559        28.700         .0000       -.34125E-02
   4  Prefactor     .10000E-03    3.9571         .0000    ** at limit **
   5  norm          2.5948        3.8114         .0000        .58400E-03
   6  Prefactor     .10000E-03    14.381         .0000    ** at limit **
   7  norm          .10000E-03    2.1429         .0000    ** at limit **
   8  norm          6.8689        5.1320         .0000        .28017E-02
   9  Prefactor     .10007E-03    19.544         .0000    ** at limit **
  10  norm          1.0750        15.241         .0000        .19103E-01
  11  Prefactor     .10000E-03    4.0465         .0000    ** at limit **
  12  Prefactor     2.6093        3.3151         .0000        .28789E-03
  13  norm          .10000E-03    1.7122         .0000    ** at limit **
  14  Prefactor     16.354        32.831         .0000       -.59640E-04
  15  Prefactor     609.22        426.44         .0000        .10378E-02
  16  Prefactor     10.017        20.052         .0000        .10748E-02
  17  norm          .10000E-03    14.536         .0000    ** at limit **
  18  Prefactor     1.3470        11.039         .0000        .24723E-01
  19  Prefactor     75.648        53.769         .0000       -.15659E-03
  20  Prefactor     .10000E-03    5.1810         .0000    ** at limit **
  21  Prefactor     .10000E-03    40.241         .0000    ** at limit **
  22  Prefactor     .10000E-03    5.9599         .0000    ** at limit **
  23  Normalizat    1.2545        .23895         .0000        .21938E-04
  24  Prefactor     1.1669        .17801         .0000        .11325E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100053
  Prefactor  = 64.5589
  Prefactor  = 0.0001
  norm       = 2.59482
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 6.86888
  Prefactor  = 0.000100074
  norm       = 1.07502
  Prefactor  = 0.0001
  Prefactor  = 2.6093
  norm       = 0.0001
  Prefactor  = 16.3545
  Prefactor  = 609.221
  Prefactor  = 10.017
  norm       = 0.000100001
  Prefactor  = 1.34702
  Prefactor  = 75.6484
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.25448
  Prefactor  = 1.16687
 **********
 **   18 **HESSE 
 **********

 FCN=   5902.140     FROM HESSE     STATUS=OK           393 CALLS     3134 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7753        .14572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10005E-03    23.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     64.559        28.523        .49948E-04   -1.4099    
   4  Prefactor     .10000E-03    9.3679        .29579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5948        3.7642        .15679E-03   -1.5386    
   6  Prefactor     .10000E-03    14.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.1813        .10963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.8689        5.1300        .72172E-03   -1.5184    
   9  Prefactor     .10007E-03    19.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0750        15.392        .23375E-02   -1.5501    
  11  Prefactor     .10000E-03    4.2107        .30110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.6093        3.3003        .15150E-03   -1.5385    
  13  norm          .10000E-03    1.7129        .98170E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.354        32.807        .99039E-04   -1.4899    
  15  Prefactor     609.22        423.95        .83616E-04   -1.0720    
  16  Prefactor     10.017        19.243        .12656E-03   -1.5075    
  17  norm          .10000E-03    14.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.3470        9.9548        .18901E-02   -1.5476    
  19  Prefactor     75.648        53.779        .46166E-04   -1.3966    
  20  Prefactor     .10000E-03    5.1821        .17079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    41.384        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.9895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2545        .27656        .31263E-03   -.84936    
  24  Prefactor     1.1669        .20701        .25092E-03   -.87357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.42586e-08
Minuit parameter uncertainties:
  1  4.5067e-07
  2  0.00220324
  3  28.5286
  4  0.000106265
  5  3.76454
  6  0.00035199
  7  2.288e-06
  8  5.13028
  9  0.00242296
  10  8.13775
  11  1.13382e-05
  12  3.30052
  13  2.75538e-06
  14  32.8432
  15  426.199
  16  19.255
  17  0.000280892
  18  7.32518
  19  53.8134
  20  2.71726e-05
  21  0.000125333
  22  3.41726e-05
  23  0.276883
  24  0.20715
Done.

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

Extracting fit parameters...

4FGL J0016.2-0016
   Spectrum: LogParabola
72          norm:  2.595e+00  3.765e+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.167e+00  2.071e-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.254e+00  2.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/370908/likelihoodResults_668563201_668822401_4FGL_J0016.2-0016_daily_bin1656.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) = 5902.13764704
delta logL = 0.00237738911073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5902.13747724
delta logL = 0.00254718325141

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5649       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7326       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2504       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1691       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=   5902.137     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      234 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5524        184.12        .63723E-02    .54496E-03
   2  alpha         2.7250        3.0745        .41379        .29625E-05
   3  Normalizat    1.2509        .12044        .70739E-01   -.17071E-05
   4  Prefactor     1.1689        .11175        .56704E-01   -.12478E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.55244
  alpha      = 2.72496
  Normalizat = 1.25087
  Prefactor  = 1.16894
 **********
 **   18 **HESSE 
 **********

 FCN=   5902.137     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .46E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5524        3.6048        .15368E-03   -1.5388    
   2  alpha         2.7250        1.5143        .38211E-01    .90107E-01
   3  Normalizat    1.2509        .27217        .31300E-03   -.85045    
   4  Prefactor     1.1689        .20873        .25073E-03   -.87292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63281e-12
Minuit parameter uncertainties:
  1  3.6051
  2  1.62778
  3  0.272479
  4  0.208874
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/370908': 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) = 5902.13745283
delta logL = 0.00257159668581

Extracting fit parameters...

4FGL J0016.2-0016
   Spectrum: LogParabola
72          norm:  2.552e+00  3.605e+00  1.000e-04  1.000e+04 ( 1.000e-11)
73         alpha:  2.725e+00  1.628e+00  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.169e+00  2.089e-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.251e+00  2.725e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.74
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/370908/cmap_HighResolution_668563201_668822401_4FGL_J0016.2-0016_daily_bin1656.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.06e-05', job_status='DONE', photon_flux_upper_limit='1.69e-07', time_completed='2022-03-13 00:20:07.261920', job_id='370908', GAL2='1.17', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1647159607.26', return_code2='0', ts='0.74', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='2.57e-03', ts2='0.75', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1656' AND source_name='4FGL J0016.2-0016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Mar 13 00:20:07 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 370908: <4FGL_J0016.2-0016_daily_bin1656> in cluster <slac> Done

Job <4FGL_J0016.2-0016_daily_bin1656> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Mar 13 00:04:29 2022
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Mar 13 00:06:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Mar 13 00:06:22 2022
Terminated at Sun Mar 13 00:20:08 2022
Results reported at Sun Mar 13 00:20:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0016.2-0016_daily_bin1656 4.061 -0.2806 668563201 668822401 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 :                                   676.50 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             303.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            939 sec.

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

