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


Performing analysis on: 4FGL_J0156.8-4744_daily_bin1221
RA = 29.2165, Dec = -47.7352
tmin = 555811201, tmax = 556070401
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='936708', job_status='RUN', time_executed='2021-08-14 21:38:31.455378', time_epoch_executed='1629002311.46' WHERE source_name='4FGL J0156.8-4744' and cadence='daily' and bin_id='1221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936708

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936708/ft1_4FGL_J0156.8-4744_daily_bin1221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936708/ft2_4FGL_J0156.8-4744_daily_bin1221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936708/ft1_4FGL_J0156.8-4744_daily_bin1221.fits outfile=/scratch/kocevski/936708/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1221.fits ra=29.2165 dec=-47.7352 rad=12.0 tmin=555811201.0 tmax=556070401.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 8.67
user 3.36
sys 5.14

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/936708/ft2_4FGL_J0156.8-4744_daily_bin1221.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/936708/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1221.fits evtable="EVENTS" outfile="/scratch/kocevski/936708/ft1_filtered_4FGL_J0156.8-4744_daily_bin1221.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 5.56
user 0.35
sys 5.00

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936708/ft1_filtered_4FGL_J0156.8-4744_daily_bin1221.fits" evtable="EVENTS" scfile=/scratch/kocevski/936708/ft2_4FGL_J0156.8-4744_daily_bin1221.fits sctable="SC_DATA" outfile=/scratch/kocevski/936708/ltcube_555811201_556070401_4FGL_J0156.8-4744_daily_bin1221.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/936708/ft2_4FGL_J0156.8-4744_daily_bin1221.fits
.....................!
real 18.80
user 12.84
sys 5.77

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936708/ft1_filtered_4FGL_J0156.8-4744_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/936708/ft2_4FGL_J0156.8-4744_daily_bin1221.fits sctable="SC_DATA" expcube=/scratch/kocevski/936708/ltcube_555811201_556070401_4FGL_J0156.8-4744_daily_bin1221.fits outfile=/scratch/kocevski/936708/expmap_555811201_556070401_4FGL_J0156.8-4744_daily_bin1221.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/936708/ltcube_555811201_556070401_4FGL_J0156.8-4744_daily_bin1221.fits
.....................!
real 197.42
user 184.98
sys 11.17

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/936708/ft1_filtered_4FGL_J0156.8-4744_daily_bin1221.fits scfile=/scratch/kocevski/936708/ft2_4FGL_J0156.8-4744_daily_bin1221.fits outfile=/scratch/kocevski/936708/cmap_555811201_556070401_4FGL_J0156.8-4744_daily_bin1221.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=29.2165 yref=-47.7352 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 5.38
user 0.39
sys 4.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936708/ft1_filtered_4FGL_J0156.8-4744_daily_bin1221.fits scfile=/scratch/kocevski/936708/ft2_4FGL_J0156.8-4744_daily_bin1221.fits outfile=/scratch/kocevski/936708/cmap_HighResolution_555811201_556070401_4FGL_J0156.8-4744_daily_bin1221.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 5.34
user 0.38
sys 4.91

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/936708/ft1_filtered_4FGL_J0156.8-4744_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/936708/ft2_4FGL_J0156.8-4744_daily_bin1221.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/936708/Model_4FGL_J0156.8-4744_daily_bin1221.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/936708/ft1_filtered_4FGL_J0156.8-4744_daily_bin1221.fits......................!
real 50.52
user 42.48
sys 7.57

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   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 '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .39987E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    32.543       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    60.004       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10540E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.081       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.953       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.514       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95136       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .66230       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=   1732.426     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2853 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    65.316        .70043E-05** at limit **
   2  Prefactor     .10000E-03    105.40       -.14972E-04** at limit **
   3  Prefactor     .10000E-03    15.327       -.56618E-05** at limit **
   4  norm          .10000E-03    5.7297       -.20024E-06** at limit **
   5  Prefactor     .10000E-03    20.023        .13022E-05** at limit **
   6  Prefactor     .10000E-03    2.7358       -.26075E-06** at limit **
   7  Prefactor     .10000E-03    12.757        .48504E-05** at limit **
   8  Prefactor     .10000E-03    4.8426       -.18927E-06** at limit **
   9  norm          .10000E-03    51.942       -.22699E-04** at limit **
  10  norm          .10000E-03    3.7172       -.48984E-06** at limit **
  11  Prefactor     .10000E-03    9.5340        .25102E-05** at limit **
  12  Prefactor     .10000E-03    29.955        .30346E-05** at limit **
  13  Prefactor     .10003E-03    10.045       -.79920E-06** at limit **
  14  norm          32.546        6.3203        .36407E-06    .30207E-03
  15  Prefactor     .10000E-03    66.068        .83487E-05** at limit **
  16  Prefactor     60.002        38.948       -.14341E-05   -.85374E-04
  17  Prefactor     .10000E-03    83.937        .21424E-04** at limit **
  18  norm          10.081        6.0365        .10242E-05    .18057E-04
  19  Prefactor     .10000E-03    9.9430       -.34079E-05** at limit **
  20  Prefactor     30.795        95.350       -.24574E-03    .98791E-05
  21  norm          .10000E-03    .72730       -.23715E-07** at limit **
  22  Prefactor     20.514        13.858       -.52585E-06    .12782E-04
  23  Prefactor     .10000E-03    11.442       -.13895E-05** at limit **
  24  Normalizat    .95142        .29810        .64736E-05   -.10966E-04
  25  Prefactor     .66226        .31375        .86562E-05    .83454E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100029
  norm       = 32.5461
  Prefactor  = 0.0001
  Prefactor  = 60.0017
  Prefactor  = 0.0001
  norm       = 10.0805
  Prefactor  = 0.0001
  Prefactor  = 30.7947
  norm       = 0.0001
  Prefactor  = 20.5139
  Prefactor  = 0.0001
  Normalizat = 0.951423
  Prefactor  = 0.662264
 **********
 **   18 **HESSE 
 **********

 FCN=   1732.426     FROM HESSE     STATUS=OK           411 CALLS     3264 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    105.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.333        .15920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.7338        .97316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7369        .67243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.868        .14517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.8445        .89465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    51.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.7201        .78380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.5391        .12554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    29.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10003E-03    36.103        .25121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          32.546        6.1903        .43189E-04   -1.4566    
  15  Prefactor     .10000E-03    66.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     60.002        39.073        .51795E-04   -1.4157    
  17  Prefactor     .10000E-03    84.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.081        6.0351        .75112E-04   -1.5073    
  19  Prefactor     .10000E-03    9.9503        .12818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     30.795        95.524        .36009E-03   -1.4598    
  21  norm          .10000E-03    .73513        .34646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     20.514        13.859        .88432E-04   -1.4802    
  23  Prefactor     .10000E-03    11.446        .13754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .95142        .35404        .23277E-03   -.94676    
  25  Prefactor     .66226        .37072        .29380E-03   -1.0502    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.03768e-10
Minuit parameter uncertainties:
  1  8.74017e-05
  2  0.000729437
  3  4.35178e-05
  4  1.90097e-05
  5  4.94133e-05
  6  3.99355e-06
  7  0.000138648
  8  1.11935e-05
  9  1.89803e-05
  10  1.29001e-05
  11  1.9785e-05
  12  8.89539e-05
  13  0.00205493
  14  6.19039
  15  0.000142371
  16  39.0892
  17  8.65731e-05
  18  6.0355
  19  1.51525e-05
  20  96.004
  21  2.93427e-06
  22  13.8608
  23  2.02818e-05
  24  0.354914
  25  0.372112
Done.

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

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.119e-05  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.623e-01  3.721e-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.514e-01  3.549e-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: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/936708/likelihoodResults_555811201_556070401_4FGL_J0156.8-4744_daily_bin1221.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) = 1732.42639267
delta logL = -0.000865748597107

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1732.4255302
delta logL = -3.27126235788e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11809E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1634       1.0000          .0000       10.000    
     3 'Normalizat'    .95203       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66155       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=   1732.426     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      239 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10340E-03    8.1951        .93117E-02** at limit **
   2  Index         2.0756        7.3243        .50000        .44752E-04
   3  Normalizat    .95142        .90260E-02    .23277E-03   -.26532E-03
   4  Prefactor     .66227        .96936E-02    .29379E-03   -.10050E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103401
  Index      = 2.07565
  Normalizat = 0.951418
  Prefactor  = 0.662267
 **********
 **   18 **HESSE 
 **********

 FCN=   1732.426     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10340E-03    83.617        .96373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0756        5.5841        .50000       -.62472    
   3  Normalizat    .95142        .29269E-01    .46553E-04   -.94676    
   4  Prefactor     .66227        .31434E-01    .11752E-04   -1.0502    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.0058e-08
Minuit parameter uncertainties:
  1  0.0337766
  2  281.66
  3  0.0292698
  4  0.0314343
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936708': 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) = 1732.4255258
delta logL = 1.12295447252e-06

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.034e-04  3.378e-02  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.076e+00  2.817e+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:  6.623e-01  3.143e-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:  9.514e-01  2.927e-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/936708/cmap_HighResolution_555811201_556070401_4FGL_J0156.8-4744_daily_bin1221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.64e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-08-14 21:47:34.096474', job_id='936708', GAL2='0.66', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1629002854.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='1.12e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1221' AND source_name='4FGL J0156.8-4744' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:47:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 936708: <4FGL_J0156.8-4744_daily_bin1221> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.8-4744_daily_bin1221 29.2165 -47.7352 555811201 556070401 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 :                                   610.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            717 sec.

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

