aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 72 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 = 7463
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0156.8-4744_daily_bin1684
RA = 29.2165, Dec = -47.7352
tmin = 675820801, tmax = 676080001
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='181007', job_status='RUN', time_executed='2022-06-05 00:08:21.488990', time_epoch_executed='1654412901.49' WHERE source_name='4FGL J0156.8-4744' and cadence='daily' and bin_id='1684'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/181007

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/181007/ft1_4FGL_J0156.8-4744_daily_bin1684.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/181007/ft2_4FGL_J0156.8-4744_daily_bin1684.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/181007/ft1_4FGL_J0156.8-4744_daily_bin1684.fits outfile=/scratch/kocevski/181007/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1684.fits ra=29.2165 dec=-47.7352 rad=12.0 tmin=675820801.0 tmax=676080001.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.56
user 4.21
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/181007/ft2_4FGL_J0156.8-4744_daily_bin1684.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/181007/ft2_4FGL_J0156.8-4744_daily_bin1684.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/181007/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1684.fits evtable="EVENTS" outfile="/scratch/kocevski/181007/ft1_filtered_4FGL_J0156.8-4744_daily_bin1684.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.54
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 560

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/181007/ft1_filtered_4FGL_J0156.8-4744_daily_bin1684.fits" evtable="EVENTS" scfile=/scratch/kocevski/181007/ft2_4FGL_J0156.8-4744_daily_bin1684.fits sctable="SC_DATA" outfile=/scratch/kocevski/181007/ltcube_675820801_676080001_4FGL_J0156.8-4744_daily_bin1684.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/181007/ft2_4FGL_J0156.8-4744_daily_bin1684.fits
.....................!
real 15.67
user 15.24
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/181007/ft1_filtered_4FGL_J0156.8-4744_daily_bin1684.fits evtable="EVENTS" scfile=/scratch/kocevski/181007/ft2_4FGL_J0156.8-4744_daily_bin1684.fits sctable="SC_DATA" expcube=/scratch/kocevski/181007/ltcube_675820801_676080001_4FGL_J0156.8-4744_daily_bin1684.fits outfile=/scratch/kocevski/181007/expmap_675820801_676080001_4FGL_J0156.8-4744_daily_bin1684.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/181007/ltcube_675820801_676080001_4FGL_J0156.8-4744_daily_bin1684.fits
.....................!
real 193.43
user 187.47
sys 5.49

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 187 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0156.8-4744 @ 29.2165 -47.7352

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/181007/ft1_filtered_4FGL_J0156.8-4744_daily_bin1684.fits scfile=/scratch/kocevski/181007/ft2_4FGL_J0156.8-4744_daily_bin1684.fits outfile=/scratch/kocevski/181007/cmap_675820801_676080001_4FGL_J0156.8-4744_daily_bin1684.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.2165 yref=-47.7352 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/181007/ft1_filtered_4FGL_J0156.8-4744_daily_bin1684.fits scfile=/scratch/kocevski/181007/ft2_4FGL_J0156.8-4744_daily_bin1684.fits outfile=/scratch/kocevski/181007/cmap_HighResolution_675820801_676080001_4FGL_J0156.8-4744_daily_bin1684.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.2165 yref=-47.7352 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/181007/ft1_filtered_4FGL_J0156.8-4744_daily_bin1684.fits evtable="EVENTS" scfile=/scratch/kocevski/181007/ft2_4FGL_J0156.8-4744_daily_bin1684.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/181007/Model_4FGL_J0156.8-4744_daily_bin1684.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/181007/ft1_filtered_4FGL_J0156.8-4744_daily_bin1684.fits....................!
real 116.08
user 113.92
sys 1.49

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/181007/ft1_filtered_4FGL_J0156.8-4744_daily_bin1684.fits', '/scratch/kocevski/181007/ft2_4FGL_J0156.8-4744_daily_bin1684.fits', expMap='/scratch/kocevski/181007/expmap_675820801_676080001_4FGL_J0156.8-4744_daily_bin1684.fits', expCube='/scratch/kocevski/181007/ltcube_675820801_676080001_4FGL_J0156.8-4744_daily_bin1684.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/181007/Model_4FGL_J0156.8-4744_daily_bin1684.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0156.8-4744'

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.227e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.193e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  1.612e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/181007/ft1_filtered_4FGL_J0156.8-4744_daily_bin1684.fits
Spacecraft file(s): /scratch/kocevski/181007/ft2_4FGL_J0156.8-4744_daily_bin1684.fits
Exposure map: /scratch/kocevski/181007/expmap_675820801_676080001_4FGL_J0156.8-4744_daily_bin1684.fits
Exposure cube: /scratch/kocevski/181007/ltcube_675820801_676080001_4FGL_J0156.8-4744_daily_bin1684.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/181007/Model_4FGL_J0156.8-4744_daily_bin1684.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) = 6046.03252629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9253       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.410       1.0000         .10000E-03   10000.    
     9 'norm      '    28.757       1.0000         .10000E-03   10000.    
    10 'norm      '    .43251E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3128       1.0000         .10000E-03   10000.    
    14 'norm      '    2.9909       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16135E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.849       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11435E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.909       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .13295E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13841       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3809       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .34789       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6046.007     FROM MIGRAD    STATUS=CONVERGED    650 CALLS     3430 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    103.36       -.81128E-06** at limit **
   2  Prefactor     .10000E-03    5.1160        .26966E-07** at limit **
   3  Prefactor     .10000E-03    10.329        .25780E-06** at limit **
   4  norm          .10000E-03    5.3669        .92831E-07** at limit **
   5  Prefactor     .10000E-03    36.362        .28752E-06** at limit **
   6  Prefactor     3.9260        2.9912       -.27341E-07   -.41939E-04
   7  Prefactor     .10000E-03    2.6576        .74713E-07** at limit **
   8  Prefactor     13.408        6.8735        .10577E-07   -.20009E-04
   9  norm          28.731        28.740        .27940E-05    .32347E-03
  10  norm          .10000E-03    2.3570        .15271E-06** at limit **
  11  Prefactor     .10000E-03    9.9592       -.78555E-07** at limit **
  12  Prefactor     .10000E-03    15.203       -.12690E-07** at limit **
  13  Prefactor     4.3130        3.7730        .12263E-05   -.82345E-03
  14  norm          2.9910        1.3614       -.88899E-07    .13983E-03
  15  Prefactor     .10046E-03    23.976       -.76343E-06** at limit **
  16  Prefactor     12.875        11.486       -.10261E-06   -.60332E-04
  17  Prefactor     .10000E-03    25.082       -.41850E-06** at limit **
  18  norm          .10000E-03    1.0103       -.87631E-07** at limit **
  19  Prefactor     12.910        10.210       -.43736E-06   -.26558E-03
  20  Prefactor     .10000E-03    31.892        .58562E-06** at limit **
  21  norm          .10000E-03    .41221        .42025E-07** at limit **
  22  Prefactor     .13547        2.1623        .18891E-06   -.24659E-03
  23  Prefactor     .10000E-03    4.7865       -.43381E-07** at limit **
  24  Normalizat    1.3808        .16127        .20026E-06    .11077E-03
  25  Prefactor     .34794        .16790       -.22426E-06    .68976E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.92598
  Prefactor  = 0.0001
  Prefactor  = 13.408
  norm       = 28.7313
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.31298
  norm       = 2.991
  Prefactor  = 0.000100459
  Prefactor  = 12.8746
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.9099
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.135472
  Prefactor  = 0.0001
  Normalizat = 1.38083
  Prefactor  = 0.347935
 **********
 **   18 **HESSE 
 **********

 FCN=   6046.007     FROM HESSE     STATUS=OK           437 CALLS     3867 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    104.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.1187        .17177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.4280        .17584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    37.837        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.9260        2.9917        .11417E-03   -1.5312    
   7  Prefactor     .10000E-03    2.7092        .12377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.408        6.7740        .10938E-03   -1.4975    
   9  norm          28.731        30.947        .74710E-04   -1.4635    
  10  norm          .10000E-03    12.310        .22836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.242        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.3130        4.0204        .71180E-03   -1.5293    
  14  norm          2.9910        1.3637        .57510E-04   -1.5362    
  15  Prefactor     .10046E-03    25.161        .12836       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.875        11.424        .11175E-03   -1.4990    
  17  Prefactor     .10000E-03    25.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.4763        .15101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.910        10.147        .11149E-03   -1.4989    
  20  Prefactor     .10000E-03    31.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    6.9067        .94203E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .13547        18.254        .22013E-02   -1.5634    
  23  Prefactor     .10000E-03    4.8023        .16612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3808        .17351        .17804E-03   -.81185    
  25  Prefactor     .34794        .17873        .35160E-03   -1.1955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11973e-09
Minuit parameter uncertainties:
  1  0.000365645
  2  1.07009e-06
  3  1.9599e-05
  4  2.72163e-06
  5  7.76851e-06
  6  2.99186
  7  1.37291e-06
  8  6.77438
  9  30.9643
  10  0.000259411
  11  1.91597e-05
  12  1.05708e-05
  13  4.02064
  14  1.36374
  15  0.00680263
  16  11.4261
  17  1.65565e-05
  18  1.19584e-05
  19  10.1481
  20  0.00010859
  21  1.77235e-05
  22  3.14494
  23  4.80303e-06
  24  0.173586
  25  0.17901
Done.

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

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.341e+01  6.774e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.193e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  1.612e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  3.479e-01  1.790e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.381e+00  1.736e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.58
Ra Dec: 29.216 -47.735
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 5.00e-08 +/- 2.52e-08
Energy Flux (Fixed Index): 2.27e-05 +/- 1.15e-05

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) = 6045.71773463
delta logL = 0.289136398172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6045.71768562
delta logL = 0.289185412583

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.259       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8696       1.0000          .0000       10.000    
     3 'Normalizat'    1.3963       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .33882       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6045.718     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      264 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.249        211.30        .24102E-02   -.70753E-05
   2  Index         1.8690        5.9022        .17001        .53892E-04
   3  Normalizat    1.3964        .10990        .31271E-01   -.76513E-05
   4  Prefactor     .33885        .75744E-01    .80394E-01    .50690E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.2495
  Index      = 1.86902
  Normalizat = 1.39636
  Prefactor  = 0.338851
 **********
 **   18 **HESSE 
 **********

 FCN=   6045.718     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.249        9.8282        .96408E-04   -1.4877    
   2  Index         1.8690        .41988        .59832E-02   -.67666    
   3  Normalizat    1.3964        .17053        .17729E-03   -.80734    
   4  Prefactor     .33885        .17770        .35613E-03   -1.2005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12715e-12
Minuit parameter uncertainties:
  1  9.82914
  2  0.420693
  3  0.170604
  4  0.177983
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/181007': 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) = 6045.71768328
delta logL = 0.289187750482

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.725e+01  9.829e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  1.869e+00  4.207e-01  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  1.612e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  3.389e-01  1.780e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.396e+00  1.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.19
Ra Dec: 29.216 -47.735
Photon Index (Free Index): 1.87 +/- 0.42
Photon Flux (Free Index): 3.58e-08 +/- 2.59e-08
Energy Flux (Free Index): 3.50e-05 +/- 3.08e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/181007/cmap_HighResolution_675820801_676080001_4FGL_J0156.8-4744_daily_bin1684.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.00e-08', energy_flux2='3.50e-05', photon_flux_error='2.52e-08', dlogl='2.89e-01', energy_flux='2.27e-05', photon_flux2='3.58e-08', job_status='DONE', time_completed='2022-06-05 00:21:10.305372', photon_index_error2='0.42', photon_index2='1.87', ts='13.58', fit_tolerance='1e-08', GAL='0.35', photon_index_error='0.00', energy_flux_error2='3.08e-05', EG='1.38', time_epoch_completed='1654413670.31', return_code='0', job_id='181007', GAL2='0.34', EG2='1.40', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='2.59e-08', ts2='14.19', photon_index='2.19' WHERE bin_id='1684' AND source_name='4FGL J0156.8-4744' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jun  5 00:21:10 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 181007: <4FGL_J0156.8-4744_daily_bin1684> in cluster <slac> Done

Job <4FGL_J0156.8-4744_daily_bin1684> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jun  5 00:04:49 2022
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jun  5 00:06:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jun  5 00:06:51 2022
Terminated at Sun Jun  5 00:21:11 2022
Results reported at Sun Jun  5 00:21:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.8-4744_daily_bin1684 29.2165 -47.7352 675820801 676080001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0156.8-4744 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   770.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            982 sec.

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

