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


Performing analysis on: 4FGL_J0156.8-4744_daily_bin1323
RA = 29.2165, Dec = -47.7352
tmin = 582249601, tmax = 582508801
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='937945', job_status='RUN', time_executed='2021-08-14 21:42:48.147469', time_epoch_executed='1629002568.15' WHERE source_name='4FGL J0156.8-4744' and cadence='daily' and bin_id='1323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937945

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937945/ft1_4FGL_J0156.8-4744_daily_bin1323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937945/ft2_4FGL_J0156.8-4744_daily_bin1323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937945/ft1_4FGL_J0156.8-4744_daily_bin1323.fits outfile=/scratch/kocevski/937945/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1323.fits ra=29.2165 dec=-47.7352 rad=12.0 tmin=582249601.0 tmax=582508801.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.02
user 5.12
sys 4.82

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/937945/ft2_4FGL_J0156.8-4744_daily_bin1323.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/937945/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1323.fits evtable="EVENTS" outfile="/scratch/kocevski/937945/ft1_filtered_4FGL_J0156.8-4744_daily_bin1323.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 5.13
user 0.33
sys 4.76

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/937945/ft1_filtered_4FGL_J0156.8-4744_daily_bin1323.fits" evtable="EVENTS" scfile=/scratch/kocevski/937945/ft2_4FGL_J0156.8-4744_daily_bin1323.fits sctable="SC_DATA" outfile=/scratch/kocevski/937945/ltcube_582249601_582508801_4FGL_J0156.8-4744_daily_bin1323.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/937945/ft2_4FGL_J0156.8-4744_daily_bin1323.fits
.....................!
real 17.96
user 12.88
sys 4.99

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937945/ft1_filtered_4FGL_J0156.8-4744_daily_bin1323.fits evtable="EVENTS" scfile=/scratch/kocevski/937945/ft2_4FGL_J0156.8-4744_daily_bin1323.fits sctable="SC_DATA" expcube=/scratch/kocevski/937945/ltcube_582249601_582508801_4FGL_J0156.8-4744_daily_bin1323.fits outfile=/scratch/kocevski/937945/expmap_582249601_582508801_4FGL_J0156.8-4744_daily_bin1323.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/937945/ltcube_582249601_582508801_4FGL_J0156.8-4744_daily_bin1323.fits
.....................!
real 198.80
user 186.74
sys 11.51

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/937945/ft1_filtered_4FGL_J0156.8-4744_daily_bin1323.fits scfile=/scratch/kocevski/937945/ft2_4FGL_J0156.8-4744_daily_bin1323.fits outfile=/scratch/kocevski/937945/cmap_582249601_582508801_4FGL_J0156.8-4744_daily_bin1323.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 5.08
user 0.38
sys 4.64

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937945/ft1_filtered_4FGL_J0156.8-4744_daily_bin1323.fits scfile=/scratch/kocevski/937945/ft2_4FGL_J0156.8-4744_daily_bin1323.fits outfile=/scratch/kocevski/937945/cmap_HighResolution_582249601_582508801_4FGL_J0156.8-4744_daily_bin1323.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 4.63
user 0.39
sys 4.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/937945/ft1_filtered_4FGL_J0156.8-4744_daily_bin1323.fits evtable="EVENTS" scfile=/scratch/kocevski/937945/ft2_4FGL_J0156.8-4744_daily_bin1323.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/937945/Model_4FGL_J0156.8-4744_daily_bin1323.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/937945/ft1_filtered_4FGL_J0156.8-4744_daily_bin1323.fits.....................!
real 115.59
user 108.08
sys 7.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-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      '    14.424       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .54311       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1138       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .58975       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.234       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.5136       1.0000         .10000E-03   10000.    
    14 'norm      '    16.259       1.0000         .10000E-03   10000.    
    15 'Prefactor '    54.786       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5362       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.1425       1.0000         .10000E-03   10000.    
    18 'norm      '    1.9278       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.608       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .37385       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.1556       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0617       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0512       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=   5649.815     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2904 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    54.038       -.37162E-05** at limit **
   2  Prefactor     .10000E-03    26.055       -.17289E-05** at limit **
   3  Prefactor     .10000E-03    27.040       -.12828E-05** at limit **
   4  norm          14.424        11.504        .10733E-06   -.19028E-04
   5  Prefactor     .10000E-03    44.977        .30535E-05** at limit **
   6  Prefactor     .54253        3.7535        .33279E-06   -.24011E-03
   7  Prefactor     1.1090        3.2222        .10136E-05    .11176E-03
   8  Prefactor     .10000E-03    4.5488       -.12208E-06** at limit **
   9  norm          .10000E-03    20.103        .66152E-06** at limit **
  10  norm          .59032        5.5219        .24539E-05   -.22411E-03
  11  Prefactor     10.234        13.341        .12956E-05   -.16730E-03
  12  Prefactor     .10000E-03    9.6447       -.90698E-07** at limit **
  13  Prefactor     8.5139        6.6663        .26907E-06   -.11337E-03
  14  norm          16.259        3.0371       -.20758E-07   -.18685E-03
  15  Prefactor     54.796        56.166        .15604E-05    .62123E-04
  16  Prefactor     3.5310        33.308       -.16594E-06   -.53808E-04
  17  Prefactor     9.1476        22.725        .32729E-06    .25670E-04
  18  norm          1.9279        1.8471        .36801E-07   -.78344E-04
  19  Prefactor     27.610        14.366       -.63561E-07   -.67051E-04
  20  Prefactor     .10000E-03    29.481        .19492E-06** at limit **
  21  norm          .37352        .86052        .28326E-06   -.16261E-03
  22  Prefactor     5.1546        5.0366        .28472E-06   -.12210E-04
  23  Prefactor     .10000E-03    31.998        .28844E-05** at limit **
  24  Normalizat    1.0618        .19997       -.51681E-06   -.13609E-03
  25  Prefactor     1.0510        .21166       -.64339E-06   -.94128E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.4238
  Prefactor  = 0.000100002
  Prefactor  = 0.542529
  Prefactor  = 1.10896
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.59032
  Prefactor  = 10.2339
  Prefactor  = 0.0001
  Prefactor  = 8.51387
  norm       = 16.2586
  Prefactor  = 54.7962
  Prefactor  = 3.53104
  Prefactor  = 9.14764
  norm       = 1.92786
  Prefactor  = 27.6096
  Prefactor  = 0.0001
  norm       = 0.373521
  Prefactor  = 5.15462
  Prefactor  = 0.000100001
  Normalizat = 1.06183
  Prefactor  = 1.05102
 **********
 **   18 **HESSE 
 **********

 FCN=   5649.815     FROM HESSE     STATUS=OK           435 CALLS     3339 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          14.424        11.514        .10546E-03   -1.4948    
   5  Prefactor     .10000E-03    46.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .54253        19.242        .27563E-02   -1.5561    
   7  Prefactor     1.1090        2.9560        .23259E-02   -1.5497    
   8  Prefactor     .10000E-03    4.5913        .15654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    20.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .59032        5.7299        .34350E-03   -1.5554    
  11  Prefactor     10.234        13.400        .62624E-03   -1.5068    
  12  Prefactor     .10000E-03    9.6505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.5139        6.6745        .68693E-03   -1.5124    
  14  norm          16.259        3.0433        .51568E-04   -1.4901    
  15  Prefactor     54.796        56.436        .54192E-04   -1.4226    
  16  Prefactor     3.5310        32.323        .21496E-03   -1.5332    
  17  Prefactor     9.1476        22.374        .13255E-03   -1.5103    
  18  norm          1.9279        1.8453        .96050E-04   -1.5430    
  19  Prefactor     27.610        14.273        .76245E-04   -1.4657    
  20  Prefactor     .10000E-03    29.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .37352        .83433        .10067E-03   -1.5586    
  22  Prefactor     5.1546        5.0254        .16100E-03   -1.5254    
  23  Prefactor     .10000E-03    33.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0618        .24848        .25941E-03   -.90987    
  25  Prefactor     1.0510        .26066        .28135E-03   -.91048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.53102e-10
Minuit parameter uncertainties:
  1  0.00075796
  2  0.000216663
  3  0.000164479
  4  11.5162
  5  0.000559123
  6  6.46363
  7  2.95635
  8  9.01932e-06
  9  8.436e-05
  10  3.67844
  11  13.4039
  12  7.83357e-06
  13  6.67504
  14  3.04328
  15  56.491
  16  21.3818
  17  22.394
  18  1.84535
  19  14.2747
  20  3.47561e-05
  21  0.834351
  22  5.02584
  23  0.000355545
  24  0.248752
  25  0.260972
Done.

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

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  9.019e-06  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:  1.051e+00  2.610e-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.062e+00  2.488e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/937945/likelihoodResults_582249601_582508801_4FGL_J0156.8-4744_daily_bin1323.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) = 5649.81641434
delta logL = -0.00103548025436

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5649.8153788
delta logL = 5.32572812517e-08

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5649.815     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      246 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10056E-03    39.134        .15827E-02** at limit **
   2  Index         2.1403        8.3798        .50000        .25059E-04
   3  Normalizat    1.0618        .14014E-01    .25941E-03    .32781E-04
   4  Prefactor     1.0510        .15200E-01    .28135E-03    .19557E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100564
  Index      = 2.14029
  Normalizat = 1.06183
  Prefactor  = 1.05102
 **********
 **   18 **HESSE 
 **********

 FCN=   5649.815     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10056E-03    174.05        .31654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1403        7.4873        .50000       -.60887    
   3  Normalizat    1.0618        .30593E-01    .10377E-04   -.90987    
   4  Prefactor     1.0510        .33180E-01    .11254E-04   -.91048    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.71616e-08
Minuit parameter uncertainties:
  1  0.0198689
  2  356.495
  3  0.0305931
  4  0.0331806
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937945': 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) = 5649.81537856
delta logL = 2.9472175811e-07

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.006e-04  1.987e-02  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.140e+00  3.565e+02  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:  1.051e+00  3.318e-02  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.062e+00  3.059e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 29.216 -47.735

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/937945/cmap_HighResolution_582249601_582508801_4FGL_J0156.8-4744_daily_bin1323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.69e-03', job_status='DONE', photon_flux_upper_limit='6.16e-08', time_completed='2021-08-14 21:56:52.760854', job_id='937945', GAL2='1.05', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1629003412.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.95e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1323' AND source_name='4FGL J0156.8-4744' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:56:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0136>
Subject: Job 937945: <4FGL_J0156.8-4744_daily_bin1323> in cluster <slac> Done

Job <4FGL_J0156.8-4744_daily_bin1323> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 14 21:40:17 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 21:40:21 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:40:21 2021
Terminated at Sat Aug 14 21:56:54 2021
Results reported at Sat Aug 14 21:56:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.8-4744_daily_bin1323 29.2165 -47.7352 582249601 582508801 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 :                                   907.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            997 sec.

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

