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


Performing analysis on: 4FGL_J0157.7-4614_daily_bin1471
RA = 29.4353, Dec = -46.2431
tmin = 620611201, tmax = 620870401
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='964220', job_status='RUN', time_executed='2021-08-14 23:03:30.880748', time_epoch_executed='1629007410.88' WHERE source_name='4FGL J0157.7-4614' and cadence='daily' and bin_id='1471'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/964220

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/964220/ft1_4FGL_J0157.7-4614_daily_bin1471.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/964220/ft2_4FGL_J0157.7-4614_daily_bin1471.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/964220/ft1_4FGL_J0157.7-4614_daily_bin1471.fits outfile=/scratch/kocevski/964220/ft1_filteredMKT_4FGL_J0157.7-4614_daily_bin1471.fits ra=29.4353 dec=-46.2431 rad=12.0 tmin=620611201.0 tmax=620870401.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 6.59
user 3.50
sys 3.05

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/964220/ft1_filtered_4FGL_J0157.7-4614_daily_bin1471.fits" evtable="EVENTS" scfile=/scratch/kocevski/964220/ft2_4FGL_J0157.7-4614_daily_bin1471.fits sctable="SC_DATA" outfile=/scratch/kocevski/964220/ltcube_620611201_620870401_4FGL_J0157.7-4614_daily_bin1471.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/964220/ft2_4FGL_J0157.7-4614_daily_bin1471.fits
.....................!
real 17.92
user 14.00
sys 3.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/964220/ft1_filtered_4FGL_J0157.7-4614_daily_bin1471.fits evtable="EVENTS" scfile=/scratch/kocevski/964220/ft2_4FGL_J0157.7-4614_daily_bin1471.fits sctable="SC_DATA" expcube=/scratch/kocevski/964220/ltcube_620611201_620870401_4FGL_J0157.7-4614_daily_bin1471.fits outfile=/scratch/kocevski/964220/expmap_620611201_620870401_4FGL_J0157.7-4614_daily_bin1471.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/964220/ltcube_620611201_620870401_4FGL_J0157.7-4614_daily_bin1471.fits
.....................!
real 195.17
user 185.30
sys 9.43

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/964220/ft1_filtered_4FGL_J0157.7-4614_daily_bin1471.fits scfile=/scratch/kocevski/964220/ft2_4FGL_J0157.7-4614_daily_bin1471.fits outfile=/scratch/kocevski/964220/cmap_620611201_620870401_4FGL_J0157.7-4614_daily_bin1471.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 3.63
user 0.38
sys 3.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/964220/ft1_filtered_4FGL_J0157.7-4614_daily_bin1471.fits scfile=/scratch/kocevski/964220/ft2_4FGL_J0157.7-4614_daily_bin1471.fits outfile=/scratch/kocevski/964220/cmap_HighResolution_620611201_620870401_4FGL_J0157.7-4614_daily_bin1471.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 3.38
user 0.39
sys 2.93

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/964220/ft1_filtered_4FGL_J0157.7-4614_daily_bin1471.fits evtable="EVENTS" scfile=/scratch/kocevski/964220/ft2_4FGL_J0157.7-4614_daily_bin1471.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/964220/Model_4FGL_J0157.7-4614_daily_bin1471.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/964220/ft1_filtered_4FGL_J0157.7-4614_daily_bin1471.fits.....................!
real 81.28
user 75.64
sys 5.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60250       1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.380       1.0000         .10000E-03   10000.    
     3 'norm      '    16.712       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10447E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10756E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8334       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.698       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.550       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .36763       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.7044       1.0000         .10000E-03   10000.    
    16 'norm      '    .10961E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    54.036       1.0000         .10000E-03   10000.    
    18 'Prefactor '    73.957       1.0000         .10000E-03   10000.    
    19 'norm      '    .59283       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .44812       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.3656       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=   3709.874     FROM MIGRAD    STATUS=CONVERGED    820 CALLS     2617 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .78947        453.89        .75781E-02    .26152E-04
   2  Prefactor     30.353        36.046        .72692E-04    .10009E-04
   3  norm          16.721        13.649        .97972E-04   -.12625E-03
   4  Prefactor     .10000E-03    9.5640        .18142E-02** at limit **
   5  Prefactor     .10000E-03    6.3904        .29408E-03** at limit **
   6  Prefactor     .10000E-03    11.886        .18142E-02** at limit **
   7  norm          .10000E-03    141.32        .18142E-02** at limit **
   8  norm          .10000E-03    6.7093        .15224E-02** at limit **
   9  Prefactor     4.8356        8.4206        .18298E-03    .61478E-04
  10  Prefactor     10.726        35.385        .12249E-03    .10557E-03
  11  Prefactor     .10000E-03    6.1137        .14603E-02** at limit **
  12  norm          10.551        2.8838        .51056E-04    .17613E-03
  13  Prefactor     .25815        150.49        .37396E-02    .13523E-03
  14  Prefactor     .10000E-03    20.458        .18142E-02** at limit **
  15  norm          2.7044        2.1917        .78355E-04   -.49549E-04
  16  norm          .10001E-03    7.3318        .16982E-02** at limit **
  17  Prefactor     54.060        20.727        .54565E-04   -.20729E-03
  18  Prefactor     73.974        58.635        .23343E-03    .12884E-03
  19  norm          .59431        1.0258        .82912E-03    .17946E-02
  20  Normalizat    .44806        .25553        .33044E-03    .20376E-03
  21  Prefactor     1.3656        .27845        .22458E-03    .39003E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.78947
  Prefactor  = 30.353
  norm       = 16.7209
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 4.83557
  Prefactor  = 10.7259
  Prefactor  = 0.0001
  norm       = 10.5505
  Prefactor  = 0.258148
  Prefactor  = 0.0001
  norm       = 2.70438
  norm       = 0.000100012
  Prefactor  = 54.0596
  Prefactor  = 73.9745
  norm       = 0.59431
  Normalizat = 0.448062
  Prefactor  = 1.3656
 **********
 **   18 **HESSE 
 **********

 FCN=   3709.874     FROM HESSE     STATUS=OK           301 CALLS     2918 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .78947        464.51        .30312E-03   -1.5530    
   2  Prefactor     30.353        36.038        .29077E-05   -1.4606    
   3  norm          16.721        13.646        .39189E-05   -1.4890    
   4  Prefactor     .10000E-03    9.5641        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.3906        .58816E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.891        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    141.33        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.7119        .30447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.8356        8.4199        .73192E-05   -1.5268    
  10  Prefactor     10.726        35.363        .48998E-05   -1.5053    
  11  Prefactor     .10000E-03    6.1154        .29206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.551        2.8824        .20423E-05   -1.5058    
  13  Prefactor     .25815        150.81        .14958E-03   -1.5606    
  14  Prefactor     .10000E-03    20.458        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.7044        2.1911        .31342E-05   -1.5379    
  16  norm          .10001E-03    7.3600        .33963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     54.060        20.602        .10913E-04   -1.4236    
  18  Prefactor     73.974        58.613        .46687E-04   -1.3986    
  19  norm          .59431        1.0240        .33165E-04   -1.5554    
  20  Normalizat    .44806        .25511        .13217E-04   -1.1489    
  21  Prefactor     1.3656        .27844        .44915E-04   -.81377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38083e-09
Minuit parameter uncertainties:
  1  38.6017
  2  36.0639
  3  13.6487
  4  3.96168e-06
  5  9.29732e-06
  6  2.37299e-05
  7  0.00112247
  8  5.23252e-05
  9  8.422
  10  35.432
  11  1.60483e-05
  12  2.88248
  13  12.5083
  14  7.51283e-06
  15  2.19117
  16  0.000595224
  17  20.6048
  18  58.6584
  19  1.02404
  20  0.255774
  21  0.278743
Done.

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

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  1.000e-04  5.233e-05  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.366e+00  2.787e-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:  4.481e-01  2.558e-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: 7.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/964220/likelihoodResults_620611201_620870401_4FGL_J0157.7-4614_daily_bin1471.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) = 3709.87516848
delta logL = -0.000709689003088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3709.87445893
delta logL = -1.32914919959e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10408E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2644       1.0000          .0000       5.0000    
     3 'Normalizat'    .44809       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3656       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=   3709.874     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      257 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.0513        .31198E-01** at limit **
   2  alpha         3.4717        3.2160        .16554        .23412E-06
   3  Normalizat    .44806        .49722E-02    .33044E-03   -.24634E-04
   4  Prefactor     1.3656        .56853E-02    .22458E-03   -.77463E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.4717
  Normalizat = 0.448062
  Prefactor  = 1.36559
 **********
 **   18 **HESSE 
 **********

 FCN=   3709.874     FROM HESSE     STATUS=OK            27 CALLS      284 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    30.372        .17373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.4717        4.2317        .66216E-02    .39920    
   3  Normalizat    .44806        .24006        .13217E-04   -1.1489    
   4  Prefactor     1.3656        .27461        .44916E-04   -.81377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13618e-09
Minuit parameter uncertainties:
  1  8.67035e-05
  2  322.753
  3  0.240617
  4  0.274901
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/964220': 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) = 3709.87445344
delta logL = 5.35931712875e-06

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  1.000e-04  8.670e-05  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  3.472e+00  3.228e+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.366e+00  2.749e-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:  4.481e-01  2.406e-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/964220/cmap_HighResolution_620611201_620870401_4FGL_J0157.7-4614_daily_bin1471.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.99e-05', job_status='DONE', photon_flux_upper_limit='7.57e-08', time_completed='2021-08-14 23:15:14.068713', job_id='964220', GAL2='1.37', fit_tolerance='1e-08', EG2='0.45', EG='0.45', time_epoch_completed='1629008114.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='5.36e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1471' AND source_name='4FGL J0157.7-4614' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 23:15:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 964220: <4FGL_J0157.7-4614_daily_bin1471> in cluster <slac> Done

Job <4FGL_J0157.7-4614_daily_bin1471> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 23:00:44 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 23:01:44 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:44 2021
Terminated at Sat Aug 14 23:15:15 2021
Results reported at Sat Aug 14 23:15:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0157.7-4614_daily_bin1471 29.4353 -46.2431 620611201 620870401 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 :                                   665.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            871 sec.

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

