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


Performing analysis on: 4FGL_J0156.8-4744_daily_bin1100
RA = 29.2165, Dec = -47.7352
tmin = 524448001, tmax = 524707201
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='935164', job_status='RUN', time_executed='2021-08-14 21:33:08.094793', time_epoch_executed='1629001988.09' WHERE source_name='4FGL J0156.8-4744' and cadence='daily' and bin_id='1100'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935164

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935164/ft1_4FGL_J0156.8-4744_daily_bin1100.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935164/ft2_4FGL_J0156.8-4744_daily_bin1100.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935164/ft1_4FGL_J0156.8-4744_daily_bin1100.fits outfile=/scratch/kocevski/935164/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1100.fits ra=29.2165 dec=-47.7352 rad=12.0 tmin=524448001.0 tmax=524707201.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 9.24
user 3.24
sys 5.88

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/935164/ft2_4FGL_J0156.8-4744_daily_bin1100.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/935164/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1100.fits evtable="EVENTS" outfile="/scratch/kocevski/935164/ft1_filtered_4FGL_J0156.8-4744_daily_bin1100.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 6.28
user 0.35
sys 5.80

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/935164/ft1_filtered_4FGL_J0156.8-4744_daily_bin1100.fits" evtable="EVENTS" scfile=/scratch/kocevski/935164/ft2_4FGL_J0156.8-4744_daily_bin1100.fits sctable="SC_DATA" outfile=/scratch/kocevski/935164/ltcube_524448001_524707201_4FGL_J0156.8-4744_daily_bin1100.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/935164/ft2_4FGL_J0156.8-4744_daily_bin1100.fits
.....................!
real 21.35
user 14.45
sys 6.70

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935164/ft1_filtered_4FGL_J0156.8-4744_daily_bin1100.fits evtable="EVENTS" scfile=/scratch/kocevski/935164/ft2_4FGL_J0156.8-4744_daily_bin1100.fits sctable="SC_DATA" expcube=/scratch/kocevski/935164/ltcube_524448001_524707201_4FGL_J0156.8-4744_daily_bin1100.fits outfile=/scratch/kocevski/935164/expmap_524448001_524707201_4FGL_J0156.8-4744_daily_bin1100.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/935164/ltcube_524448001_524707201_4FGL_J0156.8-4744_daily_bin1100.fits
.....................!
real 201.19
user 187.85
sys 11.86

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/935164/ft1_filtered_4FGL_J0156.8-4744_daily_bin1100.fits scfile=/scratch/kocevski/935164/ft2_4FGL_J0156.8-4744_daily_bin1100.fits outfile=/scratch/kocevski/935164/cmap_524448001_524707201_4FGL_J0156.8-4744_daily_bin1100.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 6.18
user 0.39
sys 5.69

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935164/ft1_filtered_4FGL_J0156.8-4744_daily_bin1100.fits scfile=/scratch/kocevski/935164/ft2_4FGL_J0156.8-4744_daily_bin1100.fits outfile=/scratch/kocevski/935164/cmap_HighResolution_524448001_524707201_4FGL_J0156.8-4744_daily_bin1100.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 6.11
user 0.40
sys 5.66

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/935164/ft1_filtered_4FGL_J0156.8-4744_daily_bin1100.fits evtable="EVENTS" scfile=/scratch/kocevski/935164/ft2_4FGL_J0156.8-4744_daily_bin1100.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/935164/Model_4FGL_J0156.8-4744_daily_bin1100.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/935164/ft1_filtered_4FGL_J0156.8-4744_daily_bin1100.fits.....................!
real 116.90
user 107.52
sys 7.96

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/935164/ft1_filtered_4FGL_J0156.8-4744_daily_bin1100.fits', '/scratch/kocevski/935164/ft2_4FGL_J0156.8-4744_daily_bin1100.fits', expMap='/scratch/kocevski/935164/expmap_524448001_524707201_4FGL_J0156.8-4744_daily_bin1100.fits', expCube='/scratch/kocevski/935164/ltcube_524448001_524707201_4FGL_J0156.8-4744_daily_bin1100.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/935164/Model_4FGL_J0156.8-4744_daily_bin1100.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/935164/ft1_filtered_4FGL_J0156.8-4744_daily_bin1100.fits
Spacecraft file(s): /scratch/kocevski/935164/ft2_4FGL_J0156.8-4744_daily_bin1100.fits
Exposure map: /scratch/kocevski/935164/expmap_524448001_524707201_4FGL_J0156.8-4744_daily_bin1100.fits
Exposure cube: /scratch/kocevski/935164/ltcube_524448001_524707201_4FGL_J0156.8-4744_daily_bin1100.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/935164/Model_4FGL_J0156.8-4744_daily_bin1100.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) = 5594.50000757

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.331       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0376       1.0000         .10000E-03   10000.    
     4 'norm      '    2.3821       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7031       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0234       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0578       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.6076       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1855       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5655       1.0000         .10000E-03   10000.    
    14 'norm      '    2.1318       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10738E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.741       1.0000         .10000E-03   10000.    
    21 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.1534       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.5868       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0999       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .46094       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=   5594.449     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2496 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.184        .36841E-05** at limit **
   2  Prefactor     21.328        17.616       -.40632E-05    .31144E-04
   3  Prefactor     3.0345        16.635       -.81259E-05   -.10025E-03
   4  norm          2.3815        4.2498       -.84123E-06   -.29650E-03
   5  Prefactor     1.6931        43.547       -.33025E-04   -.10667E-03
   6  Prefactor     3.0243        3.7033        .45618E-06    .75756E-04
   7  Prefactor     3.0577        2.9491        .70018E-06    .16048E-03
   8  Prefactor     9.6067        7.5357       -.88755E-06    .63057E-04
   9  norm          .10000E-03    11.721       -.45471E-06** at limit **
  10  norm          .10000E-03    1.3012       -.18335E-06** at limit **
  11  Prefactor     2.1842        5.9897       -.15042E-05   -.47842E-03
  12  Prefactor     .10000E-03    11.017       -.43776E-05** at limit **
  13  Prefactor     1.5655        2.2559       -.26770E-06   -.19856E-03
  14  norm          2.1318        1.0307       -.13847E-06    .33815E-03
  15  Prefactor     .10000E-03    12.195        .19621E-05** at limit **
  16  Prefactor     .10000E-03    4.2425       -.47732E-06** at limit **
  17  Prefactor     .10000E-03    6.5932        .75832E-06** at limit **
  18  norm          .10000E-03    1.1569       -.49820E-06** at limit **
  19  Prefactor     .10000E-03    2.6274       -.32998E-06** at limit **
  20  Prefactor     43.695        41.277       -.60589E-04    .49875E-06
  21  norm          .10000E-03    .32478       -.21030E-06** at limit **
  22  Prefactor     5.1550        4.2300       -.67572E-07    .62885E-04
  23  Prefactor     5.5838        12.296       -.37185E-05   -.63601E-04
  24  Normalizat    1.0998        .14331        .35848E-05    .41187E-03
  25  Prefactor     .46123        .14856        .33152E-05    .49076E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 21.3278
  Prefactor  = 3.03449
  norm       = 2.3815
  Prefactor  = 1.69315
  Prefactor  = 3.02431
  Prefactor  = 3.0577
  Prefactor  = 9.6067
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.18421
  Prefactor  = 0.0001
  Prefactor  = 1.56548
  norm       = 2.13184
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 43.6952
  norm       = 0.0001
  Prefactor  = 5.15496
  Prefactor  = 5.58377
  Normalizat = 1.09978
  Prefactor  = 0.461229
 **********
 **   18 **HESSE 
 **********

 FCN=   5594.449     FROM HESSE     STATUS=OK           431 CALLS     2927 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.328        17.612        .86723E-04   -1.4784    
   3  Prefactor     3.0345        16.717        .23281E-03   -1.5360    
   4  norm          2.3815        4.2268        .19943E-03   -1.5399    
   5  Prefactor     1.6931        43.954        .32228E-03   -1.5448    
   6  Prefactor     3.0243        3.6729        .15043E-03   -1.5360    
   7  Prefactor     3.0577        2.9585        .12300E-03   -1.5358    
   8  Prefactor     9.6067        7.5441        .12929E-03   -1.5088    
   9  norm          .10000E-03    11.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.3054        .83279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.1842        5.9676        .27843E-03   -1.5412    
  12  Prefactor     .10000E-03    11.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.5655        2.2299        .13045E-03   -1.5458    
  14  norm          2.1318        1.0306        .28237E-04   -1.5416    
  15  Prefactor     .10000E-03    12.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.2573        .15044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.6068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.7454        .15528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.6338        .11839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     43.695        41.209        .30309E-03   -1.4385    
  21  norm          .10000E-03    .49211        .82462E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.1550        4.2163        .13106E-03   -1.5254    
  23  Prefactor     5.5838        12.282        .16997E-03   -1.5235    
  24  Normalizat    1.0998        .16704        .17706E-03   -.89759    
  25  Prefactor     .46123        .17159        .28098E-03   -1.1379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06515e-09
Minuit parameter uncertainties:
  1  1.75183e-05
  2  17.6166
  3  14.2503
  4  4.22737
  5  17.2672
  6  3.67314
  7  2.95866
  8  7.54486
  9  2.86658e-06
  10  2.66742e-06
  11  5.9692
  12  2.46023e-05
  13  2.23002
  14  1.03056
  15  1.67352e-05
  16  6.51142e-06
  17  8.38688e-06
  18  9.95059e-05
  19  9.1157e-06
  20  41.2356
  21  1.37993e-05
  22  4.21654
  23  12.2873
  24  0.167116
  25  0.171785
Done.

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

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  9.607e+00  7.545e+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:  4.612e-01  1.718e-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.100e+00  1.671e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.86
Ra Dec: 29.216 -47.735
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 3.58e-08 +/- 2.81e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.28e-05

TS (Fixed Index): 2.86
Ra Dec: 29.216 -47.735
Photon Flux Upper Limit: 9.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/935164/likelihoodResults_524448001_524707201_4FGL_J0156.8-4744_daily_bin1100.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) = 5592.65356735
delta logL = 1.79554747336

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5592.63753996
delta logL = 1.81157486058

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .87851       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6963       1.0000          .0000       10.000    
     3 'Normalizat'    1.0176       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52193       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=   5592.638     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      260 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87840        5.8575        .72212E-02    .59735E-03
   2  Index         3.6965        1.9347        .67168E-01    .19740E-03
   3  Normalizat    1.0176        .45608E-01    .43734E-01    .66640E-05
   4  Prefactor     .52186        .47934E-01    .59921E-01    .29325E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.878397
  Index      = 3.69649
  Normalizat = 1.01759
  Prefactor  = 0.521861
 **********
 **   18 **HESSE 
 **********

 FCN=   5592.638     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      293 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87840        9.8397        .32273E-04   -1.5521    
   2  Index         3.6965        2.6903        .27464E-02   -.26375    
   3  Normalizat    1.0176        .16223        .18268E-03   -.92443    
   4  Prefactor     .52186        .17118        .26511E-03   -1.1098    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.57912e-10
Minuit parameter uncertainties:
  1  5.88074
  2  2.85365
  3  0.16231
  4  0.171354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935164': 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) = 5592.63753968
delta logL = 1.81157513865

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  8.784e-01  5.881e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  3.696e+00  2.854e+00  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:  5.219e-01  1.714e-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.018e+00  1.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.72
Ra Dec: 29.216 -47.735
Photon Index (Free Index): 3.70 +/- 2.85
Photon Flux (Free Index): 9.50e-08 +/- 4.96e-08
Energy Flux (Free Index): 1.51e-05 +/- 9.70e-06

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/935164/cmap_HighResolution_524448001_524707201_4FGL_J0156.8-4744_daily_bin1100.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.30e-03', comment='SUCCESS', photon_flux='3.58e-08', energy_flux2='1.51e-05', photon_flux_error='2.81e-08', dlogl='1.81e+00', energy_flux='1.63e-05', photon_flux2='9.50e-08', job_status='DONE', time_completed='2021-08-14 21:46:54.150354', photon_index_error2='2.85', photon_index2='3.70', ts='2.86', fit_tolerance='1e-08', GAL='0.46', photon_index_error='0.00', photon_flux_upper_limit='9.58e-08', energy_flux_error2='9.70e-06', EG='1.10', time_epoch_completed='1629002814.15', return_code='0', job_id='935164', GAL2='0.52', EG2='1.02', return_code2='102', energy_flux_error='1.28e-05', photon_flux_error2='4.96e-08', ts2='6.72', photon_index='2.19' WHERE bin_id='1100' AND source_name='4FGL J0156.8-4744' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:46:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 935164: <4FGL_J0156.8-4744_daily_bin1100> in cluster <slac> Done

Job <4FGL_J0156.8-4744_daily_bin1100> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Aug 14 21:30:25 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 21:31:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 21:31:14 2021
Terminated at Sat Aug 14 21:46:55 2021
Results reported at Sat Aug 14 21:46:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.8-4744_daily_bin1100 29.2165 -47.7352 524448001 524707201 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 :                                   906.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            990 sec.

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

