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


Performing analysis on: 4FGL_J0157.7-4614_daily_bin1432
RA = 29.4353, Dec = -46.2431
tmin = 610502401, tmax = 610761601
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='964156', job_status='RUN', time_executed='2021-08-14 23:02:11.334346', time_epoch_executed='1629007331.33' WHERE source_name='4FGL J0157.7-4614' and cadence='daily' and bin_id='1432'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/964156

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/964156/ft1_4FGL_J0157.7-4614_daily_bin1432.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/964156/ft2_4FGL_J0157.7-4614_daily_bin1432.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/964156/ft1_4FGL_J0157.7-4614_daily_bin1432.fits outfile=/scratch/kocevski/964156/ft1_filteredMKT_4FGL_J0157.7-4614_daily_bin1432.fits ra=29.4353 dec=-46.2431 rad=12.0 tmin=610502401.0 tmax=610761601.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 3.66
user 3.45
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/964156/ft2_4FGL_J0157.7-4614_daily_bin1432.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/964156/ft1_filteredMKT_4FGL_J0157.7-4614_daily_bin1432.fits evtable="EVENTS" outfile="/scratch/kocevski/964156/ft1_filtered_4FGL_J0157.7-4614_daily_bin1432.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.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/964156/ft1_filtered_4FGL_J0157.7-4614_daily_bin1432.fits" evtable="EVENTS" scfile=/scratch/kocevski/964156/ft2_4FGL_J0157.7-4614_daily_bin1432.fits sctable="SC_DATA" outfile=/scratch/kocevski/964156/ltcube_610502401_610761601_4FGL_J0157.7-4614_daily_bin1432.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/964156/ft2_4FGL_J0157.7-4614_daily_bin1432.fits
.....................!
real 13.77
user 13.37
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/964156/ft1_filtered_4FGL_J0157.7-4614_daily_bin1432.fits evtable="EVENTS" scfile=/scratch/kocevski/964156/ft2_4FGL_J0157.7-4614_daily_bin1432.fits sctable="SC_DATA" expcube=/scratch/kocevski/964156/ltcube_610502401_610761601_4FGL_J0157.7-4614_daily_bin1432.fits outfile=/scratch/kocevski/964156/expmap_610502401_610761601_4FGL_J0157.7-4614_daily_bin1432.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/964156/ltcube_610502401_610761601_4FGL_J0157.7-4614_daily_bin1432.fits
.....................!
real 191.63
user 185.66
sys 5.53

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/964156/ft1_filtered_4FGL_J0157.7-4614_daily_bin1432.fits scfile=/scratch/kocevski/964156/ft2_4FGL_J0157.7-4614_daily_bin1432.fits outfile=/scratch/kocevski/964156/cmap_610502401_610761601_4FGL_J0157.7-4614_daily_bin1432.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 0.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/964156/ft1_filtered_4FGL_J0157.7-4614_daily_bin1432.fits scfile=/scratch/kocevski/964156/ft2_4FGL_J0157.7-4614_daily_bin1432.fits outfile=/scratch/kocevski/964156/cmap_HighResolution_610502401_610761601_4FGL_J0157.7-4614_daily_bin1432.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 0.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/964156/ft1_filtered_4FGL_J0157.7-4614_daily_bin1432.fits evtable="EVENTS" scfile=/scratch/kocevski/964156/ft2_4FGL_J0157.7-4614_daily_bin1432.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/964156/Model_4FGL_J0157.7-4614_daily_bin1432.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/964156/ft1_filtered_4FGL_J0157.7-4614_daily_bin1432.fits....................!
real 155.13
user 153.47
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/964156/ft1_filtered_4FGL_J0157.7-4614_daily_bin1432.fits', '/scratch/kocevski/964156/ft2_4FGL_J0157.7-4614_daily_bin1432.fits', expMap='/scratch/kocevski/964156/expmap_610502401_610761601_4FGL_J0157.7-4614_daily_bin1432.fits', expCube='/scratch/kocevski/964156/ltcube_610502401_610761601_4FGL_J0157.7-4614_daily_bin1432.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/964156/Model_4FGL_J0157.7-4614_daily_bin1432.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/964156/ft1_filtered_4FGL_J0157.7-4614_daily_bin1432.fits
Spacecraft file(s): /scratch/kocevski/964156/ft2_4FGL_J0157.7-4614_daily_bin1432.fits
Exposure map: /scratch/kocevski/964156/expmap_610502401_610761601_4FGL_J0157.7-4614_daily_bin1432.fits
Exposure cube: /scratch/kocevski/964156/ltcube_610502401_610761601_4FGL_J0157.7-4614_daily_bin1432.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/964156/Model_4FGL_J0157.7-4614_daily_bin1432.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) = 7977.97759889

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.6670       1.0000         .10000E-03   10000.    
     3 'norm      '    8.1179       1.0000         .10000E-03   10000.    
     4 'Prefactor '    96.177       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.5654       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2589       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10151E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8206       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .89861       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1399       1.0000         .10000E-03   10000.    
    12 'norm      '    39.756       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11251E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    39.019       1.0000         .10000E-03   10000.    
    15 'norm      '    7.4513       1.0000         .10000E-03   10000.    
    16 'norm      '    3.7678       1.0000         .10000E-03   10000.    
    17 'Prefactor '    63.754       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10562E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .88875       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .90763       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=   7977.804     FROM MIGRAD    STATUS=CONVERGED    447 CALLS     1940 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2040       -.45066E-07** at limit **
   2  Prefactor     8.6635        12.064       -.23118E-07    .25978E-04
   3  norm          8.1168        6.7818        .47792E-07    .32302E-04
   4  Prefactor     96.138        35.529       -.66304E-06   -.39138E-03
   5  Prefactor     8.5627        5.0061        .87918E-07    .46690E-04
   6  Prefactor     4.2602        5.5988        .27721E-05    .84135E-03
   7  norm          .10000E-03    18.451       -.32402E-07** at limit **
   8  norm          .10000E-03    2.1609       -.90800E-07** at limit **
   9  Prefactor     6.8195        7.5460        .33924E-07    .26368E-04
  10  Prefactor     .87393        20.895       -.47853E-05    .50785E-03
  11  Prefactor     6.1411        6.2013        .23845E-06    .56453E-04
  12  norm          39.755        3.7623       -.63691E-07    .35647E-03
  13  Prefactor     .10000E-03    33.628        .18210E-05** at limit **
  14  Prefactor     39.021        23.025        .12942E-06    .82543E-04
  15  norm          7.4513        2.4598        .20502E-07    .16019E-05
  16  norm          3.7664        2.4854        .20068E-07    .79341E-04
  17  Prefactor     63.756        16.967       -.18546E-06    .11562E-03
  18  Prefactor     .10000E-03    12.873        .77585E-07** at limit **
  19  norm          .10000E-03    .41276       -.42091E-07** at limit **
  20  Normalizat    .88970        .17434        .20888E-05    .10620E-03
  21  Prefactor     .90671        .18388       -.27640E-05    .15152E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.66345
  norm       = 8.11684
  Prefactor  = 96.1385
  Prefactor  = 8.56274
  Prefactor  = 4.26023
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.81951
  Prefactor  = 0.873927
  Prefactor  = 6.14111
  norm       = 39.7552
  Prefactor  = 0.000100001
  Prefactor  = 39.0212
  norm       = 7.45134
  norm       = 3.76641
  Prefactor  = 63.7557
  Prefactor  = 0.0001
  norm       = 0.000100003
  Normalizat = 0.889699
  Prefactor  = 0.906708
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.2078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.6635        12.064        .13616E-03   -1.5119    
   3  norm          8.1168        6.7808        .14072E-03   -1.5138    
   4  Prefactor     96.138        35.814        .20493E-03   -1.3744    
   5  Prefactor     8.5627        5.0116        .13697E-03   -1.5123    
   6  Prefactor     4.2602        5.7117        .97619E-03   -1.5295    
   7  norm          .10000E-03    18.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.1765        .12797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.8195        7.5437        .15363E-03   -1.5186    
  10  Prefactor     .87393        102.75        .62998E-02   -1.5521    
  11  Prefactor     6.1411        6.1930        .16202E-03   -1.5212    
  12  norm          39.755        3.7574        .48597E-04   -1.4446    
  13  Prefactor     .10000E-03    33.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     39.021        22.945        .64166E-04   -1.4458    
  15  norm          7.4513        2.4598        .77930E-04   -1.5162    
  16  norm          3.7664        2.4876        .11026E-03   -1.5320    
  17  Prefactor     63.756        16.786        .50258E-04   -1.4109    
  18  Prefactor     .10000E-03    12.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.5944        .10902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .88970        .20100        .28408E-03   -.96823    
  21  Prefactor     .90671        .21019        .30848E-03   -.95907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27882e-08
Minuit parameter uncertainties:
  1  4.49109e-07
  2  12.0671
  3  6.78145
  4  35.8223
  5  5.01186
  6  5.7124
  7  1.69019e-05
  8  5.71432e-06
  9  7.5448
  10  18.9844
  11  6.19364
  12  3.75739
  13  0.000301834
  14  22.95
  15  2.45988
  16  2.48769
  17  16.7871
  18  1.23999e-05
  19  0.000270032
  20  0.201166
  21  0.210375
Done.

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

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  1.000e-04  5.714e-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:  9.067e-01  2.104e-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.897e-01  2.012e-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: 4.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.66e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/964156/likelihoodResults_610502401_610761601_4FGL_J0157.7-4614_daily_bin1432.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) = 7977.80586098
delta logL = -0.0021821809587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7977.80367539
delta logL = 3.40994029102e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11741E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1370       1.0000          .0000       5.0000    
     3 'Normalizat'    .88958       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90686       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7977.804     FROM MIGRAD    STATUS=FAILED        87 CALLS      279 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10084E-03    3.1844        .19436E-02** at limit **
   2  alpha         3.3348        2.6859        .17193E-01   -.32987E-05
   3  Normalizat    .88970        .18902        .28407E-03    .39162E-03
   4  Prefactor     .90671        .20811        .30848E-03    .33666E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7977.804     FROM SIMPLEX   STATUS=UNCHANGED    107 CALLS      386 TOTAL
                     EDM=   .71E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10084E-03    3.1844        .16477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.3348        2.6859        .69045E-03    .34048    
   3  Normalizat    .88970        .18902        .80938E-04   -.96823    
   4  Prefactor     .90671        .20811        .11583E-03   -.95907    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7977.804     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      417 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1925        .38872E-03** at limit **
   2  alpha         3.4073        2.6133        .34386E-01    .59314E-06
   3  Normalizat    .88970        .18915        .56814E-04   -.29579E-03
   4  Prefactor     .90671        .20828        .61697E-04   -.18817E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100004
  alpha      = 3.40733
  Normalizat = 0.889696
  Prefactor  = 0.906709
 **********
 **   18 **HESSE 
 **********

 FCN=   7977.804     FROM HESSE     STATUS=OK            23 CALLS      440 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1661        .77744E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.4073        2.5194        .13754E-02    .37141    
   3  Normalizat    .88970        .18919        .11363E-04   -.96823    
   4  Prefactor     .90671        .20833        .12339E-04   -.95907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90195e-09
Minuit parameter uncertainties:
  1  0.000220484
  2  199.368
  3  0.189333
  4  0.208514
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/964156': 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) = 7977.80367161
delta logL = 7.18086903362e-06

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  1.000e-04  2.205e-04  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  3.407e+00  1.994e+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:  9.067e-01  2.085e-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.897e-01  1.893e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/964156/cmap_HighResolution_610502401_610761601_4FGL_J0157.7-4614_daily_bin1432.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.66e-05', job_status='DONE', photon_flux_upper_limit='4.20e-08', time_completed='2021-08-14 23:16:17.787831', job_id='964156', GAL2='0.91', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1629008177.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='7.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1432' AND source_name='4FGL J0157.7-4614' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 23:16:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 964156: <4FGL_J0157.7-4614_daily_bin1432> in cluster <slac> Done

Job <4FGL_J0157.7-4614_daily_bin1432> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 23:00:40 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 23:01:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 23:01:17 2021
Terminated at Sat Aug 14 23:16:18 2021
Results reported at Sat Aug 14 23:16:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0157.7-4614_daily_bin1432 29.4353 -46.2431 610502401 610761601 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 :                                   837.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             370.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            938 sec.

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

