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


Performing analysis on: 4FGL_J0156.3-2420_daily_bin1082
RA = 29.0777, Dec = -24.3345
tmin = 519782401, tmax = 520041601
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='915428', job_status='RUN', time_executed='2021-08-14 20:33:22.356314', time_epoch_executed='1628998402.36' WHERE source_name='4FGL J0156.3-2420' and cadence='daily' and bin_id='1082'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915428

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915428/ft1_4FGL_J0156.3-2420_daily_bin1082.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915428/ft2_4FGL_J0156.3-2420_daily_bin1082.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915428/ft1_4FGL_J0156.3-2420_daily_bin1082.fits outfile=/scratch/kocevski/915428/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1082.fits ra=29.0777 dec=-24.3345 rad=12.0 tmin=519782401.0 tmax=520041601.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.04
user 3.29
sys 1.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/915428/ft2_4FGL_J0156.3-2420_daily_bin1082.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/915428/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1082.fits evtable="EVENTS" outfile="/scratch/kocevski/915428/ft1_filtered_4FGL_J0156.3-2420_daily_bin1082.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 4.55
user 0.37
sys 1.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/915428/ft1_filtered_4FGL_J0156.3-2420_daily_bin1082.fits" evtable="EVENTS" scfile=/scratch/kocevski/915428/ft2_4FGL_J0156.3-2420_daily_bin1082.fits sctable="SC_DATA" outfile=/scratch/kocevski/915428/ltcube_519782401_520041601_4FGL_J0156.3-2420_daily_bin1082.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/915428/ft2_4FGL_J0156.3-2420_daily_bin1082.fits
.....................!
real 15.69
user 12.90
sys 1.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915428/ft1_filtered_4FGL_J0156.3-2420_daily_bin1082.fits evtable="EVENTS" scfile=/scratch/kocevski/915428/ft2_4FGL_J0156.3-2420_daily_bin1082.fits sctable="SC_DATA" expcube=/scratch/kocevski/915428/ltcube_519782401_520041601_4FGL_J0156.3-2420_daily_bin1082.fits outfile=/scratch/kocevski/915428/expmap_519782401_520041601_4FGL_J0156.3-2420_daily_bin1082.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/915428/ltcube_519782401_520041601_4FGL_J0156.3-2420_daily_bin1082.fits
.....................!
real 196.59
user 185.79
sys 6.15

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/915428/ft1_filtered_4FGL_J0156.3-2420_daily_bin1082.fits scfile=/scratch/kocevski/915428/ft2_4FGL_J0156.3-2420_daily_bin1082.fits outfile=/scratch/kocevski/915428/cmap_519782401_520041601_4FGL_J0156.3-2420_daily_bin1082.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.58
user 0.39
sys 1.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/915428/ft1_filtered_4FGL_J0156.3-2420_daily_bin1082.fits scfile=/scratch/kocevski/915428/ft2_4FGL_J0156.3-2420_daily_bin1082.fits outfile=/scratch/kocevski/915428/cmap_HighResolution_519782401_520041601_4FGL_J0156.3-2420_daily_bin1082.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.55
user 0.38
sys 1.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/915428/ft1_filtered_4FGL_J0156.3-2420_daily_bin1082.fits evtable="EVENTS" scfile=/scratch/kocevski/915428/ft2_4FGL_J0156.3-2420_daily_bin1082.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/915428/Model_4FGL_J0156.3-2420_daily_bin1082.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/915428/ft1_filtered_4FGL_J0156.3-2420_daily_bin1082.fits.....................!
real 55.68
user 52.82
sys 2.52

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.915       1.0000         .10000E-03   10000.    
     4 'norm      '    .17739E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.3238       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .22211       1.0000         .10000E-03   10000.    
     8 'norm      '    3.6245       1.0000         .10000E-03   10000.    
     9 'norm      '    1.6433       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.1384       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8056       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    52.958       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .97567       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.423       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.4670       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .76033       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0448       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=   6698.437     FROM MIGRAD    STATUS=CONVERGED    527 CALLS     2609 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7356        .19344E-07** at limit **
   2  Prefactor     .10000E-03    3.2209        .72238E-08** at limit **
   3  Prefactor     20.899        9.9175       -.60706E-06   -.86113E-03
   4  norm          .10002E-03    1.5242        .83654E-06** at limit **
   5  norm          4.3238        2.1215        .10811E-07   -.10002E-03
   6  Prefactor     .10000E-03    5.0380        .32810E-07** at limit **
   7  Prefactor     .23182        2.0342       -.36628E-06    .25377E-03
   8  norm          3.6246        1.2502        .16646E-07   -.14729E-03
   9  norm          1.6432        1.6642        .98369E-07   -.78757E-04
  10  norm          .10000E-03    .56894       -.84388E-08** at limit **
  11  Prefactor     .10000E-03    12.371       -.27637E-07** at limit **
  12  norm          3.1385        1.9367        .53751E-07   -.11264E-03
  13  Prefactor     .10000E-03    9.3478       -.38501E-06** at limit **
  14  Prefactor     6.8046        4.4881       -.15025E-07   -.98198E-04
  15  Prefactor     .10000E-03    4.3501        .49913E-06** at limit **
  16  norm          52.975        38.012        .16095E-05    .17584E-03
  17  Prefactor     .97678        3.4639        .12622E-05   -.13973E-03
  18  Prefactor     .10000E-03    85.933        .12975E-05** at limit **
  19  Prefactor     26.421        28.861       -.12040E-06   -.26851E-04
  20  Prefactor     .10000E-03    6.4445       -.10686E-06** at limit **
  21  Prefactor     4.4665        3.2070        .10807E-07   -.22896E-04
  22  Normalizat    .76030        .14761       -.62853E-06   -.18700E-03
  23  Prefactor     1.0447        .16733       -.16199E-06   -.19432E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.8987
  norm       = 0.000100018
  norm       = 4.32384
  Prefactor  = 0.0001
  Prefactor  = 0.231816
  norm       = 3.62455
  norm       = 1.64321
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.13846
  Prefactor  = 0.0001
  Prefactor  = 6.80457
  Prefactor  = 0.0001
  norm       = 52.9754
  Prefactor  = 0.976779
  Prefactor  = 0.0001
  Prefactor  = 26.4211
  Prefactor  = 0.0001
  Prefactor  = 4.46652
  Normalizat = 0.760304
  Prefactor  = 1.04471
 **********
 **   18 **HESSE 
 **********

 FCN=   6698.437     FROM HESSE     STATUS=OK           368 CALLS     2977 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7378        .10530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.2292        .14344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.899        9.6293        .87582E-04   -1.4793    
   4  norm          .10002E-03    8.8501        .15151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.3238        2.1197        .80797E-04   -1.5292    
   6  Prefactor     .10000E-03    5.0497        .17937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .23182        10.432        .19915E-02   -1.5612    
   8  norm          3.6246        1.2503        .51569E-04   -1.5327    
   9  norm          1.6432        1.6375        .99300E-04   -1.5452    
  10  norm          .10000E-03    .57371        .60251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.1385        1.9374        .84030E-04   -1.5354    
  13  Prefactor     .10000E-03    9.4897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.8046        4.4819        .13302E-03   -1.5186    
  15  Prefactor     .10000E-03    4.3277        .16562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          52.975        39.081        .55115E-04   -1.4251    
  17  Prefactor     .97678        3.3985        .27084E-03   -1.5510    
  18  Prefactor     .10000E-03    89.223        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     26.421        28.867        .77933E-04   -1.4679    
  20  Prefactor     .10000E-03    6.4519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.4665        3.2063        .12075E-03   -1.5285    
  22  Normalizat    .76030        .17085        .23232E-03   -1.0156    
  23  Prefactor     1.0447        .19480        .24054E-03   -.91254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12474e-09
Minuit parameter uncertainties:
  1  9.5797e-07
  2  1.94291e-06
  3  9.62999
  4  0.000791672
  5  2.11977
  6  6.46177e-06
  7  3.11009
  8  1.25026
  9  1.63751
  10  6.84274e-07
  11  1.32159e-06
  12  1.93743
  13  2.14045e-05
  14  4.48209
  15  2.98851e-05
  16  39.0995
  17  3.39918
  18  0.000349598
  19  28.8821
  20  7.37572e-06
  21  3.20641
  22  0.170966
  23  0.194935
Done.

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

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  1.322e-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:  1.045e+00  1.949e-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:  7.603e-01  1.710e-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.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/915428/likelihoodResults_519782401_520041601_4FGL_J0156.3-2420_daily_bin1082.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) = 6698.43757817
delta logL = -0.00038441396191

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6698.43719404
delta logL = -2.92906406685e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10625E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9011       1.0000          .0000       10.000    
     3 'Normalizat'    .76019       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0449       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=   6698.437     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      237 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10188E-03    80.890        .18142E-02** at limit **
   2  Index         1.8363        6.9227        .50000        .19201E-04
   3  Normalizat    .76030        .81486E-02    .23232E-03   -.50062E-04
   4  Prefactor     1.0447        .98049E-02    .24054E-03   -.12005E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101885
  Index      = 1.83633
  Normalizat = 0.760304
  Prefactor  = 1.04471
 **********
 **   18 **HESSE 
 **********

 FCN=   6698.437     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10188E-03    347.86        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8363        7.3642        .50000       -.68508    
   3  Normalizat    .76030        .17322E-01    .92927E-05   -1.0156    
   4  Prefactor     1.0447        .20843E-01    .96217E-05   -.91254    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.29945e-08
Minuit parameter uncertainties:
  1  0.0515117
  2  375.656
  3  0.0173226
  4  0.0208433
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915428': 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) = 6698.43719325
delta logL = 5.05913703819e-07

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.019e-04  5.151e-02  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.836e+00  3.757e+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:  1.045e+00  2.084e-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:  7.603e-01  1.732e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/915428/cmap_HighResolution_519782401_520041601_4FGL_J0156.3-2420_daily_bin1082.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.24e-03', job_status='DONE', photon_flux_upper_limit='3.00e-08', time_completed='2021-08-14 20:45:07.985199', job_id='915428', GAL2='1.04', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1628999107.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='5.06e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='1082' AND source_name='4FGL J0156.3-2420' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:45:08 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.3-2420_daily_bin1082 29.0777 -24.3345 519782401 520041601 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 :                                   711.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            856 sec.

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

