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


Performing analysis on: 4FGL_J0159.5+1046_daily_bin1152
RA = 29.8858, Dec = 10.7737
tmin = 537926401, tmax = 538185601
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='1535', job_status='RUN', time_executed='2021-08-15 00:47:54.362108', time_epoch_executed='1629013674.36' WHERE source_name='4FGL J0159.5+1046' and cadence='daily' and bin_id='1152'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1535

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1535/ft1_4FGL_J0159.5+1046_daily_bin1152.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1535/ft2_4FGL_J0159.5+1046_daily_bin1152.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1535/ft1_4FGL_J0159.5+1046_daily_bin1152.fits outfile=/scratch/kocevski/1535/ft1_filteredMKT_4FGL_J0159.5+1046_daily_bin1152.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=537926401.0 tmax=538185601.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 10.65
user 6.19
sys 4.37

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1535/ft1_filtered_4FGL_J0159.5+1046_daily_bin1152.fits" evtable="EVENTS" scfile=/scratch/kocevski/1535/ft2_4FGL_J0159.5+1046_daily_bin1152.fits sctable="SC_DATA" outfile=/scratch/kocevski/1535/ltcube_537926401_538185601_4FGL_J0159.5+1046_daily_bin1152.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/1535/ft2_4FGL_J0159.5+1046_daily_bin1152.fits
.....................!
real 17.91
user 12.24
sys 5.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1535/ft1_filtered_4FGL_J0159.5+1046_daily_bin1152.fits evtable="EVENTS" scfile=/scratch/kocevski/1535/ft2_4FGL_J0159.5+1046_daily_bin1152.fits sctable="SC_DATA" expcube=/scratch/kocevski/1535/ltcube_537926401_538185601_4FGL_J0159.5+1046_daily_bin1152.fits outfile=/scratch/kocevski/1535/expmap_537926401_538185601_4FGL_J0159.5+1046_daily_bin1152.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/1535/ltcube_537926401_538185601_4FGL_J0159.5+1046_daily_bin1152.fits
.....................!
real 198.72
user 187.90
sys 9.99

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/1535/ft1_filtered_4FGL_J0159.5+1046_daily_bin1152.fits scfile=/scratch/kocevski/1535/ft2_4FGL_J0159.5+1046_daily_bin1152.fits outfile=/scratch/kocevski/1535/cmap_537926401_538185601_4FGL_J0159.5+1046_daily_bin1152.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 4.84
user 0.38
sys 4.28

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1535/ft1_filtered_4FGL_J0159.5+1046_daily_bin1152.fits scfile=/scratch/kocevski/1535/ft2_4FGL_J0159.5+1046_daily_bin1152.fits outfile=/scratch/kocevski/1535/cmap_HighResolution_537926401_538185601_4FGL_J0159.5+1046_daily_bin1152.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 4.83
user 0.39
sys 4.23

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.566       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0220       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3411       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.7613       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1313       1.0000         .10000E-03   10000.    
     8 'norm      '    6.3479       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7075       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5548       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.6067       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14935E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .38133       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.959       1.0000         .10000E-03   10000.    
    22 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89324       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98164       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=   6981.561     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2514 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.562        15.639       -.93845E-06    .29176E-04
   2  Prefactor     .10000E-03    13.882        .56422E-05** at limit **
   3  Prefactor     .10000E-03    33.608       -.24651E-04** at limit **
   4  Prefactor     2.0213        3.7797       -.16556E-05   -.75958E-03
   5  norm          2.3434        8.4774       -.16825E-05   -.25648E-03
   6  Prefactor     6.7604        6.8653       -.65887E-06   -.72835E-04
   7  Prefactor     4.1314        3.3298        .51587E-06    .26883E-03
   8  norm          6.3461        4.6079       -.99281E-06   -.23964E-02
   9  Prefactor     3.7085        2.5982       -.39469E-06   -.25841E-03
  10  norm          1.5547        .79674       -.19058E-06    .70490E-04
  11  Prefactor     .10000E-03    8.0928        .19152E-05** at limit **
  12  Prefactor     5.5563        77.267       -.12415E-03    .14466E-04
  13  Prefactor     .10000E-03    2.3493        .94209E-07** at limit **
  14  Prefactor     .10000E-03    44.335        .36918E-04** at limit **
  15  Prefactor     .10000E-03    4.9434        .52445E-06** at limit **
  16  Prefactor     .10017E-03    11.405       -.27051E-05** at limit **
  17  Prefactor     .10000E-03    6.3241       -.10395E-05** at limit **
  18  Prefactor     .10000E-03    3.8434        .28320E-06** at limit **
  19  norm          .38122        .30308        .26026E-06    .20520E-02
  20  Prefactor     .10000E-03    11.456       -.63269E-05** at limit **
  21  Prefactor     19.987        17.323       -.24497E-05    .12393E-03
  22  norm          .10000E-03    4.1730       -.20887E-06** at limit **
  23  Prefactor     .10000E-03    12.444        .13616E-05** at limit **
  24  Normalizat    .89328        .18498        .65653E-05    .44250E-03
  25  Prefactor     .98168        .11295        .18799E-05    .77489E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.5616
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.0213
  norm       = 2.34344
  Prefactor  = 6.76037
  Prefactor  = 4.13137
  norm       = 6.34612
  Prefactor  = 3.70853
  norm       = 1.5547
  Prefactor  = 0.0001
  Prefactor  = 5.55631
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100167
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.381218
  Prefactor  = 0.0001
  Prefactor  = 19.9865
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.893275
  Prefactor  = 0.981678
 **********
 **   18 **HESSE 
 **********

 FCN=   6981.561     FROM HESSE     STATUS=OK           429 CALLS     2943 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.562        15.652        .82515E-04   -1.4737    
   2  Prefactor     .10000E-03    13.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    34.507        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.0213        3.7691        .21469E-03   -1.5424    
   5  norm          2.3434        8.4550        .26796E-03   -1.5402    
   6  Prefactor     6.7604        6.8539        .15431E-03   -1.5188    
   7  Prefactor     4.1314        3.3209        .12847E-03   -1.5301    
   8  norm          6.3461        4.6259        .73065E-03   -1.5204    
   9  Prefactor     3.7085        2.5899        .10679E-03   -1.5323    
  10  norm          1.5547        .79616        .51459E-04   -1.5459    
  11  Prefactor     .10000E-03    8.1011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.5563        77.526        .16966E-03   -1.5236    
  13  Prefactor     .10000E-03    2.3580        .12506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    44.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.0150        .18138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10017E-03    75.039        .54234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.4337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.8586        .15995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .38122        .32585        .39812E-03   -1.5584    
  20  Prefactor     .10000E-03    11.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.987        17.240        .89653E-04   -1.4814    
  22  norm          .10000E-03    4.1877        .16669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .89328        .21194        .31329E-03   -.96697    
  25  Prefactor     .98168        .13013        .18718E-03   -.93343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.47461e-09
Minuit parameter uncertainties:
  1  15.6547
  2  1.90189e-05
  3  0.000343835
  4  3.76958
  5  8.4593
  6  6.85466
  7  3.32107
  8  4.62615
  9  2.59002
  10  0.796162
  11  1.31272e-05
  12  41.5746
  13  1.27443e-05
  14  8.6212e-05
  15  5.48417e-05
  16  0.00708065
  17  2.95332e-05
  18  4.64121e-05
  19  0.325855
  20  9.8118e-06
  21  17.2441
  22  1.00146e-05
  23  1.31375e-05
  24  0.212138
  25  0.13017
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  6.760e+00  6.855e+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.817e-01  1.302e-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:  8.933e-01  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.49
Ra Dec: 29.886 10.774
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 3.14e-08 +/- 3.18e-08
Energy Flux (Fixed Index): 2.20e-05 +/- 2.23e-05

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

Saving results to:
/scratch/kocevski/1535/likelihoodResults_537926401_538185601_4FGL_J0159.5+1046_daily_bin1152.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) = 6981.44592923
delta logL = 0.114634849622

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6981.4392986
delta logL = 0.121265485852

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1076       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2985       1.0000          .0000       10.000    
     3 'Normalizat'    .88183       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98383       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=   6981.439     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      269 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1055        135.91        .44475E-02    .32489E-03
   2  Index         2.2981        3.5083        .11336        .14843E-03
   3  Normalizat    .88185        .89596E-01    .71197E-01    .26387E-04
   4  Prefactor     .98390        .44871E-01    .46065E-01    .29702E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.10552
  Index      = 2.29809
  Normalizat = 0.881853
  Prefactor  = 0.983898
 **********
 **   18 **HESSE 
 **********

 FCN=   6981.439     FROM HESSE     STATUS=OK            33 CALLS      302 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1055        7.0704        .16486E-03   -1.5256    
   2  Index         2.2981        .68071        .69180E-02   -.57089    
   3  Normalizat    .88185        .20746        .31503E-03   -.97101    
   4  Prefactor     .98390        .12922        .18694E-03   -.93268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.6847e-09
Minuit parameter uncertainties:
  1  7.07157
  2  0.683711
  3  0.207644
  4  0.129262
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1535': 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) = 6981.43929736
delta logL = 0.121266724545

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  5.106e+00  7.072e+00  1.000e-04  1.000e+04 ( 1.000e-13)
220        Index:  2.298e+00  6.837e-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.839e-01  1.293e-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:  8.819e-01  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.73
Ra Dec: 29.886 10.774
Photon Index (Free Index): 2.30 +/- 0.68
Photon Flux (Free Index): 4.62e-08 +/- 4.90e-08
Energy Flux (Free Index): 1.75e-05 +/- 1.86e-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/1535/cmap_HighResolution_537926401_538185601_4FGL_J0159.5+1046_daily_bin1152.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.86e-03', comment='SUCCESS', photon_flux='3.14e-08', energy_flux2='1.75e-05', photon_flux_error='3.18e-08', dlogl='1.21e-01', energy_flux='2.20e-05', photon_flux2='4.62e-08', job_status='DONE', time_completed='2021-08-15 01:01:23.559374', photon_index_error2='0.68', photon_index2='2.30', ts='1.49', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.86e-05', EG='0.89', time_epoch_completed='1629014483.56', return_code='0', job_id='1535', GAL2='0.98', EG2='0.88', return_code2='0', energy_flux_error='2.23e-05', photon_flux_error2='4.90e-08', ts2='1.73', photon_index='1.99' WHERE bin_id='1152' AND source_name='4FGL J0159.5+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 01:01:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 1535: <4FGL_J0159.5+1046_daily_bin1152> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.5+1046_daily_bin1152 29.8858 10.7737 537926401 538185601 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 :                                   861.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            954 sec.

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

