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


Performing analysis on: 4FGL_J0157.7-4614_daily_bin752
RA = 29.4353, Dec = -46.2431
tmin = 434246401, tmax = 434505601
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='960399', job_status='RUN', time_executed='2021-08-14 22:52:38.542186', time_epoch_executed='1629006758.54' WHERE source_name='4FGL J0157.7-4614' and cadence='daily' and bin_id='752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/960399

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/960399/ft1_4FGL_J0157.7-4614_daily_bin752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/960399/ft2_4FGL_J0157.7-4614_daily_bin752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/960399/ft1_4FGL_J0157.7-4614_daily_bin752.fits outfile=/scratch/kocevski/960399/ft1_filteredMKT_4FGL_J0157.7-4614_daily_bin752.fits ra=29.4353 dec=-46.2431 rad=12.0 tmin=434246401.0 tmax=434505601.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 11.96
user 5.68
sys 5.94

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/960399/ft2_4FGL_J0157.7-4614_daily_bin752.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/960399/ft1_filteredMKT_4FGL_J0157.7-4614_daily_bin752.fits evtable="EVENTS" outfile="/scratch/kocevski/960399/ft1_filtered_4FGL_J0157.7-4614_daily_bin752.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 6.25
user 0.36
sys 5.77

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/960399/ft1_filtered_4FGL_J0157.7-4614_daily_bin752.fits" evtable="EVENTS" scfile=/scratch/kocevski/960399/ft2_4FGL_J0157.7-4614_daily_bin752.fits sctable="SC_DATA" outfile=/scratch/kocevski/960399/ltcube_434246401_434505601_4FGL_J0157.7-4614_daily_bin752.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/960399/ft2_4FGL_J0157.7-4614_daily_bin752.fits
.....................!
real 21.68
user 14.84
sys 6.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/960399/ft1_filtered_4FGL_J0157.7-4614_daily_bin752.fits evtable="EVENTS" scfile=/scratch/kocevski/960399/ft2_4FGL_J0157.7-4614_daily_bin752.fits sctable="SC_DATA" expcube=/scratch/kocevski/960399/ltcube_434246401_434505601_4FGL_J0157.7-4614_daily_bin752.fits outfile=/scratch/kocevski/960399/expmap_434246401_434505601_4FGL_J0157.7-4614_daily_bin752.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/960399/ltcube_434246401_434505601_4FGL_J0157.7-4614_daily_bin752.fits
.....................!
real 201.58
user 187.39
sys 12.77

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/960399/ft1_filtered_4FGL_J0157.7-4614_daily_bin752.fits scfile=/scratch/kocevski/960399/ft2_4FGL_J0157.7-4614_daily_bin752.fits outfile=/scratch/kocevski/960399/cmap_434246401_434505601_4FGL_J0157.7-4614_daily_bin752.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 6.17
user 0.40
sys 5.70

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/960399/ft1_filtered_4FGL_J0157.7-4614_daily_bin752.fits scfile=/scratch/kocevski/960399/ft2_4FGL_J0157.7-4614_daily_bin752.fits outfile=/scratch/kocevski/960399/cmap_HighResolution_434246401_434505601_4FGL_J0157.7-4614_daily_bin752.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 6.09
user 0.41
sys 5.65

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/960399/ft1_filtered_4FGL_J0157.7-4614_daily_bin752.fits evtable="EVENTS" scfile=/scratch/kocevski/960399/ft2_4FGL_J0157.7-4614_daily_bin752.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/960399/Model_4FGL_J0157.7-4614_daily_bin752.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/960399/ft1_filtered_4FGL_J0157.7-4614_daily_bin752.fits.....................!
real 112.57
user 103.03
sys 8.65

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0023       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.4231       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.130       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .22984E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.292       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.7493       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9023       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.0829       1.0000         .10000E-03   10000.    
    16 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.5729       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .17693       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0597       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93110       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=   5205.403     FROM MIGRAD    STATUS=CONVERGED    447 CALLS     2207 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0014        10.533        .19721E-06   -.37454E-05
   2  Prefactor     .10000E-03    23.296       -.60727E-06** at limit **
   3  norm          2.4192        9.7485        .83787E-05   -.23019E-03
   4  Prefactor     13.160        32.072       -.67552E-05   -.97808E-04
   5  Prefactor     .10000E-03    4.3806        .46167E-05** at limit **
   6  Prefactor     .10000E-03    2.8081       -.61152E-07** at limit **
   7  norm          .10000E-03    20.760       -.27202E-06** at limit **
   8  norm          .10000E-03    3.9360       -.70815E-06** at limit **
   9  Prefactor     23.296        14.839        .89609E-07   -.34888E-03
  10  Prefactor     .10000E-03    25.618        .23369E-07** at limit **
  11  Prefactor     .10000E-03    3.5584       -.11367E-06** at limit **
  12  norm          4.7492        1.8765        .36934E-07    .16965E-03
  13  Prefactor     4.9028        9.3635        .17934E-05    .13422E-04
  14  Prefactor     .10000E-03    10.925       -.59329E-06** at limit **
  15  norm          8.0826        2.8475        .76340E-07   -.90060E-05
  16  norm          .10000E-03    2.0422       -.21518E-06** at limit **
  17  Prefactor     6.5697        11.164        .16672E-05   -.39163E-04
  18  Prefactor     .10000E-03    12.279        .65849E-06** at limit **
  19  norm          .17690        .73972        .80037E-07   -.23251E-03
  20  Normalizat    1.0599        .18964       -.39806E-05   -.56985E-03
  21  Prefactor     .93101        .19919        .28520E-05   -.31074E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.00136
  Prefactor  = 0.0001
  norm       = 2.41924
  Prefactor  = 13.1595
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 23.2963
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.7492
  Prefactor  = 4.90279
  Prefactor  = 0.0001
  norm       = 8.08259
  norm       = 0.0001
  Prefactor  = 6.56967
  Prefactor  = 0.0001
  norm       = 0.176899
  Normalizat = 1.05991
  Prefactor  = 0.93101
 **********
 **   18 **HESSE 
 **********

 FCN=   5205.403     FROM HESSE     STATUS=OK           315 CALLS     2522 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0014        10.525        .16389E-03   -1.5218    
   2  Prefactor     .10000E-03    23.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.4192        10.396        .13146E-02   -1.5397    
   4  Prefactor     13.160        32.588        .11054E-03   -1.4982    
   5  Prefactor     .10000E-03    7.8708        .27004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.8174        .11803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    20.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    11.520        .27500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.296        14.839        .82996E-04   -1.4742    
  10  Prefactor     .10000E-03    25.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.6129        .13275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.7492        1.8744        .58543E-04   -1.5272    
  13  Prefactor     4.9028        9.3346        .90832E-03   -1.5265    
  14  Prefactor     .10000E-03    10.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.0826        2.8510        .34717E-03   -1.5139    
  16  norm          .10000E-03    2.1118        .20129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.5697        11.122        .78265E-03   -1.5195    
  18  Prefactor     .10000E-03    12.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .17690        .73452        .11792E-03   -1.5624    
  20  Normalizat    1.0599        .21761        .22212E-03   -.91049    
  21  Prefactor     .93101        .23129        .26209E-03   -.95066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.57481e-10
Minuit parameter uncertainties:
  1  10.5284
  2  2.1607e-05
  3  10.0327
  4  32.6322
  5  2.94076e-05
  6  1.5504e-06
  7  5.81657e-05
  8  0.000217254
  9  14.8416
  10  0.000101803
  11  1.0013e-05
  12  1.87444
  13  9.33739
  14  0.000102247
  15  2.85105
  16  1.00725e-05
  17  11.125
  18  0.000140632
  19  0.720744
  20  0.217797
  21  0.231534
Done.

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

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  1.000e-04  2.173e-04  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.310e-01  2.315e-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:  1.060e+00  2.178e-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: 5.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.22e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/960399/likelihoodResults_434246401_434505601_4FGL_J0157.7-4614_daily_bin752.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) = 5205.40350309
delta logL = -0.000411550999161

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5205.40309264
delta logL = -1.09794746095e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10180E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2763       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0602       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93068       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=   5205.403     FROM MIGRAD    STATUS=FAILED        86 CALLS      246 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10207E-03    14.477        .22575E-02** at limit **
   2  alpha         2.4758        3.5720        .16545E-01   -.17209E-05
   3  Normalizat    1.0599        .20391        .22212E-03   -.38221E-03
   4  Prefactor     .93100        .22807        .26209E-03   -.44747E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5205.403     FROM SIMPLEX   STATUS=UNCHANGED    116 CALLS      362 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10207E-03    14.477        .48539E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4758        3.5720        .83551E-03   -.96638E-02
   3  Normalizat    1.0599        .20391        .78723E-04   -.91049    
   4  Prefactor     .93100        .22807        .10382E-03   -.95066    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5205.403     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      388 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.686        .45149E-03** at limit **
   2  alpha         2.5008        3.7427        .33089E-02    .10926E-06
   3  Normalizat    1.0599        .20409        .44425E-04   -.24920E-03
   4  Prefactor     .93101        .22827        .52417E-04   -.21320E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.50078
  Normalizat = 1.05992
  Prefactor  = 0.931007
 **********
 **   18 **HESSE 
 **********

 FCN=   5205.403     FROM HESSE     STATUS=OK            23 CALLS      411 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.682        .90299E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5008        3.7363        .66179E-03    .31009E-03
   3  Normalizat    1.0599        .20414        .88850E-05   -.91049    
   4  Prefactor     .93101        .22832        .10483E-04   -.95066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39486e-10
Minuit parameter uncertainties:
  1  7.7865e-05
  2  184.934
  3  0.204289
  4  0.22856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/960399': 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) = 5205.40309065
delta logL = 8.89401235327e-07

Extracting fit parameters...

4FGL J0157.7-4614
   Spectrum: LogParabola
283         norm:  1.000e-04  7.787e-05  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.501e+00  1.849e+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.310e-01  2.286e-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:  1.060e+00  2.043e-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/960399/cmap_HighResolution_434246401_434505601_4FGL_J0157.7-4614_daily_bin752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.22e-05', job_status='DONE', photon_flux_upper_limit='5.63e-08', time_completed='2021-08-14 23:05:25.580084', job_id='960399', GAL2='0.93', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1629007525.58', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='8.89e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='752' AND source_name='4FGL J0157.7-4614' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 23:05:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 960399: <4FGL_J0157.7-4614_daily_bin752> in cluster <slac> Done

Job <4FGL_J0157.7-4614_daily_bin752> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 14 22:50:21 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 22:50:51 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:50:51 2021
Terminated at Sat Aug 14 23:05:27 2021
Results reported at Sat Aug 14 23:05:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0157.7-4614_daily_bin752 29.4353 -46.2431 434246401 434505601 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 :                                   847.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            906 sec.

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

