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


Performing analysis on: 4FGL_J0156.3-2420_daily_bin1320
RA = 29.0777, Dec = -24.3345
tmin = 581472001, tmax = 581731201
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='916894', job_status='RUN', time_executed='2021-08-14 20:38:22.404876', time_epoch_executed='1628998702.4' WHERE source_name='4FGL J0156.3-2420' and cadence='daily' and bin_id='1320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/916894

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/916894/ft1_4FGL_J0156.3-2420_daily_bin1320.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/916894/ft2_4FGL_J0156.3-2420_daily_bin1320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/916894/ft1_4FGL_J0156.3-2420_daily_bin1320.fits outfile=/scratch/kocevski/916894/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1320.fits ra=29.0777 dec=-24.3345 rad=12.0 tmin=581472001.0 tmax=581731201.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 2.81
user 2.59
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/916894/ft2_4FGL_J0156.3-2420_daily_bin1320.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/916894/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1320.fits evtable="EVENTS" outfile="/scratch/kocevski/916894/ft1_filtered_4FGL_J0156.3-2420_daily_bin1320.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/916894/ft1_filtered_4FGL_J0156.3-2420_daily_bin1320.fits" evtable="EVENTS" scfile=/scratch/kocevski/916894/ft2_4FGL_J0156.3-2420_daily_bin1320.fits sctable="SC_DATA" outfile=/scratch/kocevski/916894/ltcube_581472001_581731201_4FGL_J0156.3-2420_daily_bin1320.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/916894/ft2_4FGL_J0156.3-2420_daily_bin1320.fits
.....................!
real 14.04
user 13.62
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/916894/ft1_filtered_4FGL_J0156.3-2420_daily_bin1320.fits evtable="EVENTS" scfile=/scratch/kocevski/916894/ft2_4FGL_J0156.3-2420_daily_bin1320.fits sctable="SC_DATA" expcube=/scratch/kocevski/916894/ltcube_581472001_581731201_4FGL_J0156.3-2420_daily_bin1320.fits outfile=/scratch/kocevski/916894/expmap_581472001_581731201_4FGL_J0156.3-2420_daily_bin1320.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/916894/ltcube_581472001_581731201_4FGL_J0156.3-2420_daily_bin1320.fits
.....................!
real 195.84
user 187.87
sys 4.55

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/916894/ft1_filtered_4FGL_J0156.3-2420_daily_bin1320.fits scfile=/scratch/kocevski/916894/ft2_4FGL_J0156.3-2420_daily_bin1320.fits outfile=/scratch/kocevski/916894/cmap_581472001_581731201_4FGL_J0156.3-2420_daily_bin1320.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/916894/ft1_filtered_4FGL_J0156.3-2420_daily_bin1320.fits scfile=/scratch/kocevski/916894/ft2_4FGL_J0156.3-2420_daily_bin1320.fits outfile=/scratch/kocevski/916894/cmap_HighResolution_581472001_581731201_4FGL_J0156.3-2420_daily_bin1320.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.57
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/916894/ft1_filtered_4FGL_J0156.3-2420_daily_bin1320.fits evtable="EVENTS" scfile=/scratch/kocevski/916894/ft2_4FGL_J0156.3-2420_daily_bin1320.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/916894/Model_4FGL_J0156.3-2420_daily_bin1320.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/916894/ft1_filtered_4FGL_J0156.3-2420_daily_bin1320.fits.....................!
real 47.89
user 45.63
sys 1.73

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .98079       1.0000         .10000E-03   10000.    
     4 'norm      '    2.7764       1.0000         .10000E-03   10000.    
     5 'norm      '    4.7961       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0161       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.071       1.0000         .10000E-03   10000.    
    12 'norm      '    7.3862       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4449       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2833       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4013       1.0000         .10000E-03   10000.    
    18 'Prefactor '    101.96       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .19745E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .81708E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .22970E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0078       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0299       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=   5260.728     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2597 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9841        .24573E-07** at limit **
   2  Prefactor     .10000E-03    4.5929       -.14081E-06** at limit **
   3  Prefactor     .93488        9.8840        .12548E-05   -.51609E-03
   4  norm          2.7848        2.8006       -.24934E-06   -.53380E-03
   5  norm          4.7964        2.6446       -.80698E-07   -.49618E-03
   6  Prefactor     .10000E-03    13.609        .11931E-04** at limit **
   7  Prefactor     .10000E-03    2.7385       -.36082E-06** at limit **
   8  norm          .10000E-03    .52588       -.13803E-07** at limit **
   9  norm          .10000E-03    .73090        .15600E-07** at limit **
  10  norm          1.0158        3.4564       -.14916E-05   -.11209E-02
  11  Prefactor     16.073        25.771       -.38657E-06    .26287E-06
  12  norm          7.3864        3.1706       -.86761E-07   -.10730E-03
  13  Prefactor     6.4422        13.826        .54842E-05   -.45539E-04
  14  Prefactor     4.2838        5.9680       -.82694E-06   -.42079E-03
  15  Prefactor     .10000E-03    3.3014        .88834E-07** at limit **
  16  norm          .10000E-03    14.215       -.12672E-04** at limit **
  17  Prefactor     1.4002        3.5475       -.13696E-05   -.68847E-03
  18  Prefactor     101.96        54.833       -.25971E-05    .15962E-04
  19  Prefactor     .10000E-03    157.38       -.29215E-04** at limit **
  20  Prefactor     .10000E-03    152.75        .26605E-04** at limit **
  21  Prefactor     .10000E-03    2.3618        .23571E-06** at limit **
  22  Normalizat    1.0078        .18649        .30519E-06   -.11698E-03
  23  Prefactor     1.0300        .19860       -.96296E-08   -.71292E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.934877
  norm       = 2.7848
  norm       = 4.79645
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.01581
  Prefactor  = 16.073
  norm       = 7.38639
  Prefactor  = 6.44223
  Prefactor  = 4.2838
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.40019
  Prefactor  = 101.959
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.00779
  Prefactor  = 1.02996
 **********
 **   18 **HESSE 
 **********

 FCN=   5260.728     FROM HESSE     STATUS=OK           376 CALLS     2973 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9915        .12235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.6016        .15180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .93488        59.565        .34351E-02   -1.5515    
   4  norm          2.7848        3.1444        .95437E-04   -1.5374    
   5  norm          4.7964        2.6433        .84695E-04   -1.5270    
   6  Prefactor     .10000E-03    13.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.4082        .21559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .74536        .10187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .73829        .60488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0158        3.5540        .22767E-03   -1.5506    
  11  Prefactor     16.073        25.752        .99909E-04   -1.4906    
  12  norm          7.3864        3.1772        .79677E-04   -1.5164    
  13  Prefactor     6.4422        13.760        .15809E-03   -1.5200    
  14  Prefactor     4.2838        5.9635        .19467E-03   -1.5294    
  15  Prefactor     .10000E-03    3.3084        .12869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    14.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.4002        3.5279        .21214E-03   -1.5471    
  18  Prefactor     101.96        54.789        .39817E-04   -1.3685    
  19  Prefactor     .10000E-03    158.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    156.28        .36881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.0467        .21705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0078        .22199        .22926E-03   -.92770    
  23  Prefactor     1.0300        .23810        .26393E-03   -.91737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06495e-09
Minuit parameter uncertainties:
  1  1.24416e-06
  2  1.34023e-06
  3  14.9393
  4  3.14455
  5  2.64332
  6  9.69973e-06
  7  7.14019e-05
  8  1.64615e-06
  9  1.40753e-06
  10  3.55469
  11  25.77
  12  3.17728
  13  13.7663
  14  5.96432
  15  5.07812e-06
  16  9.17797e-06
  17  3.52843
  18  54.8157
  19  0.000659406
  20  0.00094801
  21  7.79211e-05
  22  0.222194
  23  0.238344
Done.

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

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.607e+01  2.577e+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.030e+00  2.383e-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.008e+00  2.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/916894/likelihoodResults_581472001_581731201_4FGL_J0156.3-2420_daily_bin1320.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) = 5260.7009738
delta logL = 0.0265374118981

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5260.69456104
delta logL = 0.0329501714168

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.389       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6710       1.0000          .0000       10.000    
     3 'Normalizat'    1.0109       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0278       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=   5260.695     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      235 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.395        31.422        .90959E-04   -.92560E-03
   2  Index         1.6706        .98540        .12834E-01   -.34394E-03
   3  Normalizat    1.0110        .20123        .22892E-03    .60732E-03
   4  Prefactor     1.0278        .23475        .26416E-03    .57425E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.395
  Index      = 1.67059
  Normalizat = 1.01097
  Prefactor  = 1.02781
 **********
 **   18 **HESSE 
 **********

 FCN=   5260.695     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.395        31.053        .18192E-04   -1.4827    
   2  Index         1.6706        .97427        .51336E-03   -.72868    
   3  Normalizat    1.0110        .20136        .45784E-04   -.92664    
   4  Prefactor     1.0278        .23494        .52832E-04   -.91808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05987e-08
Minuit parameter uncertainties:
  1  31.0791
  2  0.985703
  3  0.201514
  4  0.235172
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/916894': 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) = 5260.69456061
delta logL = 0.0329505978925

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.940e+01  3.108e+01  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.671e+00  9.857e-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.028e+00  2.352e-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.011e+00  2.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.70
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/916894/cmap_HighResolution_581472001_581731201_4FGL_J0156.3-2420_daily_bin1320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.02e-03', job_status='DONE', photon_flux_upper_limit='5.38e-08', time_completed='2021-08-14 20:48:30.987698', job_id='916894', GAL2='1.03', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1628999310.99', return_code2='0', ts='0.70', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.30e-02', ts2='0.76', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='1320' AND source_name='4FGL J0156.3-2420' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:48:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 916894: <4FGL_J0156.3-2420_daily_bin1320> in cluster <slac> Done

Job <4FGL_J0156.3-2420_daily_bin1320> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Aug 14 20:35:56 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 20:36:40 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:36:40 2021
Terminated at Sat Aug 14 20:48:31 2021
Results reported at Sat Aug 14 20:48:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.3-2420_daily_bin1320 29.0777 -24.3345 581472001 581731201 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 :                                   603.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            755 sec.

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

