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


Performing analysis on: 4FGL_J0156.8-4744_daily_bin1260
RA = 29.2165, Dec = -47.7352
tmin = 565920001, tmax = 566179201
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='936771', job_status='RUN', time_executed='2021-08-14 21:37:29.788261', time_epoch_executed='1629002249.79' WHERE source_name='4FGL J0156.8-4744' and cadence='daily' and bin_id='1260'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936771

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936771/ft1_4FGL_J0156.8-4744_daily_bin1260.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936771/ft2_4FGL_J0156.8-4744_daily_bin1260.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936771/ft1_4FGL_J0156.8-4744_daily_bin1260.fits outfile=/scratch/kocevski/936771/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1260.fits ra=29.2165 dec=-47.7352 rad=12.0 tmin=565920001.0 tmax=566179201.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.61
user 3.40
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/936771/ft2_4FGL_J0156.8-4744_daily_bin1260.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/936771/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1260.fits evtable="EVENTS" outfile="/scratch/kocevski/936771/ft1_filtered_4FGL_J0156.8-4744_daily_bin1260.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/936771/ft1_filtered_4FGL_J0156.8-4744_daily_bin1260.fits" evtable="EVENTS" scfile=/scratch/kocevski/936771/ft2_4FGL_J0156.8-4744_daily_bin1260.fits sctable="SC_DATA" outfile=/scratch/kocevski/936771/ltcube_565920001_566179201_4FGL_J0156.8-4744_daily_bin1260.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/936771/ft2_4FGL_J0156.8-4744_daily_bin1260.fits
.....................!
real 13.56
user 13.12
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936771/ft1_filtered_4FGL_J0156.8-4744_daily_bin1260.fits evtable="EVENTS" scfile=/scratch/kocevski/936771/ft2_4FGL_J0156.8-4744_daily_bin1260.fits sctable="SC_DATA" expcube=/scratch/kocevski/936771/ltcube_565920001_566179201_4FGL_J0156.8-4744_daily_bin1260.fits outfile=/scratch/kocevski/936771/expmap_565920001_566179201_4FGL_J0156.8-4744_daily_bin1260.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/936771/ltcube_565920001_566179201_4FGL_J0156.8-4744_daily_bin1260.fits
.....................!
real 191.68
user 186.10
sys 4.75

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/936771/ft1_filtered_4FGL_J0156.8-4744_daily_bin1260.fits scfile=/scratch/kocevski/936771/ft2_4FGL_J0156.8-4744_daily_bin1260.fits outfile=/scratch/kocevski/936771/cmap_565920001_566179201_4FGL_J0156.8-4744_daily_bin1260.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936771/ft1_filtered_4FGL_J0156.8-4744_daily_bin1260.fits scfile=/scratch/kocevski/936771/ft2_4FGL_J0156.8-4744_daily_bin1260.fits outfile=/scratch/kocevski/936771/cmap_HighResolution_565920001_566179201_4FGL_J0156.8-4744_daily_bin1260.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/936771/ft1_filtered_4FGL_J0156.8-4744_daily_bin1260.fits evtable="EVENTS" scfile=/scratch/kocevski/936771/ft2_4FGL_J0156.8-4744_daily_bin1260.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/936771/Model_4FGL_J0156.8-4744_daily_bin1260.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/936771/ft1_filtered_4FGL_J0156.8-4744_daily_bin1260.fits......................!
real 78.23
user 76.69
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.208       1.0000         .10000E-03   10000.    
     4 'norm      '    3.4059       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .64975E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10359E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.113       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10363E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.6276       1.0000         .10000E-03   10000.    
    14 'norm      '    17.184       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    14.154       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.3296       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.624       1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.575       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .59314       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1447       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=   3814.477     FROM MIGRAD    STATUS=CONVERGED   1005 CALLS     3294 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.515        .18142E-02** at limit **
   2  Prefactor     .10000E-03    13.162        .18142E-02** at limit **
   3  Prefactor     15.218        24.243        .10271E-03   -.15275E-04
   4  norm          3.4109        11.231        .10961E-02   -.17789E-04
   5  Prefactor     .10000E-03    159.11        .55427E-02** at limit **
   6  Prefactor     .10000E-03    2.1247        .87759E-03** at limit **
   7  Prefactor     .10000E-03    5.9182        .14573E-02** at limit **
   8  Prefactor     .10000E-03    2.8308        .10140E-02** at limit **
   9  norm          .10000E-03    74.505        .18142E-02** at limit **
  10  norm          .10000E-03    1.8894        .82731E-03** at limit **
  11  Prefactor     13.113        11.883        .11061E-03   -.50156E-04
  12  Prefactor     .10000E-03    18.231        .18142E-02** at limit **
  13  Prefactor     6.6273        7.6518        .15587E-03    .69653E-05
  14  norm          17.185        3.5781        .48471E-04   -.33343E-03
  15  Prefactor     .10000E-03    40.809        .18142E-02** at limit **
  16  Prefactor     .10000E-03    16.132        .18142E-02** at limit **
  17  Prefactor     .10000E-03    9.2535        .18142E-02** at limit **
  18  norm          14.154        4.3200        .67932E-04   -.22358E-03
  19  Prefactor     .10000E-03    7.5205        .16519E-02** at limit **
  20  Prefactor     .10000E-03    27.632        .18142E-02** at limit **
  21  norm          2.3297        1.3383        .52231E-04   -.33890E-03
  22  Prefactor     16.622        10.464        .98232E-04   -.29744E-04
  23  Prefactor     22.583        26.052        .84304E-04   -.10586E-04
  24  Normalizat    .59232        .23572        .28281E-03   -.18447E-03
  25  Prefactor     1.1457        .26137        .23805E-03   -.23936E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2182
  norm       = 3.41093
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.1135
  Prefactor  = 0.0001
  Prefactor  = 6.62732
  norm       = 17.1854
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.1538
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.32967
  Prefactor  = 16.6224
  Prefactor  = 22.5826
  Normalizat = 0.592318
  Prefactor  = 1.14575
 **********
 **   18 **HESSE 
 **********

 FCN=   3814.477     FROM HESSE     STATUS=OK           403 CALLS     3697 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.515        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.163        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.218        24.241        .41083E-05   -1.4928    
   4  norm          3.4109        11.222        .43842E-04   -1.5339    
   5  Prefactor     .10000E-03    163.38        .22171E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.1248        .17552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.9202        .29147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.8309        .20280E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    74.507        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.8894        .16546E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.113        11.883        .44245E-05   -1.4984    
  12  Prefactor     .10000E-03    18.233        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.6273        7.6515        .62350E-05   -1.5193    
  14  norm          17.185        3.5779        .96942E-05   -1.4879    
  15  Prefactor     .10000E-03    40.811        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.138        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.2537        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.154        4.3199        .27173E-05   -1.4955    
  19  Prefactor     .10000E-03    7.5210        .33039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.632        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.3297        1.3382        .20892E-05   -1.5403    
  22  Prefactor     16.622        10.464        .39293E-05   -1.4892    
  23  Prefactor     22.583        26.051        .33721E-05   -1.4757    
  24  Normalizat    .59232        .23584        .11312E-04   -1.0831    
  25  Prefactor     1.1457        .26159        .47610E-04   -.88018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05148e-10
Minuit parameter uncertainties:
  1  5.32545e-06
  2  1.60215e-05
  3  24.2567
  4  11.2292
  5  0.0004425
  6  2.64042e-06
  7  1.24653e-05
  8  4.13532e-07
  9  2.86439e-05
  10  1.6337e-06
  11  11.8851
  12  5.47482e-06
  13  7.65266
  14  3.57796
  15  2.05464e-05
  16  4.68448e-05
  17  5.51844e-06
  18  4.32003
  19  1.96617e-06
  20  9.23926e-08
  21  1.33825
  22  10.4647
  23  26.0641
  24  0.236243
  25  0.261884
Done.

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

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  4.135e-07  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.146e+00  2.619e-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:  5.923e-01  2.362e-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: 5.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/936771/likelihoodResults_565920001_566179201_4FGL_J0156.8-4744_daily_bin1260.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) = 3814.47869771
delta logL = -0.00158859824614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3814.47710879
delta logL = 3.20954313793e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1713       1.0000          .0000       10.000    
     3 'Normalizat'    .59232       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1457       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=   3814.477     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      246 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10322E-03    3.7706        .10352E-01** at limit **
   2  Index         2.0726        6.4327        .50000        .54533E-04
   3  Normalizat    .59232        .53657E-02    .28281E-03    .77946E-04
   4  Prefactor     1.1457        .61546E-02    .23805E-03    .43269E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103217
  Index      = 2.07258
  Normalizat = 0.592319
  Prefactor  = 1.14575
 **********
 **   18 **HESSE 
 **********

 FCN=   3814.477     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10322E-03    62.719        .10696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0726        7.0459        .50000       -.62548    
   3  Normalizat    .59232        .22325E-01    .11312E-04   -1.0831    
   4  Prefactor     1.1457        .25607E-01    .47610E-04   -.88018    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.0012e-07
Minuit parameter uncertainties:
  1  0.0284369
  2  353.07
  3  0.0223258
  4  0.0256076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936771': 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) = 3814.47710784
delta logL = 1.2748255358e-06

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.032e-04  2.844e-02  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.073e+00  3.531e+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.146e+00  2.561e-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:  5.923e-01  2.233e-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/936771/cmap_HighResolution_565920001_566179201_4FGL_J0156.8-4744_daily_bin1260.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-03', job_status='DONE', photon_flux_upper_limit='5.50e-08', time_completed='2021-08-14 21:48:16.590110', job_id='936771', GAL2='1.15', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1629002896.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1260' AND source_name='4FGL J0156.8-4744' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:48:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0201>
Subject: Job 936771: <4FGL_J0156.8-4744_daily_bin1260> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.8-4744_daily_bin1260 29.2165 -47.7352 565920001 566179201 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 :                                   644.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            754 sec.

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

