/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 103 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0159.5+1046_daily_bin1059
RA = 29.8858, Dec = 10.7737
tmin = 513820801, tmax = 514080001
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='1399', job_status='RUN', time_executed='2021-08-15 00:47:45.947072', time_epoch_executed='1629013665.95' WHERE source_name='4FGL J0159.5+1046' and cadence='daily' and bin_id='1059'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1399

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1399/ft1_4FGL_J0159.5+1046_daily_bin1059.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1399/ft2_4FGL_J0159.5+1046_daily_bin1059.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1399/ft1_4FGL_J0159.5+1046_daily_bin1059.fits outfile=/scratch/kocevski/1399/ft1_filteredMKT_4FGL_J0159.5+1046_daily_bin1059.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=513820801.0 tmax=514080001.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 4.45
user 3.52
sys 0.90

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/1399/ft2_4FGL_J0159.5+1046_daily_bin1059.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/1399/ft2_4FGL_J0159.5+1046_daily_bin1059.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/1399/ft1_filteredMKT_4FGL_J0159.5+1046_daily_bin1059.fits evtable="EVENTS" outfile="/scratch/kocevski/1399/ft1_filtered_4FGL_J0159.5+1046_daily_bin1059.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 1.23
user 0.33
sys 0.85

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1399/ft1_filtered_4FGL_J0159.5+1046_daily_bin1059.fits" evtable="EVENTS" scfile=/scratch/kocevski/1399/ft2_4FGL_J0159.5+1046_daily_bin1059.fits sctable="SC_DATA" outfile=/scratch/kocevski/1399/ltcube_513820801_514080001_4FGL_J0159.5+1046_daily_bin1059.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/1399/ft2_4FGL_J0159.5+1046_daily_bin1059.fits
.....................!
real 14.35
user 13.19
sys 1.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1399/ft1_filtered_4FGL_J0159.5+1046_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/1399/ft2_4FGL_J0159.5+1046_daily_bin1059.fits sctable="SC_DATA" expcube=/scratch/kocevski/1399/ltcube_513820801_514080001_4FGL_J0159.5+1046_daily_bin1059.fits outfile=/scratch/kocevski/1399/expmap_513820801_514080001_4FGL_J0159.5+1046_daily_bin1059.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/1399/ltcube_513820801_514080001_4FGL_J0159.5+1046_daily_bin1059.fits
.....................!
real 191.58
user 185.91
sys 5.08

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

Setting source of interest to:
4FGL J0159.5+1046 @ 29.8858 10.7737

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/1399/ft1_filtered_4FGL_J0159.5+1046_daily_bin1059.fits scfile=/scratch/kocevski/1399/ft2_4FGL_J0159.5+1046_daily_bin1059.fits outfile=/scratch/kocevski/1399/cmap_513820801_514080001_4FGL_J0159.5+1046_daily_bin1059.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=29.8858 yref=10.7737 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 1.24
user 0.38
sys 0.85

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1399/ft1_filtered_4FGL_J0159.5+1046_daily_bin1059.fits scfile=/scratch/kocevski/1399/ft2_4FGL_J0159.5+1046_daily_bin1059.fits outfile=/scratch/kocevski/1399/cmap_HighResolution_513820801_514080001_4FGL_J0159.5+1046_daily_bin1059.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=29.8858 yref=10.7737 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 1.26
user 0.40
sys 0.85

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/1399/ft1_filtered_4FGL_J0159.5+1046_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/1399/ft2_4FGL_J0159.5+1046_daily_bin1059.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/1399/Model_4FGL_J0159.5+1046_daily_bin1059.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/1399/ft1_filtered_4FGL_J0159.5+1046_daily_bin1059.fits.....................!
real 81.48
user 79.00
sys 2.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/1399/ft1_filtered_4FGL_J0159.5+1046_daily_bin1059.fits', '/scratch/kocevski/1399/ft2_4FGL_J0159.5+1046_daily_bin1059.fits', expMap='/scratch/kocevski/1399/expmap_513820801_514080001_4FGL_J0159.5+1046_daily_bin1059.fits', expCube='/scratch/kocevski/1399/ltcube_513820801_514080001_4FGL_J0159.5+1046_daily_bin1059.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/1399/Model_4FGL_J0159.5+1046_daily_bin1059.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.5+1046'

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  2.134e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/1399/ft1_filtered_4FGL_J0159.5+1046_daily_bin1059.fits
Spacecraft file(s): /scratch/kocevski/1399/ft2_4FGL_J0159.5+1046_daily_bin1059.fits
Exposure map: /scratch/kocevski/1399/expmap_513820801_514080001_4FGL_J0159.5+1046_daily_bin1059.fits
Exposure cube: /scratch/kocevski/1399/ltcube_513820801_514080001_4FGL_J0159.5+1046_daily_bin1059.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/1399/Model_4FGL_J0159.5+1046_daily_bin1059.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) = 6862.16466891

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5087       1.0000         .10000E-03   10000.    
     2 'Prefactor '    64.027       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.0629       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.5439       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.5414       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .25273E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .40069       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.914       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .70276       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .26266E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .82558       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.571       1.0000         .10000E-03   10000.    
    22 'norm      '    .86518       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3712       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1196       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6862.161     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     2963 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5066        15.423        .91918E-06    .10105E-03
   2  Prefactor     64.005        63.600       -.11350E-05   -.23971E-03
   3  Prefactor     7.0621        9.0051        .45369E-06    .18199E-03
   4  Prefactor     .10000E-03    2.7739       -.41699E-07** at limit **
   5  norm          .10000E-03    12.693       -.25340E-06** at limit **
   6  Prefactor     7.5439        6.9207        .11767E-06    .72366E-05
   7  Prefactor     .10000E-03    .82112        .21068E-09** at limit **
   8  norm          2.5417        3.5709        .36454E-06    .32369E-03
   9  Prefactor     .10058E-03    1.0954        .81011E-06** at limit **
  10  norm          .40070        .43872       -.16833E-08   -.21629E-03
  11  Prefactor     .10000E-03    7.3905        .21675E-06** at limit **
  12  Prefactor     .10000E-03    40.694        .51359E-06** at limit **
  13  Prefactor     .10000E-03    4.8650        .32916E-08** at limit **
  14  Prefactor     24.918        44.763       -.38868E-06   -.49623E-04
  15  Prefactor     .10000E-03    3.2529       -.51781E-07** at limit **
  16  Prefactor     .58924        13.408        .40538E-05   -.19468E-03
  17  Prefactor     .10000E-03    3.2078       -.16626E-07** at limit **
  18  Prefactor     .10003E-03    4.1267        .91100E-07** at limit **
  19  norm          .82554        .44040       -.13785E-07   -.63229E-03
  20  Prefactor     .10000E-03    20.532        .32726E-06** at limit **
  21  Prefactor     22.594        31.292       -.15357E-05   -.18791E-03
  22  norm          .89345        21.316       -.11430E-04    .71059E-04
  23  Prefactor     .10000E-03    30.479       -.14747E-05** at limit **
  24  Normalizat    1.3714        .21899       -.16513E-05   -.74953E-03
  25  Prefactor     1.1195        .13569        .24453E-06   -.97412E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.50662
  Prefactor  = 64.0047
  Prefactor  = 7.06211
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.5439
  Prefactor  = 0.0001
  norm       = 2.54165
  Prefactor  = 0.000100581
  norm       = 0.400697
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 24.9183
  Prefactor  = 0.0001
  Prefactor  = 0.589238
  Prefactor  = 0.0001
  Prefactor  = 0.000100028
  norm       = 0.825542
  Prefactor  = 0.0001
  Prefactor  = 22.5939
  norm       = 0.893454
  Prefactor  = 0.000100004
  Normalizat = 1.37138
  Prefactor  = 1.11951
 **********
 **   18 **HESSE 
 **********

 FCN=   6862.161     FROM HESSE     STATUS=OK           441 CALLS     3404 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5066        15.497        .15731E-03   -1.5198    
   2  Prefactor     64.005        64.251        .50152E-04   -1.4106    
   3  Prefactor     7.0621        9.0308        .15095E-03   -1.5176    
   4  Prefactor     .10000E-03    2.8092        .13472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    12.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.5439        6.9238        .14601E-03   -1.5159    
   7  Prefactor     .10000E-03    .82969        .73282E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.5417        3.5722        .18028E-03   -1.5389    
   9  Prefactor     .10058E-03    2.0028        .29904E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .40070        .43509        .55936E-04   -1.5581    
  11  Prefactor     .10000E-03    7.4010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    41.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.9078        .17839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.918        44.782        .80254E-04   -1.4709    
  15  Prefactor     .10000E-03    3.2655        .14586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .58924        93.457        .52819E-02   -1.5554    
  17  Prefactor     .10000E-03    3.2189        .14487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10003E-03    6.1415        .62169E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .82554        .45014        .38671E-04   -1.5526    
  20  Prefactor     .10000E-03    20.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     22.594        31.790        .84310E-04   -1.4757    
  22  norm          .89345        21.934        .43295E-02   -1.5519    
  23  Prefactor     .10000E-03    30.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3714        .25221        .30634E-03   -.81460    
  25  Prefactor     1.1195        .15589        .20758E-03   -.88845    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79687e-09
Minuit parameter uncertainties:
  1  15.507
  2  64.321
  3  9.03258
  4  3.22503e-06
  5  8.23923e-05
  6  6.9245
  7  6.88879e-07
  8  3.57253
  9  0.00215812
  10  0.435094
  11  3.66336e-05
  12  0.000329331
  13  7.56078e-06
  14  44.8424
  15  3.68676e-09
  16  14.864
  17  4.82684e-06
  18  0.000836594
  19  0.450137
  20  0.00018579
  21  31.8135
  22  8.8568
  23  0.000692539
  24  0.252439
  25  0.155958
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  7.544e+00  6.924e+00  1.000e-04  1.000e+04 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.120e+00  1.560e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.371e+00  2.524e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.16
Ra Dec: 29.886 10.774
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 3.50e-08 +/- 3.21e-08
Energy Flux (Fixed Index): 2.45e-05 +/- 2.25e-05

TS (Fixed Index): 3.16
Ra Dec: 29.886 10.774
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/1399/likelihoodResults_513820801_514080001_4FGL_J0159.5+1046_daily_bin1059.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) = 6862.15807815
delta logL = 0.00254984270487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6862.15756239
delta logL = 0.0030656074432

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7716       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9463       1.0000          .0000       10.000    
     3 'Normalizat'    1.3734       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1191       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+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=   6862.158     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      257 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7709        7.8443        .14384E-03    .93658E-04
   2  Index         1.9469        .62513        .86799E-02    .26661E-04
   3  Normalizat    1.3733        .24589        .30617E-03    .13044E-03
   4  Prefactor     1.1192        .15282        .20761E-03    .19028E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.77088
  Index      = 1.94689
  Normalizat = 1.37325
  Prefactor  = 1.11923
 **********
 **   18 **HESSE 
 **********

 FCN=   6862.158     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7709        7.6649        .57536E-05   -1.5150    
   2  Index         1.9469        .61080        .34719E-03   -.65685    
   3  Normalizat    1.3733        .24593        .12247E-04   -.81405    
   4  Prefactor     1.1192        .15292        .41521E-04   -.88854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90002e-11
Minuit parameter uncertainties:
  1  7.66587
  2  0.613245
  3  0.246145
  4  0.152979
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1399': 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) = 6862.1575617
delta logL = 0.00306629903389

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  7.771e+00  7.666e+00  1.000e-04  1.000e+04 ( 1.000e-13)
220        Index:  1.947e+00  6.132e-01  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.119e+00  1.530e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.373e+00  2.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.16
Ra Dec: 29.886 10.774
Photon Index (Free Index): 1.95 +/- 0.61
Photon Flux (Free Index): 3.27e-08 +/- 4.26e-08
Energy Flux (Free Index): 2.59e-05 +/- 3.00e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/1399/cmap_HighResolution_513820801_514080001_4FGL_J0159.5+1046_daily_bin1059.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.66e-03', comment='SUCCESS', photon_flux='3.50e-08', energy_flux2='2.59e-05', photon_flux_error='3.21e-08', dlogl='3.07e-03', energy_flux='2.45e-05', photon_flux2='3.27e-08', job_status='DONE', time_completed='2021-08-15 01:00:55.050584', photon_index_error2='0.61', photon_index2='1.95', ts='3.16', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='3.00e-05', EG='1.37', time_epoch_completed='1629014455.05', return_code='0', job_id='1399', GAL2='1.12', EG2='1.37', return_code2='0', energy_flux_error='2.25e-05', photon_flux_error2='4.26e-08', ts2='3.16', photon_index='1.99' WHERE bin_id='1059' AND source_name='4FGL J0159.5+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 01:00:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 1399: <4FGL_J0159.5+1046_daily_bin1059> in cluster <slac> Done

Job <4FGL_J0159.5+1046_daily_bin1059> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 15 00:45:21 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 00:45:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 00:45:41 2021
Terminated at Sun Aug 15 01:00:55 2021
Results reported at Sun Aug 15 01:00:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.5+1046_daily_bin1059 29.8858 10.7737 513820801 514080001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0159.5+1046 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   793.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            934 sec.

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

