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


Performing analysis on: 4FGL_J0156.8-4744_daily_bin1245
RA = 29.2165, Dec = -47.7352
tmin = 562032001, tmax = 562291201
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='936747', job_status='RUN', time_executed='2021-08-14 21:37:41.999729', time_epoch_executed='1629002262.0' WHERE source_name='4FGL J0156.8-4744' and cadence='daily' and bin_id='1245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936747

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936747/ft1_4FGL_J0156.8-4744_daily_bin1245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936747/ft2_4FGL_J0156.8-4744_daily_bin1245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936747/ft1_4FGL_J0156.8-4744_daily_bin1245.fits outfile=/scratch/kocevski/936747/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1245.fits ra=29.2165 dec=-47.7352 rad=12.0 tmin=562032001.0 tmax=562291201.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 5.72
user 3.33
sys 2.35

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936747/ft1_filtered_4FGL_J0156.8-4744_daily_bin1245.fits" evtable="EVENTS" scfile=/scratch/kocevski/936747/ft2_4FGL_J0156.8-4744_daily_bin1245.fits sctable="SC_DATA" outfile=/scratch/kocevski/936747/ltcube_562032001_562291201_4FGL_J0156.8-4744_daily_bin1245.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/936747/ft2_4FGL_J0156.8-4744_daily_bin1245.fits
.....................!
real 15.41
user 12.70
sys 2.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936747/ft1_filtered_4FGL_J0156.8-4744_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/936747/ft2_4FGL_J0156.8-4744_daily_bin1245.fits sctable="SC_DATA" expcube=/scratch/kocevski/936747/ltcube_562032001_562291201_4FGL_J0156.8-4744_daily_bin1245.fits outfile=/scratch/kocevski/936747/expmap_562032001_562291201_4FGL_J0156.8-4744_daily_bin1245.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/936747/ltcube_562032001_562291201_4FGL_J0156.8-4744_daily_bin1245.fits
.....................!
real 194.74
user 186.34
sys 7.96

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/936747/ft1_filtered_4FGL_J0156.8-4744_daily_bin1245.fits scfile=/scratch/kocevski/936747/ft2_4FGL_J0156.8-4744_daily_bin1245.fits outfile=/scratch/kocevski/936747/cmap_562032001_562291201_4FGL_J0156.8-4744_daily_bin1245.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 2.55
user 0.36
sys 2.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936747/ft1_filtered_4FGL_J0156.8-4744_daily_bin1245.fits scfile=/scratch/kocevski/936747/ft2_4FGL_J0156.8-4744_daily_bin1245.fits outfile=/scratch/kocevski/936747/cmap_HighResolution_562032001_562291201_4FGL_J0156.8-4744_daily_bin1245.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 2.65
user 0.38
sys 2.22

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/936747/ft1_filtered_4FGL_J0156.8-4744_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/936747/ft2_4FGL_J0156.8-4744_daily_bin1245.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/936747/Model_4FGL_J0156.8-4744_daily_bin1245.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/936747/ft1_filtered_4FGL_J0156.8-4744_daily_bin1245.fits.....................!
real 103.60
user 99.30
sys 3.99

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    96.109       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1636       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5560       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5263       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.5609       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.738       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.803       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    18.611       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2409       1.0000         .10000E-03   10000.    
    18 'norm      '    14.151       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10572E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .62483       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.2125       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .66049       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1587       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=   5048.629     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2826 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     96.115        73.508        .50582E-05    .76738E-05
   2  Prefactor     .10000E-03    8.8698       -.11018E-05** at limit **
   3  Prefactor     .10000E-03    20.738       -.36391E-06** at limit **
   4  norm          .10000E-03    8.6631       -.10655E-05** at limit **
   5  Prefactor     1.1619        55.134       -.77497E-05   -.18013E-03
   6  Prefactor     .10000E-03    2.0333       -.23337E-07** at limit **
   7  Prefactor     2.5559        3.2968       -.18891E-05   -.12088E-03
   8  Prefactor     6.5267        7.2960        .10516E-05    .82891E-04
   9  norm          .10000E-03    20.696       -.60828E-06** at limit **
  10  norm          3.5643        6.1418        .69713E-05    .74093E-04
  11  Prefactor     14.739        11.131        .27237E-06    .54094E-04
  12  Prefactor     18.765        40.260       -.65308E-04   -.44418E-04
  13  Prefactor     .10000E-03    2.3805       -.42286E-06** at limit **
  14  norm          18.610        2.9914        .15053E-06   -.16434E-03
  15  Prefactor     .10000E-03    31.413       -.43755E-05** at limit **
  16  Prefactor     .10000E-03    9.8249        .22143E-05** at limit **
  17  Prefactor     2.2381        29.522       -.49308E-06   -.10543E-03
  18  norm          14.150        3.7138       -.40123E-06   -.31010E-04
  19  Prefactor     .10000E-03    25.551        .74962E-05** at limit **
  20  Prefactor     .10000E-03    15.312       -.31264E-05** at limit **
  21  norm          .62420        .92449       -.16397E-06   -.53889E-03
  22  Prefactor     3.2123        5.4026        .30015E-06   -.41670E-03
  23  Prefactor     .10000E-03    9.6635        .10048E-05** at limit **
  24  Normalizat    .66011        .18448        .10918E-04   -.29000E-03
  25  Prefactor     1.1591        .20250       -.25475E-05    .31146E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 96.1146
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.16194
  Prefactor  = 0.0001
  Prefactor  = 2.55589
  Prefactor  = 6.52673
  norm       = 0.0001
  norm       = 3.56433
  Prefactor  = 14.7394
  Prefactor  = 18.765
  Prefactor  = 0.0001
  norm       = 18.6105
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.2381
  norm       = 14.1505
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.624198
  Prefactor  = 3.21234
  Prefactor  = 0.0001
  Normalizat = 0.660106
  Prefactor  = 1.15912
 **********
 **   18 **HESSE 
 **********

 FCN=   5048.629     FROM HESSE     STATUS=OK           421 CALLS     3247 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     96.115        73.508        .41000E-04   -1.3744    
   2  Prefactor     .10000E-03    8.8785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    8.8469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.1619        57.040        .42662E-03   -1.5492    
   6  Prefactor     .10000E-03    2.0520        .98911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5559        3.2897        .14295E-03   -1.5388    
   8  Prefactor     6.5267        7.2782        .15709E-03   -1.5197    
   9  norm          .10000E-03    20.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.5643        6.0836        .18928E-03   -1.5330    
  11  Prefactor     14.739        11.135        .10433E-03   -1.4940    
  12  Prefactor     18.765        40.135        .92366E-04   -1.4841    
  13  Prefactor     .10000E-03    2.3874        .10702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          18.610        2.9905        .46768E-04   -1.4845    
  15  Prefactor     .10000E-03    31.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.8498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.2381        29.467        .27455E-03   -1.5409    
  18  norm          14.150        3.7134        .67190E-04   -1.4955    
  19  Prefactor     .10000E-03    26.649        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .62420        .92352        .47081E-04   -1.5550    
  22  Prefactor     3.2123        5.3874        .20636E-03   -1.5349    
  23  Prefactor     .10000E-03    9.7380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .66011        .21944        .27709E-03   -1.0549    
  25  Prefactor     1.1591        .24358        .24414E-03   -.87599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27085e-09
Minuit parameter uncertainties:
  1  73.5774
  2  1.44655e-05
  3  4.59535e-05
  4  6.2076e-05
  5  16.2979
  6  7.36909e-06
  7  3.28993
  8  7.27923
  9  4.93287e-06
  10  6.08461
  11  11.1364
  12  40.1923
  13  4.98401e-06
  14  2.99048
  15  3.00931e-05
  16  8.68486e-05
  17  16.2515
  18  3.71349
  19  5.50083e-05
  20  7.34489e-06
  21  0.923539
  22  5.38824
  23  3.92399e-05
  24  0.219733
  25  0.243812
Done.

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

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  6.527e+00  7.279e+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:  1.159e+00  2.438e-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:  6.601e-01  2.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.94
Ra Dec: 29.216 -47.735
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 2.43e-08 +/- 2.71e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 1.23e-05

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

Saving results to:
/scratch/kocevski/936747/likelihoodResults_562032001_562291201_4FGL_J0156.8-4744_daily_bin1245.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) = 5048.61186818
delta logL = 0.0172204203891

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5048.59943361
delta logL = 0.0296549954801

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1974       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4295       1.0000          .0000       10.000    
     3 'Normalizat'    .65302       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1636       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=   5048.599     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      257 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1969        9.1451        .16088E-03   -.12649E-04
   2  Index         2.4299        1.1196        .78020E-02    .31208E-03
   3  Normalizat    .65280        .21323        .27842E-03   -.16742E-03
   4  Prefactor     1.1639        .24132        .24366E-03   -.24086E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.19687
  Index      = 2.42992
  Normalizat = 0.652803
  Prefactor  = 1.16385
 **********
 **   18 **HESSE 
 **********

 FCN=   5048.599     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1969        8.2201        .64351E-05   -1.5252    
   2  Index         2.4299        1.0078        .15604E-02   -.53986    
   3  Normalizat    .65280        .21273        .11137E-04   -1.0579    
   4  Prefactor     1.1639        .24117        .48732E-04   -.87451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.41853e-11
Minuit parameter uncertainties:
  1  8.22188
  2  1.01734
  3  0.213003
  4  0.2414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936747': 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) = 5048.599433
delta logL = 0.0296556039975

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  5.197e+00  8.222e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.430e+00  1.017e+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:  1.164e+00  2.414e-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:  6.528e-01  2.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.01
Ra Dec: 29.216 -47.735
Photon Index (Free Index): 2.43 +/- 1.02
Photon Flux (Free Index): 3.13e-08 +/- 4.30e-08
Energy Flux (Free Index): 9.85e-06 +/- 1.07e-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/936747/cmap_HighResolution_562032001_562291201_4FGL_J0156.8-4744_daily_bin1245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.33e-03', comment='SUCCESS', photon_flux='2.43e-08', energy_flux2='9.85e-06', photon_flux_error='2.71e-08', dlogl='2.97e-02', energy_flux='1.11e-05', photon_flux2='3.13e-08', job_status='DONE', time_completed='2021-08-14 21:50:15.762525', photon_index_error2='1.02', photon_index2='2.43', ts='1.94', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='9.63e-08', energy_flux_error2='1.07e-05', EG='0.66', time_epoch_completed='1629003015.76', return_code='0', job_id='936747', GAL2='1.16', EG2='0.65', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='4.30e-08', ts2='2.01', photon_index='2.19' WHERE bin_id='1245' AND source_name='4FGL J0156.8-4744' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:50:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 936747: <4FGL_J0156.8-4744_daily_bin1245> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.8-4744_daily_bin1245 29.2165 -47.7352 562032001 562291201 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 :                                   778.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            875 sec.

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

