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


Performing analysis on: 4FGL_J0156.3-2420_daily_bin1065
RA = 29.0777, Dec = -24.3345
tmin = 515376001, tmax = 515635201
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='915402', job_status='RUN', time_executed='2021-08-14 20:34:18.532131', time_epoch_executed='1628998458.53' WHERE source_name='4FGL J0156.3-2420' and cadence='daily' and bin_id='1065'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915402

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915402/ft1_4FGL_J0156.3-2420_daily_bin1065.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915402/ft2_4FGL_J0156.3-2420_daily_bin1065.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915402/ft1_4FGL_J0156.3-2420_daily_bin1065.fits outfile=/scratch/kocevski/915402/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1065.fits ra=29.0777 dec=-24.3345 rad=12.0 tmin=515376001.0 tmax=515635201.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 9.18
user 3.24
sys 5.87

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/915402/ft2_4FGL_J0156.3-2420_daily_bin1065.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/915402/ft2_4FGL_J0156.3-2420_daily_bin1065.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/915402/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1065.fits evtable="EVENTS" outfile="/scratch/kocevski/915402/ft1_filtered_4FGL_J0156.3-2420_daily_bin1065.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 6.82
user 0.33
sys 5.82

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/915402/ft1_filtered_4FGL_J0156.3-2420_daily_bin1065.fits" evtable="EVENTS" scfile=/scratch/kocevski/915402/ft2_4FGL_J0156.3-2420_daily_bin1065.fits sctable="SC_DATA" outfile=/scratch/kocevski/915402/ltcube_515376001_515635201_4FGL_J0156.3-2420_daily_bin1065.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/915402/ft2_4FGL_J0156.3-2420_daily_bin1065.fits
.....................!
real 19.93
user 13.23
sys 6.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915402/ft1_filtered_4FGL_J0156.3-2420_daily_bin1065.fits evtable="EVENTS" scfile=/scratch/kocevski/915402/ft2_4FGL_J0156.3-2420_daily_bin1065.fits sctable="SC_DATA" expcube=/scratch/kocevski/915402/ltcube_515376001_515635201_4FGL_J0156.3-2420_daily_bin1065.fits outfile=/scratch/kocevski/915402/expmap_515376001_515635201_4FGL_J0156.3-2420_daily_bin1065.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/915402/ltcube_515376001_515635201_4FGL_J0156.3-2420_daily_bin1065.fits
.....................!
real 200.18
user 187.28
sys 12.14

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
Added 172 point sources and 0 extended sources

Setting source of interest to:
4FGL J0156.3-2420 @ 29.0777 -24.3345

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/915402/ft1_filtered_4FGL_J0156.3-2420_daily_bin1065.fits scfile=/scratch/kocevski/915402/ft2_4FGL_J0156.3-2420_daily_bin1065.fits outfile=/scratch/kocevski/915402/cmap_515376001_515635201_4FGL_J0156.3-2420_daily_bin1065.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.0777 yref=-24.3345 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 6.14
user 0.39
sys 5.64

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/915402/ft1_filtered_4FGL_J0156.3-2420_daily_bin1065.fits scfile=/scratch/kocevski/915402/ft2_4FGL_J0156.3-2420_daily_bin1065.fits outfile=/scratch/kocevski/915402/cmap_HighResolution_515376001_515635201_4FGL_J0156.3-2420_daily_bin1065.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.0777 yref=-24.3345 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 6.73
user 0.38
sys 5.68

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/915402/ft1_filtered_4FGL_J0156.3-2420_daily_bin1065.fits evtable="EVENTS" scfile=/scratch/kocevski/915402/ft2_4FGL_J0156.3-2420_daily_bin1065.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/915402/Model_4FGL_J0156.3-2420_daily_bin1065.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 GAL_V02
Working on...
/scratch/kocevski/915402/ft1_filtered_4FGL_J0156.3-2420_daily_bin1065.fits.....................!
real 60.93
user 51.05
sys 8.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/915402/ft1_filtered_4FGL_J0156.3-2420_daily_bin1065.fits', '/scratch/kocevski/915402/ft2_4FGL_J0156.3-2420_daily_bin1065.fits', expMap='/scratch/kocevski/915402/expmap_515376001_515635201_4FGL_J0156.3-2420_daily_bin1065.fits', expCube='/scratch/kocevski/915402/ltcube_515376001_515635201_4FGL_J0156.3-2420_daily_bin1065.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/915402/Model_4FGL_J0156.3-2420_daily_bin1065.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0156.3-2420'

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  4.171e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.939e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
268        Scale:  2.411e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/915402/ft1_filtered_4FGL_J0156.3-2420_daily_bin1065.fits
Spacecraft file(s): /scratch/kocevski/915402/ft2_4FGL_J0156.3-2420_daily_bin1065.fits
Exposure map: /scratch/kocevski/915402/expmap_515376001_515635201_4FGL_J0156.3-2420_daily_bin1065.fits
Exposure cube: /scratch/kocevski/915402/ltcube_515376001_515635201_4FGL_J0156.3-2420_daily_bin1065.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/915402/Model_4FGL_J0156.3-2420_daily_bin1065.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) = 6132.09740688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    9.7374       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1505       1.0000         .10000E-03   10000.    
     4 'norm      '    1.8453       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1392       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.8699       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.312       1.0000         .10000E-03   10000.    
    12 'norm      '    2.5987       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.229       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6140       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.820       1.0000         .10000E-03   10000.    
    16 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.8909       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10362E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4924       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .94138       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .65199       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6131.968     FROM MIGRAD    STATUS=CONVERGED     80 CALLS     1776 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6723        .26224E-07** at limit **
   2  Prefactor     9.7374        1.0329       -.92559E-07   -.18331E-03
   3  Prefactor     2.1503        1.1502        .47228E-07   -.47887E-03
   4  norm          1.8451        1.4112       -.34916E-06    .10307E-03
   5  norm          .10000E-03    .89582        .50816E-06** at limit **
   6  Prefactor     9.1397        1.0302       -.89775E-07   -.13162E-03
   7  Prefactor     .10000E-03    2.5739       -.20223E-05** at limit **
   8  norm          2.8698        1.1699        .90166E-07    .91500E-05
   9  norm          .10000E-03    .58735        .41983E-06** at limit **
  10  norm          .10000E-03    1.0371        .17353E-06** at limit **
  11  Prefactor     28.312        1.0003       -.34161E-08   -.67623E-04
  12  norm          2.5987        1.6390       -.30683E-06    .61730E-04
  13  Prefactor     16.229        1.0299       -.55320E-07   -.78309E-04
  14  Prefactor     3.6134        4.2144       -.26965E-05   -.76630E-03
  15  Prefactor     12.822        1.0113       -.21745E-07   -.55242E-03
  16  norm          .10252E-03    28.510       -.58041E-05** at limit **
  17  Prefactor     4.8889        5.8891        .35834E-05    .14294E-02
  18  Prefactor     .10000E-03    11.817       -.17535E-05** at limit **
  19  Prefactor     .10249E-03    21.130        .11785E-05** at limit **
  20  Prefactor     .10003E-03    24.702        .17196E-05** at limit **
  21  Prefactor     3.4925        3.6184        .35180E-05    .92785E-03
  22  Normalizat    .94139        .15493       -.38474E-05    .11759E-04
  23  Prefactor     .65199        .17563        .17502E-05    .96022E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.73741
  Prefactor  = 2.15031
  norm       = 1.8451
  norm       = 0.0001
  Prefactor  = 9.13965
  Prefactor  = 0.0001
  norm       = 2.86983
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 28.3125
  norm       = 2.59868
  Prefactor  = 16.2291
  Prefactor  = 3.61344
  Prefactor  = 12.8225
  norm       = 0.000102524
  Prefactor  = 4.88887
  Prefactor  = 0.0001
  Prefactor  = 0.000102493
  Prefactor  = 0.000100033
  Prefactor  = 3.49253
  Normalizat = 0.941394
  Prefactor  = 0.651986
 **********
 **   18 **HESSE 
 **********

 FCN=   6131.968     FROM HESSE     STATUS=OK           426 CALLS     2202 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6701        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.7374        8.0021        .32104E-02   -1.5084    
   3  Prefactor     2.1503        5.0238        .70244E-02   -1.5415    
   4  norm          1.8451        1.5927        .76750E-02   -1.5436    
   5  norm          .10000E-03    .87217        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.1397        10.662        .33144E-02   -1.5103    
   7  Prefactor     .10000E-03    2.4925        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.8698        1.1701        .59986E-02   -1.5369    
   9  norm          .10000E-03    .57198        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .99897        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.312        26.180        .18823E-02   -1.4643    
  12  norm          2.5987        1.6495        .63273E-02   -1.5386    
  13  Prefactor     16.229        10.368        .24855E-02   -1.4902    
  14  Prefactor     3.6134        4.2909        .53134E-02   -1.5328    
  15  Prefactor     12.822        7.8724        .27968E-02   -1.4992    
  16  norm          .10252E-03    51.087        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.8889        5.9930        .45470E-02   -1.5266    
  18  Prefactor     .10000E-03    11.800        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10249E-03    43.557        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10003E-03    24.799        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.4925        3.6345        .54089E-02   -1.5334    
  22  Normalizat    .94139        .13345        .45428E-01   -.95020    
  23  Prefactor     .65199        .15014        .60426E-01   -1.0544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73464e-07
Minuit parameter uncertainties:
  1  6.05131e-09
  2  8.00296
  3  5.02479
  4  1.59278
  5  4.84028e-07
  6  10.6645
  7  5.84417e-07
  8  1.17014
  9  3.60915e-07
  10  3.52376e-07
  11  26.1905
  12  1.64949
  13  10.3692
  14  4.29131
  15  7.87299
  16  0.0227315
  17  5.99376
  18  9.40015e-05
  19  0.0208548
  20  0.00180549
  21  3.63474
  22  0.133494
  23  0.150229
Done.

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

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  2.831e+01  2.619e+01  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.939e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
268        Scale:  2.411e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  6.520e-01  1.502e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  9.414e-01  1.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.98
Ra Dec: 29.078 -24.334
Photon Index (Fixed Index): 1.94 +/- 0.00
Photon Flux (Fixed Index): 1.44e-08 +/- 1.33e-08
Energy Flux (Fixed Index): 1.16e-05 +/- 1.08e-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) = 6131.90571573
delta logL = 0.0627657427858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6131.90221372
delta logL = 0.0662677575547

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.583       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6252       1.0000          .0000       10.000    
     3 'Normalizat'    .94836       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64841       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+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=   6131.902     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      256 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.604        29.766        .72451E-04   -.86303E-05
   2  Index         1.6255        .82648        .12787E-01    .35581E-05
   3  Normalizat    .94815        .15045        .19350E-03    .87365E-04
   4  Prefactor     .64860        .17509        .26796E-03   -.60544E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.6036
  Index      = 1.6255
  Normalizat = 0.948154
  Prefactor  = 0.648596
 **********
 **   18 **HESSE 
 **********

 FCN=   6131.902     FROM HESSE     STATUS=OK            25 CALLS      281 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.604        29.797        .28980E-05   -1.4601    
   2  Index         1.6255        .82711        .51149E-03   -.74083    
   3  Normalizat    .94815        .15050        .77400E-05   -.94788    
   4  Prefactor     .64860        .17522        .10718E-04   -1.0558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.32846e-11
Minuit parameter uncertainties:
  1  29.811
  2  0.834204
  3  0.15057
  4  0.175368
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915402': 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) = 6131.90221255
delta logL = 0.0662689295204

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  3.060e+01  2.981e+01  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.625e+00  8.342e-01  0.000e+00  1.000e+01 (-1.000e+00)
268        Scale:  2.411e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  6.486e-01  1.754e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  9.482e-01  1.506e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.11
Ra Dec: 29.078 -24.334
Photon Index (Free Index): 1.63 +/- 0.83
Photon Flux (Free Index): 8.52e-09 +/- 1.48e-08
Energy Flux (Free Index): 1.77e-05 +/- 2.89e-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/915402/cmap_HighResolution_515376001_515635201_4FGL_J0156.3-2420_daily_bin1065.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.44e-08', energy_flux2='1.77e-05', photon_flux_error='1.33e-08', dlogl='6.63e-02', energy_flux='1.16e-05', photon_flux2='8.52e-09', job_status='DONE', time_completed='2021-08-14 20:44:49.927929', photon_index_error2='0.83', photon_index2='1.63', ts='6.98', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='2.89e-05', EG='0.94', time_epoch_completed='1628999089.93', return_code='0', job_id='915402', GAL2='0.65', EG2='0.95', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='1.48e-08', ts2='7.11', photon_index='1.94' WHERE bin_id='1065' AND source_name='4FGL J0156.3-2420' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:44:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 915402: <4FGL_J0156.3-2420_daily_bin1065> in cluster <slac> Done

Job <4FGL_J0156.3-2420_daily_bin1065> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 14 20:30:50 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 20:31: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 20:31:56 2021
Terminated at Sat Aug 14 20:44:52 2021
Results reported at Sat Aug 14 20:44:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.3-2420_daily_bin1065 29.0777 -24.3345 515376001 515635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0156.3-2420 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   708.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            842 sec.

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

