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


Performing analysis on: 4FGL_J0156.3-2420_daily_bin1043
RA = 29.0777, Dec = -24.3345
tmin = 509673601, tmax = 509932801
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='915368', job_status='RUN', time_executed='2021-08-14 20:33:11.306677', time_epoch_executed='1628998391.31' WHERE source_name='4FGL J0156.3-2420' and cadence='daily' and bin_id='1043'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915368

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915368/ft1_4FGL_J0156.3-2420_daily_bin1043.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915368/ft2_4FGL_J0156.3-2420_daily_bin1043.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915368/ft1_4FGL_J0156.3-2420_daily_bin1043.fits outfile=/scratch/kocevski/915368/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1043.fits ra=29.0777 dec=-24.3345 rad=12.0 tmin=509673601.0 tmax=509932801.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 4.72
user 3.40
sys 1.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/915368/ft2_4FGL_J0156.3-2420_daily_bin1043.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/915368/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1043.fits evtable="EVENTS" outfile="/scratch/kocevski/915368/ft1_filtered_4FGL_J0156.3-2420_daily_bin1043.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 1.57
user 0.34
sys 1.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/915368/ft1_filtered_4FGL_J0156.3-2420_daily_bin1043.fits" evtable="EVENTS" scfile=/scratch/kocevski/915368/ft2_4FGL_J0156.3-2420_daily_bin1043.fits sctable="SC_DATA" outfile=/scratch/kocevski/915368/ltcube_509673601_509932801_4FGL_J0156.3-2420_daily_bin1043.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/915368/ft2_4FGL_J0156.3-2420_daily_bin1043.fits
.....................!
real 15.41
user 13.33
sys 1.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915368/ft1_filtered_4FGL_J0156.3-2420_daily_bin1043.fits evtable="EVENTS" scfile=/scratch/kocevski/915368/ft2_4FGL_J0156.3-2420_daily_bin1043.fits sctable="SC_DATA" expcube=/scratch/kocevski/915368/ltcube_509673601_509932801_4FGL_J0156.3-2420_daily_bin1043.fits outfile=/scratch/kocevski/915368/expmap_509673601_509932801_4FGL_J0156.3-2420_daily_bin1043.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/915368/ltcube_509673601_509932801_4FGL_J0156.3-2420_daily_bin1043.fits
.....................!
real 194.46
user 185.83
sys 5.81

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/915368/ft1_filtered_4FGL_J0156.3-2420_daily_bin1043.fits scfile=/scratch/kocevski/915368/ft2_4FGL_J0156.3-2420_daily_bin1043.fits outfile=/scratch/kocevski/915368/cmap_509673601_509932801_4FGL_J0156.3-2420_daily_bin1043.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 1.60
user 0.37
sys 1.20

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/915368/ft1_filtered_4FGL_J0156.3-2420_daily_bin1043.fits scfile=/scratch/kocevski/915368/ft2_4FGL_J0156.3-2420_daily_bin1043.fits outfile=/scratch/kocevski/915368/cmap_HighResolution_509673601_509932801_4FGL_J0156.3-2420_daily_bin1043.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 1.61
user 0.39
sys 1.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/915368/ft1_filtered_4FGL_J0156.3-2420_daily_bin1043.fits evtable="EVENTS" scfile=/scratch/kocevski/915368/ft2_4FGL_J0156.3-2420_daily_bin1043.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/915368/Model_4FGL_J0156.3-2420_daily_bin1043.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/915368/ft1_filtered_4FGL_J0156.3-2420_daily_bin1043.fits.....................!
real 43.43
user 40.71
sys 2.51

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/915368/ft1_filtered_4FGL_J0156.3-2420_daily_bin1043.fits', '/scratch/kocevski/915368/ft2_4FGL_J0156.3-2420_daily_bin1043.fits', expMap='/scratch/kocevski/915368/expmap_509673601_509932801_4FGL_J0156.3-2420_daily_bin1043.fits', expCube='/scratch/kocevski/915368/ltcube_509673601_509932801_4FGL_J0156.3-2420_daily_bin1043.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/915368/Model_4FGL_J0156.3-2420_daily_bin1043.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/915368/ft1_filtered_4FGL_J0156.3-2420_daily_bin1043.fits
Spacecraft file(s): /scratch/kocevski/915368/ft2_4FGL_J0156.3-2420_daily_bin1043.fits
Exposure map: /scratch/kocevski/915368/expmap_509673601_509932801_4FGL_J0156.3-2420_daily_bin1043.fits
Exposure cube: /scratch/kocevski/915368/ltcube_509673601_509932801_4FGL_J0156.3-2420_daily_bin1043.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/915368/Model_4FGL_J0156.3-2420_daily_bin1043.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) = 4579.09431034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9096       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.1869       1.0000         .10000E-03   10000.    
     4 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .75779       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0450       1.0000         .10000E-03   10000.    
     8 'norm      '    .11991       1.0000         .10000E-03   10000.    
     9 'norm      '    .10192E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.2751       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4011       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.2904       1.0000         .10000E-03   10000.    
    18 'Prefactor '    93.688       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12377E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .56522       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .98487       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84541       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.

 FCN=   4579.083     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2584 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9099        9.7501        .10795E-06   -.66891E-04
   2  Prefactor     .10000E-03    9.1217        .22704E-05** at limit **
   3  Prefactor     9.1811        8.3594       -.76004E-07   -.52669E-04
   4  norm          .10000E-03    1.1370        .27150E-07** at limit **
   5  norm          .75863        2.1558        .10605E-06   -.11755E-03
   6  Prefactor     .10000E-03    9.3391       -.27680E-05** at limit **
   7  Prefactor     4.0449        3.6972        .69076E-07   -.60307E-03
   8  norm          .12024        .69395        .19923E-07   -.25748E-03
   9  norm          .10000E-03    1.7092        .73820E-07** at limit **
  10  norm          .10000E-03    2.5127        .36383E-07** at limit **
  11  Prefactor     .10000E-03    12.245        .11569E-05** at limit **
  12  norm          4.2757        2.3439       -.35059E-08   -.60823E-04
  13  Prefactor     .10000E-03    5.4587       -.16155E-07** at limit **
  14  Prefactor     5.4022        5.7435        .34968E-06    .95020E-05
  15  Prefactor     .10000E-03    4.4262        .87672E-08** at limit **
  16  norm          .10000E-03    27.976        .17028E-06** at limit **
  17  Prefactor     5.2877        3.4969        .38102E-07   -.12710E-02
  18  Prefactor     93.694        48.794        .29579E-05    .10415E-03
  19  Prefactor     .10000E-03    171.80       -.15140E-05** at limit **
  20  Prefactor     .10000E-03    14.656       -.86283E-06** at limit **
  21  Prefactor     .56240        5.5798        .15341E-05   -.43239E-03
  22  Normalizat    .98487        .17385       -.59869E-06   -.11042E-03
  23  Prefactor     .84526        .19305       -.24113E-06   -.97385E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.90987
  Prefactor  = 0.0001
  Prefactor  = 9.18106
  norm       = 0.0001
  norm       = 0.758633
  Prefactor  = 0.0001
  Prefactor  = 4.04491
  norm       = 0.120238
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.27568
  Prefactor  = 0.0001
  Prefactor  = 5.40222
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.28768
  Prefactor  = 93.694
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.562398
  Normalizat = 0.984866
  Prefactor  = 0.845256
 **********
 **   18 **HESSE 
 **********

 FCN=   4579.083     FROM HESSE     STATUS=OK           374 CALLS     2958 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9099        9.7485        .23820E-03   -1.5367    
   2  Prefactor     .10000E-03    9.2097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.1811        7.8338        .13223E-03   -1.5102    
   4  norm          .10000E-03    1.5526        .13087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .75863        2.1148        .16194E-03   -1.5534    
   6  Prefactor     .10000E-03    9.4104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0449        3.8108        .61444E-03   -1.5306    
   8  norm          .12024        1.1739        .10946E-02   -1.5639    
   9  norm          .10000E-03    4.1120        .16922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.6076        .20915E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.2757        2.3447        .73130E-04   -1.5294    
  13  Prefactor     .10000E-03    5.4876        .15438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.4022        5.7799        .15718E-03   -1.5243    
  15  Prefactor     .10000E-03    4.4485        .13900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    28.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.2877        6.9288        .87372E-03   -1.5248    
  18  Prefactor     93.694        49.048        .41521E-04   -1.3769    
  19  Prefactor     .10000E-03    176.52        .41231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .56240        10.954        .29140E-02   -1.5558    
  22  Normalizat    .98487        .20421        .21378E-03   -.93539    
  23  Prefactor     .84526        .22575        .26061E-03   -.98081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89275e-08
Minuit parameter uncertainties:
  1  9.75381
  2  6.72311e-05
  3  7.8347
  4  6.29079e-06
  5  2.11503
  6  7.58942e-05
  7  3.81106
  8  0.751102
  9  1.72987e-05
  10  4.95238e-06
  11  3.9575e-05
  12  2.3448
  13  9.47506e-07
  14  5.78045
  15  8.3134e-06
  16  3.49865e-05
  17  6.92983
  18  49.0695
  19  0.000520243
  20  3.09087e-05
  21  4.96467
  22  0.204368
  23  0.226001
Done.

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

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  3.957e-05  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:  8.453e-01  2.260e-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.849e-01  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 29.078 -24.334
Photon Flux Upper Limit: 3.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/915368/likelihoodResults_509673601_509932801_4FGL_J0156.3-2420_daily_bin1043.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) = 4579.08339495
delta logL = -0.000386180204259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4579.08300921
delta logL = -4.48624632554e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10553E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9133       1.0000          .0000       10.000    
     3 'Normalizat'    .98502       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84508       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=   4579.083     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      236 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10188E-03    113.90        .18142E-02** at limit **
   2  Index         1.8485        5.2323        .50000        .13605E-04
   3  Normalizat    .98487        .12608E-01    .21378E-03    .86682E-05
   4  Prefactor     .84526        .14421E-01    .26061E-03    .58892E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101877
  Index      = 1.84854
  Normalizat = 0.984866
  Prefactor  = 0.845256
 **********
 **   18 **HESSE 
 **********

 FCN=   4579.083     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10188E-03    478.40        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8485        5.9420        .50000       -.68193    
   3  Normalizat    .98487        .26822E-01    .85512E-05   -.93539    
   4  Prefactor     .84526        .30679E-01    .10424E-04   -.98081    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.89433e-08
Minuit parameter uncertainties:
  1  0.0604201
  2  667.083
  3  0.0268227
  4  0.0306797
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915368': 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) = 4579.08300848
delta logL = 2.81132088276e-07

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.019e-04  6.042e-02  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.849e+00  6.671e+02  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:  8.453e-01  3.068e-02  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.849e-01  2.682e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 29.078 -24.334

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/915368/cmap_HighResolution_509673601_509932801_4FGL_J0156.3-2420_daily_bin1043.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.64e-03', job_status='DONE', photon_flux_upper_limit='3.54e-08', time_completed='2021-08-14 20:42:48.979126', job_id='915368', GAL2='0.85', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1628998968.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.81e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='1043' AND source_name='4FGL J0156.3-2420' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:42:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0029>
Subject: Job 915368: <4FGL_J0156.3-2420_daily_bin1043> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.3-2420_daily_bin1043 29.0777 -24.3345 509673601 509932801 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 :                                   588.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   662 sec.
    Turnaround time :                            721 sec.

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

