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


Performing analysis on: 4FGL_J0156.8-4744_daily_bin1256
RA = 29.2165, Dec = -47.7352
tmin = 564883201, tmax = 565142401
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='936764', job_status='RUN', time_executed='2021-08-14 21:37:20.861731', time_epoch_executed='1629002240.86' WHERE source_name='4FGL J0156.8-4744' and cadence='daily' and bin_id='1256'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936764

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936764/ft1_4FGL_J0156.8-4744_daily_bin1256.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936764/ft2_4FGL_J0156.8-4744_daily_bin1256.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936764/ft1_4FGL_J0156.8-4744_daily_bin1256.fits outfile=/scratch/kocevski/936764/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1256.fits ra=29.2165 dec=-47.7352 rad=12.0 tmin=564883201.0 tmax=565142401.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 3.57
user 3.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/936764/ft2_4FGL_J0156.8-4744_daily_bin1256.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/936764/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1256.fits evtable="EVENTS" outfile="/scratch/kocevski/936764/ft1_filtered_4FGL_J0156.8-4744_daily_bin1256.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936764/ft1_filtered_4FGL_J0156.8-4744_daily_bin1256.fits" evtable="EVENTS" scfile=/scratch/kocevski/936764/ft2_4FGL_J0156.8-4744_daily_bin1256.fits sctable="SC_DATA" outfile=/scratch/kocevski/936764/ltcube_564883201_565142401_4FGL_J0156.8-4744_daily_bin1256.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/936764/ft2_4FGL_J0156.8-4744_daily_bin1256.fits
.....................!
real 14.27
user 13.91
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936764/ft1_filtered_4FGL_J0156.8-4744_daily_bin1256.fits evtable="EVENTS" scfile=/scratch/kocevski/936764/ft2_4FGL_J0156.8-4744_daily_bin1256.fits sctable="SC_DATA" expcube=/scratch/kocevski/936764/ltcube_564883201_565142401_4FGL_J0156.8-4744_daily_bin1256.fits outfile=/scratch/kocevski/936764/expmap_564883201_565142401_4FGL_J0156.8-4744_daily_bin1256.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/936764/ltcube_564883201_565142401_4FGL_J0156.8-4744_daily_bin1256.fits
.....................!
real 191.24
user 185.76
sys 5.01

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/936764/ft1_filtered_4FGL_J0156.8-4744_daily_bin1256.fits scfile=/scratch/kocevski/936764/ft2_4FGL_J0156.8-4744_daily_bin1256.fits outfile=/scratch/kocevski/936764/cmap_564883201_565142401_4FGL_J0156.8-4744_daily_bin1256.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.51
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936764/ft1_filtered_4FGL_J0156.8-4744_daily_bin1256.fits scfile=/scratch/kocevski/936764/ft2_4FGL_J0156.8-4744_daily_bin1256.fits outfile=/scratch/kocevski/936764/cmap_HighResolution_564883201_565142401_4FGL_J0156.8-4744_daily_bin1256.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/936764/ft1_filtered_4FGL_J0156.8-4744_daily_bin1256.fits evtable="EVENTS" scfile=/scratch/kocevski/936764/ft2_4FGL_J0156.8-4744_daily_bin1256.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/936764/Model_4FGL_J0156.8-4744_daily_bin1256.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/936764/ft1_filtered_4FGL_J0156.8-4744_daily_bin1256.fits.....................!
real 95.40
user 93.85
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.952       1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.314       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9550       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9645       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8874       1.0000         .10000E-03   10000.    
    14 'norm      '    9.2653       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.3013       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.548       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95073       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79244       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=   4562.433     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2893 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    56.675       -.11339E-06** at limit **
   2  Prefactor     .10000E-03    12.859        .48977E-06** at limit **
   3  Prefactor     21.943        30.273       -.81824E-06   -.96170E-04
   4  norm          .10000E-03    9.5133       -.34515E-06** at limit **
   5  Prefactor     23.305        29.337       -.36990E-06   -.10527E-03
   6  Prefactor     .10000E-03    2.3517       -.79390E-07** at limit **
   7  Prefactor     .10000E-03    1.4473        .94377E-08** at limit **
   8  Prefactor     7.9537        7.7171        .18611E-05   -.11293E-03
   9  norm          .10000E-03    26.264        .45937E-06** at limit **
  10  norm          .10000E-03    3.7502       -.24118E-06** at limit **
  11  Prefactor     5.9636        8.9033        .87904E-07   -.25941E-05
  12  Prefactor     .10000E-03    23.801       -.29297E-06** at limit **
  13  Prefactor     7.8875        5.5883        .18886E-07   -.10002E-05
  14  norm          9.2652        2.3892       -.41515E-07    .57826E-06
  15  Prefactor     .10000E-03    17.479       -.33715E-06** at limit **
  16  Prefactor     .10000E-03    6.6781        .30293E-06** at limit **
  17  Prefactor     .10000E-03    6.4814       -.15499E-06** at limit **
  18  norm          8.3013        2.9884        .12731E-07   -.36793E-05
  19  Prefactor     .10000E-03    4.6362        .44541E-07** at limit **
  20  Prefactor     .10000E-03    16.554       -.14732E-06** at limit **
  21  norm          .10000E-03    .32882        .35922E-07** at limit **
  22  Prefactor     21.547        7.8812       -.39211E-08   -.13429E-05
  23  Prefactor     .10000E-03    10.118       -.18144E-07** at limit **
  24  Normalizat    .95096        .18542        .72038E-06   -.37586E-04
  25  Prefactor     .79219        .19859       -.11262E-05    .32393E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 21.9426
  norm       = 0.0001
  Prefactor  = 23.3045
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.95371
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 5.96357
  Prefactor  = 0.0001
  Prefactor  = 7.88753
  norm       = 9.26517
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.30129
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.5473
  Prefactor  = 0.0001
  Normalizat = 0.950959
  Prefactor  = 0.79219
 **********
 **   18 **HESSE 
 **********

 FCN=   4562.433     FROM HESSE     STATUS=OK           421 CALLS     3314 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    56.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.943        30.503        .85490E-04   -1.4771    
   4  norm          .10000E-03    9.7595        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.305        29.402        .82958E-04   -1.4742    
   6  Prefactor     .10000E-03    2.3657        .10110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.4482        .79361E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.9537        7.7587        .71080E-03   -1.5144    
   9  norm          .10000E-03    26.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.8744        .25605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.9636        8.8990        .16442E-03   -1.5220    
  12  Prefactor     .10000E-03    24.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.8875        5.5912        .12746E-03   -1.5146    
  14  norm          9.2652        2.3919        .49341E-04   -1.5099    
  15  Prefactor     .10000E-03    17.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.7351        .17049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.4907        .16798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.3013        2.9880        .67233E-04   -1.5132    
  19  Prefactor     .10000E-03    4.6482        .14202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .33822        .75586E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.547        7.8806        .86287E-04   -1.4779    
  23  Prefactor     .10000E-03    10.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .95096        .21780        .22139E-03   -.94692    
  25  Prefactor     .79219        .23098        .26401E-03   -1.0002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40311e-10
Minuit parameter uncertainties:
  1  0.000124221
  2  0.000167115
  3  30.5248
  4  4.09936e-05
  5  29.4199
  6  9.76276e-07
  7  8.02643e-08
  8  7.75968
  9  0.000231258
  10  2.43251e-05
  11  8.90097
  12  0.000101352
  13  5.59161
  14  2.39194
  15  0.000147446
  16  5.81227e-05
  17  4.77099e-05
  18  2.98806
  19  2.95592e-07
  20  6.78225e-05
  21  4.77186e-09
  22  7.88102
  23  1.89072e-05
  24  0.217999
  25  0.231262
Done.

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

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  7.954e+00  7.760e+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:  7.922e-01  2.313e-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:  9.510e-01  2.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.54
Ra Dec: 29.216 -47.735
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 2.96e-08 +/- 2.89e-08
Energy Flux (Fixed Index): 1.35e-05 +/- 1.32e-05

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

Saving results to:
/scratch/kocevski/936764/likelihoodResults_564883201_565142401_4FGL_J0156.8-4744_daily_bin1256.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) = 4562.40151938
delta logL = 0.0319426995484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4562.39869475
delta logL = 0.0347673259512

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.088       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0047       1.0000          .0000       10.000    
     3 'Normalizat'    .95517       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78852       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=   4562.399     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      272 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.084        12.639        .12616E-03    .68487E-04
   2  Index         2.0064        .70582        .74208E-02    .24743E-03
   3  Normalizat    .95551        .20780        .22093E-03    .10904E-03
   4  Prefactor     .78821        .22903        .26459E-03   -.22343E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0842
  Index      = 2.00638
  Normalizat = 0.955511
  Prefactor  = 0.788205
 **********
 **   18 **HESSE 
 **********

 FCN=   4562.399     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.084        12.149        .50463E-05   -1.5073    
   2  Index         2.0064        .67872        .14842E-02   -.64191    
   3  Normalizat    .95551        .20795        .88371E-05   -.94536    
   4  Prefactor     .78821        .22922        .10584E-04   -1.0016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08976e-10
Minuit parameter uncertainties:
  1  12.1518
  2  0.682007
  3  0.208124
  4  0.229501
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936764': 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) = 4562.3986888
delta logL = 0.0347732785613

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.008e+01  1.215e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.006e+00  6.820e-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:  7.882e-01  2.295e-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:  9.555e-01  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.61
Ra Dec: 29.216 -47.735
Photon Index (Free Index): 2.01 +/- 0.68
Photon Flux (Free Index): 2.65e-08 +/- 2.87e-08
Energy Flux (Free Index): 1.80e-05 +/- 2.73e-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/936764/cmap_HighResolution_564883201_565142401_4FGL_J0156.8-4744_daily_bin1256.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.44e-03', comment='SUCCESS', photon_flux='2.96e-08', energy_flux2='1.80e-05', photon_flux_error='2.89e-08', dlogl='3.48e-02', energy_flux='1.35e-05', photon_flux2='2.65e-08', job_status='DONE', time_completed='2021-08-14 21:48:54.386836', photon_index_error2='0.68', photon_index2='2.01', ts='1.54', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='9.77e-08', energy_flux_error2='2.73e-05', EG='0.95', time_epoch_completed='1629002934.39', return_code='0', job_id='936764', GAL2='0.79', EG2='0.96', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='2.87e-08', ts2='1.61', photon_index='2.19' WHERE bin_id='1256' AND source_name='4FGL J0156.8-4744' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:48:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 936764: <4FGL_J0156.8-4744_daily_bin1256> in cluster <slac> Done

Job <4FGL_J0156.8-4744_daily_bin1256> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 14 21:35:42 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 21:36:24 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:36:24 2021
Terminated at Sat Aug 14 21:48:55 2021
Results reported at Sat Aug 14 21:48:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.8-4744_daily_bin1256 29.2165 -47.7352 564883201 565142401 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 :                                   689.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            793 sec.

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

