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


Performing analysis on: 4FGL_J0156.3-2420_daily_bin1135
RA = 29.0777, Dec = -24.3345
tmin = 533520001, tmax = 533779201
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='915487', job_status='RUN', time_executed='2021-08-14 20:35:09.216572', time_epoch_executed='1628998509.22' WHERE source_name='4FGL J0156.3-2420' and cadence='daily' and bin_id='1135'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915487

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915487/ft1_4FGL_J0156.3-2420_daily_bin1135.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915487/ft2_4FGL_J0156.3-2420_daily_bin1135.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915487/ft1_4FGL_J0156.3-2420_daily_bin1135.fits outfile=/scratch/kocevski/915487/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1135.fits ra=29.0777 dec=-24.3345 rad=12.0 tmin=533520001.0 tmax=533779201.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 5.97
user 3.30
sys 2.60

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/915487/ft1_filtered_4FGL_J0156.3-2420_daily_bin1135.fits" evtable="EVENTS" scfile=/scratch/kocevski/915487/ft2_4FGL_J0156.3-2420_daily_bin1135.fits sctable="SC_DATA" outfile=/scratch/kocevski/915487/ltcube_533520001_533779201_4FGL_J0156.3-2420_daily_bin1135.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/915487/ft2_4FGL_J0156.3-2420_daily_bin1135.fits
.....................!
real 15.55
user 12.45
sys 3.01

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915487/ft1_filtered_4FGL_J0156.3-2420_daily_bin1135.fits evtable="EVENTS" scfile=/scratch/kocevski/915487/ft2_4FGL_J0156.3-2420_daily_bin1135.fits sctable="SC_DATA" expcube=/scratch/kocevski/915487/ltcube_533520001_533779201_4FGL_J0156.3-2420_daily_bin1135.fits outfile=/scratch/kocevski/915487/expmap_533520001_533779201_4FGL_J0156.3-2420_daily_bin1135.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/915487/ltcube_533520001_533779201_4FGL_J0156.3-2420_daily_bin1135.fits
.....................!
real 194.41
user 186.20
sys 7.71

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/915487/ft1_filtered_4FGL_J0156.3-2420_daily_bin1135.fits scfile=/scratch/kocevski/915487/ft2_4FGL_J0156.3-2420_daily_bin1135.fits outfile=/scratch/kocevski/915487/cmap_533520001_533779201_4FGL_J0156.3-2420_daily_bin1135.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 3.60
user 0.38
sys 2.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/915487/ft1_filtered_4FGL_J0156.3-2420_daily_bin1135.fits scfile=/scratch/kocevski/915487/ft2_4FGL_J0156.3-2420_daily_bin1135.fits outfile=/scratch/kocevski/915487/cmap_HighResolution_533520001_533779201_4FGL_J0156.3-2420_daily_bin1135.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 3.12
user 0.39
sys 2.49

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/915487/ft1_filtered_4FGL_J0156.3-2420_daily_bin1135.fits evtable="EVENTS" scfile=/scratch/kocevski/915487/ft2_4FGL_J0156.3-2420_daily_bin1135.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/915487/Model_4FGL_J0156.3-2420_daily_bin1135.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/915487/ft1_filtered_4FGL_J0156.3-2420_daily_bin1135.fits....................!
real 55.26
user 50.27
sys 4.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16328E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.599       1.0000         .10000E-03   10000.    
     4 'norm      '    .93674       1.0000         .10000E-03   10000.    
     5 'norm      '    3.5198       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.9317       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2626       1.0000         .10000E-03   10000.    
    10 'norm      '    2.1499       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.8697       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.6748       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.6493       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3125       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    49.449       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.6118       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8409       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .68497       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88938       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=   6159.807     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2560 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    6.4879        .19985E-05** at limit **
   2  Prefactor     .10000E-03    4.4765       -.41072E-06** at limit **
   3  Prefactor     25.601        16.164       -.42628E-06   -.24990E-03
   4  norm          .93603        3.1489        .69340E-06   -.58743E-03
   5  norm          3.5198        1.8867        .19120E-08   -.28126E-03
   6  Prefactor     .10000E-03    4.0576        .75050E-07** at limit **
   7  Prefactor     .10000E-03    2.3719       -.22207E-07** at limit **
   8  norm          1.9317        1.0378        .33512E-07   -.53888E-03
   9  norm          1.2624        1.2646        .20777E-07   -.27440E-03
  10  norm          2.1500        2.5114        .10986E-06   -.27236E-03
  11  Prefactor     .10000E-03    25.738       -.33581E-05** at limit **
  12  norm          1.8697        1.3946        .19460E-07   -.12969E-03
  13  Prefactor     .10000E-03    3.4722       -.14591E-07** at limit **
  14  Prefactor     8.6749        4.8015        .49862E-07   -.96223E-04
  15  Prefactor     9.6494        6.4401        .47621E-06   -.87939E-03
  16  norm          .10000E-03    18.350       -.24567E-05** at limit **
  17  Prefactor     3.3125        3.7780       -.32132E-07   -.10497E-03
  18  Prefactor     .10000E-03    9.0777        .45260E-07** at limit **
  19  Prefactor     49.454        41.459        .33266E-05    .29624E-03
  20  Prefactor     5.6101        18.876       -.17127E-05   -.11518E-03
  21  Prefactor     1.8407        1.8037       -.53108E-07    .82757E-04
  22  Normalizat    .68494        .13916       -.41595E-06   -.24268E-03
  23  Prefactor     .88941        .15660       -.19929E-06   -.20338E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100076
  Prefactor  = 0.0001
  Prefactor  = 25.6012
  norm       = 0.936032
  norm       = 3.51981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.93169
  norm       = 1.26241
  norm       = 2.15
  Prefactor  = 0.000100003
  norm       = 1.86972
  Prefactor  = 0.0001
  Prefactor  = 8.67491
  Prefactor  = 9.64938
  norm       = 0.000100002
  Prefactor  = 3.31253
  Prefactor  = 0.0001
  Prefactor  = 49.4538
  Prefactor  = 5.61008
  Prefactor  = 1.84073
  Normalizat = 0.684939
  Prefactor  = 0.889414
 **********
 **   18 **HESSE 
 **********

 FCN=   6159.807     FROM HESSE     STATUS=OK           376 CALLS     2936 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    22.195        .33626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.5079        .16227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.601        15.107        .79175E-04   -1.4696    
   4  norm          .93603        3.0477        .16220E-03   -1.5514    
   5  norm          3.5198        1.8845        .76442E-04   -1.5333    
   6  Prefactor     .10000E-03    4.0653        .15437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.5582        .22468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.9317        1.0433        .14941E-03   -1.5430    
   9  norm          1.2624        1.2318        .83925E-04   -1.5483    
  10  norm          2.1500        2.5149        .12408E-03   -1.5415    
  11  Prefactor     .10000E-03    26.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8697        1.3839        .76443E-04   -1.5434    
  13  Prefactor     .10000E-03    3.4795        .14279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.6749        4.8105        .12024E-03   -1.5119    
  15  Prefactor     9.6494        7.2940        .64503E-03   -1.5087    
  16  norm          .10000E-03    18.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.3125        3.7670        .15491E-03   -1.5344    
  18  Prefactor     .10000E-03    9.0898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     49.454        42.621        .57027E-04   -1.4300    
  20  Prefactor     5.6101        19.062        .16958E-03   -1.5234    
  21  Prefactor     1.8407        1.8214        .10158E-03   -1.5437    
  22  Normalizat    .68494        .16173        .21878E-03   -1.0449    
  23  Prefactor     .88941        .18343        .23278E-03   -.96512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.62358e-09
Minuit parameter uncertainties:
  1  0.0026017
  2  3.77089e-05
  3  15.1097
  4  3.04818
  5  1.88455
  6  4.34246e-06
  7  3.48468e-05
  8  1.0433
  9  1.23181
  10  2.51502
  11  0.000587369
  12  1.38394
  13  2.54431e-07
  14  4.81074
  15  7.2947
  16  0.000361511
  17  3.7673
  18  6.83324e-06
  19  42.6472
  20  19.0831
  21  1.82149
  22  0.161846
  23  0.183555
Done.

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

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  5.874e-04  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.894e-01  1.836e-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:  6.849e-01  1.618e-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.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/915487/likelihoodResults_533520001_533779201_4FGL_J0156.3-2420_daily_bin1135.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) = 6159.80676911
delta logL = -0.000180797192115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6159.02471278
delta logL = 0.781875538974

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 'Index     '    6.7843       1.0000          .0000       10.000    
     3 'Normalizat'    .61915       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94298       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.

 FCN=   6159.025     FROM MIGRAD    STATUS=CONVERGED    248 CALLS      564 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .25420E-02    .34054E-03** at limit **
   2  Index         6.7843        1.7546        .10139        .21195E-03
   3  Normalizat    .61913        .29443E-01    .41201E-01    .41034E-04
   4  Prefactor     .94300        .35012E-01    .45551E-01    .64547E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.7843
  Normalizat = 0.619128
  Prefactor  = 0.943003
 **********
 **   18 **HESSE 
 **********

 FCN=   6159.025     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      605 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .23094E-01    .15537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.7843        3.3995        .35584E-02    .36491    
   3  Normalizat    .61913        .76134E-01    .22921E-03   -1.0718    
   4  Prefactor     .94300        .89490E-01    .22686E-03   -.94654    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.51697e-09
Minuit parameter uncertainties:
  1  1.75446e-09
  2  3.80733
  3  0.0761468
  4  0.0895041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915487': 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) = 6159.02471255
delta logL = 0.781875769731

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  1.754e-09  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  6.784e+00  3.807e+00  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:  9.430e-01  8.950e-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:  6.191e-01  7.615e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.71
Ra Dec: 29.078 -24.334
Photon Index (Free Index): 6.78 +/- 3.81
Photon Flux (Free Index): 4.18e-08 +/- 4.73e-07
Energy Flux (Free Index): 5.03e-06 +/- 5.65e-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/915487/cmap_HighResolution_533520001_533779201_4FGL_J0156.3-2420_daily_bin1135.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.90e-03', comment='SUCCESS', energy_flux2='5.03e-06', dlogl='7.82e-01', photon_flux2='4.18e-08', job_status='DONE', time_completed='2021-08-14 20:47:20.916877', photon_index_error2='3.81', photon_index2='6.78', ts='-0.00', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='3.89e-08', energy_flux_error2='5.65e-05', EG='0.68', time_epoch_completed='1628999240.92', return_code='0', job_id='915487', GAL2='0.94', EG2='0.62', return_code2='102', photon_flux_error2='4.73e-07', ts2='1.71', photon_index='1.94' WHERE bin_id='1135' AND source_name='4FGL J0156.3-2420' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:47:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0146>
Subject: Job 915487: <4FGL_J0156.3-2420_daily_bin1135> in cluster <slac> Done

Job <4FGL_J0156.3-2420_daily_bin1135> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 14 20:31:00 2021
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 20:32:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 20:32:27 2021
Terminated at Sat Aug 14 20:47:22 2021
Results reported at Sat Aug 14 20:47:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.3-2420_daily_bin1135 29.0777 -24.3345 533520001 533779201 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 :                                   763.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            982 sec.

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

