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


Performing analysis on: 4FGL_J0159.5+1046_daily_bin719
RA = 29.8858, Dec = 10.7737
tmin = 425692801, tmax = 425952001
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='998460', job_status='RUN', time_executed='2021-08-15 00:36:49.932477', time_epoch_executed='1629013009.93' WHERE source_name='4FGL J0159.5+1046' and cadence='daily' and bin_id='719'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998460

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998460/ft1_4FGL_J0159.5+1046_daily_bin719.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998460/ft2_4FGL_J0159.5+1046_daily_bin719.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998460/ft1_4FGL_J0159.5+1046_daily_bin719.fits outfile=/scratch/kocevski/998460/ft1_filteredMKT_4FGL_J0159.5+1046_daily_bin719.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=425692801.0 tmax=425952001.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.88
user 3.36
sys 2.48

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998460/ft1_filtered_4FGL_J0159.5+1046_daily_bin719.fits" evtable="EVENTS" scfile=/scratch/kocevski/998460/ft2_4FGL_J0159.5+1046_daily_bin719.fits sctable="SC_DATA" outfile=/scratch/kocevski/998460/ltcube_425692801_425952001_4FGL_J0159.5+1046_daily_bin719.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/998460/ft2_4FGL_J0159.5+1046_daily_bin719.fits
.....................!
real 16.45
user 13.48
sys 2.88

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998460/ft1_filtered_4FGL_J0159.5+1046_daily_bin719.fits evtable="EVENTS" scfile=/scratch/kocevski/998460/ft2_4FGL_J0159.5+1046_daily_bin719.fits sctable="SC_DATA" expcube=/scratch/kocevski/998460/ltcube_425692801_425952001_4FGL_J0159.5+1046_daily_bin719.fits outfile=/scratch/kocevski/998460/expmap_425692801_425952001_4FGL_J0159.5+1046_daily_bin719.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/998460/ltcube_425692801_425952001_4FGL_J0159.5+1046_daily_bin719.fits
.....................!
real 195.39
user 186.31
sys 8.55

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/998460/ft1_filtered_4FGL_J0159.5+1046_daily_bin719.fits scfile=/scratch/kocevski/998460/ft2_4FGL_J0159.5+1046_daily_bin719.fits outfile=/scratch/kocevski/998460/cmap_425692801_425952001_4FGL_J0159.5+1046_daily_bin719.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 2.91
user 0.37
sys 2.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998460/ft1_filtered_4FGL_J0159.5+1046_daily_bin719.fits scfile=/scratch/kocevski/998460/ft2_4FGL_J0159.5+1046_daily_bin719.fits outfile=/scratch/kocevski/998460/cmap_HighResolution_425692801_425952001_4FGL_J0159.5+1046_daily_bin719.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 3.00
user 0.39
sys 2.47

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.8106       1.0000         .10000E-03   10000.    
     5 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9398       1.0000         .10000E-03   10000.    
     8 'norm      '    5.0256       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7482       1.0000         .10000E-03   10000.    
    10 'norm      '    .97571       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.019       1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.323       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.5000       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    62.839       1.0000         .10000E-03   10000.    
    22 'norm      '    3.9579       1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.786       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .98598       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88702       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=   7042.158     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2893 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7124        .15556E-07** at limit **
   2  Prefactor     .10000E-03    66.664        .10192E-06** at limit **
   3  Prefactor     .10000E-03    11.292        .17262E-05** at limit **
   4  Prefactor     8.8105        4.9677       -.47597E-08   -.73377E-04
   5  norm          .10000E-03    21.626        .11998E-05** at limit **
   6  Prefactor     .10000E-03    8.9986       -.15280E-05** at limit **
   7  Prefactor     2.9396        2.4779        .74711E-07   -.46155E-04
   8  norm          5.0256        4.1567        .98128E-08    .18168E-03
   9  Prefactor     1.7480        1.6761        .71741E-06   -.90490E-03
  10  norm          .97555        .68559        .12903E-07   -.46434E-04
  11  Prefactor     .10000E-03    7.9652        .31541E-06** at limit **
  12  Prefactor     .10000E-03    14.099       -.23950E-05** at limit **
  13  Prefactor     .10000E-03    1.5955       -.14360E-08** at limit **
  14  Prefactor     .10000E-03    21.893        .26536E-07** at limit **
  15  Prefactor     19.019        9.0713        .67553E-07   -.14780E-04
  16  Prefactor     26.323        16.203       -.52337E-07   -.54771E-05
  17  Prefactor     .10000E-03    2.5430       -.11499E-06** at limit **
  18  Prefactor     .10000E-03    3.8642       -.90579E-07** at limit **
  19  norm          2.4999        .69799        .16395E-07    .77772E-05
  20  Prefactor     .10000E-03    11.004        .11922E-05** at limit **
  21  Prefactor     62.837        29.221       -.22700E-06   -.89668E-04
  22  norm          3.9565        6.9621        .60381E-05   -.95616E-03
  23  Prefactor     28.747        31.769       -.68050E-05   -.78036E-03
  24  Normalizat    .98602        .17659       -.43693E-06   -.74368E-05
  25  Prefactor     .88700        .11160       -.11754E-06   -.11653E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 8.81053
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 2.93958
  norm       = 5.02561
  Prefactor  = 1.74795
  norm       = 0.975553
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.0192
  Prefactor  = 26.3227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.49995
  Prefactor  = 0.000100002
  Prefactor  = 62.8368
  norm       = 3.95649
  Prefactor  = 28.7469
  Normalizat = 0.986016
  Prefactor  = 0.887004
 **********
 **   18 **HESSE 
 **********

 FCN=   7042.158     FROM HESSE     STATUS=OK           425 CALLS     3318 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.9959        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    66.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.665        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.8105        4.9726        .13504E-03   -1.5114    
   5  norm          .10000E-03    22.361        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.3416        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.9396        2.4726        .11545E-03   -1.5365    
   8  norm          5.0256        4.1541        .14973E-03   -1.5260    
   9  Prefactor     1.7480        1.6727        .51617E-03   -1.5444    
  10  norm          .97555        .66690        .56489E-03   -1.5510    
  11  Prefactor     .10000E-03    7.9802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.5969        .10349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.019        9.0766        .91839E-04   -1.4835    
  16  Prefactor     26.323        16.202        .78081E-04   -1.4681    
  17  Prefactor     .10000E-03    2.5473        .13069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.8733        .16103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.4999        .69775        .35605E-04   -1.5392    
  20  Prefactor     .10000E-03    11.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     62.837        29.250        .50621E-04   -1.4121    
  22  norm          3.9565        7.1425        .10138E-02   -1.5310    
  23  Prefactor     28.747        33.643        .74673E-04   -1.4635    
  24  Normalizat    .98602        .20273        .29307E-03   -.93500    
  25  Prefactor     .88700        .12883        .19389E-03   -.96597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10411e-09
Minuit parameter uncertainties:
  1  7.02203e-06
  2  8.98112e-06
  3  0.000236274
  4  4.97283
  5  0.000223137
  6  0.000225029
  7  2.47272
  8  4.1543
  9  1.67273
  10  0.666905
  11  4.83326e-05
  12  0.00047403
  13  6.37788e-07
  14  7.41612e-06
  15  9.0773
  16  16.2043
  17  4.7604e-06
  18  8.1288e-06
  19  0.697754
  20  0.000265222
  21  29.2565
  22  7.14404
  23  33.6653
  24  0.202889
  25  0.128877
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  2.250e-04  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:  8.870e-01  1.289e-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:  9.860e-01  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 29.886 10.774
Photon Flux Upper Limit: 7.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/998460/likelihoodResults_425692801_425952001_4FGL_J0159.5+1046_daily_bin719.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): 102
logL (Free Index) = 7042.15855878
delta logL = -0.000510937931722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7042.1580467
delta logL = 1.1413167158e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0681       1.0000          .0000       10.000    
     3 'Normalizat'    .98602       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88700       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.

 FCN=   7042.158     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      232 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10010E-03    .62757        .54638E-01** at limit **
   2  Index         2.1702        1.5670        .50000       -.82928E-04
   3  Normalizat    .98602        .18474E-02    .66258E-01    .28867E-03
   4  Prefactor     .88700        .11720E-02    .44839E-01    .47057E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100102
  Index      = 2.17018
  Normalizat = 0.986019
  Prefactor  = 0.887002
 **********
 **   18 **HESSE 
 **********

 FCN=   7042.158     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      267 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10010E-03    206.81        .33326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1702        7.7920        .50000       -.60160    
   3  Normalizat    .98602        .14921E-01    .29307E-03   -.93500    
   4  Prefactor     .88700        .94744E-02    .19388E-03   -.96597    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.44723e-09
Minuit parameter uncertainties:
  1  0.00923864
  2  12.875
  3  0.0149209
  4  0.00947446
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998460': 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): 102
logL (Free Index) = 7042.15804477
delta logL = 3.07140180666e-06

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  1.001e-04  9.239e-03  1.000e-04  1.000e+04 ( 1.000e-13)
220        Index:  2.170e+00  1.287e+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:  8.870e-01  9.474e-03  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:  9.860e-01  1.492e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 29.886 10.774

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/998460/cmap_HighResolution_425692801_425952001_4FGL_J0159.5+1046_daily_bin719.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.41e-03', job_status='DONE', photon_flux_upper_limit='7.22e-08', time_completed='2021-08-15 00:51:00.292396', job_id='998460', GAL2='0.89', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1629013860.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.07e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='719' AND source_name='4FGL J0159.5+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 00:51:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0010>
Subject: Job 998460: <4FGL_J0159.5+1046_daily_bin719> in cluster <slac> Done

Job <4FGL_J0159.5+1046_daily_bin719> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 15 00:35:32 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 00:35:58 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:35:58 2021
Terminated at Sun Aug 15 00:51:01 2021
Results reported at Sun Aug 15 00:51:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.5+1046_daily_bin719 29.8858 10.7737 425692801 425952001 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 :                                   854.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             316.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            929 sec.

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

