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


Performing analysis on: 4FGL_J0156.3-2420_daily_bin1296
RA = 29.0777, Dec = -24.3345
tmin = 575251201, tmax = 575510401
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='916870', job_status='RUN', time_executed='2021-08-14 20:37:52.473409', time_epoch_executed='1628998672.47' WHERE source_name='4FGL J0156.3-2420' and cadence='daily' and bin_id='1296'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/916870

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/916870/ft1_4FGL_J0156.3-2420_daily_bin1296.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/916870/ft2_4FGL_J0156.3-2420_daily_bin1296.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/916870/ft1_4FGL_J0156.3-2420_daily_bin1296.fits outfile=/scratch/kocevski/916870/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1296.fits ra=29.0777 dec=-24.3345 rad=12.0 tmin=575251201.0 tmax=575510401.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 7.42
user 5.03
sys 2.34

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/916870/ft2_4FGL_J0156.3-2420_daily_bin1296.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/916870/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1296.fits evtable="EVENTS" outfile="/scratch/kocevski/916870/ft1_filtered_4FGL_J0156.3-2420_daily_bin1296.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.61
user 0.32
sys 2.26

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/916870/ft1_filtered_4FGL_J0156.3-2420_daily_bin1296.fits" evtable="EVENTS" scfile=/scratch/kocevski/916870/ft2_4FGL_J0156.3-2420_daily_bin1296.fits sctable="SC_DATA" outfile=/scratch/kocevski/916870/ltcube_575251201_575510401_4FGL_J0156.3-2420_daily_bin1296.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/916870/ft2_4FGL_J0156.3-2420_daily_bin1296.fits
.....................!
real 16.25
user 12.35
sys 2.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/916870/ft1_filtered_4FGL_J0156.3-2420_daily_bin1296.fits evtable="EVENTS" scfile=/scratch/kocevski/916870/ft2_4FGL_J0156.3-2420_daily_bin1296.fits sctable="SC_DATA" expcube=/scratch/kocevski/916870/ltcube_575251201_575510401_4FGL_J0156.3-2420_daily_bin1296.fits outfile=/scratch/kocevski/916870/expmap_575251201_575510401_4FGL_J0156.3-2420_daily_bin1296.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/916870/ltcube_575251201_575510401_4FGL_J0156.3-2420_daily_bin1296.fits
.....................!
real 195.95
user 185.37
sys 8.82

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/916870/ft1_filtered_4FGL_J0156.3-2420_daily_bin1296.fits scfile=/scratch/kocevski/916870/ft2_4FGL_J0156.3-2420_daily_bin1296.fits outfile=/scratch/kocevski/916870/cmap_575251201_575510401_4FGL_J0156.3-2420_daily_bin1296.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 2.63
user 0.39
sys 2.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/916870/ft1_filtered_4FGL_J0156.3-2420_daily_bin1296.fits scfile=/scratch/kocevski/916870/ft2_4FGL_J0156.3-2420_daily_bin1296.fits outfile=/scratch/kocevski/916870/cmap_HighResolution_575251201_575510401_4FGL_J0156.3-2420_daily_bin1296.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 2.89
user 0.37
sys 2.42

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/916870/ft1_filtered_4FGL_J0156.3-2420_daily_bin1296.fits evtable="EVENTS" scfile=/scratch/kocevski/916870/ft2_4FGL_J0156.3-2420_daily_bin1296.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/916870/Model_4FGL_J0156.3-2420_daily_bin1296.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/916870/ft1_filtered_4FGL_J0156.3-2420_daily_bin1296.fits.....................!
real 55.58
user 51.18
sys 4.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7552       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18133E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0598       1.0000         .10000E-03   10000.    
     4 'norm      '    .12218E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .99719       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5273       1.0000         .10000E-03   10000.    
     8 'norm      '    2.6142       1.0000         .10000E-03   10000.    
     9 'norm      '    1.3889       1.0000         .10000E-03   10000.    
    10 'norm      '    1.7315       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.7129       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.278       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12777E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.985       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.260       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.5294       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .90316       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88852       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=   6212.553     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2237 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7561        4.7637        .41219E-06    .42285E-03
   2  Prefactor     .10040E-03    52.991       -.12509E-04** at limit **
   3  Prefactor     1.0489        7.5323        .42437E-05    .43098E-03
   4  norm          .10000E-03    1.1306        .32535E-06** at limit **
   5  norm          .99706        .92838       -.43535E-08    .20847E-03
   6  Prefactor     .10000E-03    7.2073       -.37222E-06** at limit **
   7  Prefactor     2.5291        3.7332        .83327E-06    .44650E-03
   8  norm          2.6142        1.2127       -.50955E-07    .69846E-04
   9  norm          1.3886        1.6020       -.15717E-06   -.71214E-04
  10  norm          1.7312        2.2145       -.19588E-06   -.34680E-04
  11  Prefactor     .10000E-03    11.128        .11007E-08** at limit **
  12  norm          2.7127        1.7952       -.89049E-07    .75854E-04
  13  Prefactor     10.277        7.6600       -.24898E-06   -.48860E-04
  14  Prefactor     .10000E-03    1.6589       -.36230E-06** at limit **
  15  Prefactor     .10000E-03    7.7435       -.39923E-06** at limit **
  16  norm          10.974        30.316        .18477E-05    .73140E-04
  17  Prefactor     .10000E-03    2.9680       -.90468E-06** at limit **
  18  Prefactor     14.250        25.022       -.30024E-06    .75898E-05
  19  Prefactor     .10000E-03    14.214       -.41210E-06** at limit **
  20  Prefactor     1.4804        74.101       -.24242E-06   -.37743E-04
  21  Prefactor     .10000E-03    2.4414       -.44850E-06** at limit **
  22  Normalizat    .90320        .15819        .38977E-05    .14754E-04
  23  Prefactor     .88852        .17698       -.34837E-05    .82844E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.75614
  Prefactor  = 0.000100403
  Prefactor  = 1.04892
  norm       = 0.000100001
  norm       = 0.997058
  Prefactor  = 0.0001
  Prefactor  = 2.5291
  norm       = 2.61421
  norm       = 1.38858
  norm       = 1.73119
  Prefactor  = 0.0001
  norm       = 2.71273
  Prefactor  = 10.2767
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.9745
  Prefactor  = 0.000100001
  Prefactor  = 14.2499
  Prefactor  = 0.0001
  Prefactor  = 1.48039
  Prefactor  = 0.0001
  Normalizat = 0.903204
  Prefactor  = 0.888517
 **********
 **   18 **HESSE 
 **********

 FCN=   6212.553     FROM HESSE     STATUS=OK           386 CALLS     2623 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7561        4.7999        .16571E-03   -1.5272    
   2  Prefactor     .10040E-03    10.464        .58998E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0489        11.019        .23744E-02   -1.5503    
   4  norm          .10000E-03    1.5190        .14942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .99706        .98093        .71155E-03   -1.5508    
   6  Prefactor     .10000E-03    7.2737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5291        3.7231        .16789E-03   -1.5390    
   8  norm          2.6142        1.2110        .56572E-04   -1.5385    
   9  norm          1.3886        1.5735        .10011E-03   -1.5472    
  10  norm          1.7312        2.1943        .12484E-03   -1.5445    
  11  Prefactor     .10000E-03    11.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.7127        1.7932        .81620E-04   -1.5379    
  13  Prefactor     10.277        7.6625        .12498E-03   -1.5067    
  14  Prefactor     .10000E-03    1.6909        .99264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.8360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.974        30.124        .12088E-03   -1.5045    
  17  Prefactor     .10000E-03    3.0617        .13359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.250        25.010        .10607E-03   -1.4953    
  19  Prefactor     .10000E-03    14.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.4804        73.828        .34517E-03   -1.5465    
  21  Prefactor     .10000E-03    2.5477        .24075E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .90320        .16926        .20618E-03   -.96348    
  23  Prefactor     .88852        .18961        .24687E-03   -.96544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77239e-09
Minuit parameter uncertainties:
  1  4.80033
  2  0.00411024
  3  6.80056
  4  9.23212e-05
  5  0.980948
  6  2.95822e-05
  7  3.7234
  8  1.21105
  9  1.5735
  10  2.19443
  11  5.45025e-06
  12  1.7932
  13  7.66326
  14  1.66215e-05
  15  3.14929e-05
  16  30.1657
  17  0.000135093
  18  25.0288
  19  5.36591e-05
  20  20.9355
  21  2.23248e-05
  22  0.169359
  23  0.189752
Done.

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

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  5.450e-06  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.885e-01  1.898e-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.032e-01  1.694e-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: 2.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/916870/likelihoodResults_575251201_575510401_4FGL_J0156.3-2420_daily_bin1296.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) = 6212.55322963
delta logL = -0.000427490851507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6212.55280209
delta logL = 5.61367414775e-08

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10120E-03    107.09        .18142E-02** at limit **
   2  Index         1.8647        6.3842        .50000        .11620E-04
   3  Normalizat    .90320        .10395E-01    .20618E-03    .54037E-05
   4  Prefactor     .88852        .12424E-01    .24687E-03   -.16579E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101204
  Index      = 1.86473
  Normalizat = 0.903205
  Prefactor  = 0.888516
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10120E-03    464.15        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8647        5.9131        .50000       -.67777    
   3  Normalizat    .90320        .22554E-01    .82472E-05   -.96348    
   4  Prefactor     .88852        .26955E-01    .98747E-05   -.96544    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.99698e-08
Minuit parameter uncertainties:
  1  0.047661
  2  712.689
  3  0.0225547
  4  0.0269557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/916870': 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) = 6212.55280195
delta logL = 1.92108018382e-07

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.012e-04  4.766e-02  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.865e+00  7.127e+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.885e-01  2.696e-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.032e-01  2.255e-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/916870/cmap_HighResolution_575251201_575510401_4FGL_J0156.3-2420_daily_bin1296.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.10e-03', job_status='DONE', photon_flux_upper_limit='2.82e-08', time_completed='2021-08-14 20:49:08.725692', job_id='916870', GAL2='0.89', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1628999348.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.92e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='1296' AND source_name='4FGL J0156.3-2420' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:49:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0010>
Subject: Job 916870: <4FGL_J0156.3-2420_daily_bin1296> in cluster <slac> Done

Job <4FGL_J0156.3-2420_daily_bin1296> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Aug 14 20:35:54 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 20:36: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:36:27 2021
Terminated at Sat Aug 14 20:49:10 2021
Results reported at Sat Aug 14 20:49:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.3-2420_daily_bin1296 29.0777 -24.3345 575251201 575510401 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.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            796 sec.

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

