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


Performing analysis on: 4FGL_J0156.3-2420_daily_bin1147
RA = 29.0777, Dec = -24.3345
tmin = 536630401, tmax = 536889601
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='915499', job_status='RUN', time_executed='2021-08-14 20:36:10.200777', time_epoch_executed='1628998570.2' WHERE source_name='4FGL J0156.3-2420' and cadence='daily' and bin_id='1147'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915499

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915499/ft1_4FGL_J0156.3-2420_daily_bin1147.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915499/ft2_4FGL_J0156.3-2420_daily_bin1147.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915499/ft1_4FGL_J0156.3-2420_daily_bin1147.fits outfile=/scratch/kocevski/915499/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1147.fits ra=29.0777 dec=-24.3345 rad=12.0 tmin=536630401.0 tmax=536889601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.26
user 3.38
sys 0.83

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/915499/ft2_4FGL_J0156.3-2420_daily_bin1147.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/915499/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1147.fits evtable="EVENTS" outfile="/scratch/kocevski/915499/ft1_filtered_4FGL_J0156.3-2420_daily_bin1147.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.16
user 0.34
sys 0.78

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/915499/ft1_filtered_4FGL_J0156.3-2420_daily_bin1147.fits" evtable="EVENTS" scfile=/scratch/kocevski/915499/ft2_4FGL_J0156.3-2420_daily_bin1147.fits sctable="SC_DATA" outfile=/scratch/kocevski/915499/ltcube_536630401_536889601_4FGL_J0156.3-2420_daily_bin1147.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/915499/ft2_4FGL_J0156.3-2420_daily_bin1147.fits
.....................!
real 13.60
user 12.54
sys 1.01

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915499/ft1_filtered_4FGL_J0156.3-2420_daily_bin1147.fits evtable="EVENTS" scfile=/scratch/kocevski/915499/ft2_4FGL_J0156.3-2420_daily_bin1147.fits sctable="SC_DATA" expcube=/scratch/kocevski/915499/ltcube_536630401_536889601_4FGL_J0156.3-2420_daily_bin1147.fits outfile=/scratch/kocevski/915499/expmap_536630401_536889601_4FGL_J0156.3-2420_daily_bin1147.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/915499/ltcube_536630401_536889601_4FGL_J0156.3-2420_daily_bin1147.fits
.....................!
real 191.87
user 185.41
sys 5.99

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/915499/ft1_filtered_4FGL_J0156.3-2420_daily_bin1147.fits scfile=/scratch/kocevski/915499/ft2_4FGL_J0156.3-2420_daily_bin1147.fits outfile=/scratch/kocevski/915499/cmap_536630401_536889601_4FGL_J0156.3-2420_daily_bin1147.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.18
user 0.38
sys 0.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/915499/ft1_filtered_4FGL_J0156.3-2420_daily_bin1147.fits scfile=/scratch/kocevski/915499/ft2_4FGL_J0156.3-2420_daily_bin1147.fits outfile=/scratch/kocevski/915499/cmap_HighResolution_536630401_536889601_4FGL_J0156.3-2420_daily_bin1147.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.17
user 0.38
sys 0.77

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/915499/ft1_filtered_4FGL_J0156.3-2420_daily_bin1147.fits evtable="EVENTS" scfile=/scratch/kocevski/915499/ft2_4FGL_J0156.3-2420_daily_bin1147.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/915499/Model_4FGL_J0156.3-2420_daily_bin1147.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/915499/ft1_filtered_4FGL_J0156.3-2420_daily_bin1147.fits.....................!
real 38.22
user 35.74
sys 2.00

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4254       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.8172       1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.829       1.0000         .10000E-03   10000.    
     4 'norm      '    4.9963       1.0000         .10000E-03   10000.    
     5 'norm      '    2.7643       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .93447E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    3.3749       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2851       1.0000         .10000E-03   10000.    
    10 'norm      '    .79384       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8989       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13718E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    48.613       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3075       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .56024       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=   3719.185     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     2610 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4261        23.833       -.10128E-05    .40153E-04
   2  Prefactor     9.8230        25.767        .77012E-07    .92822E-04
   3  Prefactor     31.857        27.379        .18140E-05    .23764E-03
   4  norm          4.9963        5.2460       -.81947E-06    .38107E-03
   5  norm          2.7644        3.3753       -.10467E-06    .22422E-03
   6  Prefactor     .10000E-03    29.155       -.85109E-05** at limit **
   7  Prefactor     .10031E-03    6.2290       -.67048E-06** at limit **
   8  norm          3.3751        2.0039       -.84126E-07    .20832E-03
   9  norm          1.2891        3.2917       -.15216E-06    .31412E-03
  10  norm          .79268        4.3718       -.16549E-06   -.31253E-04
  11  Prefactor     .10000E-03    20.702       -.25807E-05** at limit **
  12  norm          .10000E-03    1.5633       -.86624E-07** at limit **
  13  Prefactor     7.9010        10.990       -.14147E-06    .10116E-04
  14  Prefactor     .10000E-03    2.8689       -.18109E-07** at limit **
  15  Prefactor     .10002E-03    11.876       -.26940E-05** at limit **
  16  norm          48.581        67.016        .62485E-05   -.49000E-04
  17  Prefactor     .10000E-03    1.9192       -.10130E-07** at limit **
  18  Prefactor     .10000E-03    25.670        .18627E-05** at limit **
  19  Prefactor     .10000E-03    24.005        .61584E-05** at limit **
  20  Prefactor     .10000E-03    10.012        .87104E-07** at limit **
  21  Prefactor     .10000E-03    2.5155       -.82671E-08** at limit **
  22  Normalizat    1.3078        .22272        .60288E-06    .25698E-03
  23  Prefactor     .55996        .23035        .11316E-05    .11454E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.42614
  Prefactor  = 9.823
  Prefactor  = 31.8573
  norm       = 4.99635
  norm       = 2.76438
  Prefactor  = 0.0001
  Prefactor  = 0.000100308
  norm       = 3.37507
  norm       = 1.2891
  norm       = 0.792678
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.90097
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  norm       = 48.5809
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.30781
  Prefactor  = 0.559962
 **********
 **   18 **HESSE 
 **********

 FCN=   3719.185     FROM HESSE     STATUS=OK           372 CALLS     2982 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4261        22.834        .21856E-03   -1.5338    
   2  Prefactor     9.8230        25.186        .12789E-03   -1.5081    
   3  Prefactor     31.857        27.073        .71022E-04   -1.4579    
   4  norm          4.9963        5.2152        .10454E-03   -1.5261    
   5  norm          2.7644        3.3487        .11294E-03   -1.5375    
   6  Prefactor     .10000E-03    29.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10031E-03    109.14        .25935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.3751        2.0010        .63328E-04   -1.5341    
   9  norm          1.2891        3.0744        .15405E-03   -1.5481    
  10  norm          .79268        6.9712        .22225E-02   -1.5530    
  11  Prefactor     .10000E-03    20.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.6035        .14878E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.9010        10.986        .14267E-03   -1.5146    
  14  Prefactor     .10000E-03    2.9011        .10086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    52.165        .36226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          48.581        69.284        .57513E-04   -1.4313    
  17  Prefactor     .10000E-03    1.9220        .82510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    25.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.5468        .94458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3078        .26066        .20643E-03   -.83334    
  23  Prefactor     .55996        .26773        .32821E-03   -1.0930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46993e-08
Minuit parameter uncertainties:
  1  17.6992
  2  25.2131
  3  27.0831
  4  5.21562
  5  3.34888
  6  0.000104439
  7  0.0116137
  8  2.00101
  9  3.0748
  10  4.70188
  11  3.7799e-06
  12  6.12432e-06
  13  10.9891
  14  4.5629e-06
  15  0.00210193
  16  69.3989
  17  1.54488e-06
  18  1.98406e-05
  19  3.23012e-05
  20  4.36753e-06
  21  3.19027e-06
  22  0.26092
  23  0.26834
Done.

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

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  3.780e-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:  5.600e-01  2.683e-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:  1.308e+00  2.609e-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: 5.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/915499/likelihoodResults_536630401_536889601_4FGL_J0156.3-2420_daily_bin1147.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) = 3719.18516757
delta logL = -0.0002295954896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3719.18494075
delta logL = -2.77963545159e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7788       1.0000          .0000       10.000    
     3 'Normalizat'    1.3078       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55997       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=   3719.185     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      248 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.566        .90712E-02** at limit **
   2  Index         2.7505        6.2341        .50000        .26050E-04
   3  Normalizat    1.3078        .75112E-02    .46698E-01   -.45193E-05
   4  Prefactor     .55996        .81674E-02    .74127E-01    .14050E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.75046
  Normalizat = 1.3078
  Prefactor  = 0.559963
 **********
 **   18 **HESSE 
 **********

 FCN=   3719.185     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      281 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1913.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7505        5.8242        .50000       -.46666    
   3  Normalizat    1.3078        .12265        .20643E-03   -.83334    
   4  Prefactor     .55996        .13302        .32821E-03   -1.0930    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.05609e-07
Minuit parameter uncertainties:
  1  0.00159583
  2  64.066
  3  0.12268
  4  0.133096
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915499': 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) = 3719.18494056
delta logL = -2.58693899013e-06

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  1.596e-03  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  2.750e+00  6.407e+01  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:  5.600e-01  1.331e-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:  1.308e+00  1.227e-01  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/915499/cmap_HighResolution_536630401_536889601_4FGL_J0156.3-2420_daily_bin1147.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-03', job_status='DONE', photon_flux_upper_limit='5.41e-08', time_completed='2021-08-14 20:44:53.099962', job_id='915499', GAL2='0.56', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1628999093.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='-2.59e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='1147' AND source_name='4FGL J0156.3-2420' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:44:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 915499: <4FGL_J0156.3-2420_daily_bin1147> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.3-2420_daily_bin1147 29.0777 -24.3345 536630401 536889601 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 :                                   531.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            834 sec.

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

