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


Performing analysis on: 4FGL_J0156.3-2420_daily_bin1107
RA = 29.0777, Dec = -24.3345
tmin = 526262401, tmax = 526521601
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='915459', job_status='RUN', time_executed='2021-08-14 20:35:53.286601', time_epoch_executed='1628998553.29' WHERE source_name='4FGL J0156.3-2420' and cadence='daily' and bin_id='1107'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915459

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915459/ft1_4FGL_J0156.3-2420_daily_bin1107.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915459/ft2_4FGL_J0156.3-2420_daily_bin1107.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915459/ft1_4FGL_J0156.3-2420_daily_bin1107.fits outfile=/scratch/kocevski/915459/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1107.fits ra=29.0777 dec=-24.3345 rad=12.0 tmin=526262401.0 tmax=526521601.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 9.34
user 3.81
sys 5.47

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/915459/ft1_filtered_4FGL_J0156.3-2420_daily_bin1107.fits" evtable="EVENTS" scfile=/scratch/kocevski/915459/ft2_4FGL_J0156.3-2420_daily_bin1107.fits sctable="SC_DATA" outfile=/scratch/kocevski/915459/ltcube_526262401_526521601_4FGL_J0156.3-2420_daily_bin1107.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/915459/ft2_4FGL_J0156.3-2420_daily_bin1107.fits
.....................!
real 20.01
user 13.62
sys 6.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915459/ft1_filtered_4FGL_J0156.3-2420_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/915459/ft2_4FGL_J0156.3-2420_daily_bin1107.fits sctable="SC_DATA" expcube=/scratch/kocevski/915459/ltcube_526262401_526521601_4FGL_J0156.3-2420_daily_bin1107.fits outfile=/scratch/kocevski/915459/expmap_526262401_526521601_4FGL_J0156.3-2420_daily_bin1107.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/915459/ltcube_526262401_526521601_4FGL_J0156.3-2420_daily_bin1107.fits
.....................!
real 197.98
user 186.61
sys 10.77

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/915459/ft1_filtered_4FGL_J0156.3-2420_daily_bin1107.fits scfile=/scratch/kocevski/915459/ft2_4FGL_J0156.3-2420_daily_bin1107.fits outfile=/scratch/kocevski/915459/cmap_526262401_526521601_4FGL_J0156.3-2420_daily_bin1107.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 5.77
user 0.40
sys 5.27

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/915459/ft1_filtered_4FGL_J0156.3-2420_daily_bin1107.fits scfile=/scratch/kocevski/915459/ft2_4FGL_J0156.3-2420_daily_bin1107.fits outfile=/scratch/kocevski/915459/cmap_HighResolution_526262401_526521601_4FGL_J0156.3-2420_daily_bin1107.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 5.56
user 0.40
sys 5.07

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/915459/ft1_filtered_4FGL_J0156.3-2420_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/915459/ft2_4FGL_J0156.3-2420_daily_bin1107.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/915459/Model_4FGL_J0156.3-2420_daily_bin1107.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/915459/ft1_filtered_4FGL_J0156.3-2420_daily_bin1107.fits.....................!
real 47.62
user 38.66
sys 8.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.046       1.0000         .10000E-03   10000.    
     4 'norm      '    .11321E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9594       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.358       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12028E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    15.805       1.0000         .10000E-03   10000.    
     9 'norm      '    .12832E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.9985       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4140       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8606       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3122       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10919E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.668       1.0000         .10000E-03   10000.    
    18 'Prefactor '    42.608       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.013       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7214       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .61568       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97695       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=   4109.923     FROM MIGRAD    STATUS=CONVERGED    527 CALLS     2579 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.558       -.28349E-05** at limit **
   2  Prefactor     .10000E-03    5.6029       -.62959E-07** at limit **
   3  Prefactor     29.029        15.923        .73492E-06    .89075E-04
   4  norm          .10000E-03    2.5507       -.46946E-07** at limit **
   5  norm          1.9596        1.8267        .71500E-08    .54983E-05
   6  Prefactor     10.359        11.348       -.17432E-06   -.22703E-04
   7  Prefactor     .10004E-03    3.6636        .43103E-06** at limit **
   8  norm          15.805        3.0731        .16639E-07   -.12174E-03
   9  norm          .10000E-03    1.7595       -.38092E-07** at limit **
  10  norm          9.0014        4.9929        .32633E-06    .14331E-03
  11  Prefactor     .10000E-03    12.292       -.34174E-05** at limit **
  12  norm          1.4138        2.0271        .20462E-06   -.41356E-04
  13  Prefactor     2.8609        4.8134        .22920E-05   -.18979E-02
  14  Prefactor     6.3123        7.4592        .81663E-06    .47571E-04
  15  Prefactor     .10000E-03    5.0013        .43795E-07** at limit **
  16  norm          .10000E-03    83.146       -.45517E-06** at limit **
  17  Prefactor     20.667        10.360       -.90901E-07    .12782E-05
  18  Prefactor     42.594        53.202       -.84304E-05   -.23044E-03
  19  Prefactor     20.024        64.789        .11208E-04    .92225E-04
  20  Prefactor     .10000E-03    12.645        .37992E-05** at limit **
  21  Prefactor     2.7226        4.6738       -.12526E-06   -.82969E-04
  22  Normalizat    .61567        .21178       -.12314E-05   -.21835E-04
  23  Prefactor     .97695        .21753        .21937E-06   -.56111E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 29.0292
  norm       = 0.0001
  norm       = 1.95957
  Prefactor  = 10.3593
  Prefactor  = 0.000100037
  norm       = 15.8051
  norm       = 0.0001
  norm       = 9.0014
  Prefactor  = 0.000100001
  norm       = 1.41384
  Prefactor  = 2.86092
  Prefactor  = 6.31234
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 20.667
  Prefactor  = 42.5945
  Prefactor  = 20.0239
  Prefactor  = 0.000100001
  Prefactor  = 2.72257
  Normalizat = 0.61567
  Prefactor  = 0.97695
 **********
 **   18 **HESSE 
 **********

 FCN=   4109.923     FROM HESSE     STATUS=OK           372 CALLS     2951 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.160        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.6109        .14819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     29.029        15.417        .74338E-04   -1.4630    
   4  norm          .10000E-03    2.5964        .98860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9596        1.8247        .81193E-04   -1.5428    
   6  Prefactor     10.359        11.309        .12450E-03   -1.5064    
   7  Prefactor     .10004E-03    25.186        .22461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          15.805        3.0821        .46541E-04   -1.4913    
   9  norm          .10000E-03    6.0131        .15649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.0014        4.9531        .95911E-04   -1.5108    
  11  Prefactor     .10000E-03    12.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4138        1.9939        .10367E-03   -1.5470    
  13  Prefactor     2.8609        7.4369        .12018E-02   -1.5370    
  14  Prefactor     6.3123        7.5019        .15977E-03   -1.5205    
  15  Prefactor     .10000E-03    5.0165        .14001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    83.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.667        10.356        .88103E-04   -1.4798    
  18  Prefactor     42.594        54.234        .61415E-04   -1.4402    
  19  Prefactor     20.024        64.969        .89532E-04   -1.4813    
  20  Prefactor     .10000E-03    12.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.7226        4.6527        .17334E-03   -1.5378    
  22  Normalizat    .61567        .24459        .27530E-03   -1.0732    
  23  Prefactor     .97695        .25470        .25082E-03   -.93502    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.19526e-09
Minuit parameter uncertainties:
  1  0.000214604
  2  1.9626e-06
  3  15.4187
  4  2.35722e-05
  5  1.82478
  6  11.311
  7  0.00193451
  8  3.08213
  9  7.3457e-05
  10  4.95328
  11  0.000208818
  12  1.99399
  13  7.43927
  14  7.50303
  15  3.17813e-05
  16  0.000556658
  17  10.3571
  18  54.297
  19  65.2004
  20  0.000230964
  21  4.65335
  22  0.245016
  23  0.255011
Done.

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

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  2.088e-04  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.939e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
268        Scale:  2.411e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  9.770e-01  2.550e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  6.157e-01  2.450e-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.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/915459/likelihoodResults_526262401_526521601_4FGL_J0156.3-2420_daily_bin1107.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) = 4109.92359809
delta logL = -0.000375729230655

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4109.92322232
delta logL = 3.18123056786e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9149       1.0000          .0000       10.000    
     3 'Normalizat'    .61564       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97698       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=   4109.923     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10232E-03    134.13        .18142E-02** at limit **
   2  Index         1.8395        8.9212        .50000        .12879E-04
   3  Normalizat    .61567        .14866E-01    .27530E-03   -.12389E-05
   4  Prefactor     .97695        .16889E-01    .25082E-03    .43514E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102322
  Index      = 1.83947
  Normalizat = 0.615669
  Prefactor  = 0.976951
 **********
 **   18 **HESSE 
 **********

 FCN=   4109.923     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10232E-03    551.60        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8395        5.8559        .50000       -.68427    
   3  Normalizat    .61567        .31477E-01    .11012E-04   -1.0732    
   4  Prefactor     .97695        .35760E-01    .10033E-04   -.93502    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.66384e-08
Minuit parameter uncertainties:
  1  0.0722576
  2  830.241
  3  0.0314779
  4  0.0357609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915459': 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) = 4109.92322208
delta logL = 2.79163941741e-07

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.023e-04  7.226e-02  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.839e+00  8.302e+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:  9.770e-01  3.576e-02  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  6.157e-01  3.148e-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/915459/cmap_HighResolution_526262401_526521601_4FGL_J0156.3-2420_daily_bin1107.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.72e-03', job_status='DONE', photon_flux_upper_limit='3.65e-08', time_completed='2021-08-14 20:46:12.803980', job_id='915459', GAL2='0.98', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1628999172.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.79e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='1107' AND source_name='4FGL J0156.3-2420' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:46:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 915459: <4FGL_J0156.3-2420_daily_bin1107> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.3-2420_daily_bin1107 29.0777 -24.3345 526262401 526521601 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 :                                   698.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            919 sec.

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

