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


Performing analysis on: 4FGL_J0156.3-2420_daily_bin887
RA = 29.0777, Dec = -24.3345
tmin = 469238401, tmax = 469497601
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='915117', job_status='RUN', time_executed='2021-08-14 20:33:13.027553', time_epoch_executed='1628998393.03' WHERE source_name='4FGL J0156.3-2420' and cadence='daily' and bin_id='887'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915117

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915117/ft1_4FGL_J0156.3-2420_daily_bin887.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915117/ft2_4FGL_J0156.3-2420_daily_bin887.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915117/ft1_4FGL_J0156.3-2420_daily_bin887.fits outfile=/scratch/kocevski/915117/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin887.fits ra=29.0777 dec=-24.3345 rad=12.0 tmin=469238401.0 tmax=469497601.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 12.70
user 3.24
sys 9.34

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/915117/ft2_4FGL_J0156.3-2420_daily_bin887.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/915117/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin887.fits evtable="EVENTS" outfile="/scratch/kocevski/915117/ft1_filtered_4FGL_J0156.3-2420_daily_bin887.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 10.03
user 0.35
sys 9.54

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/915117/ft1_filtered_4FGL_J0156.3-2420_daily_bin887.fits" evtable="EVENTS" scfile=/scratch/kocevski/915117/ft2_4FGL_J0156.3-2420_daily_bin887.fits sctable="SC_DATA" outfile=/scratch/kocevski/915117/ltcube_469238401_469497601_4FGL_J0156.3-2420_daily_bin887.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/915117/ft2_4FGL_J0156.3-2420_daily_bin887.fits
.....................!
real 25.01
user 13.97
sys 10.90

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915117/ft1_filtered_4FGL_J0156.3-2420_daily_bin887.fits evtable="EVENTS" scfile=/scratch/kocevski/915117/ft2_4FGL_J0156.3-2420_daily_bin887.fits sctable="SC_DATA" expcube=/scratch/kocevski/915117/ltcube_469238401_469497601_4FGL_J0156.3-2420_daily_bin887.fits outfile=/scratch/kocevski/915117/expmap_469238401_469497601_4FGL_J0156.3-2420_daily_bin887.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/915117/ltcube_469238401_469497601_4FGL_J0156.3-2420_daily_bin887.fits
.....................!
real 203.15
user 186.11
sys 16.54

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/915117/ft1_filtered_4FGL_J0156.3-2420_daily_bin887.fits scfile=/scratch/kocevski/915117/ft2_4FGL_J0156.3-2420_daily_bin887.fits outfile=/scratch/kocevski/915117/cmap_469238401_469497601_4FGL_J0156.3-2420_daily_bin887.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 10.60
user 0.37
sys 9.28

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/915117/ft1_filtered_4FGL_J0156.3-2420_daily_bin887.fits scfile=/scratch/kocevski/915117/ft2_4FGL_J0156.3-2420_daily_bin887.fits outfile=/scratch/kocevski/915117/cmap_HighResolution_469238401_469497601_4FGL_J0156.3-2420_daily_bin887.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 12.80
user 0.39
sys 9.34

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/915117/ft1_filtered_4FGL_J0156.3-2420_daily_bin887.fits evtable="EVENTS" scfile=/scratch/kocevski/915117/ft2_4FGL_J0156.3-2420_daily_bin887.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/915117/Model_4FGL_J0156.3-2420_daily_bin887.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/915117/ft1_filtered_4FGL_J0156.3-2420_daily_bin887.fits.....................!
real 63.77
user 47.70
sys 13.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1056       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.397       1.0000         .10000E-03   10000.    
     4 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.332       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0674       1.0000         .10000E-03   10000.    
     8 'norm      '    1.2483       1.0000         .10000E-03   10000.    
     9 'norm      '    .91922       1.0000         .10000E-03   10000.    
    10 'norm      '    .26077       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .12100E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1120       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.557       1.0000         .10000E-03   10000.    
    16 'norm      '    15.508       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.349       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10995E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11649E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .80323       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78728       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=   5588.394     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     3181 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1063        4.7190        .24490E-06    .39532E-03
   2  Prefactor     .10000E-03    5.8365        .79612E-06** at limit **
   3  Prefactor     14.403        9.3292       -.10223E-06   -.14859E-03
   4  norm          .10000E-03    1.6532        .87588E-06** at limit **
   5  norm          .10000E-03    .76606       -.11015E-08** at limit **
   6  Prefactor     19.333        12.440        .24284E-07   -.83494E-04
   7  Prefactor     3.0681        3.3389       -.74456E-07    .40847E-04
   8  norm          1.2484        1.0390        .68658E-08    .12959E-03
   9  norm          .91913        1.0654        .49003E-07    .45050E-04
  10  norm          .25971        1.5482        .41371E-06    .14337E-03
  11  Prefactor     .10000E-03    30.654       -.74064E-06** at limit **
  12  norm          .10000E-03    1.0429        .17646E-07** at limit **
  13  Prefactor     .10000E-03    1.5365       -.17629E-07** at limit **
  14  Prefactor     1.1157        2.0751       -.66841E-06   -.86886E-03
  15  Prefactor     10.559        9.2182       -.27621E-07    .99314E-04
  16  norm          15.508        35.634        .10259E-06    .20821E-04
  17  Prefactor     13.344        6.6214        .21462E-06    .11546E-03
  18  Prefactor     .10000E-03    10.498       -.25375E-05** at limit **
  19  Prefactor     .10000E-03    80.374        .85587E-06** at limit **
  20  Prefactor     .10000E-03    17.012        .70635E-06** at limit **
  21  Prefactor     .10000E-03    8.8807       -.35309E-05** at limit **
  22  Normalizat    .80323        .13824       -.10436E-06   -.26502E-04
  23  Prefactor     .78722        .15494        .68714E-08   -.48709E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.10629
  Prefactor  = 0.0001
  Prefactor  = 14.4028
  norm       = 0.000100003
  norm       = 0.0001
  Prefactor  = 19.3326
  Prefactor  = 3.06805
  norm       = 1.24843
  norm       = 0.919135
  norm       = 0.259712
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.11573
  Prefactor  = 10.5586
  norm       = 15.5084
  Prefactor  = 13.3445
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.80323
  Prefactor  = 0.787219
 **********
 **   18 **HESSE 
 **********

 FCN=   5588.394     FROM HESSE     STATUS=OK           384 CALLS     3565 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1063        5.0404        .32508E-03   -1.5498    
   2  Prefactor     .10000E-03    5.8373        .17571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.403        8.4353        .10556E-03   -1.4949    
   4  norm          .10000E-03    5.8883        .14473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .77478        .63829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.333        12.416        .91093E-04   -1.4828    
   7  Prefactor     3.0681        3.3105        .13300E-03   -1.5358    
   8  norm          1.2484        1.0302        .66559E-04   -1.5485    
   9  norm          .91913        1.0161        .79412E-03   -1.5516    
  10  norm          .25971        2.6823        .17135E-02   -1.5606    
  11  Prefactor     .10000E-03    30.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.9965        .14636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.5368        .90496E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.1157        1.8584        .15888E-02   -1.5497    
  15  Prefactor     10.559        9.2531        .12331E-03   -1.5058    
  16  norm          15.508        35.828        .10170E-03   -1.4920    
  17  Prefactor     13.344        6.6544        .10963E-03   -1.4977    
  18  Prefactor     .10000E-03    10.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    80.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.8188        .23850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .80323        .15989        .20006E-03   -.99949    
  23  Prefactor     .78722        .18137        .23793E-03   -1.0020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16669e-09
Minuit parameter uncertainties:
  1  4.72324
  2  6.23775e-06
  3  8.436
  4  0.000245283
  5  7.77261e-07
  6  12.4174
  7  3.3107
  8  1.0302
  9  1.0161
  10  1.66904
  11  1.39295e-06
  12  9.35074e-06
  13  4.92642e-08
  14  1.85845
  15  9.25435
  16  35.8781
  17  6.65472
  18  2.7151e-06
  19  2.51822e-05
  20  1.73105e-05
  21  0.000134383
  22  0.159985
  23  0.181505
Done.

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

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  1.393e-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:  7.872e-01  1.815e-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:  8.032e-01  1.600e-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.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/915117/likelihoodResults_469238401_469497601_4FGL_J0156.3-2420_daily_bin887.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) = 5588.3941994
delta logL = -0.00015448344675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5588.39404497
delta logL = -5.3549229051e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1336       1.0000          .0000       10.000    
     3 'Normalizat'    .80323       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78722       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=   5588.394     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      228 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.5596        .90712E-02** at limit **
   2  Index         2.1216        8.1534        .50000        .30494E-05
   3  Normalizat    .80323        .17742E-02    .43652E-01   -.58443E-04
   4  Prefactor     .78722        .21039E-02    .43551E-01   -.33599E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12163
  Normalizat = 0.803229
  Prefactor  = 0.78722
 **********
 **   18 **HESSE 
 **********

 FCN=   5588.394     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      261 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    110.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1216        5.8429        .50000       -.61343    
   3  Normalizat    .80323        .63521E-02    .20006E-03   -.99949    
   4  Prefactor     .78722        .75329E-02    .23793E-03   -1.0020    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.64694e-08
Minuit parameter uncertainties:
  1  0.000386354
  2  163.48
  3  0.00635208
  4  0.00753289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915117': 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) = 5588.39404495
delta logL = -3.81123754778e-08

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  3.864e-04  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  2.122e+00  1.635e+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:  7.872e-01  7.533e-03  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:  8.032e-01  6.352e-03  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/915117/cmap_HighResolution_469238401_469497601_4FGL_J0156.3-2420_daily_bin887.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-03', job_status='DONE', photon_flux_upper_limit='3.42e-08', time_completed='2021-08-14 20:46:46.230806', job_id='915117', GAL2='0.79', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1628999206.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='-3.81e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='887' AND source_name='4FGL J0156.3-2420' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:46:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 915117: <4FGL_J0156.3-2420_daily_bin887> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.3-2420_daily_bin887 29.0777 -24.3345 469238401 469497601 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 :                                   949.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             257.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            982 sec.

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

