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


Performing analysis on: 4FGL_J0156.3-2420_daily_bin1607
RA = 29.0777, Dec = -24.3345
tmin = 655862401, tmax = 656121601
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='143769', job_status='RUN', time_executed='2021-12-07 12:24:53.113383', time_epoch_executed='1638908693.11' WHERE source_name='4FGL J0156.3-2420' and cadence='daily' and bin_id='1607'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/143769

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/143769/ft1_4FGL_J0156.3-2420_daily_bin1607.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/143769/ft2_4FGL_J0156.3-2420_daily_bin1607.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/143769/ft1_4FGL_J0156.3-2420_daily_bin1607.fits outfile=/scratch/kocevski/143769/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1607.fits ra=29.0777 dec=-24.3345 rad=12.0 tmin=655862401.0 tmax=656121601.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.64
user 4.38
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/143769/ft1_filtered_4FGL_J0156.3-2420_daily_bin1607.fits" evtable="EVENTS" scfile=/scratch/kocevski/143769/ft2_4FGL_J0156.3-2420_daily_bin1607.fits sctable="SC_DATA" outfile=/scratch/kocevski/143769/ltcube_655862401_656121601_4FGL_J0156.3-2420_daily_bin1607.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/143769/ft2_4FGL_J0156.3-2420_daily_bin1607.fits
.....................!
real 17.87
user 17.39
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/143769/ft1_filtered_4FGL_J0156.3-2420_daily_bin1607.fits evtable="EVENTS" scfile=/scratch/kocevski/143769/ft2_4FGL_J0156.3-2420_daily_bin1607.fits sctable="SC_DATA" expcube=/scratch/kocevski/143769/ltcube_655862401_656121601_4FGL_J0156.3-2420_daily_bin1607.fits outfile=/scratch/kocevski/143769/expmap_655862401_656121601_4FGL_J0156.3-2420_daily_bin1607.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/143769/ltcube_655862401_656121601_4FGL_J0156.3-2420_daily_bin1607.fits
.....................!
real 194.41
user 188.73
sys 5.29

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/143769/ft1_filtered_4FGL_J0156.3-2420_daily_bin1607.fits scfile=/scratch/kocevski/143769/ft2_4FGL_J0156.3-2420_daily_bin1607.fits outfile=/scratch/kocevski/143769/cmap_655862401_656121601_4FGL_J0156.3-2420_daily_bin1607.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 0.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/143769/ft1_filtered_4FGL_J0156.3-2420_daily_bin1607.fits scfile=/scratch/kocevski/143769/ft2_4FGL_J0156.3-2420_daily_bin1607.fits outfile=/scratch/kocevski/143769/cmap_HighResolution_655862401_656121601_4FGL_J0156.3-2420_daily_bin1607.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 0.58
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/143769/ft1_filtered_4FGL_J0156.3-2420_daily_bin1607.fits evtable="EVENTS" scfile=/scratch/kocevski/143769/ft2_4FGL_J0156.3-2420_daily_bin1607.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/143769/Model_4FGL_J0156.3-2420_daily_bin1607.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/143769/ft1_filtered_4FGL_J0156.3-2420_daily_bin1607.fits.....................!
real 39.70
user 38.28
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.2532       1.0000         .10000E-03   10000.    
     5 'norm      '    1.7920       1.0000         .10000E-03   10000.    
     6 'Prefactor '    67.864       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15681E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .17091E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.5773       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.4392       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.010       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3810       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .28150       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.800       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.2438       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3239       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .41627       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=   3884.502     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2596 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7567       -.15875E-06** at limit **
   2  Prefactor     .10000E-03    8.9694        .22133E-06** at limit **
   3  Prefactor     .10000E-03    4.8547       -.34376E-07** at limit **
   4  norm          1.2525        1.7870       -.32547E-06   -.15015E-03
   5  norm          1.7927        3.0182        .57323E-06    .54376E-03
   6  Prefactor     67.855        30.861       -.77138E-06   -.84129E-04
   7  Prefactor     .10000E-03    10.745       -.63980E-05** at limit **
   8  norm          .10000E-03    .84314        .69237E-06** at limit **
   9  norm          2.5781        2.8602        .39629E-07    .33847E-03
  10  norm          .10000E-03    3.2515        .38034E-06** at limit **
  11  Prefactor     .10000E-03    22.132        .10160E-05** at limit **
  12  norm          2.4402        2.6561        .16049E-06    .18291E-03
  13  Prefactor     21.011        15.954        .72975E-07    .14998E-04
  14  Prefactor     7.3828        6.7946        .33081E-07   -.10420E-04
  15  Prefactor     .10000E-03    5.0419       -.66124E-06** at limit **
  16  norm          .10001E-03    27.480       -.19849E-05** at limit **
  17  Prefactor     .29682        5.0033       -.13195E-05    .22338E-03
  18  Prefactor     21.779        44.510       -.15926E-05   -.17864E-03
  19  Prefactor     .10000E-03    14.829        .17103E-06** at limit **
  20  Prefactor     .10000E-03    9.4894        .98919E-07** at limit **
  21  Prefactor     7.2440        4.4823       -.14315E-07   -.75722E-04
  22  Normalizat    1.3235        .20715        .22117E-06   -.17640E-03
  23  Prefactor     .41668        .21391       -.18104E-05   -.14810E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.25246
  norm       = 1.7927
  Prefactor  = 67.8553
  Prefactor  = 0.000100001
  norm       = 0.000100002
  norm       = 2.57811
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 2.44024
  Prefactor  = 21.0115
  Prefactor  = 7.3828
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 0.296825
  Prefactor  = 21.7792
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.24395
  Normalizat = 1.32347
  Prefactor  = 0.416685
 **********
 **   18 **HESSE 
 **********

 FCN=   3884.502     FROM HESSE     STATUS=OK           370 CALLS     2966 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.8806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.0313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.8639        .13407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2525        1.7241        .94822E-04   -1.5484    
   5  norm          1.7927        3.0202        .12986E-03   -1.5440    
   6  Prefactor     67.855        30.613        .48723E-04   -1.4059    
   7  Prefactor     .10000E-03    11.015        .26200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.5882        .10496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.5781        2.8404        .10370E-03   -1.5387    
  10  norm          .10000E-03    3.3735        .21970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.4402        2.6538        .10027E-03   -1.5396    
  13  Prefactor     21.011        15.971        .87384E-04   -1.4791    
  14  Prefactor     7.3828        6.7665        .14506E-03   -1.5164    
  15  Prefactor     .10000E-03    5.0906        .13713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    27.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .29682        27.070        .24928E-02   -1.5599    
  18  Prefactor     21.779        45.138        .85786E-04   -1.4774    
  19  Prefactor     .10000E-03    14.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.4967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.2440        4.4826        .10114E-03   -1.5170    
  22  Normalizat    1.3235        .22652        .19269E-03   -.82868    
  23  Prefactor     .41668        .23172        .35098E-03   -1.1596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34413e-09
Minuit parameter uncertainties:
  1  2.91684e-05
  2  8.88818e-05
  3  4.92134e-07
  4  1.72422
  5  3.02048
  6  30.62
  7  0.000218576
  8  0.000179374
  9  2.84057
  10  4.3645e-05
  11  0.000455512
  12  2.65397
  13  15.9747
  14  6.76716
  15  7.76252e-05
  16  0.000772288
  17  5.67092
  18  45.2085
  19  5.83954e-05
  20  2.7425e-05
  21  4.48278
  22  0.226692
  23  0.232238
Done.

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

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  4.555e-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:  4.167e-01  2.322e-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.323e+00  2.267e-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.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/143769/likelihoodResults_655862401_656121601_4FGL_J0156.3-2420_daily_bin1607.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) = 3884.50225546
delta logL = -0.000211347898585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3884.50204435
delta logL = -2.32372713072e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10948E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9552       1.0000          .0000       10.000    
     3 'Normalizat'    1.3235       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .41670       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=   3884.502     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      205 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6355.2        .90712E-02** at limit **
   2  Index         1.9436        7.2279        .50000        .40518E-05
   3  Normalizat    1.3235        .68337E-01    .32397E-01   -.50651E-04
   4  Prefactor     .41669        .73564E-01    .79226E-01   -.32429E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.94363
  Normalizat = 1.32347
  Prefactor  = 0.416685
 **********
 **   18 **HESSE 
 **********

 FCN=   3884.502     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      236 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6618.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9436        5.4888        .50000       -.65767    
   3  Normalizat    1.3235        .82724E-01    .19269E-03   -.82868    
   4  Prefactor     .41669        .88801E-01    .35098E-03   -1.1596    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.18482e-08
Minuit parameter uncertainties:
  1  0.00254308
  2  50.8384
  3  0.0827323
  4  0.0888303
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/143769': 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) = 3884.50204412
delta logL = -4.53837856185e-09

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  2.543e-03  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.944e+00  5.084e+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:  4.167e-01  8.883e-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:  1.323e+00  8.273e-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/143769/cmap_HighResolution_655862401_656121601_4FGL_J0156.3-2420_daily_bin1607.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-03', job_status='DONE', photon_flux_upper_limit='5.66e-08', time_completed='2021-12-07 12:33:55.507974', job_id='143769', GAL2='0.42', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1638909235.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.42', dlogl='-4.54e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='1607' AND source_name='4FGL J0156.3-2420' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:33:55 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 143769: <4FGL_J0156.3-2420_daily_bin1607> in cluster <slac> Done

Job <4FGL_J0156.3-2420_daily_bin1607> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Dec  7 12:20:16 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 12:21:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 12:21:10 2021
Terminated at Tue Dec  7 12:33:56 2021
Results reported at Tue Dec  7 12:33:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.3-2420_daily_bin1607 29.0777 -24.3345 655862401 656121601 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 :                                   541.58 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            820 sec.

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

