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


Performing analysis on: 4FGL_J0157.7-4614_daily_bin1046
RA = 29.4353, Dec = -46.2431
tmin = 510451201, tmax = 510710401
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='962198', job_status='RUN', time_executed='2021-08-14 22:57:16.859003', time_epoch_executed='1629007036.86' WHERE source_name='4FGL J0157.7-4614' and cadence='daily' and bin_id='1046'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/962198

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/962198/ft1_4FGL_J0157.7-4614_daily_bin1046.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/962198/ft2_4FGL_J0157.7-4614_daily_bin1046.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/962198/ft1_4FGL_J0157.7-4614_daily_bin1046.fits outfile=/scratch/kocevski/962198/ft1_filteredMKT_4FGL_J0157.7-4614_daily_bin1046.fits ra=29.4353 dec=-46.2431 rad=12.0 tmin=510451201.0 tmax=510710401.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.71
user 3.72
sys 0.95

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/962198/ft2_4FGL_J0157.7-4614_daily_bin1046.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/962198/ft2_4FGL_J0157.7-4614_daily_bin1046.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/962198/ft1_filteredMKT_4FGL_J0157.7-4614_daily_bin1046.fits evtable="EVENTS" outfile="/scratch/kocevski/962198/ft1_filtered_4FGL_J0157.7-4614_daily_bin1046.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 1.35
user 0.35
sys 0.97

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/962198/ft1_filtered_4FGL_J0157.7-4614_daily_bin1046.fits" evtable="EVENTS" scfile=/scratch/kocevski/962198/ft2_4FGL_J0157.7-4614_daily_bin1046.fits sctable="SC_DATA" outfile=/scratch/kocevski/962198/ltcube_510451201_510710401_4FGL_J0157.7-4614_daily_bin1046.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/962198/ft2_4FGL_J0157.7-4614_daily_bin1046.fits
.....................!
real 15.77
user 14.35
sys 1.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/962198/ft1_filtered_4FGL_J0157.7-4614_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/962198/ft2_4FGL_J0157.7-4614_daily_bin1046.fits sctable="SC_DATA" expcube=/scratch/kocevski/962198/ltcube_510451201_510710401_4FGL_J0157.7-4614_daily_bin1046.fits outfile=/scratch/kocevski/962198/expmap_510451201_510710401_4FGL_J0157.7-4614_daily_bin1046.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/962198/ltcube_510451201_510710401_4FGL_J0157.7-4614_daily_bin1046.fits
.....................!
real 194.35
user 188.22
sys 5.44

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 185 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0157.7-4614 @ 29.4353 -46.2431

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/962198/ft1_filtered_4FGL_J0157.7-4614_daily_bin1046.fits scfile=/scratch/kocevski/962198/ft2_4FGL_J0157.7-4614_daily_bin1046.fits outfile=/scratch/kocevski/962198/cmap_510451201_510710401_4FGL_J0157.7-4614_daily_bin1046.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.4353 yref=-46.2431 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 1.35
user 0.38
sys 0.96

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/962198/ft1_filtered_4FGL_J0157.7-4614_daily_bin1046.fits scfile=/scratch/kocevski/962198/ft2_4FGL_J0157.7-4614_daily_bin1046.fits outfile=/scratch/kocevski/962198/cmap_HighResolution_510451201_510710401_4FGL_J0157.7-4614_daily_bin1046.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.4353 yref=-46.2431 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 1.39
user 0.40
sys 0.96

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/962198/ft1_filtered_4FGL_J0157.7-4614_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/962198/ft2_4FGL_J0157.7-4614_daily_bin1046.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/962198/Model_4FGL_J0157.7-4614_daily_bin1046.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/962198/ft1_filtered_4FGL_J0157.7-4614_daily_bin1046.fits.....................!
real 114.96
user 112.23
sys 2.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/962198/ft1_filtered_4FGL_J0157.7-4614_daily_bin1046.fits', '/scratch/kocevski/962198/ft2_4FGL_J0157.7-4614_daily_bin1046.fits', expMap='/scratch/kocevski/962198/expmap_510451201_510710401_4FGL_J0157.7-4614_daily_bin1046.fits', expCube='/scratch/kocevski/962198/ltcube_510451201_510710401_4FGL_J0157.7-4614_daily_bin1046.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/962198/Model_4FGL_J0157.7-4614_daily_bin1046.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0157.7-4614'

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  1.578e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.240e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
285         beta:  2.259e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.599e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/962198/ft1_filtered_4FGL_J0157.7-4614_daily_bin1046.fits
Spacecraft file(s): /scratch/kocevski/962198/ft2_4FGL_J0157.7-4614_daily_bin1046.fits
Exposure map: /scratch/kocevski/962198/expmap_510451201_510710401_4FGL_J0157.7-4614_daily_bin1046.fits
Exposure cube: /scratch/kocevski/962198/ltcube_510451201_510710401_4FGL_J0157.7-4614_daily_bin1046.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/962198/Model_4FGL_J0157.7-4614_daily_bin1046.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) = 5999.18600394

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44509       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.4845       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.770       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6197       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.6189       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.8106       1.0000         .10000E-03   10000.    
    12 'norm      '    3.9895       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.109       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.7072       1.0000         .10000E-03   10000.    
    16 'norm      '    4.6443       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9503       1.0000         .10000E-03   10000.    
    19 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .80358       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0030       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5999.150     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     1907 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42322        8.5436        .18495E-05   -.78611E-03
   2  Prefactor     .10000E-03    14.538        .32468E-05** at limit **
   3  norm          9.4837        8.1586       -.16966E-06   -.10850E-03
   4  Prefactor     .10000E-03    22.267       -.12321E-04** at limit **
   5  Prefactor     20.769        5.6572       -.63679E-07    .15037E-03
   6  Prefactor     2.6194        5.8442       -.23262E-05   -.52661E-03
   7  norm          .10000E-03    20.449        .14613E-04** at limit **
   8  norm          .10000E-03    1.5557       -.12234E-06** at limit **
   9  Prefactor     5.6189        5.5067        .12881E-05    .11656E-03
  10  Prefactor     .10000E-03    7.1589       -.11421E-06** at limit **
  11  Prefactor     5.8107        3.9513       -.52166E-08    .41129E-04
  12  norm          3.9894        1.5286        .16470E-07   -.71706E-04
  13  Prefactor     10.106        10.610        .51514E-06    .10863E-03
  14  Prefactor     .10000E-03    15.762       -.63140E-05** at limit **
  15  norm          1.7071        1.4004        .59095E-07   -.57790E-05
  16  norm          4.6432        2.7964        .86466E-07   -.13373E-03
  17  Prefactor     .10000E-03    3.1173        .68287E-07** at limit **
  18  Prefactor     2.8712        150.52       -.15611E-04   -.12485E-04
  19  norm          .10000E-03    .43499       -.20991E-07** at limit **
  20  Normalizat    .80356        .15607        .12560E-06    .60307E-04
  21  Prefactor     1.0030        .17185        .47338E-06    .50793E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.423215
  Prefactor  = 0.0001
  norm       = 9.48366
  Prefactor  = 0.0001
  Prefactor  = 20.7693
  Prefactor  = 2.61942
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.61888
  Prefactor  = 0.0001
  Prefactor  = 5.8107
  norm       = 3.9894
  Prefactor  = 10.1064
  Prefactor  = 0.0001
  norm       = 1.70714
  norm       = 4.64319
  Prefactor  = 0.0001
  Prefactor  = 2.87121
  norm       = 0.0001
  Normalizat = 0.80356
  Prefactor  = 1.00303
 **********
 **   18 **HESSE 
 **********

 FCN=   5999.150     FROM HESSE     STATUS=OK           325 CALLS     2232 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42322        56.325        .43729E-02   -1.5578    
   2  Prefactor     .10000E-03    14.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.4837        8.1642        .13013E-03   -1.5092    
   4  Prefactor     .10000E-03    22.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.769        5.6625        .87886E-04   -1.4796    
   6  Prefactor     2.6194        5.9503        .25199E-03   -1.5384    
   7  norm          .10000E-03    20.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.5660        .94287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.6189        5.5148        .16947E-03   -1.5234    
  10  Prefactor     .10000E-03    7.1680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.8107        3.9534        .12192E-03   -1.5226    
  12  norm          3.9894        1.5280        .56009E-04   -1.5308    
  13  Prefactor     10.106        10.611        .12603E-03   -1.5072    
  14  Prefactor     .10000E-03    15.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.7071        1.4048        .80604E-04   -1.5447    
  16  norm          4.6432        2.7886        .95230E-04   -1.5277    
  17  Prefactor     .10000E-03    3.1271        .13352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.8712        151.13        .23644E-03   -1.5369    
  19  norm          .10000E-03    .72396        .98846E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .80356        .18294        .23326E-03   -.99937    
  21  Prefactor     1.0030        .20209        .23871E-03   -.92629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28293e-08
Minuit parameter uncertainties:
  1  9.77298
  2  9.1775e-06
  3  8.16515
  4  4.28277e-05
  5  5.66263
  6  5.95161
  7  1.50686e-06
  8  4.8418e-06
  9  5.51526
  10  4.41509e-06
  11  3.95361
  12  1.528
  13  10.6126
  14  8.79288e-06
  15  1.40484
  16  2.78869
  17  1.01769e-06
  18  41.7731
  19  2.55904e-06
  20  0.183084
  21  0.202243
Done.

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

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  1.000e-04  4.842e-06  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.240e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
285         beta:  2.259e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.599e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.003e+00  2.022e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  8.036e-01  1.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 29.435 -46.243
Photon Flux Upper Limit: 3.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.40e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/962198/likelihoodResults_510451201_510710401_4FGL_J0157.7-4614_daily_bin1046.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) = 5999.15271932
delta logL = -0.00301978080006

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5999.14969945
delta logL = 8.47257979331e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2253       1.0000          .0000       5.0000    
     3 'Normalizat'    .80361       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0030       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+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=   5999.150     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      233 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    91.259        .95041E-02** at limit **
   2  alpha         1.8153        2.5347        .16588        .10143E-07
   3  Normalizat    .80356        .28450E-01    .23326E-03    .10069E-03
   4  Prefactor     1.0030        .32388E-01    .23871E-03    .10963E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.81529
  Normalizat = 0.80356
  Prefactor  = 1.00303
 **********
 **   18 **HESSE 
 **********

 FCN=   5999.150     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7791        .10049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8153        2.8717        .66352E-02   -.27743    
   3  Normalizat    .80356        .17679        .93304E-05   -.99937    
   4  Prefactor     1.0030        .20121        .95484E-05   -.92629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33793e-11
Minuit parameter uncertainties:
  1  3.58575e-06
  2  156.498
  3  0.176917
  4  0.201365
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/962198': 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) = 5999.14969574
delta logL = 3.79062748834e-06

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  1.000e-04  3.586e-06  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  1.815e+00  1.565e+02  0.000e+00  5.000e+00 ( 1.000e+00)
285         beta:  2.259e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.599e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.003e+00  2.014e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  8.036e-01  1.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 29.435 -46.243

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/962198/cmap_HighResolution_510451201_510710401_4FGL_J0157.7-4614_daily_bin1046.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-05', job_status='DONE', photon_flux_upper_limit='3.53e-08', time_completed='2021-08-14 23:08:49.365386', job_id='962198', GAL2='1.00', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1629007729.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.79e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1046' AND source_name='4FGL J0157.7-4614' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 23:08:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 962198: <4FGL_J0157.7-4614_daily_bin1046> in cluster <slac> Done

Job <4FGL_J0157.7-4614_daily_bin1046> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Aug 14 22:55:25 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 22:55:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 22:55:35 2021
Terminated at Sat Aug 14 23:08:50 2021
Results reported at Sat Aug 14 23:08:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0157.7-4614_daily_bin1046 29.4353 -46.2431 510451201 510710401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0157.7-4614 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   701.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            805 sec.

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

