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


Performing analysis on: 4FGL_J0156.8-4744_daily_bin1407
RA = 29.2165, Dec = -47.7352
tmin = 604022401, tmax = 604281601
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='938066', job_status='RUN', time_executed='2021-08-14 21:42:47.907332', time_epoch_executed='1629002567.91' WHERE source_name='4FGL J0156.8-4744' and cadence='daily' and bin_id='1407'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938066

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938066/ft1_4FGL_J0156.8-4744_daily_bin1407.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938066/ft2_4FGL_J0156.8-4744_daily_bin1407.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938066/ft1_4FGL_J0156.8-4744_daily_bin1407.fits outfile=/scratch/kocevski/938066/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1407.fits ra=29.2165 dec=-47.7352 rad=12.0 tmin=604022401.0 tmax=604281601.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.74
user 3.96
sys 2.73

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938066/ft1_filtered_4FGL_J0156.8-4744_daily_bin1407.fits" evtable="EVENTS" scfile=/scratch/kocevski/938066/ft2_4FGL_J0156.8-4744_daily_bin1407.fits sctable="SC_DATA" outfile=/scratch/kocevski/938066/ltcube_604022401_604281601_4FGL_J0156.8-4744_daily_bin1407.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/938066/ft2_4FGL_J0156.8-4744_daily_bin1407.fits
.....................!
real 17.17
user 13.91
sys 3.15

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938066/ft1_filtered_4FGL_J0156.8-4744_daily_bin1407.fits evtable="EVENTS" scfile=/scratch/kocevski/938066/ft2_4FGL_J0156.8-4744_daily_bin1407.fits sctable="SC_DATA" expcube=/scratch/kocevski/938066/ltcube_604022401_604281601_4FGL_J0156.8-4744_daily_bin1407.fits outfile=/scratch/kocevski/938066/expmap_604022401_604281601_4FGL_J0156.8-4744_daily_bin1407.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/938066/ltcube_604022401_604281601_4FGL_J0156.8-4744_daily_bin1407.fits
.....................!
real 199.33
user 190.07
sys 8.60

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/938066/ft1_filtered_4FGL_J0156.8-4744_daily_bin1407.fits scfile=/scratch/kocevski/938066/ft2_4FGL_J0156.8-4744_daily_bin1407.fits outfile=/scratch/kocevski/938066/cmap_604022401_604281601_4FGL_J0156.8-4744_daily_bin1407.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.80
user 0.37
sys 2.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938066/ft1_filtered_4FGL_J0156.8-4744_daily_bin1407.fits scfile=/scratch/kocevski/938066/ft2_4FGL_J0156.8-4744_daily_bin1407.fits outfile=/scratch/kocevski/938066/cmap_HighResolution_604022401_604281601_4FGL_J0156.8-4744_daily_bin1407.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.00
user 0.40
sys 2.57

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/938066/ft1_filtered_4FGL_J0156.8-4744_daily_bin1407.fits evtable="EVENTS" scfile=/scratch/kocevski/938066/ft2_4FGL_J0156.8-4744_daily_bin1407.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/938066/Model_4FGL_J0156.8-4744_daily_bin1407.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/938066/ft1_filtered_4FGL_J0156.8-4744_daily_bin1407.fits.....................!
real 127.29
user 122.32
sys 4.46

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.5441       1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.352       1.0000         .10000E-03   10000.    
     4 'norm      '    21.516       1.0000         .10000E-03   10000.    
     5 'Prefactor '    41.493       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .80075       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.713       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.6509       1.0000         .10000E-03   10000.    
    14 'norm      '    45.443       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.0042       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .47843       1.0000         .10000E-03   10000.    
    19 'Prefactor '    53.744       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.0654       1.0000         .10000E-03   10000.    
    21 'norm      '    .82869       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.172       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .81072       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3765       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=   6308.980     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2944 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.187        .19018E-06** at limit **
   2  Prefactor     6.5437        26.888        .46524E-06    .86079E-05
   3  Prefactor     47.356        29.358        .21846E-06    .40577E-05
   4  norm          21.517        12.055        .84311E-07   -.17984E-04
   5  Prefactor     41.485        35.997        .27148E-06    .82009E-04
   6  Prefactor     .79355        8.3593       -.31438E-05    .87907E-03
   7  Prefactor     .10000E-03    2.5130        .13897E-06** at limit **
   8  Prefactor     12.714        9.1126        .11080E-06    .16386E-04
   9  norm          .10000E-03    22.624       -.82661E-08** at limit **
  10  norm          .10000E-03    2.1474        .91854E-07** at limit **
  11  Prefactor     .10000E-03    5.2309        .23716E-07** at limit **
  12  Prefactor     .10000E-03    35.717        .57648E-06** at limit **
  13  Prefactor     7.6508        5.7283       -.67428E-07   -.63972E-04
  14  norm          45.443        4.5631       -.11923E-07   -.28775E-03
  15  Prefactor     .10000E-03    12.701        .19094E-07** at limit **
  16  Prefactor     8.0008        18.996        .24547E-06   -.14567E-04
  17  Prefactor     .10000E-03    17.783       -.72234E-07** at limit **
  18  norm          .47793        1.8111        .20805E-05    .85894E-03
  19  Prefactor     53.745        22.190       -.21425E-06   -.93415E-04
  20  Prefactor     7.9827        120.33       -.35337E-05   -.51268E-04
  21  norm          .82878        1.2237        .47223E-06    .13905E-02
  22  Prefactor     .10000E-03    2.8246        .41800E-07** at limit **
  23  Prefactor     29.173        22.525       -.11354E-06   -.56569E-04
  24  Normalizat    .81051        .22287       -.20523E-05   -.56853E-04
  25  Prefactor     1.3767        .23262        .77211E-06   -.74555E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.54369
  Prefactor  = 47.3557
  norm       = 21.5167
  Prefactor  = 41.4854
  Prefactor  = 0.793545
  Prefactor  = 0.0001
  Prefactor  = 12.7138
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.65075
  norm       = 45.4428
  Prefactor  = 0.0001
  Prefactor  = 8.00082
  Prefactor  = 0.0001
  norm       = 0.477932
  Prefactor  = 53.7454
  Prefactor  = 7.98272
  norm       = 0.828782
  Prefactor  = 0.0001
  Prefactor  = 29.1725
  Normalizat = 0.810512
  Prefactor  = 1.37672
 **********
 **   18 **HESSE 
 **********

 FCN=   6308.980     FROM HESSE     STATUS=OK           431 CALLS     3375 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.5437        26.950        .15688E-03   -1.5196    
   3  Prefactor     47.356        29.459        .58270E-04   -1.4331    
   4  norm          21.517        12.062        .86351E-04   -1.4780    
   5  Prefactor     41.485        35.861        .62231E-04   -1.4419    
   6  Prefactor     .79355        17.702        .31087E-02   -1.5530    
   7  Prefactor     .10000E-03    2.5336        .12298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.714        9.1145        .11234E-03   -1.4995    
   9  norm          .10000E-03    22.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.1515        .11367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.2354        .17742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    35.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.6508        5.7285        .14498E-03   -1.5155    
  14  norm          45.443        4.5626        .50537E-04   -1.4359    
  15  Prefactor     .10000E-03    12.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.0008        18.967        .14172E-03   -1.5142    
  17  Prefactor     .10000E-03    17.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .47793        1.8758        .20663E-03   -1.5570    
  19  Prefactor     53.745        21.992        .54712E-04   -1.4240    
  20  Prefactor     7.9827        122.67        .14118E-03   -1.5143    
  21  norm          .82878        1.1208        .10453E-02   -1.5526    
  22  Prefactor     .10000E-03    2.8334        .13032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     29.173        22.542        .74178E-04   -1.4627    
  24  Normalizat    .81051        .26854        .34054E-03   -.99680    
  25  Prefactor     1.3767        .27915        .29142E-03   -.81053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.45859e-09
Minuit parameter uncertainties:
  1  1.68191e-05
  2  26.5802
  3  29.468
  4  12.0636
  5  35.8794
  6  7.49792
  7  7.57008e-06
  8  9.11551
  9  1.46613e-05
  10  5.06381e-06
  11  7.05695e-06
  12  0.000178213
  13  5.72895
  14  4.56266
  15  1.34392e-06
  16  18.981
  17  8.29169e-06
  18  1.87606
  19  21.9957
  20  62.7404
  21  1.12078
  22  6.21562e-07
  23  22.5487
  24  0.268985
  25  0.279452
Done.

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

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.271e+01  9.116e+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.377e+00  2.795e-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:  8.105e-01  2.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.13
Ra Dec: 29.216 -47.735
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 4.74e-08 +/- 3.40e-08
Energy Flux (Fixed Index): 2.16e-05 +/- 1.55e-05

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) = 6308.64816909
delta logL = 0.331995350964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6308.63923678
delta logL = 0.340927655187

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.144       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6371       1.0000          .0000       10.000    
     3 'Normalizat'    .83317       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3658       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=   6308.639     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      213 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 25.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.145        9.9899        .18790E-05   -.10688E-02
   2  Index         1.6372        .45554       -.60071E-05   -.32198E-03
   3  Normalizat    .83319        .21098        .32580E-06    .10489E-03
   4  Prefactor     1.3658        .22821       -.15326E-06    .10000E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1449
  Index      = 1.63721
  Normalizat = 0.83319
  Prefactor  = 1.3658
 **********
 **   18 **HESSE 
 **********

 FCN=   6308.639     FROM HESSE     STATUS=OK            29 CALLS      242 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.145        11.725        .10650E-03   -1.4956    
   2  Index         1.6372        .62958        .10935E-01   -.73766    
   3  Normalizat    .83319        .25310        .33671E-03   -.98849    
   4  Prefactor     1.3658        .27497        .29265E-03   -.81371    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25314e-09
Minuit parameter uncertainties:
  1  11.7271
  2  0.632657
  3  0.25346
  4  0.275266
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938066': 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) = 6308.63923675
delta logL = 0.340927691164

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.414e+01  1.173e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  1.637e+00  6.327e-01  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  1.612e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  1.366e+00  2.753e-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:  8.332e-01  2.535e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.81
Ra Dec: 29.216 -47.735
Photon Index (Free Index): 1.64 +/- 0.63
Photon Flux (Free Index): 2.08e-08 +/- 2.71e-08
Energy Flux (Free Index): 4.16e-05 +/- 5.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/938066/cmap_HighResolution_604022401_604281601_4FGL_J0156.8-4744_daily_bin1407.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.74e-08', energy_flux2='4.16e-05', photon_flux_error='3.40e-08', dlogl='3.41e-01', energy_flux='2.16e-05', photon_flux2='2.08e-08', job_status='DONE', time_completed='2021-08-14 21:56:12.222946', photon_index_error2='0.63', photon_index2='1.64', ts='9.13', fit_tolerance='1e-08', GAL='1.38', photon_index_error='0.00', energy_flux_error2='5.50e-05', EG='0.81', time_epoch_completed='1629003372.22', return_code='0', job_id='938066', GAL2='1.37', EG2='0.83', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='2.71e-08', ts2='9.81', photon_index='2.19' WHERE bin_id='1407' AND source_name='4FGL J0156.8-4744' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:56:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0137>
Subject: Job 938066: <4FGL_J0156.8-4744_daily_bin1407> in cluster <slac> Done

Job <4FGL_J0156.8-4744_daily_bin1407> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 14 21:40:25 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 21:40:56 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:40:56 2021
Terminated at Sat Aug 14 21:56:13 2021
Results reported at Sat Aug 14 21:56:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.8-4744_daily_bin1407 29.2165 -47.7352 604022401 604281601 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 :                                   834.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            948 sec.

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

