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


Performing analysis on: 4FGL_J0156.3-2420_daily_bin1048
RA = 29.0777, Dec = -24.3345
tmin = 510969601, tmax = 511228801
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='915375', job_status='RUN', time_executed='2021-08-14 20:33:07.245878', time_epoch_executed='1628998387.25' WHERE source_name='4FGL J0156.3-2420' and cadence='daily' and bin_id='1048'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915375

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915375/ft1_4FGL_J0156.3-2420_daily_bin1048.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915375/ft2_4FGL_J0156.3-2420_daily_bin1048.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915375/ft1_4FGL_J0156.3-2420_daily_bin1048.fits outfile=/scratch/kocevski/915375/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1048.fits ra=29.0777 dec=-24.3345 rad=12.0 tmin=510969601.0 tmax=511228801.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 10.70
user 3.25
sys 4.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/915375/ft2_4FGL_J0156.3-2420_daily_bin1048.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/915375/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1048.fits evtable="EVENTS" outfile="/scratch/kocevski/915375/ft1_filtered_4FGL_J0156.3-2420_daily_bin1048.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.57
user 0.34
sys 4.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/915375/ft1_filtered_4FGL_J0156.3-2420_daily_bin1048.fits" evtable="EVENTS" scfile=/scratch/kocevski/915375/ft2_4FGL_J0156.3-2420_daily_bin1048.fits sctable="SC_DATA" outfile=/scratch/kocevski/915375/ltcube_510969601_511228801_4FGL_J0156.3-2420_daily_bin1048.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/915375/ft2_4FGL_J0156.3-2420_daily_bin1048.fits
.....................!
real 19.28
user 13.16
sys 4.85

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915375/ft1_filtered_4FGL_J0156.3-2420_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/915375/ft2_4FGL_J0156.3-2420_daily_bin1048.fits sctable="SC_DATA" expcube=/scratch/kocevski/915375/ltcube_510969601_511228801_4FGL_J0156.3-2420_daily_bin1048.fits outfile=/scratch/kocevski/915375/expmap_510969601_511228801_4FGL_J0156.3-2420_daily_bin1048.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/915375/ltcube_510969601_511228801_4FGL_J0156.3-2420_daily_bin1048.fits
.....................!
real 196.65
user 185.84
sys 9.59

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/915375/ft1_filtered_4FGL_J0156.3-2420_daily_bin1048.fits scfile=/scratch/kocevski/915375/ft2_4FGL_J0156.3-2420_daily_bin1048.fits outfile=/scratch/kocevski/915375/cmap_510969601_511228801_4FGL_J0156.3-2420_daily_bin1048.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 4.56
user 0.40
sys 4.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/915375/ft1_filtered_4FGL_J0156.3-2420_daily_bin1048.fits scfile=/scratch/kocevski/915375/ft2_4FGL_J0156.3-2420_daily_bin1048.fits outfile=/scratch/kocevski/915375/cmap_HighResolution_510969601_511228801_4FGL_J0156.3-2420_daily_bin1048.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 4.54
user 0.40
sys 4.05

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/915375/ft1_filtered_4FGL_J0156.3-2420_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/915375/ft2_4FGL_J0156.3-2420_daily_bin1048.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/915375/Model_4FGL_J0156.3-2420_daily_bin1048.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/915375/ft1_filtered_4FGL_J0156.3-2420_daily_bin1048.fits.....................!
real 56.65
user 49.59
sys 6.41

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6386       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .25247       1.0000         .10000E-03   10000.    
     5 'norm      '    .47612       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .51193       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .99703       1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .30839       1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.612       1.0000         .10000E-03   10000.    
    12 'norm      '    2.4112       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .24295E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7914       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3368       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.203       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.8228       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.3782       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .62332       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1563       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=   6086.915     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2672 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6376        4.3211        .13358E-05    .17739E-03
   2  Prefactor     .10000E-03    3.5141        .77558E-07** at limit **
   3  Prefactor     .10000E-03    6.0322       -.82730E-07** at limit **
   4  norm          .25415        .90229        .30302E-07   -.62457E-03
   5  norm          .47625        1.3369        .33685E-06   -.19382E-03
   6  Prefactor     .55306        11.138       -.93096E-06   -.12414E-04
   7  Prefactor     1.0022        3.5536        .54745E-06   -.32302E-03
   8  norm          .10000E-03    .34691        .81621E-07** at limit **
   9  norm          .10000E-03    .73945       -.24411E-07** at limit **
  10  norm          .30846        1.4077        .58663E-06   -.65787E-03
  11  Prefactor     30.637        32.100       -.31695E-05   -.41284E-03
  12  norm          2.4118        1.7762        .72160E-07   -.11328E-03
  13  Prefactor     .10632E-03    5.6023       -.10471E-06** at limit **
  14  Prefactor     .10000E-03    3.1021       -.18385E-06** at limit **
  15  Prefactor     2.7907        5.1077        .19014E-06   -.20408E-03
  16  norm          .10000E-03    20.713        .20866E-06** at limit **
  17  Prefactor     2.3364        3.1490        .27492E-05   -.19120E-02
  18  Prefactor     .10000E-03    19.287       -.25086E-08** at limit **
  19  Prefactor     20.200        21.038        .15941E-05    .31025E-03
  20  Prefactor     4.8269        29.113       -.11347E-04   -.37522E-03
  21  Prefactor     1.3788        2.2423        .95979E-07   -.53479E-04
  22  Normalizat    .62325        .14265       -.32141E-07   -.12421E-03
  23  Prefactor     1.1563        .16132       -.49811E-06   -.27315E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.63757
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.254153
  norm       = 0.476248
  Prefactor  = 0.553059
  Prefactor  = 1.00217
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.308459
  Prefactor  = 30.6373
  norm       = 2.41183
  Prefactor  = 0.000106319
  Prefactor  = 0.0001
  Prefactor  = 2.79067
  norm       = 0.0001
  Prefactor  = 2.33645
  Prefactor  = 0.0001
  Prefactor  = 20.1997
  Prefactor  = 4.82685
  Prefactor  = 1.37884
  Normalizat = 0.623254
  Prefactor  = 1.15634
 **********
 **   18 **HESSE 
 **********

 FCN=   6086.915     FROM HESSE     STATUS=OK           394 CALLS     3066 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6376        4.2890        .25467E-03   -1.5452    
   2  Prefactor     .10000E-03    3.5327        .14278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.1591        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .25415        .92041        .12551E-02   -1.5607    
   5  norm          .47625        1.2479        .13748E-02   -1.5570    
   6  Prefactor     .55306        58.183        .44521E-02   -1.5559    
   7  Prefactor     1.0022        3.3700        .23347E-03   -1.5508    
   8  norm          .10000E-03    .50358        .88891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .75435        .13047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .30846        4.4691        .16658E-02   -1.5597    
  11  Prefactor     30.637        32.847        .72416E-04   -1.4600    
  12  norm          2.4118        1.7710        .83518E-04   -1.5397    
  13  Prefactor     .10632E-03    6.7747        .57488E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.2678        .26123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.7907        5.0984        .23011E-03   -1.5374    
  16  norm          .10000E-03    20.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.3364        3.3732        .82825E-03   -1.5402    
  18  Prefactor     .10000E-03    19.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.200        21.198        .89110E-04   -1.4809    
  20  Prefactor     4.8269        32.614        .18319E-03   -1.5269    
  21  Prefactor     1.3788        2.2046        .14497E-03   -1.5473    
  22  Normalizat    .62325        .16298        .22579E-03   -1.0701    
  23  Prefactor     1.1563        .18766        .20993E-03   -.87686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2699e-08
Minuit parameter uncertainties:
  1  4.28985
  2  1.0106e-06
  3  6.51814e-06
  4  0.920458
  5  1.24798
  6  11.3556
  7  3.37062
  8  3.77952e-06
  9  1.03177e-06
  10  2.34805
  11  32.8661
  12  1.77101
  13  0.0130871
  14  3.5206e-05
  15  5.09923
  16  5.89494e-05
  17  3.37347
  18  1.00891e-05
  19  21.2064
  20  25.113
  21  2.20476
  22  0.163108
  23  0.187767
Done.

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

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  3.064e+01  3.287e+01  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.156e+00  1.878e-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.233e-01  1.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.38
Ra Dec: 29.078 -24.334
Photon Index (Fixed Index): 1.94 +/- 0.00
Photon Flux (Fixed Index): 1.56e-08 +/- 1.67e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 1.35e-05

TS (Fixed Index): 1.38
Ra Dec: 29.078 -24.334
Photon Flux Upper Limit: 5.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/915375/likelihoodResults_510969601_511228801_4FGL_J0156.3-2420_daily_bin1048.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): 0
logL (Free Index) = 6086.43842663
delta logL = 0.476339890922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6086.42506683
delta logL = 0.489699685405

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.241       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7179       1.0000          .0000       10.000    
     3 'Normalizat'    .59152       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1789       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=   6086.425     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      292 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.257        49.291        .11949E-03   -.23149E-03
   2  Index         2.7178        1.7798        .45750E-02   -.64961E-04
   3  Normalizat    .59166        .16307        .23133E-03   -.20336E-03
   4  Prefactor     1.1788        .19484        .20814E-03    .52198E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2565
  Index      = 2.7178
  Normalizat = 0.591659
  Prefactor  = 1.17884
 **********
 **   18 **HESSE 
 **********

 FCN=   6086.425     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.257        22.280        .47795E-05   -1.5037    
   2  Index         2.7178        .85873        .18300E-03   -.47399    
   3  Normalizat    .59166        .15524        .92531E-05   -1.0834    
   4  Prefactor     1.1788        .18849        .41628E-04   -.86985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77833e-09
Minuit parameter uncertainties:
  1  22.2961
  2  0.864158
  3  0.155358
  4  0.188596
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915375': 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): 0
logL (Free Index) = 6086.42506438
delta logL = 0.489702132752

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.126e+01  2.230e+01  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  2.718e+00  8.642e-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:  1.179e+00  1.886e-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:  5.917e-01  1.554e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.40
Ra Dec: 29.078 -24.334
Photon Index (Free Index): 2.72 +/- 0.86
Photon Flux (Free Index): 3.75e-08 +/- 3.32e-08
Energy Flux (Free Index): 8.90e-06 +/- 7.22e-06

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/915375/cmap_HighResolution_510969601_511228801_4FGL_J0156.3-2420_daily_bin1048.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.19e-03', comment='SUCCESS', photon_flux='1.56e-08', energy_flux2='8.90e-06', photon_flux_error='1.67e-08', dlogl='4.90e-01', energy_flux='1.26e-05', photon_flux2='3.75e-08', job_status='DONE', time_completed='2021-08-14 20:45:20.612961', photon_index_error2='0.86', photon_index2='2.72', ts='1.38', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='5.62e-08', energy_flux_error2='7.22e-06', EG='0.62', time_epoch_completed='1628999120.61', return_code='0', job_id='915375', GAL2='1.18', EG2='0.59', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='3.32e-08', ts2='2.40', photon_index='1.94' WHERE bin_id='1048' AND source_name='4FGL J0156.3-2420' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:45:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 915375: <4FGL_J0156.3-2420_daily_bin1048> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.3-2420_daily_bin1048 29.0777 -24.3345 510969601 511228801 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 :                                   784.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            874 sec.

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

