/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 42 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 = 7314
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0159.5+1046_daily_bin1070
RA = 29.8858, Dec = 10.7737
tmin = 516672001, tmax = 516931201
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='1416', job_status='RUN', time_executed='2021-08-15 00:46:56.828181', time_epoch_executed='1629013616.83' WHERE source_name='4FGL J0159.5+1046' and cadence='daily' and bin_id='1070'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1416

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1416/ft1_4FGL_J0159.5+1046_daily_bin1070.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1416/ft2_4FGL_J0159.5+1046_daily_bin1070.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1416/ft1_4FGL_J0159.5+1046_daily_bin1070.fits outfile=/scratch/kocevski/1416/ft1_filteredMKT_4FGL_J0159.5+1046_daily_bin1070.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=516672001.0 tmax=516931201.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.23
sys 1.14

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/1416/ft2_4FGL_J0159.5+1046_daily_bin1070.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/1416/ft1_filteredMKT_4FGL_J0159.5+1046_daily_bin1070.fits evtable="EVENTS" outfile="/scratch/kocevski/1416/ft1_filtered_4FGL_J0159.5+1046_daily_bin1070.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.46
user 0.34
sys 1.02

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1416/ft1_filtered_4FGL_J0159.5+1046_daily_bin1070.fits" evtable="EVENTS" scfile=/scratch/kocevski/1416/ft2_4FGL_J0159.5+1046_daily_bin1070.fits sctable="SC_DATA" outfile=/scratch/kocevski/1416/ltcube_516672001_516931201_4FGL_J0159.5+1046_daily_bin1070.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/1416/ft2_4FGL_J0159.5+1046_daily_bin1070.fits
.....................!
real 15.61
user 13.71
sys 1.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1416/ft1_filtered_4FGL_J0159.5+1046_daily_bin1070.fits evtable="EVENTS" scfile=/scratch/kocevski/1416/ft2_4FGL_J0159.5+1046_daily_bin1070.fits sctable="SC_DATA" expcube=/scratch/kocevski/1416/ltcube_516672001_516931201_4FGL_J0159.5+1046_daily_bin1070.fits outfile=/scratch/kocevski/1416/expmap_516672001_516931201_4FGL_J0159.5+1046_daily_bin1070.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/1416/ltcube_516672001_516931201_4FGL_J0159.5+1046_daily_bin1070.fits
.....................!
real 194.58
user 185.40
sys 6.93

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/1416/ft1_filtered_4FGL_J0159.5+1046_daily_bin1070.fits scfile=/scratch/kocevski/1416/ft2_4FGL_J0159.5+1046_daily_bin1070.fits outfile=/scratch/kocevski/1416/cmap_516672001_516931201_4FGL_J0159.5+1046_daily_bin1070.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.44
user 0.37
sys 1.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1416/ft1_filtered_4FGL_J0159.5+1046_daily_bin1070.fits scfile=/scratch/kocevski/1416/ft2_4FGL_J0159.5+1046_daily_bin1070.fits outfile=/scratch/kocevski/1416/cmap_HighResolution_516672001_516931201_4FGL_J0159.5+1046_daily_bin1070.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.43
user 0.39
sys 1.03

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/1416/ft1_filtered_4FGL_J0159.5+1046_daily_bin1070.fits', '/scratch/kocevski/1416/ft2_4FGL_J0159.5+1046_daily_bin1070.fits', expMap='/scratch/kocevski/1416/expmap_516672001_516931201_4FGL_J0159.5+1046_daily_bin1070.fits', expCube='/scratch/kocevski/1416/ltcube_516672001_516931201_4FGL_J0159.5+1046_daily_bin1070.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/1416/Model_4FGL_J0159.5+1046_daily_bin1070.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/1416/ft1_filtered_4FGL_J0159.5+1046_daily_bin1070.fits
Spacecraft file(s): /scratch/kocevski/1416/ft2_4FGL_J0159.5+1046_daily_bin1070.fits
Exposure map: /scratch/kocevski/1416/expmap_516672001_516931201_4FGL_J0159.5+1046_daily_bin1070.fits
Exposure cube: /scratch/kocevski/1416/ltcube_516672001_516931201_4FGL_J0159.5+1046_daily_bin1070.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/1416/Model_4FGL_J0159.5+1046_daily_bin1070.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) = 6930.9724282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.977       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    18.276       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4053       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.1986       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.807       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8458       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.223       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0718       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.6785       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.0862       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12203E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.578       1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0596       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96298       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=   6930.893     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2494 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.974        12.093       -.76920E-08   -.18459E-04
   2  Prefactor     .10000E-03    28.525        .71863E-05** at limit **
   3  Prefactor     .10000E-03    5.6308       -.18830E-06** at limit **
   4  Prefactor     .10000E-03    1.9115       -.66403E-08** at limit **
   5  norm          18.269        22.499       -.80447E-06    .17798E-04
   6  Prefactor     5.4043        6.3076       -.13346E-05    .12811E-04
   7  Prefactor     .10000E-03    .93063        .34200E-08** at limit **
   8  norm          7.1976        5.6218        .22837E-05   -.54817E-03
   9  Prefactor     11.807        4.1313       -.20631E-06    .41954E-03
  10  norm          .10000E-03    .32121       -.64575E-07** at limit **
  11  Prefactor     .10000E-03    31.376       -.78987E-05** at limit **
  12  Prefactor     2.5593        147.72       -.11798E-04    .27098E-04
  13  Prefactor     .10000E-03    6.5086        .58264E-06** at limit **
  14  Prefactor     11.221        74.323       -.91587E-05    .53226E-04
  15  Prefactor     2.0752        8.0615       -.14665E-04    .46543E-04
  16  Prefactor     6.6683        16.960       -.74310E-05    .12079E-03
  17  Prefactor     .10000E-03    3.5070        .40603E-07** at limit **
  18  Prefactor     .10000E-03    9.6250        .49518E-06** at limit **
  19  norm          1.0862        .51596        .13846E-06    .11915E-02
  20  Prefactor     .10000E-03    76.199        .48471E-05** at limit **
  21  Prefactor     14.546        27.962        .83902E-05   -.10023E-03
  22  norm          .10000E-03    7.6170        .15399E-06** at limit **
  23  Prefactor     .10000E-03    19.271       -.54474E-06** at limit **
  24  Normalizat    1.0599        .18920        .62683E-06    .22534E-03
  25  Prefactor     .96294        .11808        .15008E-05    .17477E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9744
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.269
  Prefactor  = 5.40435
  Prefactor  = 0.0001
  norm       = 7.19756
  Prefactor  = 11.8068
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 2.5593
  Prefactor  = 0.000100001
  Prefactor  = 11.2213
  Prefactor  = 2.07516
  Prefactor  = 6.66834
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.08621
  Prefactor  = 0.000100001
  Prefactor  = 14.5456
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05986
  Prefactor  = 0.962944
 **********
 **   18 **HESSE 
 **********

 FCN=   6930.893     FROM HESSE     STATUS=OK           427 CALLS     2921 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.974        12.095        .10020E-03   -1.4908    
   2  Prefactor     .10000E-03    28.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.6629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.9191        .11239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          18.269        22.497        .93687E-04   -1.4853    
   6  Prefactor     5.4043        6.3059        .17284E-03   -1.5243    
   7  Prefactor     .10000E-03    .94006        .78387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.1976        5.5907        .14950E-03   -1.5171    
   9  Prefactor     11.807        4.1268        .92303E-04   -1.5021    
  10  norm          .10000E-03    .51408        .91652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5593        146.77        .24102E-03   -1.5388    
  13  Prefactor     .10000E-03    6.5714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.221        74.089        .11959E-03   -1.5038    
  15  Prefactor     2.0752        8.3758        .28699E-03   -1.5420    
  16  Prefactor     6.6683        16.908        .15527E-03   -1.5191    
  17  Prefactor     .10000E-03    3.5152        .15225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.7634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.0862        .51701        .39705E-04   -1.5500    
  20  Prefactor     .10000E-03    77.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.546        27.872        .10490E-03   -1.4945    
  22  norm          .10000E-03    7.6737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    19.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0599        .21561        .30457E-03   -.91051    
  25  Prefactor     .96294        .13533        .19730E-03   -.93975    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.1929e-10
Minuit parameter uncertainties:
  1  12.0972
  2  0.000411416
  3  4.10483e-06
  4  3.76528e-06
  5  22.5073
  6  6.3067
  7  8.96809e-07
  8  5.59106
  9  4.12692
  10  6.79178e-06
  11  0.000534441
  12  38.8615
  13  0.000159009
  14  57.7708
  15  8.33995
  16  16.9205
  17  8.68975e-06
  18  0.000122626
  19  0.51701
  20  0.000546205
  21  27.8965
  22  2.81565e-05
  23  9.23184e-05
  24  0.215784
  25  0.135381
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  5.404e+00  6.307e+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:  9.629e-01  1.354e-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.060e+00  2.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.34
Ra Dec: 29.886 10.774
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 2.51e-08 +/- 2.92e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 2.05e-05

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

Saving results to:
/scratch/kocevski/1416/likelihoodResults_516672001_516931201_4FGL_J0159.5+1046_daily_bin1070.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) = 6930.36971948
delta logL = 0.523143602674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6930.36929334
delta logL = 0.523569739726

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7980       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4572       1.0000          .0000       10.000    
     3 'Normalizat'    1.0687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96044       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=   6930.369     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      292 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8069        8.2353        .71797E-03   -.12272E-04
   2  Index         1.4579        .50703        .92012E-02    .42750E-06
   3  Normalizat    1.0686        .21130        .30346E-03   -.51588E-04
   4  Prefactor     .96046        .13239        .19748E-03   -.13173E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.80695
  Index      = 1.45787
  Normalizat = 1.06858
  Prefactor  = 0.960457
 **********
 **   18 **HESSE 
 **********

 FCN=   6930.369     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8069        8.3110        .28719E-04   -1.5149    
   2  Index         1.4579        .51176        .36805E-03   -.78727    
   3  Normalizat    1.0686        .21144        .12138E-04   -.90767    
   4  Prefactor     .96046        .13250        .39497E-04   -.94059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23442e-11
Minuit parameter uncertainties:
  1  8.31218
  2  0.513568
  3  0.211605
  4  0.13254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1416': 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) = 6930.36929218
delta logL = 0.523570903588

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  7.807e+00  8.312e+00  1.000e-04  1.000e+04 ( 1.000e-13)
220        Index:  1.458e+00  5.136e-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:  9.605e-01  1.325e-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.069e+00  2.116e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.39
Ra Dec: 29.886 10.774
Photon Index (Free Index): 1.46 +/- 0.51
Photon Flux (Free Index): 1.45e-08 +/- 1.98e-08
Energy Flux (Free Index): 5.27e-05 +/- 6.90e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/1416/cmap_HighResolution_516672001_516931201_4FGL_J0159.5+1046_daily_bin1070.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.50e-03', comment='SUCCESS', photon_flux='2.51e-08', energy_flux2='5.27e-05', photon_flux_error='2.92e-08', dlogl='5.24e-01', energy_flux='1.76e-05', photon_flux2='1.45e-08', job_status='DONE', time_completed='2021-08-15 00:59:24.190070', photon_index_error2='0.51', photon_index2='1.46', ts='1.34', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.00e-07', energy_flux_error2='6.90e-05', EG='1.06', time_epoch_completed='1629014364.19', return_code='0', job_id='1416', GAL2='0.96', EG2='1.07', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='1.98e-08', ts2='2.39', photon_index='1.99' WHERE bin_id='1070' AND source_name='4FGL J0159.5+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 00:59:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 1416: <4FGL_J0159.5+1046_daily_bin1070> in cluster <slac> Done

Job <4FGL_J0159.5+1046_daily_bin1070> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 15 00:45:22 2021
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 00:45:46 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:46 2021
Terminated at Sun Aug 15 00:59:25 2021
Results reported at Sun Aug 15 00:59:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.5+1046_daily_bin1070 29.8858 10.7737 516672001 516931201 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 :                                   749.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            843 sec.

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

