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


Performing analysis on: 4FGL_J0156.8-4744_daily_bin1112
RA = 29.2165, Dec = -47.7352
tmin = 527558401, tmax = 527817601
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='936518', job_status='RUN', time_executed='2021-08-14 21:36:25.549859', time_epoch_executed='1629002185.55' WHERE source_name='4FGL J0156.8-4744' and cadence='daily' and bin_id='1112'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936518

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936518/ft1_4FGL_J0156.8-4744_daily_bin1112.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936518/ft2_4FGL_J0156.8-4744_daily_bin1112.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936518/ft1_4FGL_J0156.8-4744_daily_bin1112.fits outfile=/scratch/kocevski/936518/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1112.fits ra=29.2165 dec=-47.7352 rad=12.0 tmin=527558401.0 tmax=527817601.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 6.25
user 3.37
sys 2.83

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936518/ft1_filtered_4FGL_J0156.8-4744_daily_bin1112.fits" evtable="EVENTS" scfile=/scratch/kocevski/936518/ft2_4FGL_J0156.8-4744_daily_bin1112.fits sctable="SC_DATA" outfile=/scratch/kocevski/936518/ltcube_527558401_527817601_4FGL_J0156.8-4744_daily_bin1112.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/936518/ft2_4FGL_J0156.8-4744_daily_bin1112.fits
.....................!
real 16.82
user 13.56
sys 3.21

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936518/ft1_filtered_4FGL_J0156.8-4744_daily_bin1112.fits evtable="EVENTS" scfile=/scratch/kocevski/936518/ft2_4FGL_J0156.8-4744_daily_bin1112.fits sctable="SC_DATA" expcube=/scratch/kocevski/936518/ltcube_527558401_527817601_4FGL_J0156.8-4744_daily_bin1112.fits outfile=/scratch/kocevski/936518/expmap_527558401_527817601_4FGL_J0156.8-4744_daily_bin1112.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/936518/ltcube_527558401_527817601_4FGL_J0156.8-4744_daily_bin1112.fits
.....................!
real 195.06
user 186.54
sys 8.05

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/936518/ft1_filtered_4FGL_J0156.8-4744_daily_bin1112.fits scfile=/scratch/kocevski/936518/ft2_4FGL_J0156.8-4744_daily_bin1112.fits outfile=/scratch/kocevski/936518/cmap_527558401_527817601_4FGL_J0156.8-4744_daily_bin1112.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 3.11
user 0.39
sys 2.67

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936518/ft1_filtered_4FGL_J0156.8-4744_daily_bin1112.fits scfile=/scratch/kocevski/936518/ft2_4FGL_J0156.8-4744_daily_bin1112.fits outfile=/scratch/kocevski/936518/cmap_HighResolution_527558401_527817601_4FGL_J0156.8-4744_daily_bin1112.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 3.14
user 0.39
sys 2.68

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/936518/ft1_filtered_4FGL_J0156.8-4744_daily_bin1112.fits evtable="EVENTS" scfile=/scratch/kocevski/936518/ft2_4FGL_J0156.8-4744_daily_bin1112.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/936518/Model_4FGL_J0156.8-4744_daily_bin1112.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/936518/ft1_filtered_4FGL_J0156.8-4744_daily_bin1112.fits.....................!
real 89.52
user 84.54
sys 4.67

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    78.798       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8102       1.0000         .10000E-03   10000.    
     4 'norm      '    5.2270       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18254E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.953       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.5977       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .14830E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.420       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8604       1.0000         .10000E-03   10000.    
    14 'norm      '    4.8342       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.355       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11585E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.4646       1.0000         .10000E-03   10000.    
    20 'Prefactor '    37.544       1.0000         .10000E-03   10000.    
    21 'norm      '    2.3425       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.9089       1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.974       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1220       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .68869       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=   4270.479     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2873 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     78.792        94.053       -.39127E-06   -.80890E-05
   2  Prefactor     .10000E-03    11.778       -.15822E-06** at limit **
   3  Prefactor     2.7529        36.493       -.91849E-05   -.16780E-03
   4  norm          5.2319        11.449        .51563E-06    .33634E-04
   5  Prefactor     .10000E-03    14.880        .10425E-05** at limit **
   6  Prefactor     .10007E-03    4.3358        .62324E-06** at limit **
   7  Prefactor     11.953        7.2029        .65957E-07   -.24637E-05
   8  Prefactor     9.5993        9.7880       -.16870E-07    .68455E-05
   9  norm          .10000E-03    33.071        .14618E-05** at limit **
  10  norm          .10000E-03    4.8789        .23382E-06** at limit **
  11  Prefactor     .10000E-03    4.4162        .57879E-07** at limit **
  12  Prefactor     16.421        27.736        .13151E-06    .14798E-04
  13  Prefactor     4.8595        6.5970        .19065E-06   -.63572E-04
  14  norm          4.8340        2.0785       -.81301E-07   -.17455E-04
  15  Prefactor     .10000E-03    33.992        .14065E-05** at limit **
  16  Prefactor     12.347        19.793       -.23274E-05   -.34787E-04
  17  Prefactor     .10000E-03    20.803       -.23169E-05** at limit **
  18  norm          .10000E-03    .52907        .34032E-07** at limit **
  19  Prefactor     4.4660        10.481        .65965E-05   -.23772E-03
  20  Prefactor     37.541        43.927       -.23041E-06   -.13000E-04
  21  norm          2.3426        1.2175       -.17226E-06   -.69527E-04
  22  Prefactor     7.9085        6.9669        .10751E-06    .53241E-05
  23  Prefactor     26.972        20.491       -.27615E-06   -.27234E-04
  24  Normalizat    1.1220        .20289        .10193E-05   -.11408E-03
  25  Prefactor     .68867        .20767       -.19533E-05    .10334E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 78.7921
  Prefactor  = 0.0001
  Prefactor  = 2.75289
  norm       = 5.23191
  Prefactor  = 0.0001
  Prefactor  = 0.000100069
  Prefactor  = 11.953
  Prefactor  = 9.59929
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4211
  Prefactor  = 4.85951
  norm       = 4.83404
  Prefactor  = 0.0001
  Prefactor  = 12.3475
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.46605
  Prefactor  = 37.5414
  norm       = 2.34258
  Prefactor  = 7.90851
  Prefactor  = 26.9717
  Normalizat = 1.12203
  Prefactor  = 0.68867
 **********
 **   18 **HESSE 
 **********

 FCN=   4270.479     FROM HESSE     STATUS=OK           429 CALLS     3302 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     78.792        94.136        .45241E-04   -1.3930    
   2  Prefactor     .10000E-03    11.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.7529        40.589        .24265E-03   -1.5376    
   4  norm          5.2319        11.428        .17582E-03   -1.5250    
   5  Prefactor     .10000E-03    14.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10007E-03    41.751        .25978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.953        7.2034        .11587E-03   -1.5016    
   8  Prefactor     9.5993        9.7724        .12935E-03   -1.5088    
   9  norm          .10000E-03    33.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.8916        .13963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.4225        .13412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.421        27.540        .98841E-04   -1.4897    
  13  Prefactor     4.8595        6.6044        .17630E-03   -1.5267    
  14  norm          4.8340        2.0812        .55340E-04   -1.5268    
  15  Prefactor     .10000E-03    34.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.347        19.718        .11396E-03   -1.5005    
  17  Prefactor     .10000E-03    20.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .53103        .46409E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.4660        10.769        .95283E-03   -1.5285    
  20  Prefactor     37.541        43.935        .65411E-04   -1.4482    
  21  norm          2.3426        1.2173        .49336E-04   -1.5402    
  22  Prefactor     7.9085        6.9566        .14258E-03   -1.5145    
  23  Prefactor     26.972        20.486        .77135E-04   -1.4669    
  24  Normalizat    1.1220        .23297        .21814E-03   -.89048    
  25  Prefactor     .68867        .23722        .28710E-03   -1.0397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29441e-09
Minuit parameter uncertainties:
  1  94.3146
  2  1.94142e-05
  3  21.1581
  4  11.4324
  5  9.21979e-05
  6  0.00338795
  7  7.20388
  8  9.77402
  9  0.000230519
  10  2.29903e-06
  11  1.28756e-06
  12  27.5613
  13  6.60542
  14  2.08125
  15  0.000196292
  16  19.7288
  17  0.000196026
  18  1.7617e-07
  19  10.7733
  20  43.9733
  21  1.21728
  22  6.95728
  23  20.4915
  24  0.233185
  25  0.237564
Done.

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

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  9.599e+00  9.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:  6.887e-01  2.376e-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.122e+00  2.332e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

TS (Fixed Index): 1.66
Ra Dec: 29.216 -47.735
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/936518/likelihoodResults_527558401_527817601_4FGL_J0156.8-4744_daily_bin1112.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) = 4270.14449372
delta logL = 0.334620018685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4270.13480391
delta logL = 0.344309830806

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1224       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0057       1.0000          .0000       10.000    
     3 'Normalizat'    1.0822       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71778       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=   4270.135     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      250 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1140        50.933        .57362E-02    .17149E-03
   2  Index         3.0069        2.8651        .11385        .93889E-04
   3  Normalizat    1.0822        .63744E-01    .38773E-01   -.22766E-04
   4  Prefactor     .71787        .63988E-01    .63650E-01   -.95770E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.11399
  Index      = 3.00686
  Normalizat = 1.08221
  Prefactor  = 0.717869
 **********
 **   18 **HESSE 
 **********

 FCN=   4270.135     FROM HESSE     STATUS=OK            33 CALLS      283 TOTAL
                     EDM=   .90E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1140        33.264        .86026E-04   -1.5355    
   2  Index         3.0069        2.9168        .40569E-02   -.41002    
   3  Normalizat    1.0822        .24509        .22128E-03   -.90325    
   4  Prefactor     .71787        .25370        .28158E-03   -1.0283    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.02782e-08
Minuit parameter uncertainties:
  1  20.3695
  2  3.16129
  3  0.245347
  4  0.25411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936518': 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) = 4270.13480312
delta logL = 0.34431061734

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  3.114e+00  2.037e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  3.007e+00  3.161e+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:  7.179e-01  2.541e-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.082e+00  2.453e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.37
Ra Dec: 29.216 -47.735
Photon Index (Free Index): 3.01 +/- 3.16
Photon Flux (Free Index): 6.64e-08 +/- 7.06e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.50e-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/936518/cmap_HighResolution_527558401_527817601_4FGL_J0156.8-4744_daily_bin1112.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.09e-03', comment='SUCCESS', photon_flux='3.58e-08', energy_flux2='1.32e-05', photon_flux_error='3.64e-08', dlogl='3.44e-01', energy_flux='1.63e-05', photon_flux2='6.64e-08', job_status='DONE', time_completed='2021-08-14 21:47:57.050164', photon_index_error2='3.16', photon_index2='3.01', ts='1.66', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='1.50e-05', EG='1.12', time_epoch_completed='1629002877.05', return_code='0', job_id='936518', GAL2='0.72', EG2='1.08', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='7.06e-08', ts2='2.37', photon_index='2.19' WHERE bin_id='1112' AND source_name='4FGL J0156.8-4744' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:47:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 936518: <4FGL_J0156.8-4744_daily_bin1112> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.8-4744_daily_bin1112 29.2165 -47.7352 527558401 527817601 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 :                                   730.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            753 sec.

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

