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


Performing analysis on: 4FGL_J0156.3-2420_daily_bin1085
RA = 29.0777, Dec = -24.3345
tmin = 520560001, tmax = 520819201
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='915433', job_status='RUN', time_executed='2021-08-14 20:33:12.194435', time_epoch_executed='1628998392.19' WHERE source_name='4FGL J0156.3-2420' and cadence='daily' and bin_id='1085'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915433

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915433/ft1_4FGL_J0156.3-2420_daily_bin1085.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915433/ft2_4FGL_J0156.3-2420_daily_bin1085.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915433/ft1_4FGL_J0156.3-2420_daily_bin1085.fits outfile=/scratch/kocevski/915433/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1085.fits ra=29.0777 dec=-24.3345 rad=12.0 tmin=520560001.0 tmax=520819201.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 5.20
user 4.95
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/915433/ft2_4FGL_J0156.3-2420_daily_bin1085.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/915433/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1085.fits evtable="EVENTS" outfile="/scratch/kocevski/915433/ft1_filtered_4FGL_J0156.3-2420_daily_bin1085.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/915433/ft1_filtered_4FGL_J0156.3-2420_daily_bin1085.fits" evtable="EVENTS" scfile=/scratch/kocevski/915433/ft2_4FGL_J0156.3-2420_daily_bin1085.fits sctable="SC_DATA" outfile=/scratch/kocevski/915433/ltcube_520560001_520819201_4FGL_J0156.3-2420_daily_bin1085.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/915433/ft2_4FGL_J0156.3-2420_daily_bin1085.fits
.....................!
real 13.92
user 12.50
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915433/ft1_filtered_4FGL_J0156.3-2420_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/915433/ft2_4FGL_J0156.3-2420_daily_bin1085.fits sctable="SC_DATA" expcube=/scratch/kocevski/915433/ltcube_520560001_520819201_4FGL_J0156.3-2420_daily_bin1085.fits outfile=/scratch/kocevski/915433/expmap_520560001_520819201_4FGL_J0156.3-2420_daily_bin1085.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/915433/ltcube_520560001_520819201_4FGL_J0156.3-2420_daily_bin1085.fits
.....................!
real 195.67
user 186.11
sys 5.02

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/915433/ft1_filtered_4FGL_J0156.3-2420_daily_bin1085.fits scfile=/scratch/kocevski/915433/ft2_4FGL_J0156.3-2420_daily_bin1085.fits outfile=/scratch/kocevski/915433/cmap_520560001_520819201_4FGL_J0156.3-2420_daily_bin1085.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/915433/ft1_filtered_4FGL_J0156.3-2420_daily_bin1085.fits scfile=/scratch/kocevski/915433/ft2_4FGL_J0156.3-2420_daily_bin1085.fits outfile=/scratch/kocevski/915433/cmap_HighResolution_520560001_520819201_4FGL_J0156.3-2420_daily_bin1085.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/915433/ft1_filtered_4FGL_J0156.3-2420_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/915433/ft2_4FGL_J0156.3-2420_daily_bin1085.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/915433/Model_4FGL_J0156.3-2420_daily_bin1085.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/915433/ft1_filtered_4FGL_J0156.3-2420_daily_bin1085.fits.....................!
real 41.41
user 39.79
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.8827       1.0000         .10000E-03   10000.    
     5 'norm      '    2.6270       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.6505       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .30154E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.4060       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .77139       1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.984       1.0000         .10000E-03   10000.    
    12 'norm      '    .10293E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17531E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5811       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5575       1.0000         .10000E-03   10000.    
    16 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.576       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.5563       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0084       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .50874       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=   4344.969     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2172 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8794       -.10312E-07** at limit **
   2  Prefactor     .10000E-03    6.6772       -.16890E-06** at limit **
   3  Prefactor     .10000E-03    10.719        .59811E-06** at limit **
   4  norm          6.8825        2.5956       -.18499E-08   -.68813E-04
   5  norm          2.6273        2.1754       -.19206E-07   -.72625E-04
   6  Prefactor     5.6514        7.9259       -.77823E-07   -.42932E-04
   7  Prefactor     .10000E-03    1.7556        .51390E-09** at limit **
   8  norm          3.4064        1.4082        .85103E-08   -.55693E-04
   9  norm          .10000E-03    .74033        .38817E-07** at limit **
  10  norm          .77392        2.3775       -.14345E-06   -.76252E-03
  11  Prefactor     32.970        34.255       -.16299E-04   -.52488E-06
  12  norm          .10000E-03    .77973        .87074E-08** at limit **
  13  Prefactor     .10000E-03    26.620       -.35878E-06** at limit **
  14  Prefactor     3.5788        5.3950        .19298E-05   -.32505E-03
  15  Prefactor     4.5577        6.2254       -.42146E-06   -.15293E-03
  16  norm          .10000E-03    21.060        .16167E-05** at limit **
  17  Prefactor     10.577        6.7379        .32686E-06   -.61708E-04
  18  Prefactor     .10000E-03    8.9970       -.53020E-06** at limit **
  19  Prefactor     .10000E-03    10.129        .26328E-05** at limit **
  20  Prefactor     .10000E-03    11.479       -.32237E-05** at limit **
  21  Prefactor     3.5568        3.1125       -.45557E-07    .61065E-04
  22  Normalizat    1.0080        .15866        .41231E-06   -.35138E-04
  23  Prefactor     .50910        .17420        .10240E-06   -.57872E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.88253
  norm       = 2.6273
  Prefactor  = 5.65141
  Prefactor  = 0.0001
  norm       = 3.4064
  norm       = 0.0001
  norm       = 0.773916
  Prefactor  = 32.9704
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.57877
  Prefactor  = 4.5577
  norm       = 0.0001
  Prefactor  = 10.5773
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.55677
  Normalizat = 1.00799
  Prefactor  = 0.509098
 **********
 **   18 **HESSE 
 **********

 FCN=   4344.969     FROM HESSE     STATUS=OK           372 CALLS     2544 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8859        .10923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.7098        .16632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.8825        2.5653        .62220E-04   -1.5183    
   5  norm          2.6273        2.1736        .84760E-04   -1.5384    
   6  Prefactor     5.6514        7.9156        .16899E-03   -1.5232    
   7  Prefactor     .10000E-03    15.271        .16768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.4064        1.4077        .48406E-04   -1.5339    
   9  norm          .10000E-03    .75396        .55310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .77392        2.3528        .16701E-03   -1.5532    
  11  Prefactor     32.970        34.126        .34885E-03   -1.4559    
  12  norm          .10000E-03    1.2847        .11238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    27.741        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.5788        5.3481        .17336E-03   -1.5330    
  15  Prefactor     4.5577        6.2151        .18585E-03   -1.5281    
  16  norm          .10000E-03    21.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.577        6.7402        .12320E-03   -1.5057    
  18  Prefactor     .10000E-03    8.9992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.5568        3.1167        .10606E-03   -1.5331    
  22  Normalizat    1.0080        .18789        .18326E-03   -.92763    
  23  Prefactor     .50910        .20570        .28769E-03   -1.1156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.54923e-10
Minuit parameter uncertainties:
  1  5.40029e-07
  2  1.27821e-06
  3  5.57141e-06
  4  2.56533
  5  2.17365
  6  7.91704
  7  9.25167e-05
  8  1.4077
  9  4.34388e-06
  10  2.35303
  11  34.146
  12  2.93919e-06
  13  0.000172316
  14  5.34884
  15  6.21599
  16  8.95681e-06
  17  6.74069
  18  3.47004e-06
  19  1.90108e-06
  20  7.56194e-06
  21  3.11686
  22  0.188016
  23  0.206
Done.

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

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  3.297e+01  3.415e+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:  5.091e-01  2.060e-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  1.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.61
Ra Dec: 29.078 -24.334
Photon Index (Fixed Index): 1.94 +/- 0.00
Photon Flux (Fixed Index): 1.68e-08 +/- 1.74e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.40e-05

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

Saving results to:
/scratch/kocevski/915433/likelihoodResults_520560001_520819201_4FGL_J0156.3-2420_daily_bin1085.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) = 4344.88340591
delta logL = 0.0857245600728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4344.88000278
delta logL = 0.0891276884522

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.895       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5515       1.0000          .0000       10.000    
     3 'Normalizat'    1.0181       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50372       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=   4344.880     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      274 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.887        39.146        .66891E-04    .18695E-05
   2  Index         1.5515        .85512        .12358E-01   -.43241E-04
   3  Normalizat    1.0181        .17841        .18241E-03    .13961E-04
   4  Prefactor     .50372        .20423        .28911E-03   -.88477E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.8867
  Index      = 1.55148
  Normalizat = 1.01811
  Prefactor  = 0.503721
 **********
 **   18 **HESSE 
 **********

 FCN=   4344.880     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.887        39.303        .26757E-05   -1.4509    
   2  Index         1.5515        .85790        .24716E-02   -.76108    
   3  Normalizat    1.0181        .17852        .72964E-05   -.92426    
   4  Prefactor     .50372        .20441        .11564E-04   -1.1181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58674e-12
Minuit parameter uncertainties:
  1  39.3309
  2  0.866133
  3  0.178623
  4  0.204708
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915433': 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) = 4344.88000276
delta logL = 0.0891277092469

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  5.037e-01  2.047e-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.018e+00  1.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.79
Ra Dec: 29.078 -24.334
Photon Index (Free Index): 1.55 +/- 0.87
Photon Flux (Free Index): 8.88e-09 +/- 1.62e-08
Energy Flux (Free Index): 2.36e-05 +/- 4.25e-05

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/915433/cmap_HighResolution_520560001_520819201_4FGL_J0156.3-2420_daily_bin1085.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.97e-03', comment='SUCCESS', photon_flux='1.68e-08', energy_flux2='2.36e-05', photon_flux_error='1.74e-08', dlogl='8.91e-02', energy_flux='1.36e-05', photon_flux2='8.88e-09', job_status='DONE', time_completed='2021-08-14 20:42:20.938285', photon_index_error2='0.87', photon_index2='1.55', ts='2.61', fit_tolerance='1e-08', GAL='0.51', photon_index_error='0.00', photon_flux_upper_limit='6.66e-08', energy_flux_error2='4.25e-05', EG='1.01', time_epoch_completed='1628998940.94', return_code='0', job_id='915433', GAL2='0.50', EG2='1.02', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='1.62e-08', ts2='2.79', photon_index='1.94' WHERE bin_id='1085' AND source_name='4FGL J0156.3-2420' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:42:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 915433: <4FGL_J0156.3-2420_daily_bin1085> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.3-2420_daily_bin1085 29.0777 -24.3345 520560001 520819201 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 :                                   542.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   619 sec.
    Turnaround time :                            688 sec.

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

